⚡ We welcome businesses to test our enterprise-grade service

Method: POST txpool_status

dropdown

方法 GETH RPC txpool_status 例如 Ethereum (ETH)

POST txpool_status

可以查询状态检查属性,以查询当前未决的交易次数,以包含在下一个块中,以及仅针对将来执行的事务。

结果是一个对象,有两个字段待处理和排队,每个字段都是代表该特定状态的交易数量的计数器。

Parameters

-

Request

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


Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "pending": "0x13fd",
        "queued": "0x400"
    }
}