cfx_getAccountPendingTransactions
Get transaction pending info by account address
Params
(3)1. address (required)
string
Match pattern:
^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
2. maybe_start_nonce (required)
string or null
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
3. maybe_limit (required)
string or null
Match pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
Result
(cfx_getAccountPendingTransactions_result)firstTxStatus
pendingCount
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
pendingTransactions
array[Transaction]accessList
array[CfxAccessListItem] or null
blockHash
string or null
Match pattern:
^0x[0-9,a-f,A-F]{64}$
chainId
string or null
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
contractCreated
string or null
Match pattern:
^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
data
stringMatch pattern:
^0x[0-9a-f]*$
epochHeight
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
from
stringMatch pattern:
^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
gas
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
gasPrice
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
hash
stringMatch pattern:
^0x[0-9,a-f,A-F]{64}$
maxFeePerGas
string or null
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
maxPriorityFeePerGas
string or null
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
nonce
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
r
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
s
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
space
Allowed values:
nativeethereum
status
string or null
Match pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
storageLimit
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
to
string or null
Match pattern:
^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
transactionIndex
string or null
Match pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
transactionType
string or null
Match pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
v
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
value
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
yParity
string or null
Match pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
Example
Request
curl -X POST --data \
'{
"method": "cfx_getAccountPendingTransactions",
"params": [
"CFXTEST:TYPE.USER:AATGGCS6J4VMKE5M10WY04SKDZ7D27RDX2CZXKDMY3"
],
"jsonrpc": "2.0",
"id": 1
}' \
-H "Content-Type: application/json" \
localhost:12539
Result
{
"firstTxStatus": null,
"pendingCount": "0x0",
"pendingTransactions": []
}