[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
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"
}
]
}
- curl
- python
- nodejs
- java
- Curl
curl -X 'POST' \
'https://public-en-kairos.node.kaia.io' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"method": "eth_pendingTransactions",
"id": 1,
"jsonrpc": "2.0",
"params": []
}'
- CURL
curl -L 'https://public-en-kairos.node.kaia.io/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"method": "eth_pendingTransactions",
"id": 1,
"jsonrpc": "2.0",
"params": [
null
]
}'