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

    Function createMintToCompressedInstruction

    • Create instruction for minting tokens from a light mint to compressed accounts. To mint to light-token associated token accounts across SPL/T22/light mints, use createMintToInterfaceInstruction instead.

      Parameters

      • authority: PublicKey

        Mint authority public key.

      • payer: PublicKey

        Fee payer public key.

      • validityProof: ValidityProofWithContext

        Validity proof for the light mint.

      • merkleContext: MerkleContext

        Merkle context of the light mint.

      • mintData: MintInstructionData

        Mint instruction data.

      • recipients: { recipient: PublicKey; amount: number | bigint }[]

        Array of recipients with amounts.

      • OptionaloutputStateTreeInfo: TreeInfo

        Optional output state tree info. Uses merkle context queue if not provided.

      • tokenAccountVersion: TokenDataVersion = TokenDataVersion.ShaFlat

        Token account version (default: TokenDataVersion.ShaFlat).

      • OptionalmaxTopUp: number

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

      Returns TransactionInstruction