cfx_getNextNonce
Returns the nonce should be filled in next sending transaction from given address at given time (epoch number).
Params
(2)1. addr (required)
string
Match pattern:
^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
2. epoch_number (required)
No schema defined
Result
(cfx_getNextNonce_result)string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
Examples
Request
curl -X POST --data \
'{
"method": "cfx_getNextNonce",
"params": [
"CFXTEST:TYPE.USER:AATGGCS6J4VMKE5M10WY04SKDZ7D27RDX2CZXKDMY3"
],
"jsonrpc": "2.0",
"id": 1
}' \
-H "Content-Type: application/json" \
localhost:12539
Result
"0xd"