Retrieve ERC20 token balance
How to retrieve the token balances for a wallet (ERC20 standard).
1. Get all token balances by wallet id
id
Request Endpoint: reference
GET /api/wallets/{walletId}/balance/tokens
Parameter | Param Type | Description | Data Type | Mandatory |
---|---|---|---|---|
{walletId} | Path | The ID of the wallet | String | ✅ |
2. Get all token balances by blockchain and wallet address
Request Endpoint: reference
GET /api/wallets/{secretType}/{walletAddress}/balance/tokens
Parameter | Param Type | Description | Data Type | Mandatory |
---|---|---|---|---|
{secretType} | Path | Indication on which chain the balance should be fetched | String | ✅ |
{walletAddress} | Path | The address of the wallet | String | ✅ |
3. Get a specific token balance by wallet id
and token address
id
and token addressRequest Endpoint: reference
GET /api/wallets/{walletId}/balance/tokens/{token}
Parameter | Param Type | Description | Data Type | Mandatory |
---|---|---|---|---|
{walletId} | Path | The ID of the wallet | String | ✅ |
{token} | Path | Address of the token (contract) to fetch the balance for | String | ✅ |
4. Get a specific token balance by blockchain, wallet address, and token address
Request Endpoint: reference
GET /api/wallets/{secretType}/{walletAddress}/balance/tokens/{token}
Parameter | Param Type | Description | Data Type | Mandatory |
---|---|---|---|---|
{secretType} | Path | Indication on which chain the balance should be fetched | String | ✅ |
{walletAddress} | Path | The address of the wallet | String | ✅ |
{token} | Path | Address of the token (contract) to fetch the balance for | String | ✅ |
Updated 10 days ago