Returns information about a block by block number.
QUANTITY|TAG
- integer of a block number, or the string "earliest"
, "latest"
or "pending"
, as in the default block parameter.Boolean
- If true
it returns the full transaction objects, if false
only the hashes of the transactions.params: [
'0x1b4', // 436
true
]
// Request
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0x1b4", true],"id":1}'
Result see eth_getBlockByHash