Function createInitializeMint2Instruction

  • Construct an InitializeMint2 instruction

    Parameters

    • mint: PublicKey

      Token mint account

    • decimals: number

      Number of decimals in token account amounts

    • mintAuthority: PublicKey

      Minting authority

    • freezeAuthority: null | PublicKey

      Optional authority that can freeze token accounts

    • programId: PublicKey = TOKEN_PROGRAM_ID

      SPL Token program account

    Returns TransactionInstruction

    Instruction to add to a transaction

Generated using TypeDoc