chain_getBlockHash RPC Method
Parameters
BlockNumber
integer
The block number for which you want to obtain the corresponding block hash. If not provided, the request will return the hash for the latest block
Returns
result
string
The block hash of the specified block number
Request
1curl https://docs-demo.dot-mainnet.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"chain_getBlockHash","params":[],"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free