@softseco/confidential-transfers - v3.3.0
    Preparing search index...

    Type Alias ConfidentialTransfersErrorCode

    ConfidentialTransfersErrorCode:
        | "INVALID_INPUT"
        | "ACCOUNT_NOT_FOUND"
        | "ACCOUNT_NOT_CONFIGURED"
        | "ACCOUNT_ALREADY_CONFIGURED"
        | "ACCOUNT_NOT_APPROVED"
        | "RECIPIENT_REJECTS_CONFIDENTIAL"
        | "PENDING_BALANCE_LIMIT"
        | "INSUFFICIENT_FUNDS"
        | "AMOUNT_TOO_LARGE"
        | "KEYS_MISMATCH"
        | "DECRYPTION_FAILED"
        | "CANNOT_SIGN_MESSAGES"
        | "BAD_MESSAGE_SIGNATURE"
        | "CRYPTO_UNAVAILABLE"
        | "TRANSACTION_FAILED"
        | "TRANSACTION_EXPIRED"

    Type Declaration

    • "INVALID_INPUT"

      An argument is invalid (zero amount, missing destination, malformed address).

    • "ACCOUNT_NOT_FOUND"

      A token account the call needs does not exist.

    • "ACCOUNT_NOT_CONFIGURED"

      The token account has no confidential-transfer extension; run configureAccount first.

    • "ACCOUNT_ALREADY_CONFIGURED"

      configureAccount on an account that is already configured.

    • "ACCOUNT_NOT_APPROVED"

      The account is configured but not approved by the mint's confidential-transfer authority.

    • "RECIPIENT_REJECTS_CONFIDENTIAL"

      The recipient's account does not accept confidential transfers (allowConfidentialCredits off).

    • "PENDING_BALANCE_LIMIT"

      The account has taken as many incoming deposits and transfers as it allows before applyPendingBalance. The owner must apply the pending balance first.

    • "INSUFFICIENT_FUNDS"

      More than the available (or public, for a deposit) balance.

    • "AMOUNT_TOO_LARGE"

      Above what one deposit or transfer can carry: 2^48 - 1 base units.

    • "KEYS_MISMATCH"

      The keys passed are not the keys the account is configured with.

    • "DECRYPTION_FAILED"

      A balance could not be decrypted (wrong keys, or a pending total beyond what can be decrypted).

    • "CANNOT_SIGN_MESSAGES"

      The signer cannot sign messages, which the confidential keys come from.

    • "BAD_MESSAGE_SIGNATURE"

      The wallet changed the message it was asked to sign, or returned a signature that does not verify.

    • "CRYPTO_UNAVAILABLE"

      The zk-sdk WebAssembly could not be loaded (browser).

    • "TRANSACTION_FAILED"

      A transaction failed in simulation or on chain; logs has the program logs.

    • "TRANSACTION_EXPIRED"

      A transaction was not confirmed before its blockhash expired. Safe to retry.