Skip to content

generateAuthorizationNonce

generateAuthorizationNonce(): `0x${string}`

Defined in: src/tokens/eip3009.ts:114

Generates a cryptographically random 32-byte EIP-3009 nonce.

The nonce only needs to be unique per (authorizer, contract) — duplicates across different tokens are harmless because the contract scopes them.

Returns

`0x${string}`

Example

import { generateAuthorizationNonce } from "kawasekit";
const nonce = generateAuthorizationNonce();