getNextNonce
Returns the right nonce to propose a new transaction right after the last pending transaction.
Usage
_10import { apiKit } from './setup.ts'_10_10const safeAddress = '0x...'_10_10const nextNonce = await apiKit.getNextNonce(safeAddress)
Returns
Promise<number>
The right nonce to propose a new transaction after the last pending transaction.
Parameters
safeAddress
- Type:
string
The Safe address.
_10const nextNonce = await apiKit.getNextNonce(_10 '0x...'_10)