Class AccountService

Hierarchy

Index

Constructors

constructor

Properties

account$

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

accountAddress$

accountAddress$: Observable<string>

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>

getAccountBalances

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

    • account: string
    • tokens: 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>

getAccountMembers

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

    • account: string
    • page: number

    Returns Promise<AccountMembers>

getAccountTotalBalances

getConnectedAccounts

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

    • page: number

    Returns Promise<Accounts>

init

joinContractAccount

  • joinContractAccount(address: string): void
  • Parameters

    • address: string

    Returns void

syncAccount