@lightprotocol/compressed-token - v0.23.3
    Preparing search index...

    Function createRevokeInterfaceInstructions

    • Build instruction batches for revoking delegation on an ATA.

      Supports light-token, SPL, and Token-2022 mints. Returns TransactionInstruction[][]. Send [0..n-2] in parallel, then [n-1].

      Parameters

      • rpc: Rpc

        RPC connection

      • payer: PublicKey

        Fee payer public key

      • mint: PublicKey

        Mint address

      • tokenAccount: PublicKey

        ATA address

      • owner: PublicKey

        Owner public key

      • decimals: number

        Token decimals

      • programId: PublicKey = LIGHT_TOKEN_PROGRAM_ID

        Token program ID (default: LIGHT_TOKEN_PROGRAM_ID)

      • Optionaloptions: InterfaceOptions

        Optional interface options (wrap is nested here)

      Returns Promise<TransactionInstruction[][]>

      Instruction batches

      For light-token mints, all cold (compressed) balances are loaded into the hot ATA before the revoke instruction. Users with many cold accounts may see additional load transactions.