Returns information about a block given its global order.
block ID: (numeric, required)
the local resource ID of the block, resource ID doesn’t reach consensus on the network, it is generated by each node when accepting a new block.verbose: (boolean, optional, default=false)
reference getBlock.inclTx: (boolean, optional, default=true)
reference getBlock.fullTx: (boolean, optional, default=true)
reference getBlock.reference getBlock
curl --data '{"method":"getBlockByID","params":[2, true, true, false],"jsonrpc":"2.0","id":1}' -s -k -u "rpcuser:rpcpass" -H 'Content-Type: application/json' http://127.0.0.1:18131 |jq .
reference getBlock
© Copyright Qitmeer 2021.
This work is licensed under a Creative Commons Attribution 4.0 International License