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 firstTxStatusoneOf- PendingReason
- string
 type : stringPossible values :- future_nonce
- not_enough_cash
- old_epoch_height
- outdated_status
 type : stringPossible values :- packed
- ready
 
- pendingCount pendingCounttype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,15}|0)$
- pendingTransactions pendingTransactionstype : array- items[x]Transactiontype : object- accessList accessListtype : array- items[x]CfxAccessListItemtype : object- address addresstype : stringPattern :- ^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
- storageKeys storageKeystype : array- items[x]H256type : stringPattern :- ^0x[0-9,a-f,A-F]{64}$
 
 
 
- blockHash blockHashtype : stringPattern :- ^0x[0-9,a-f,A-F]{64}$
- chainId chainIdtype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- contractCreated contractCreatedtype : stringPattern :- ^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
- data datatype : stringPattern :- ^0x[0-9a-f]*$
- epochHeight epochHeighttype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- from fromtype : stringPattern :- ^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
- gas gastype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- gasPrice gasPricetype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- hash hashtype : stringPattern :- ^0x[0-9,a-f,A-F]{64}$
- maxFeePerGas maxFeePerGastype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- maxPriorityFeePerGas maxPriorityFeePerGastype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- nonce noncetype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- r rtype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- s stype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- space spacetype : stringPossible values :- native
- ethereum
 
- status statustype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,15}|0)$
- storageLimit storageLimittype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- to totype : stringPattern :- ^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
- transactionIndex transactionIndextype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,15}|0)$
- transactionType transactionTypetype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,15}|0)$
- v vtype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- value valuetype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- yParity yParitytype : 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": []
}