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

    Function createAtaInterface

    • Create an associated token account for SPL/T22/light-token. Defaults to light-token program.

      Parameters

      • rpc: Rpc

        RPC connection

      • payer: Signer

        Fee payer and transaction signer

      • mint: PublicKey

        Mint address

      • owner: PublicKey

        Owner of the associated token account

      • allowOwnerOffCurve: boolean = false

        Allow owner to be a PDA (default: false)

      • OptionalconfirmOptions: ConfirmOptions

        Options for confirming the transaction

      • programId: PublicKey = LIGHT_TOKEN_PROGRAM_ID

        Token program ID (default: LIGHT_TOKEN_PROGRAM_ID)

      • OptionalassociatedTokenProgramId: PublicKey

        associated token account program ID (auto-derived if not provided)

      • OptionalctokenConfig: CTokenConfig

        Optional rent config

      Returns Promise<PublicKey>

      Address of the new associated token account