dgb

DGB

POST

GET

chevron-right

Last updated on January 1, 1970

1 min read

Method validateaddress undefined ()
connect with JSON-RPC protocol

validateaddress

info-circle-fill

Return information about the given btc address.

Parameters

address - string, required

The btc address to validate

Request

curl --location --request POST 'https://dgb.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "validateaddress",
"params": ["bc1q09vm5lfy0j5reeulh4x5752q25uqqvz34hufdl"],
"id": "getblock.io"}'

Response

{
    "error": null,
    "id": "getblock.io",
    "result": {
        "isvalid": false
    }
}
banner icon

Start Building with GetBlock RPCs for Free