getTokenBalances
Fetch the token balances (ERC20 standard) for a specific wallet
This function returns the balance of all tokens currently supported by Venly. The list of supported tokens can be found on Github. Tokens need to be based on the ERC20 standard, this included for example ERC20, VIP180, TRC20, ...
1
venlyConnect.api.getTokenBalances("d91b644a-076f-44bf-ae90-29251df19784");
Copied!
πŸ§™ To add support in Venly for a certain token, simply submit a pull request.

Signature

1
venlyConnect.api.getTokenBalances(walletId: string): Promise<TokenBalance[]>
Copied!

Returns

1
Promise<TokenBalance[]>
Copied!

Parameters

Parameter
Required
Description
walletId
True
Wallet ID of the wallet you want to fetch the balance of

Example

1
venlyConnect.api.getTokenBalances("d91b644a-076f-44bf-ae90-29251df19784");
Copied!

Object Types

​