Skip to main content

Block

getBlockCount

Get chain high in this node.

Params

  • none

Result

  • Integer with blockcount of node

Example

Request
curl -X POST --data '{"jsonrpc":"2.0","method":"getBlockCount","id":123456}' http://localhost:8121
Response
{"result":154197,"id":"123456","jsonrpc":"2.0"}

getBlockInfo

Get block information.

Params

  • block : Integer - Block number (0..blocks count-1)

Result

Example

Request
curl -X POST --data '{"jsonrpc":"2.0","method":"getBlockInfo","params":{"block":"1000"},"id":123456}' http://localhost:8121
Response
{"result":{"block":1000,"ver":2,"ver_a":2,"timestamp":"1640996200","nopsp":"0","niopsp":"0","hmr":"2836364005890289212","blocksize":444,"hash":"0x46B5503427D98934BCAFB0C97C51F9780028AB01077D819043E5F4D684C4FA09","one_hash":"0xD185E5F870D0B0AC12AC862C8069E364079BB5E357EEB1A2D44C52EFBAF6FA9C","four_hash":"0x3199B0CEBC1C32BA70DC6DF45C947E4BD745F309DF4D534C9558B82763423EEB","three_hash":"0x24F1D03D491221064F2EA0F591071A8F154A156F7C4F3BEF534362411C46E527","payload":"0x","trx_fee":"0","operations":0},"id":"123456","jsonrpc":"2.0"}

blockSyncing

Get Block Sync Information.

Params

  • none

Result

Example

Request
curl -X POST --data '{"jsonrpc":"2.0","method":"getBlockCount","id":123456}' http://localhost:8121
Response
{"result":{"startingBlock":123,"currentBlock":23000,"highestBlock":10000000},"id":"123456","jsonrpc":"2.0"}