getblockhash

Returns hash of block in best-block-chain at height provided.

Arguments:

  1. height (numeric, required) The height index

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":"getblockhash","params":[594413]}'

Response

{
  "result": "000000000000000000187f49c0f588440af52039bc6e5951c286b692af2d004d",
  "error": null,
  "id": 1
}