getBalanceByAddress
Fetch the native balance of a wallet.
This function returns all the wallets for the specified user (bearer token)
venlyConnect.api.getBalanceByAddress("MATIC", "0xA5dC4fb59eBCaf00100C00776b45c3E4b58c6B95");Signature:
venlyConnect.api.getBalanceByAddress(secretType: SecretType, walletAddress: string): Promise<WalletBalance>Returns:
Promise<WalletBalance>Parameters:
| Parameter | Required | Description |
|---|---|---|
secretType | True | Parameter to indicate on which chain the token balance should be fetched |
walletAddress | True | The address of the wallet to fetch balance for |
Example:
venlyConnect.api.getBalanceByAddress("MATIC", "0xA5dC4fb59eBCaf00100C00776b45c3E4b58c6B95");Object Types
Updated 16 days ago