采纳
eth_getBlockByNumber,通过区块号返回有关块的信息。
参数
params: [ '0x1b4', // 436 true ]
返回
eth_getBlockByHash
例子
// Request curl -X POST --data '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0x1b4", true],"id":1}'
结果和eth_getBlockByHash一样