getBalanceByAddress
Fetch the native balance of a wallet
This function returns all the wallets for the specified user (bearer token)
1
venlyConnect.api.getBalanceByAddress("MATIC", "0xA5dC4fb59eBCaf00100C00776b45c3E4b58c6B95");
Copied!

Signature

1
venlyConnect.api.getBalanceByAddress(secretType: SecretType, walletAddress: string): Promise<WalletBalance>
Copied!

Returns

1
Promise<WalletBalance>
Copied!

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

1
venlyConnect.api.getBalanceByAddress("MATIC", "0xA5dC4fb59eBCaf00100C00776b45c3E4b58c6B95");
Copied!

Object Types

Last modified 19d ago