RPC connection
Destination SPL/T22 token account (must exist)
Owner of the light-token
Mint address
Optionalamount: number | bigint | BNAmount to unwrap (defaults to full balance)
Optionalpayer: PublicKeyFee payer (defaults to owner)
OptionalsplInterfaceInfo: SplInterfaceInfoOptional: SPL interface info
OptionalmaxTopUp: numberOptional: cap on rent top-up (units of 1k lamports; default no cap)
OptionalinterfaceOptions: InterfaceOptionsOptional: interface options for load
Whether to use unified (wrap) mode for loading. Default false.
Instruction batches - each inner array is one transaction
Build instruction batches for unwrapping light-tokens to SPL/T22 tokens.
Returns
TransactionInstruction[][]with the same shape ascreateLoadAtaInstructionsandcreateTransferInterfaceInstructions: each inner array is one transaction. Load batches (if any) come first, followed by one final unwrap transaction.Uses amount-aware input selection: only loads the cold inputs needed to cover the unwrap amount (plus padding to fill a single proof batch).