← Robinhood Chain overview

Robinhood Chain · 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}$"
    }

cURL

Endpoint: https://rh-mainnet.eu1.azxa.io/<api-key> — replace <api-key> with your API key from the Azxa app .

Terminal
curl -X POST https://rh-mainnet.eu1.azxa.io/<api-key> \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"txpool_contentFrom","params":["0x0216d5032f356960cd3749c31ab34eeff21b3395"]}'

Example request

JSON-RPC
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "txpool_contentFrom",
  "params": [
    "0x0216d5032f356960cd3749c31ab34eeff21b3395"
  ]
}

Result

Transaction pool content from address

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": {}
  }
}
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"
  ]
}

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": {}
  }
}