This endpoint gets the ERC20 token balance by Wallet ID, wallet address, and token address.
ID
public getErc20TokenByWalletAddress(chain: VyChain, walletAddress: string, token: string, query?: VyQuery_GetErc20TokenByWalletAddress) : VyPromise<VyErc20TokenDto>
Parameters
chain
VyChain
Blockchain network on which the token contract is deployed
walletAddress
string
The address of the wallet to fetch token balances for
token
Contract address of the token (contract) to fetch the balance for
query (optional)
VyQuery_GetErc20TokenByWalletAddress
Query to filter the operation results
Returns
VyPromise<VyErc20TokenDto> ERC20 token balance of wallet retrieved successfully.
Last updated 3 months ago