跳到主要内容

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
string
Match 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
string
Match pattern:
^0x[0-9a-f]*$
epochHeight
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
from
string
Match pattern:
^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
gas
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
gasPrice
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
hash
string
Match 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
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
r
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
s
string
Match 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
string
Match 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
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
value
string
Match 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": []
}

Endpoint

Params

address

maybe_start_nonce

maybe_limit


Request

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