For information on pending and queued transactions and how an Ethereum node processes them, see Difference between pending and queued transactions on an Ethereum node.
All listed commands are done in a Geth console. See Chainstack Docs: Ethereum tools.
To get all pending transactions submitted through the node and pending in the node's pool:
eth.pendingTransactions
To get the number of all global pending and queued transactions in the local pool of your Ethereum node, run:
txpool.status
To get summarized details of all global pending and queued transactions in the local pool, run:
txpool.inspect
To get complete details on all global pending and queued transactions in the local pool, run:
txpool.content
To get the total number of transactions from an account included in blocks, run:
eth.getTransactionCount("ADDRESS")
To get the account nonce of a transaction, run:
eth.getTransaction("TRANSACTION_HASH")
See also Fixing queued transactions with the account nonce not in sequence.
The txpool namespace is only available for dedicated Ethereum nodes. See also API namespaces available for a public Ethereum node.
Comments
0 comments
Please sign in to leave a comment.