txpool_content - Celo

txpool_content. Retrieves the contents of the transaction pool, including pending and queued transactions

txpool_content - celo [Value: 1000CU]
Retrieves the contents of the transaction pool, including pending and queued transactions
Use cases

Use cases

  • Retrieve details of pending transactions in the txpool
  • Monitor transaction pool for unconfirmed transactions
  • Analyze transaction data before blockchain confirmation
Constraints

Constraints

  • Transaction pool size may be large
  • Pending transactions may be evicted or replaced
  • Real-time updates require frequent polling
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl --location 'https://celo.drpc.org' \
--header 'Content-Type: application/json' \
--data '{
    "jsonrpc": "2.0",
    "method": "txpool_content",
    "params": [],
    "id": 1
}'
Copy
Response
200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "pending": {
      "0x1234567890abcdef1234567890abcdef12345678": {
        "0x1": {
          "blockHash": null,
          "blockNumber": null,
          "from": "0x1234567890abcdef1234567890abcdef12345678",
          "gas": "0x5208",
          "gasPrice": "0x4a817c800",
          "hash": "0x9a1e1ab6e3d7852e8230b7b79b7e6bf4e108f6de7d3f4ebf88e5fd1c1e6fdd1f",
          "input": "0x",
          "nonce": "0x1",
          "to": "0xabcdefabcdefabcdefabcdefabcdefabcdefabcdef",
          "transactionIndex": null,
          "value": "0x0",
          "v": "0x1b",
          "r": "0x1f7dfd312e0e0d29e88c7cb2d979ec4b357118960f9a4d2c6eb9b637b0930c92",
          "s": "0x1cbb017447adff4b3e91820f0d8b1c2fd27ea154c7dbf4f3fffbf658c87f57e8"
        }
      }
    },
    "queued": {}
  }
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
ParametersThis method does not accept any parameters.

Response

200
Contains details about the current state of the transaction pool

Response params

object
idinteger
jsonrpcstring
resultobject
object
pendingobject
An object containing all pending transactions organized by sender address.
object
addressobject
An object containing all pending transactions for a specific sender address.
object
nonceobject
An object representing a specific transaction by its nonce for this sender address.
object
blockHashstring
The hash of the block containing the transaction.
blockNumberstring
The number of the block containing the transaction.
fromstring
The address of the sender.
gasstring
The gas provided by the sender for the transaction.
gasPricestring
The gas price provided by the sender in Wei.
hashstring
The hash of the transaction.
inputstring
The data sent along with the transaction.
noncestring
The number of transactions sent from the sender's address.
tostring
The address of the receiver.
transactionIndexstring
The index position of the transaction in the block.
valuestring
The value of the transaction in Wei.
vstring
The V component of the signature.
rstring
The R component of the signature.
sstring
The S component of the signature.
queuedobject
An object containing all queued transactions organized by sender address.
object
addressobject
An object containing all queued transactions for a specific sender address.
object
nonceobject
An object representing a specific transaction by its nonce for this sender address.
object
blockHashstring
The hash of the block containing the transaction.
blockNumberstring
The number of the block containing the transaction.
fromstring
The address of the sender.
gasstring
The gas provided by the sender for the transaction.
gasPricestring
The gas price provided by the sender in Wei.
hashstring
The hash of the transaction.
inputstring
The data sent along with the transaction.
noncestring
The number of transactions sent from the sender's address.
tostring
The address of the receiver.
transactionIndexstring
The index position of the transaction in the block.
valuestring
The value of the transaction in Wei.
vstring
The V component of the signature.
rstring
The R component of the signature.
sstring
The S component of the signature.