Function createATokenAccount

  • Create a new account to hold tokens from the provided mint.

    Parameters

    • provider: AnchorProvider
    • mint: PublicKey

      Asset mint to create token account for

    • Optional payer: PublicKey

      (Optional - if not provided, defaults to provider wallet)

    • Optional owner: PublicKey

      (Optional - if not provided, defaults to provider wallet)

    Returns Promise<web3.PublicKey>