[Transaction] klay_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: klay_pendingTransactions
Request
- application/json
Body
Responses
- 200
Returns an array of transactions
- application/json
- Schema
- Example (from schema)
Schema
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 signature r.
ECDSA signature s.
Chain id set on the requested node.
An array of accessList.
Hash of the transaction.
{
"jsonrpc": "2.0",
"id": 0,
"error": {
"code": -32700,
"message": "Parse error",
"data": "string"
},
"result": [
{
"blockHash": null,
"blockNumber": null,
"from": "0xca7a99380131e6c76cfa622396347107aeedca2d",
"gas": "0x5208",
"gasPrice": "0x5d21dba00",
"maxFeePerGas": "0x5d21dba00",
"maxPriorityFeePerGas": "0x5d21dba00",
"hash": "0xb5cd867ccc356b86634092919fb1acf4e315618d6c804df3ec3d30d66b6baba5",
"input": "0x",
"nonce": "0xdb",
"to": "0x3e2ac308cd78ac2fe162f9522deb2b56d9da9499",
"transactionIndex": null,
"value": "0x1",
"type": "0x2",
"accessList": [],
"chainId": "0x2edaf",
"v": "0x1",
"r": "0x73992e7c3b9f6cd73176969efa8509d8e9ae0739e24b03d514508f8ef03f19ef",
"s": "0x7035dd8639e82ea3ba922ff02e1f21f4cff92d0de33050934f5c70908d61e8c3"
}
]
}