Files
nanoreth/book/jsonrpc/txpool.md
2023-06-12 04:30:52 +00:00

43 lines
1.9 KiB
Markdown

# `txpool` Namespace
The `txpool` API allows you to inspect the transaction pool.
## `txpool_content`
Returns the details of all transactions currently pending for inclusion in the next block(s), as well as the ones that are being scheduled for future execution only.
See [here](https://geth.ethereum.org/docs/rpc/ns-txpool#txpool_content) for more details
| Client | Method invocation |
|--------|----------------------------------------------|
| RPC | `{"method": "txpool_content", "params": []}` |
## `txpool_contentFrom`
Retrieves the transactions contained within the txpool, returning pending as well as queued transactions of this address, grouped by nonce.
See [here](https://geth.ethereum.org/docs/rpc/ns-txpool#txpool_contentFrom) for more details
| Client | Method invocation |
|--------|---------------------------------------------------------|
| RPC | `{"method": "txpool_contentFrom", "params": [address]}` |
## `txpool_inspect`
Returns a summary of all the transactions currently pending for inclusion in the next block(s), as well as the ones that are being scheduled for future execution only.
See [here](https://geth.ethereum.org/docs/rpc/ns-txpool#txpool_inspect) for more details
| Client | Method invocation |
|--------|----------------------------------------------|
| RPC | `{"method": "txpool_inspect", "params": []}` |
## `txpool_status`
Returns the number of transactions currently pending for inclusion in the next block(s), as well as the ones that are being scheduled for future execution only.
See [here](https://geth.ethereum.org/docs/rpc/ns-txpool#txpool_status) for more details
| Client | Method invocation |
|--------|---------------------------------------------|
| RPC | `{"method": "txpool_status", "params": []}` |