txpool_inspect-polygon

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. 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. Please note, there may be multiple transactions associated with the same account and nonce. This can happen if the user broadcast mutliple ones with varying gas allowances (or even completely different transactions).

Parameters

  • No parameter are needed.

curl https://polygon-mainnet-archive.allthatnode.com:8545/8U3JLUhzIDg3GShvy9hkCCSYkLGc11kj \
--request POST \
--header "Content-Type: application/json" \
--data '{
    "jsonrpc":"2.0",
    "id":1,
    "method":"txpool_inspect",
    "params":[]
}'

Returns

  • ARRAY - A list of pending and queued transactions
    • pending - An ARRAY of transaction objects, with textual data
    • queued - An ARRAY of transaction objects, with textual data
{
  "jsonrpc": "2.0",
  "id": "1",
  "result": {
    "pending": {
      "0x00000000000a33E9749Fb3d57B98a5f4c1fBFe5C": {
        "1849": "0xf5bf5DCDAa83FD358B5a4ECeD76f3b947542175A: 0 wei + 1000000 gas × 39857282800 wei"
      },
      "0x00000000E0Ead00Ec49d0c061732EEfdf9a5b1C4": {
        "10": "0x0000000057adE31957c141476aE5593Aa6B4F4D8: 0 wei + 3462961 gas × 14065715274 wei"
      },
      ....,
      "0x0000aa5291fd10F70dF3D0aA0B1a76A75243BB6B": {
        "182": "0xdAC17F958D2ee523a2206206994597C13D831ec7: 0 wei + 70000 gas × 16000000000 wei"
      },
      "0x00035bc57c29f0ea53eF9cF43080e00781D29c8d": {
        "2": "0x49E96E255bA418d08E66c35b588E2f2F3766E1d0: 8462616000000000 wei + 21000 gas × 13000000000 wei"
      },
      //more...
    }
  }
}

Try Yourself

Language
Click Try It! to start a request and see the response here!