Skip to main content

txpool_inspect

The inspect inspection property can be queried to list a textual summary of all the transactions currently pending for inclusion in the next block(s), as well as the ones that are being scheduled for future execution only. This is a method specifically tailored to developers to quickly see the transactions in the pool and find any potential issues.

Parameters

  • none

Returns

The result is an object with two fields pending and queued. Each of these fields are associative arrays, in which each entry maps an origin-address to a batch of scheduled transactions. These batches themselves are maps associating nonces with transactions summary strings.

Example

Request

curl https://astar.blastapi.io/<project-id>
-X POST \
-H "Content-Type: application/json" \
-d '{"method":"txpool_inspect", "params":[],"id":1,"jsonrpc":"2.0"}'

Response

{
"jsonrpc": "2.0",
"result": {
"pending": {
"0xddda500b1bce53107e71808d72c25e85d1a1581a": {
"0x27d5ca": "0x27efb9c886807b614e13774092086be6d7dc72ac: 0 wei + 4500000 gas x 3250000000 wei"
},
"0x78780645558fcd99ecf16eab8b023e1b447910e8": {
"0x1cbf67": "0x27efb9c886807b614e13774092086be6d7dc72ac: 0 wei + 4500000 gas x 2700000000 wei"
}
},
"queued": {}
},
"id": 1
}