TxPool

Classes

TxPool
Class contains txpool RPC methods

TxPool

Class contains txpool RPC methods
Kind: global class

new TxPool(conflux)

TxPool constructor.
Returns: TxPool - The TxPool instance
Param
Type
Description
conflux
Conflux
A Conflux instance

.nextNonce ⇒ Promise.<number>

Get user next nonce in transaction pool
Kind: instance member Returns: Promise.<number> - The next usable nonce
Param
Type
Description
address
string
The address of the account
Example (Example usage of txpool.nextNonce)
await conflux.txpool.nextNonce('cfxtest:aak2rra2njvd77ezwjvx04kkds9fzagfe6d5r8e957');
// returns 100
Last modified 3mo ago
Copy link
Edit on GitHub
On this page
Classes
TxPool
.nextNonce ⇒ Promise.<number>