js-conflux-sdk
Conflux Doc
  • Home
  • Introduction
  • QuickStart
  • Overview
  • Contrast with web3.js
  • Guides
    • Providers
    • How to Connect Fluent
    • CIP37 Address
    • Account
    • Sending Transaction
    • Interact with Contract
    • Sign methods
    • Error Handling
    • Batch RPC
  • API
    • Conflux
    • PoS
    • TxPool
    • Provider
    • Drip
    • Transaction
    • Wallet
  • Release notes
  • v2.0 Changes
  • FAQs
Powered by GitBook
On this page
  • Classes
  • TxPool
  • .nextNonce ⇒ Promise.<number>

Was this helpful?

Edit on GitHub
  1. API

TxPool

PreviousPoSNextProvider

Last updated 2 years ago

Was this helpful?

Classes

Class contains txpool RPC methods

TxPool

Class contains txpool RPC methods

Kind: global class

new TxPool(conflux)

TxPool constructor.

Returns: - 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
TxPool
TxPool