@lightprotocol/compressed-token - v0.23.0-beta.8
    Preparing search index...

    Variable createAtaInterfaceIdempotentInstructionConst

    createAtaInterfaceIdempotentInstruction: (
        payer: PublicKey,
        associatedToken: PublicKey,
        owner: PublicKey,
        mint: PublicKey,
        programId?: PublicKey,
        associatedTokenProgramId?: PublicKey,
        ctokenConfig?: CTokenConfig,
    ) => TransactionInstruction = createAssociatedTokenAccountInterfaceIdempotentInstruction

    Short alias for createAssociatedTokenAccountInterfaceIdempotentInstruction.

    Type Declaration

      • (
            payer: PublicKey,
            associatedToken: PublicKey,
            owner: PublicKey,
            mint: PublicKey,
            programId?: PublicKey,
            associatedTokenProgramId?: PublicKey,
            ctokenConfig?: CTokenConfig,
        ): TransactionInstruction
      • Create idempotent instruction for creating an associated token account (SPL, Token-2022, or light-token). Follows SPL Token API signature with optional light-token config at the end.

        Parameters

        • payer: PublicKey

          Fee payer public key.

        • associatedToken: PublicKey

          Associated token account address.

        • owner: PublicKey

          Owner of the associated token account.

        • mint: PublicKey

          Mint address.

        • programId: PublicKey = TOKEN_PROGRAM_ID

          Token program ID (default: TOKEN_PROGRAM_ID).

        • OptionalassociatedTokenProgramId: PublicKey

          Associated token program ID.

        • OptionalctokenConfig: CTokenConfig

          Optional light-token-specific configuration.

        Returns TransactionInstruction