POSTgetblockhash

Bitcoin Mainnethttps://bitcoin-mainnet.nodit.io/

Returns the hash of the block at the given height in the best block chain.

Request Body
idintegerrequired
jsonrpcstringrequired
methodstringrequired
paramsoneOf[]required

It contains following parameter:

  1. height: The height of the block to look up, as an integer. (required)
params[0]integer

The height of the block to look up.

Responses

No response body.

X-API-KEY
RequestCU10
cURL
curl -X POST "https://bitcoin-mainnet.nodit.io/" \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "getblockhash",
    "params": [
      820000
    ]
  }'
Response
Example · 200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "000000000000000000024bead8df69990852c202db0e0097c1a12ea637d7e96d"
}