POST
/
788f110831fe13808302bd79796d55e8
curl --request POST \
  --url https://nd-202-842-353.p2pify.com/788f110831fe13808302bd79796d55e8 \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "1.0",
  "method": "validateaddress",
  "params": [
    "bc1pmvg0vjl7cgayamkd4kvgyktx5849gul67c85pygvt52mpwmx6dtqp92l8r"
  ],
  "id": 1
}'
{
  "result": {
    "isvalid": true,
    "address": "<string>",
    "scriptPubKey": "<string>",
    "ismine": true,
    "iswatchonly": true,
    "isscript": true,
    "script": "<string>",
    "hex": "<string>",
    "addresses": [
      "<string>"
    ],
    "sigsrequired": 123,
    "pubkey": "<string>",
    "iscompressed": true,
    "account": "<string>",
    "timestamp": 123,
    "hdkeypath": "<string>",
    "hdseedid": "<string>",
    "hdmasterfingerprint": "<string>",
    "labels": [
      "<string>"
    ]
  },
  "error": {},
  "id": 123
}

The validateaddress method checks if a given Bitcoin address is valid and provides detailed information about it. This includes whether the address is valid, its scriptPubKey, if it belongs to the wallet, and more.

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • address (required): The Bitcoin address to validate.

Response

  • result — an object containing various details about the address, such as its validity, ownership, script type, associated public key, and more.
  • error — an object containing an error message if an error occurred, otherwise null.
  • id — an integer representing the ID of the request.

Use case

The validateaddress method is useful for verifying the validity of a Bitcoin address before sending transactions. It can also provide wallet-related information for addresses, aiding in wallet management and transaction preparation.

Body

application/json
jsonrpc
string
default:1.0
method
string
default:validateaddress
params
string[]

The Bitcoin address to validate.

id
integer
default:1

Response

200 - application/json
Information about the validation of the address.
result
object
error
object
id
integer