📝 Share Your Feedback on Twitter and Claim 1M Free GetBlock Requests

/

Ethereum Classic (ETC)

etc
Ethereum Classic (ETC)

Method: POST eth_blockNumber

dropdown

方法 RPC eth_blockNumber 例如 Ethereum Classic (ETC)

POST eth_blockNumber

返回与当前链头的块号相对应的索引。

Parameters

-

Request

curl --location --request POST 'https://etc.getblock.io/mainnet/' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "eth_blockNumber",
"params": [],
"id": "getblock.io"}'


Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "0xce574a"
}