Private
clientsPrivate
networkCheck if an spenderAddress is allowed to spend in name of another address certain asset amount
The asset to check
The amount to check
Optional
decimal: numberOptional
decimal: numberOptional
decimal: numberOptional
decimal: numberThe spender to check if it is allowed to spend
true if the spenderAddress is allowed to spend the amount, otherwise, false
If asset is a non ERC20 asset
By default, it returns all the wallet balances unless assets are provided, in that case, only asset balances will be returned by chain
Optional
assets: Asset[]Optional. Assets of which return the balance
Balances by chain
Private
getGet chain feeRates.
of which return the feeRates
Optional
protocol: THORCHAINto interact with. If it is not set, fee rates are calculated as chain rules
the fee rates
if the fee rates can not be returned from the chain
Get wallet histories. By default, it returns all the wallet histories unless chains are provided, in that case, only chain histories will be returned by chain
Optional
chains: string[]Optional. Chain of which return the transaction history
the chain transaction history
Check if an spenderAddress is allowed to spend in name of another address certain asset amount
The asset to check
The amount to check
Optional
decimal: numberOptional
decimal: numberOptional
decimal: numberOptional
decimal: numberoThe wner of the amount asset from
Spender to check if it is allowed to spend
true if the spenderAddress is allowed to spend the amount, otherwise, false
If asset is a non ERC20 asset
Private
isPrivate
isPrivate
isPrivate
isGenerated using TypeDoc
Constructor to create a wallet with the desired clients