返回到文章

采纳

编辑于

eth_blockNumber

ethereumj
命令

eth_blockNumber,返回最近区块的数量。

参数:

  • none

返回:

  • QUANTITY - 客户端所在当前块号的整数。

例子:

// Request
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":83}'

// Result
{
  "id":83,
  "jsonrpc": "2.0",
  "result": "0x4b7" // 1207
}