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

    Function mintToInterface

    • Mint tokens to a decompressed/onchain token account. Works with SPL, Token-2022, and light-token mints.

      This function ONLY mints to light-token associated token accounts (hot), never to compressed light-token accounts (cold). For light-token mints, the light mint account must exist (mint must be decompressed first).

      The signature matches the standard SPL mintTo for simplicity and consistency.

      Parameters

      • rpc: Rpc

        RPC connection to use

      • payer: Signer

        Transaction fee payer

      • mint: PublicKey

        Mint address (SPL, Token-2022, or light-token mint)

      • destination: PublicKey

        Destination token account address (must be an existing onchain token account)

      • authority: PublicKey | Signer

        Mint authority (can be Signer or PublicKey if multiSigners provided)

      • amount: number | bigint

        Amount to mint

      • multiSigners: Signer[] = []

        Optional: Multi-signature signers (default: [])

      • OptionalconfirmOptions: ConfirmOptions

        Optional: Transaction confirmation options

      • OptionalprogramId: PublicKey

        Optional: Token program ID. If undefined, auto-detects.

      Returns Promise<string>

      Transaction signature