Retrieve token balance
How to retrieve the token balances for a wallet (ERC20 standard)
Get all token balances by wallet id
GET
https://api-wallet.venly.io/api/wallets/<walletId>/balance/tokens
Path Parameters
Name | Type | Description |
---|---|---|
walletId* | string | ID of the wallet |
Query Parameters
Name | Type | Description |
---|---|---|
all | boolean | false (default) if you do not want to retrieve 0 or dust balances (example 0.00000000001). When true is provided, everything is returned including 0 balances. In case of HEDERA: tokens with 0 balance are associated tokens. |
Get a specific token balance by wallet id
GET
https://api-wallet.venly.io/api/wallets/<walletId>/balance/tokens/<tokenAddress>
Path Parameters
Name | Type | Description |
---|---|---|
tokenAddress | string | Token address |
walletId | string | ID of the wallet |
Get all token balances by secret type and wallet address
GET
https://api-wallet.venly.io/:secretType/:walletAddress/balance/tokens
Path Parameters
Name | Type | Description |
---|---|---|
secretType* | SecretType | Parameter to indicate on which chain the token balances should be fetched |
waletAddress* | String | The address of the wallet to fetch token balances for |
Get a specific token balance by secret type and wallet address
GET
https://api-wallet.venly.io/:secretType/:walletAddress/balance/tokens/:tokenAddress
Path Parameters
Name | Type | Description |
---|---|---|
secretType* | SecretType | Parameter to indicate on which chain the token balance should be fetched |
walletAddress* | String | The address of the wallet to fetch token balance for |
tokenAddress* | String | Address of the token (contract) to fetch the balance for |
Example
Response
Last updated