post https://nd-202-842-353.p2pify.com/788f110831fe13808302bd79796d55e8/
The getblockhash
method returns the hash of the block at the given height in the blockchain.
Get you own node endpoint today
Start for free and get your app to production levels immediately. No credit card required.
You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
height
(required) — the height of the block whose hash should be returned
Response
result
— a string representing the hash of the block at the given heighterror
— an object containing an error message if an error occurred, otherwisenull
id
— an integer representing the ID of the request, used to match requests with responses
Use case
The getblockhash
method is useful for retrieving the hash of a block at a specific height in the blockchain. This can be used in conjunction with other methods like getblock
to retrieve detailed information about a particular block.
For example, a block explorer application might use getblockhash
to get the hash of the latest block, and then use that hash with getblock
to retrieve and display the contents of the latest block.
Try the getblockhash
RPC method yourself
getblockhash
RPC method yourself