Skip to main content

chain_getBlockHash - JSON-RPC Method

Returns the block hash for a given block number. If no parameter is provided, returns the hash of the latest block.

Code Examples#

curl -X POST https://api-bittensor-mainnet.n.dwellir.com/YOUR_API_KEY \
+ -H 'Content-Type: application/json' \
+ -d '{"jsonrpc":"2.0","method":"chain_getBlockHash","params":[0],"id":1}'