First Call API
This guide walks you through making your first API call with Misti. Before diving into specific endpoints, let's verify that your API key is working correctly.
ℹ️
All endpoints are accessible via GET requests and require an API key passed in the x-api-key header.
Verify Your API Key
Run this curl command to confirm your API key is valid.
curl -X GET "https://api.misti.app/v1/api-key/verify" \
-H "x-api-key: YOUR_API_KEY"If your API key is valid, you should receive:
{
"valid": true
}⚠️
If the response does not return "valid": true, double-check that your API key starts with msk_ and is correctly copied from your dashboard.
Get Token Supply
Now let's make a full request with code examples. This endpoint returns the total supply of an ERC20 token on a given chain.
cURL
curl -X GET \
"https://api.misti.app/v1/erc20/supply?chain_id=1&token=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48" \
-H "x-api-key: YOUR_API_KEY"Python
import requests
url = "https://api.misti.app/v1/erc20/supply"
params = {
"chain_id": 1,
"token": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
}
headers = {
"x-api-key": "YOUR_API_KEY",
}
response = requests.get(url, params=params, headers=headers)
data = response.json()
print(data)JavaScript
const response = await fetch(
"https://api.misti.app/v1/erc20/supply?chain_id=1&token=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
{
headers: {
"x-api-key": "YOUR_API_KEY",
},
}
);
const data = await response.json();
console.log(data);Response:
[
{
"token_address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"chain_id": 1,
"total_supply": "40000000000000000000000"
}
]Next Steps
Now that your API key is working, explore the full API:
- ERC20 Tokens — supply, balance, holders, and history endpoints
- Uniswap V3 — pool and position data
- Uniswap V4 — pool and position data
- Rate Limits — understand usage limits