Function getAssociatedTokenAddressSync

  • Get the address of the associated token account for a given mint and owner

    Parameters

    • mint: PublicKey

      Token mint account

    • owner: PublicKey

      Owner of the new account

    • allowOwnerOffCurve: boolean = false

      Allow the owner account to be a PDA (Program Derived Address)

    • programId: PublicKey = TOKEN_PROGRAM_ID

      SPL Token program account

    • associatedTokenProgramId: PublicKey = ASSOCIATED_TOKEN_PROGRAM_ID

      SPL Associated Token program account

    Returns PublicKey

    Address of the associated token account

Generated using TypeDoc