Returns the hash of the best (tip) block in the longest blockchain.
Request
curl 'https://rpc.web3api.io?x-api-key=YOUR-API-KEY' \
-X POST \
-H 'x-amberdata-blockchain-id: bitcoin-mainnet' \
-d '{"jsonrpc":"2.0","id":1,"method":"getbestblockhash","params":[]}'
Response
{
"result": "0000000000000000000cb4d3aa971cd52cfb80028ae1db1fd99e0d35bf75c53e",
"error": null,
"id": 1
}
Field | Description |
---|---|
result | "hex", the block hash hex encoded |