[Transaction] eth_pendingTransactions
Returns the transactions that are in the transaction pool and have a from address that is one of the accounts this node manages.
JSONRPC: eth_pendingTransactions
Request
- application/json
Body
Responses
- 200
Return an array of transactions. For the returned transaction object.
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
error
object
A Number that indicates the error type that occurred. This MUST be an integer.
code | message | description |
---|---|---|
-32700 | Parse error | invalid JSON was received by the server. An error occurred on the server while parsing the JSON text. |
-32602 | Invalid params | Invalid method parameter(s). |
A String providing a short description of the error. The message SHOULD be limited to a concise single sentence.
A Primitive or Structured value that contains additional information about the error. This may be omitted. The value of this member is defined by the Server (e.g. detailed error information, nested errors etc.).
result
object[]
An array of transactions.
An integer representing the type of the transaction.
The block number where this transaction was in.
Gas price provided by the sender in peb. null when it is not a legacy transaction.
A maximum amount to pay for the transaction to execute. null when it is a legacy transaction.
Gas tip cap for dynamic fee transaction in peb. null when it is a legacy transaction.
Gas provided by the sender.
Integer of values sent with this transaction.
ECDSA recovery id.
ECDSA recovery r.
ECDSA recovery s.
Chain id set on the requested node.
accessList
object[]
required
Hash of the transaction.
{
"jsonrpc": "2.0",
"id": 0,
"error": {
"code": -32700,
"message": "Parse error",
"data": "string"
},
"result": [
{
"type": "0x2",
"nonce": "0x4",
"gasPrice": null,
"maxPriorityFeePerGas": "0x5d21dba00",
"maxFeePerGas": "0x5d21dba00",
"gas": "0x9999",
"value": "0x1",
"input": "0x",
"v": "0x1",
"r": "0xb6e16781d247b505aa8eaf363a6ea61e7c23c77ad64846ffda28e73e31304884",
"s": "0x5a296904cd009506cb5ed006af016d2c5dab255966af9ba6f8fc352f75e9b079",
"to": "0x8c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee",
"chainId": "0x2edaf",
"accessList": [],
"hash": "0x9cfbea4942b334050660ec7207f3323ee13e3196b06279f922404384acbf7b47"
}
]
}