Returns the height of the most-work fully-validated chain. The genesis block has height 0.
This method will use 10
Compute Units.
Returns
curl https://mainnet.bitcoin.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getblockcount",
"params": []
}'
curl https://testnet.bitcoin.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getblockcount",
"params": []
}'
Last updated