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

    Function createMintInstruction

    • Create instruction for initializing a light-token mint.

      Parameters

      • mintSigner: PublicKey

        Mint signer keypair public key.

      • decimals: number

        Number of decimals for the mint.

      • mintAuthority: PublicKey

        Mint authority public key.

      • freezeAuthority: PublicKey | null

        Optional freeze authority public key.

      • payer: PublicKey

        Fee payer public key.

      • validityProof: ValidityProofWithContext

        Validity proof for the mint account.

      • addressTreeInfo: AddressTreeInfo

        Address tree info for the mint.

      • outputStateTreeInfo: TreeInfo

        Output state tree info.

      • Optionalmetadata: TokenMetadataInstructionData

        Optional token metadata.

      • OptionalmaxTopUp: number

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

      Returns TransactionInstruction