/

Binance Smart Chain (BSC)

bsc

Binance Smart Chain (BSC)

Method: POST eth_getBlockTransactionCountByNumber

dropdown
POST

eth_getBlockTransactionCountByNumber

返回与指定块编号匹配的块中的事务数。

Parameters

QUANTITY|TAG -

表示块编号或字符串标记最新、最早或待定之一的整数,如块参数中所述。

Request

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


Response

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