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

    Function createMint

    • Create and initialize a new SPL token mint

      Parameters

      • rpc: Rpc

        RPC connection to use

      • payer: Signer

        Fee payer

      • mintAuthority: PublicKey | Signer

        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: PublicKey | Signer | null

        Optional: Account that will control freeze and thaw.

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

      Object with mint address and transaction signature

      Use createMintInterface instead, which supports both SPL and compressed mints.