Function createAssociatedTokenAccountIdempotentInstruction

  • Construct a CreateAssociatedTokenAccountIdempotent instruction

    Parameters

    • payer: PublicKey

      Payer of the initialization fees

    • associatedToken: PublicKey

      New associated token account

    • owner: PublicKey

      Owner of the new account

    • mint: PublicKey

      Token mint account

    • programId: PublicKey = TOKEN_PROGRAM_ID

      SPL Token program account

    • associatedTokenProgramId: PublicKey = ASSOCIATED_TOKEN_PROGRAM_ID

      SPL Associated Token program account

    Returns TransactionInstruction

    Instruction to add to a transaction

Generated using TypeDoc