# INonce

The `INonce` interface provides methods for managing and retrieving nonces associated with cross-chain transactions.

{% @github-files/github-code-block url="<https://github.com/Asterizm-Protocol/asterizm-contracts-evm/blob/master/contracts/interfaces/INonce.sol>" %}

### Functions

#### increaseNonce

Increases the nonce for a specified chain.

**Parameters:** `_chainId (uint64)`, `_pathData (bytes)`

**Returns:** Updated nonce (`uint`).

#### increaseNonceWithValidation

Increases the nonce with validation against an external nonce.

**Parameters:** `_chainId (uint64)`, `_pathData (bytes)`, `_nonce (uint)`

**Returns:** Updated nonce (`uint`).

#### getNonce

Retrieves the current nonce for a specified chain.

**Parameters:** `_chainId (uint64)`, `_pathData (bytes)`

**Returns:** Current nonce (`uint`).

#### getNonceBase

Returns the base nonce for specified source and destination addresses.

**Parameters:** `_chainId (uint64)`, `_srcAddress (uint)`, `_dstAddress (uint)`

**Returns:** Base nonce (`uint`).
