@lightprotocol/compressed-token - v0.22.1-alpha.2
    Preparing search index...

    Function createMint

    • Create and initialize a new compressed token mint

      Parameters

      • rpc: Rpc

        RPC connection to use

      • payer: Signer

        Fee payer

      • mintAuthority: Signer | PublicKey

        Account that will control minting

      • decimals: number

        Location of the decimal place

      • keypair: Keypair = ...

        Optional: Mint keypair. Defaults to a random keypair.

      • OptionalconfirmOptions: ConfirmOptions

        Options for confirming the transaction

      • OptionaltokenProgramId: boolean | PublicKey

        Optional: Program ID for the token. Defaults to TOKEN_PROGRAM_ID.

      • OptionalfreezeAuthority: Signer | PublicKey

        Optional: Account that will control freeze and thaw. Defaults to none.

      Returns Promise<{ mint: PublicKey; transactionSignature: string }>

      Object with mint address and transaction signature