eth_blockNumber

返回当前最新的区块号。

Request

curl https://eth-mainnet.solarpath.io/v1/YOUR-API-KEY \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc": "2.0", "id": 1, "method": "eth_blockNumber", "params": []}'

Response

十六进制整数符串,表示当前最新的区块号。

{
  "id": 1,
  "jsonrpc": "2.0",
  "result": "0x670a46"
}

最后更新于