lib/bitbank/client.rb
# Determine if the given address is valid.
Determine if the given address is valid.
Determine if the given address is valid .
def validate_address(address, locals_invalid=false)
      status = request('validateaddress', address)
      if locals_invalid && status['ismine']
        warn "WARNING: Bitcoin address '#{address}' belongs to local account '#{status['account']}'."
        return false
      end
      status['isvalid']
    end
def validate_address ( address , locals_invalid = false ) status = request ( 'validateaddress' , address ) if locals_invalid && status [ 'ismine' ] warn "WARNING: Bitcoin address '#{address}' belongs to local account '#{status['account']}'." return false end status [ 'isvalid' ] end
Determine if the given address is valid.
Determine if the given address is valid .
address
<not_specific>
locals_invalid
<not_specific>