Vana SDK - v2.2.2
    Preparing search index...

    Class NonceError

    Thrown when transaction nonce retrieval fails during gasless operations.

    This error occurs when the SDK cannot retrieve the user's current nonce from smart contracts, preventing gasless transaction submission. Nonces are critical for preventing replay attacks in signed transactions.

    Recovery strategies:

    • Retry nonce retrieval after brief delay
    • Check wallet connection and account status
    • Use manual nonce specification if supported by the operation
    • Switch to direct transactions as fallback
    try {
    await vana.permissions.grant({ grantee: '0x...' });
    } catch (error) {
    if (error instanceof NonceError) {
    // Wait and retry
    await delay(1000);
    await vana.permissions.grant({ grantee: '0x...' });
    }
    }

    Hierarchy (View Summary)