Constructors
constructor
- new WalletManager(payload): WalletManager
-
Parameters
-
payload: {
cacheTtl?: number;
client: TipccClient;
}
-
Optional
cacheTtl?: number
-
Methods
fetch
- fetch(currencyCode, cache?): Promise<null | Wallet>
-
Parameters
-
currencyCode: string
-
cache: boolean = true
Returns Promise<null | Wallet>
fetchMany
- fetchMany(currencyCodes, cache?): Promise<Wallet[]>
-
Parameters
-
currencyCodes: string[]
-
cache: boolean = true
Returns Promise<Wallet[]>
totalUSD
- totalUSD(forceNewValues?): Promise<BigNumber>
-
Parameters
-
forceNewValues: boolean = false
Returns Promise<BigNumber>