txpool_content
Overview
The 'txpool_content' method provides information about the current state of the Ethereum transaction pool. It returns the transactions that are currently pending (waiting to be mined) and queued (waiting for a suitable nonce) in the Ethereum network.
Request
{
"method": "txpool_content",
"params": [],
"id": 1,
"jsonrpc": "2.0"
}
Request Parameters
- method: The name of the method being called, in this case, "txpool_content".
- params: An array of parameters to pass to the method. For "txpool_content", this is typically an empty array.
- id: A unique identifier for the request.
- jsonrpc: The version of the JSON-RPC protocol being used, typically "2.0" for Ethereum.
Response
{
"pending": {
"address": {
"nonce": "value",
"details": {
"blockHash": "value",
"blockNumber": "value",
"from": "address",
"gas": "value",
"gasPrice": "value",
"hash": "transaction hash",
"input": "data",
"nonce": "value",
"to": "address",
"transactionIndex": "value",
"value": "value",
"type": "value",
"accesslist": "list",
"chainId": "value",
"v": "value",
"r": "value",
"s": "value"
}
}
},
"queued": {
"address": {
"nonce": "value",
"details": {
// similar structure as "pending"
}
}
}
}
Was this section helpful?