cfx_getAccountPendingTransactions
Get transaction pending info by account address
- CURL
curl --request POST \
--url https://main.confluxrpc.com \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"params": ["CFXTEST:TYPE.USER:AATGGCS6J4VMKE5M10WY04SKDZ7D27RDX2CZXKDMY3",null,null],
"method": "cfx_getAccountPendingTransactions"
}'
Params
address required
Schema
type : string
Pattern :
^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
maybe_start_nonce optional
Schema
type : string
Pattern :
^0x([1-9a-f][0-9a-f]{0,63}|0)$
maybe_limit optional
Schema
type : string
Pattern :
^0x([1-9a-f][0-9a-f]{0,15}|0)$
Result
Schema
type : object
firstTxStatus firstTxStatus
oneOf- PendingReason
- string
type : stringPossible values :future_nonce
not_enough_cash
old_epoch_height
outdated_status
type : stringPossible values :packed
ready
pendingCount pendingCount
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,15}|0)$
pendingTransactions pendingTransactions
type : arrayitems[x]
Transactiontype : objectaccessList accessList
type : arrayitems[x]
CfxAccessListItemtype : objectaddress address
type : stringPattern :^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
storageKeys storageKeys
type : arrayitems[x]
H256type : stringPattern :^0x[0-9,a-f,A-F]{64}$
blockHash blockHash
type : stringPattern :^0x[0-9,a-f,A-F]{64}$
chainId chainId
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
contractCreated contractCreated
type : stringPattern :^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
data data
type : stringPattern :^0x[0-9a-f]*$
epochHeight epochHeight
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
from from
type : stringPattern :^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
gas gas
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
gasPrice gasPrice
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
hash hash
type : stringPattern :^0x[0-9,a-f,A-F]{64}$
maxFeePerGas maxFeePerGas
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
maxPriorityFeePerGas maxPriorityFeePerGas
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
nonce nonce
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
r r
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
s s
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
space space
type : stringPossible values :native
ethereum
status status
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,15}|0)$
storageLimit storageLimit
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
to to
type : stringPattern :^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
transactionIndex transactionIndex
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,15}|0)$
transactionType transactionType
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,15}|0)$
v v
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
value value
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
yParity yParity
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,15}|0)$
Example
- cfx_getAccountPendingTransactions
Request
curl -X POST --data \
'{
"jsonrpc": "2.0",
"id": 1,
"method": "cfx_getAccountPendingTransactions",
"params": [
"CFXTEST:TYPE.USER:AATGGCS6J4VMKE5M10WY04SKDZ7D27RDX2CZXKDMY3"
]
}' \
-H "Content-Type: application/json" \
localhost:12539
Response
{
"firstTxStatus": null,
"pendingCount": "0x0",
"pendingTransactions": []
}