Azxa
← Taiko overview

Taiko · txpool

txpool_contentFrom

Returns the transactions in the pool from a specific address.

Returns an object containing pending and queued transactions from the specified address, grouped by nonce. This is a filtered version of txpool_content.

Parameters

  • address required
    Schema
    {
      "type": "string",
      "title": "hex encoded address",
      "pattern": "^0x[0-9a-fA-F]{40}$"
    }

Result

Transaction pool content from address

Schema
{
  "type": "object",
  "title": "Transaction pool content from address",
  "description": "Pending and queued transactions from a specific address, grouped by nonce.",
  "properties": {
    "pending": {
      "type": "object",
      "title": "pending transactions",
      "description": "Transactions ready for inclusion in the next block(s)"
    },
    "queued": {
      "type": "object",
      "title": "queued transactions",
      "description": "Transactions with nonce gaps awaiting preceding transactions before they can be executed"
    }
  },
  "required": [
    "pending",
    "queued"
  ]
}

Example request

Endpoint: https://your-taiko-node.azxa.io

JSON-RPC
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "txpool_contentFrom",
  "params": [
    "0x0216d5032f356960cd3749c31ab34eeff21b3395"
  ]
}
Example response
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "pending": {
      "806": {
        "blockHash": null,
        "blockNumber": null,
        "from": "0x0216d5032f356960cd3749c31ab34eeff21b3395",
        "gas": "0x5208",
        "gasPrice": "0xba43b7400",
        "hash": "0xaf953a2d01f55cfe080c0c94150a60105e8ac3d51153058a1f03dd239dd08586",
        "input": "0x",
        "nonce": "0x326",
        "to": "0x7f69a91a3cf4be60020fb58b893b7cbb65376db8",
        "transactionIndex": null,
        "value": "0x19a99f0cf456000"
      }
    },
    "queued": {}
  }
}

Test fixture

Fixture: get-content-from-address

Request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "txpool_contentFrom",
  "params": [
    "0x0000000000000000000000000000000000000000"
  ]
}
Response
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "pending": {},
    "queued": {}
  }
}

cURL

curl -X POST https://your-taiko-node.azxa.io \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"txpool_contentFrom","params":["0x0216d5032f356960cd3749c31ab34eeff21b3395"]}'
1

Select Chain

2

Desired Period

3

Contact Information

cross

Select Preferred Chain

BNB Smart Chain
Polygon
Tron
Arbitrum
Optimism
IoTeX
Gnosis
Fantom
Moonbeam
Polkadot
Avalanche
Bitcoin
Ethereum
Aptos
Other
cube

Other Chain

Continue
logo
cross
background