txpool_contentFrom
Returns the transactions in the node’s transaction pool sent by one address, pending and queued.
Geth reference · All supported methods
Parameters
Parameters are positional, in the order below.
| Parameter | Type | Required | Description |
|---|---|---|---|
Address | 20-byte address | Yes | The sender whose transactions to return. |
Return value
An object with pending and queued fields, each mapping nonces to that sender’s transactions.
Example
Replace <gateway-url> with your gateway base URL and <service-url> with the chain’s service path, such as service/ethereum.
sh
curl -X POST "<gateway-url>/<service-url>" \
-H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","id":1,"method":"txpool_contentFrom","params":["0xc94770007dda54cF92009BFF0dE90c06F603a09f"]}'Illustrative response; values depend on the selected network and request:
json
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"pending": {
"7": {
"from": "0xc94770007dda54cF92009BFF0dE90c06F603a09f",
"to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567",
"nonce": "0x7",
"gas": "0x5208",
"maxFeePerGas": "0x2540be400",
"maxPriorityFeePerGas": "0x3b9aca00",
"value": "0x9184e72a",
"input": "0x",
"hash": "0x88df016429689c079f3b2f6ad39fa052532c56795b733da78a91ebe6a713944b"
}
},
"queued": {}
}
}