cfx_getAccountPendingInfo
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"],
  "method": "cfx_getAccountPendingInfo"
}'
Params
address required
Schema
type : string
Pattern : 
^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$Result
Schema
type : object
- localNonce localNoncetype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- nextPendingTx nextPendingTxtype : stringPattern :- ^0x[0-9,a-f,A-F]{64}$
- pendingCount pendingCounttype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- pendingNonce pendingNoncetype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
Example
- cfx_getAccountPendingInfo
Request
curl -X POST --data \
'{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "cfx_getAccountPendingInfo",
    "params": [
        "CFXTEST:TYPE.USER:AATGGCS6J4VMKE5M10WY04SKDZ7D27RDX2CZXKDMY3"
    ]
}' \
-H "Content-Type: application/json" \
localhost:12539
Response
{
  "localNonce": "0xd",
  "nextPendingTx": "0x0000000000000000000000000000000000000000000000000000000000000000",
  "pendingCount": "0x0",
  "pendingNonce": "0x0"
}