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

/

Ethereum Classic (ETC)

etc
Ethereum Classic (ETC)

Method: POST eth_getBlockTransactionCountByNumber

dropdown

方法 RPC eth_getBlockTransactionCountByNumber 例如 Ethereum Classic (ETC)

POST eth_getBlockTransactionCountByNumber

返回与指定块号匹配的块中的交易数。

Parameters

QUANTITY|TAG - 细绳

如块参数中所述,代表块号或最新的字符串标签之一。

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_getBlockTransactionCountByNumber",
"params": ["latest"],
"id": "getblock.io"}'


Response

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