Up to 50% Off on Your First Month

0

4

:

0

2

:

0

4

:

3

6

Sale bannerSale banner
bch

Bitcoin Cash

BCH

POST

GET

chevron-right

Last updated on January 1, 1970

1 min read

Method validateaddress Bitcoin Cash (BCH)
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://bch.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