bitcoind.app
CommandsGuidesContact ↗
Home/Util/validateaddress
Util

validateaddress

Return information about the given bitcoin address.

Parameters

addressstringREQUIRED
The bitcoin address to validate

Returns

objectAddress validation info

Code Examples

curl --user myuser --data-binary '{"jsonrpc":"1.0","id":"1","method":"validateaddress","params":["bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4"]}' -H 'content-type:text/plain;' http://127.0.0.1:8332/

Example Response

{
  "isvalid": true,
  "address": "bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4",
  "scriptPubKey": "0014751e76e8199196d454941c45d1b3a323f1433bd6",
  "isscript": false,
  "iswitness": true,
  "witness_version": 0
}
← Previous
signmessagewithprivkey
Next →
verifymessage

More Util Commands

createmultisigderiveaddressesestimatesmartfeegetdescriptorinfogetindexinfosignmessagewithprivkey

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗