Class AccountService

Hierarchy

Index

Constructors

constructor

Properties

Readonly account$

account$: SynchronizedSubject<Account, "address" | "type" | "state" | "store" | "ensNode" | "settings" | "createdAt" | "updatedAt" | "synchronizedAt"> = new SynchronizedSubject<Account>()

Readonly accountAddress$

accountAddress$: Observable<string>

Readonly accountMember$

accountMember$: SynchronizedSubject<AccountMember, "account" | "type" | "state" | "store" | "createdAt" | "updatedAt" | "synchronizedAt" | "member"> = new SynchronizedSubject<AccountMember>()

Accessors

account

accountAddress

  • get accountAddress(): string
  • Returns string

accountMember

headers

  • get headers(): {}
  • Returns {}

    • [key: string]: any

Methods

computeContractAccount

  • computeContractAccount(): void
  • Returns void

destroy

  • destroy(): void

getAccount

  • getAccount(account: string): Promise<Account>
  • Parameters

    • account: string

    Returns Promise<Account>

getAccount24HourNetCurve

  • getAccount24HourNetCurve(account: string, chainIds?: number[]): Promise<NetCurveBalances>
  • Parameters

    • account: string
    • Optional chainIds: number[]

    Returns Promise<NetCurveBalances>

getAccountBalances

  • getAccountBalances(account: string, tokens: string[], ChainId: number, provider?: string): Promise<AccountBalances>
  • Parameters

    • account: string
    • tokens: string[]
    • ChainId: number
    • Optional provider: string

    Returns Promise<AccountBalances>

getAccountDashboard

  • getAccountDashboard(account: string, currency: string, days?: number): Promise<AccountDashboard>
  • Parameters

    • account: string
    • currency: string
    • Optional days: number

    Returns Promise<AccountDashboard>

getAccountInvestments

  • getAccountInvestments(account: string, ChainId?: number, apps?: string[], provider?: string): Promise<AccountInvestments>
  • Parameters

    • account: string
    • Optional ChainId: number
    • Optional apps: string[]
    • Optional provider: string

    Returns Promise<AccountInvestments>

getAccountMembers

  • getAccountMembers(account: string, page: number): Promise<AccountMembers>
  • Parameters

    • account: string
    • page: number

    Returns Promise<AccountMembers>

getAccountSettings

getAccountTotalBalances

getConnectedAccounts

  • getConnectedAccounts(page: number): Promise<Accounts>
  • Parameters

    • page: number

    Returns Promise<Accounts>

getDelayTransactionOptions

  • getDelayTransactionOptions(): Promise<number[]>
  • Returns Promise<number[]>

init

isContractAccount

  • isContractAccount(): boolean
  • Returns boolean

isEligibleForAirdrop

joinContractAccount

  • joinContractAccount(address: string): void
  • Parameters

    • address: string

    Returns void

syncAccount

updateAccountSettings