@lightprotocol/compressed-token - v0.23.0-beta.8
    Preparing search index...

    Function createDecompressInterfaceInstruction

    • Create decompressInterface instruction using Transfer2.

      Supports decompressing to both light-token accounts and SPL token accounts:

      • For light-token destinations: No splInterfaceInfo needed
      • For SPL destinations: Provide splInterfaceInfo (token pool info) and decimals

      Parameters

      • payer: PublicKey

        Fee payer public key

      • inputCompressedTokenAccounts: ParsedTokenAccount[]

        Input light-token accounts

      • toAddress: PublicKey

        Destination token account address (light-token or SPL associated token account)

      • amount: bigint

        Amount to decompress

      • validityProof: ValidityProofWithContext

        Validity proof (contains compressedProof and rootIndices)

      • splInterfaceInfo: SplInterfaceInfo | undefined

        Optional: SPL interface info for SPL destinations

      • decimals: number

        Mint decimals (required for SPL destinations)

      • OptionalmaxTopUp: number

        Optional cap on rent top-up (units of 1k lamports; default no cap)

      Returns TransactionInstruction

      TransactionInstruction