Get Started
Learn about the WDK Indexer REST API and how to use it
Getting Started
1
Request API Key
Request your free API key to access the WDK Indexer API.
2
Make Your First Request
Use your API key to query blockchain data via the REST API.
Quick Example
Here's a quick example of how to query a token balance.
curl -X GET "https://wdk-api.tether.io/api/v1/ethereum/usdt/0xdac17f958d2ee523a2206206994597c13d831ec7/token-balances" \
-H "x-api-key: your-api-key-here"const axios = require('axios');
async function getTokenBalance(blockchain, token, address) {
const response = await axios.get(
`https://wdk-api.tether.io/api/v1/${blockchain}/${token}/${address}/token-balances`,
{
headers: {
'x-api-key': 'your-api-key-here'
}
}
);
return response.data.tokenBalance;
}
const balance = await getTokenBalance('ethereum', 'usdt', '0xdac17f958d2ee523a2206206994597c13d831ec7');
console.log(`Balance: ${balance.amount} ${balance.token.toUpperCase()}`);Next Steps
API Reference - Complete method documentation with examples and response formats

