txpool_status
The status
inspection property can be queried for the number of transactions currently pending for inclusion in the next block(s), as well as the ones that are being scheduled for future execution only.
Parameters
- none
Returns
The result is an object with two fields pending
and queued
, each of which is a counter representing the number of transactions in that particular state.
Example
Request
curl https://astar.blastapi.io/<project-id>
-X POST \
-H "Content-Type: application/json" \
-d '{"method":"txpool_status", "params":[],"id":1,"jsonrpc":"2.0"}'
Response
{
"jsonrpc": "2.0",
"result": {
"pending": "0x1c",
"queued": "0x0"
},
"id": 1
}