xmr

Monero (XMR)

Method: POST on_get_block_hash

dropdown
POST

on_get_block_hash

Look up a block's hash by its height.

Parameters

block height - int array of length 1

block height

Request

curl --location --request POST 'https://xmr.getblock.io/mainnet/json_rpc' \ 
--header 'x-api-key: YOUR-API-KEY' \ 
--header 'Content-Type: application/json' \ 
--data-raw '{"jsonrpc": "2.0",
"method": "on_get_block_hash",
"params": {"block height": 912345},
"id": "getblock.io"}'


Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "e22cf75f39ae720e8b71b3d120a5ac03f0db50bba6379e2850975b4859190bc6"
}