Function createMint

  • Creates a new account and calls the Token program to initialize the account as a mint.

    Parameters

    • provider: AnchorProvider
    • decimals: number

      Number of decimals in token account amount

    • Optional mintAuthority: PublicKey
    • Optional freezeAuthority: PublicKey

    Returns Promise<web3.PublicKey>