Skip to main content

cfx_getAccountPendingInfo

Get transaction pending info by account address

Params

(1)

1. address (required)

string
Match pattern:
^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$

Result

(cfx_getAccountPendingInfo_result)
object or null
localNonce
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
nextPendingTx
string
Match pattern:
^0x[0-9,a-f,A-F]{64}$
pendingCount
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
pendingNonce
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$

Example

Request

curl -X POST --data \
'{
"method": "cfx_getAccountPendingInfo",
"params": [
"CFXTEST:TYPE.USER:AATGGCS6J4VMKE5M10WY04SKDZ7D27RDX2CZXKDMY3"
],
"jsonrpc": "2.0",
"id": 1
}' \
-H "Content-Type: application/json" \
localhost:12539

Result

{
"localNonce": "0xd",
"nextPendingTx": "0x0000000000000000000000000000000000000000000000000000000000000000",
"pendingCount": "0x0",
"pendingNonce": "0x0"
}

Endpoint

Params

address


Request

curl -X POST --data \
'{
"method": "cfx_getAccountPendingInfo",
"params": [
null
],
"jsonrpc": "2.0",
"id": 1
}' \
-H "Content-Type: application/json" \
https://test.confluxrpc.com