Skip to content

GetBlockByBlockNumber

• Provides block information using the block number instead of the hash.

• Useful when iterating through blocks or debugging.

getBlockByNumber
curl http://localhost:8492/block_by_index/2298
Response
{
"jsonrpc": "2.0",
"result": {
"block":{
"hash":"0000277b3c2fb084a6bd4a657b97598c661e48a2ec7dad4fd1a39a660d0a625e",
"index":5212,
"nonce":25441,
"peer_id":null,
"previous_block_hash":null,
"timestamp":1753519539610,
"transactions":[
{
"amount":0.5272055639269406,
"recipient":"l7ydIDHRaCR2.uaxn",
"remark":"UAXN",
"sender":"EfDz4LTNHAlh.uaxn",
"timestamp":1753519533492,
"transactionId":"e482874069fc11f08d3c7916cd0171d9"
}
]}
},
"id":1}%