> For the complete documentation index, see [llms.txt](https://confluxnetwork.gitbook.io/js-conflux-sdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://confluxnetwork.gitbook.io/js-conflux-sdk/api/txpool.md).

# TxPool

### Classes

[TxPool](#TxPool)

Class contains txpool RPC methods

### TxPool

Class contains txpool RPC methods

**Kind**: global class<br>

#### new TxPool(conflux)

TxPool constructor.

**Returns**: [`TxPool`](#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)*

```js
await conflux.txpool.nextNonce('cfxtest:aak2rra2njvd77ezwjvx04kkds9fzagfe6d5r8e957');
// returns 100
```
