Txpool methods
POST : txpool_besuPendingTransactions
Lists pending transactions that match the supplied filter conditions.
Parameters
QUANTITY
- Integer representing the maximum number of results to return.- Object of fields used to create the filter condition.
Each field in the object corresponds to a field name containing an operator, and a value for the operator. A field name can only be specified once, and can only contain one operator. For example, you cannot query transactions with a gas price between 8 and 9 Gwei by using both the
gt
and lt
operator in the same field name instance.All filters must be satisfied for a transaction to be returned.
Field name | Value | Value type | Supported operators |
---|---|---|---|
from | Address of the sender. | Data, 20 bytes | eq |
to | Address of the receiver, or "contract_creation" . | Data, 20 bytes | eq , action |
gas | Gas provided by the sender. | Quantity | eq , gt , lt |
gasPrice | Gas price, in wei, provided by the sender. | Quantity | eq , gt , lt |
value | Value transferred, in wei. | Quantity | eq , gt , lt |
nonce | Number of transactions made by the sender. | Quantity | eq , gt , lt |
| | | |
Supported operators:
eq
(Equal to)lt
(Less than)gt
(Greater than)action
NoteThe only supportedaction
is"contract_creation"
.
Returns
result
- Array of objects with details of the pending transaction.BODY
{
"jsonrpc": "2.0",
"method": "txpool_besuPendingTransactions",
"params": [
2,
{
"from": {
"eq": "0xfe3b557e8fb62b89f4916b721be55ceb828dbd73"
},
"gas": {
"lt": "0x5209"
POST : txpool_besuStatistics
Lists statistics about the node transaction pool.
Parameters
None
Returns
result
- Transaction pool statistics:maxSize
- Maximum number of transactions kept in the transaction pool. Use the--tx-pool-max-size
option to configure the maximum size.localCount
- Number of transactions submitted directly to this node.remoteCount
- Number of transactions received from remote nodes.
BODY
{
"jsonrpc": "2.0",
"method": "txpool_besuStatistics",
"params": [],
"id": 1
}
POST : txpool_besuTransactions
Lists transactions in the node transaction pool.
Parameters
None
Returns
result
- List of transactions.BODY
{
"jsonrpc": "2.0",
"method": "txpool_besuTransactions",
"params": [],
"id": 1
}
Last modified 7mo ago