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

    Function transferInterface

    • Transfer tokens using the light-token interface.

      High-level action: resolves balances, builds all instructions (load + transfer), signs, and sends. Creates the recipient associated token account if it does not exist.

      For instruction-level control, use createTransferInterfaceInstructions.

      Parameters

      • rpc: Rpc

        RPC connection

      • payer: Signer

        Fee payer (signer)

      • source: PublicKey

        Source light-token associated token account address

      • mint: PublicKey

        Mint address

      • destination: PublicKey

        Recipient wallet public key

      • owner: Signer

        Source owner (signer)

      • amount: number | bigint | BN

        Amount to transfer

      • programId: PublicKey = LIGHT_TOKEN_PROGRAM_ID

        Token program ID (default: LIGHT_TOKEN_PROGRAM_ID)

      • OptionalconfirmOptions: ConfirmOptions

        Optional confirm options

      • Optionaloptions: InterfaceOptions

        Optional interface options

      • wrap: boolean = false

        Include SPL/T22 wrapping (default: false)

      Returns Promise<string>

      Transaction signature of the transfer transaction