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

    Function createUnwrapInstruction

    • Create an unwrap instruction that moves tokens from a light-token account to an SPL/T22 account.

      Parameters

      • source: PublicKey

        Source light-token account

      • destination: PublicKey

        Destination SPL/T22 token account

      • owner: PublicKey

        Owner of the source account (signer)

      • mint: PublicKey

        Mint address

      • amount: bigint

        Amount to unwrap,

      • splInterfaceInfo: SplInterfaceInfo

        SPL interface info for the decompression

      • decimals: number

        Mint decimals (required for transfer_checked)

      • payer: PublicKey = owner

        Fee payer (defaults to owner if not provided)

      • OptionalmaxTopUp: number

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

      Returns TransactionInstruction

      TransactionInstruction to unwrap tokens