Function getAssociatedTokenAddress

  • Async version of getAssociatedTokenAddressSync For backwards compatibility

    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 Promise<PublicKey>

    Promise containing the address of the associated token account

Generated using TypeDoc