getNonce

Retrieves the current key gateway nonce for an account.

Example

import { getNonce } from "thirdweb/extensions/farcaster";
const nonce = await getNonce({
client,
address,
});
function getNonce(options: GetNonceParams): Promise<bigint>;

Parameters

Parameters to pass to the function.

Type

let options: {
address: Address;
chain?: Chain;
client: ThirdwebClient;
disableCache?: boolean;
};

Returns

let returnType: Promise<bigint>;

A promise that resolves to the current nonce.