Retrieve ERC20 tokens
How to retrieve the token balances for a wallet (ERC20 standard).
Retrieve ERC20 token balances by:
Wallet
idBlockchain and wallet address
Wallet
idand token addressBlockchain, wallet address, and token address
📘Optionally, you can filter the results using the
includePossibleSpamboolean param in the query.
1. Get all token balances by wallet id
idRequest Endpoint: reference
HTTP
GET /api/wallets/{walletId}/balance/tokens{walletId}
Path
The ID of the wallet
String
✅
includePossibleSpam
Query
Indication to include possible spam tokens in the response body or not.
Boolean
❌
Request Example
HTTP
GET /api/wallets/f21dc1e5-4253-487e-8927-3b5247437f99/balance/tokensResponse Body
JSON
2. Get all token balances by blockchain and wallet address
Request Endpoint: reference
HTTP
{secretType}
Path
Indication on which chain the balance should be fetched
String
✅
{walletAddress}
Path
The address of the wallet
String
✅
includePossibleSpam
Query
Indication to include possible spam tokens in the response body or not.
Boolean
❌
Request Example
HTTP
Response Body
JSON
3. Get a specific token balance by wallet id and token address
id and token addressRequest Endpoint: reference
HTTP
{walletId}
Path
The ID of the wallet
String
✅
{token}
Path
Address of the token (contract) to fetch the balance for
String
✅
includePossibleSpam
Query
Indication to include possible spam tokens in the response body or not.
Boolean
❌
Request Example
HTTP
Response Body
JSON
4. Get a specific token balance by blockchain, wallet address, and token address
Request Endpoint: reference
HTTP
{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
✅
includePossibleSpam
Query
Indication to include possible spam tokens in the response body or not.
Boolean
❌
Request Example
HTTP
Response Body
JSON
Last updated