chain_getBlockHash - JSON-RPC Method
Description
Returns the block hash for a given block number. If no number is provided, returns the hash of the latest block.
Examples
# Latest hash
curl -s https://api-acala.n.dwellir.com/YOUR_API_KEY -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"chain_getBlockHash","params":[]}'
# Hash for block 100000
curl -s https://api-acala.n.dwellir.com/YOUR_API_KEY -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"chain_getBlockHash","params":[100000]}'