bsv

Bitcoin-SV (BSV)

Method: POST validateaddress

dropdown

POST validateaddress

Return information about the given btc address.

Parameters

address - string, required

The btc address to validate

Request

curl --location --request POST 'https://bsv.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
    }
}