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

    Class TransactionPendingError

    Thrown when a long-running transaction operation times out or fails during polling.

    This error occurs when asynchronous relayer operations exceed the configured timeout or encounter non-recoverable errors during status polling. It preserves the operation ID to allow recovery and status checking at a later time.

    The error includes:

    • Operation ID for recovery and status checking
    • Last known status before failure
    • Original error details

    Recovery strategies:

    • Save the operation ID for later status checking
    • Implement manual recovery flow using the operation ID
    • Check transaction status through alternative means
    • Contact support if operation remains stuck
    try {
    const result = await vana.permissions.grant({
    grantee: '0x...',
    files: [1, 2, 3]
    });
    } catch (error) {
    if (error instanceof TransactionPendingError) {
    // Save operation ID for recovery
    localStorage.setItem('pending_operation', error.operationId);

    // Show recovery UI
    showRecoveryDialog({
    operationId: error.operationId,
    lastStatus: error.lastKnownStatus
    });

    // Attempt recovery later
    const status = await vana.checkOperationStatus(error.operationId);
    }
    }

    Hierarchy (View Summary)

    Index

    Properties

    operationId: string

    The operation ID that can be used for status checking

    lastKnownStatus?: unknown

    The last known status of the operation before failure

    Methods

    • Converts the error to a JSON-serializable format.

      Returns Record<string, unknown>

      JSON representation of the error

      Useful for logging, storage, or transmission of error details.