Function createMint

  • Create and initialize a new mint

    Parameters

    • connection: Connection

      Connection to use

    • payer: Signer

      Payer of the transaction and initialization fees

    • mintAuthority: PublicKey

      Account or multisig that will control minting

    • freezeAuthority: null | PublicKey

      Optional account or multisig that can freeze token accounts

    • decimals: number

      Location of the decimal place

    • keypair: Keypair = ...

      Optional keypair, defaulting to a new random one

    • Optional confirmOptions: ConfirmOptions

      Options for confirming the transaction

    • programId: PublicKey = TOKEN_PROGRAM_ID

      SPL Token program account

    Returns Promise<PublicKey>

    Address of the new mint

Generated using TypeDoc