Most ANVL endpoints are publicly accessible without authentication. Authenticated endpoints (marked 🔒 AUTH REQUIRED) require a valid session obtained via wallet signature — connect your BNB Chain wallet on anvl.site to get started.
All responses are JSON. Errors return a standard shape: { "error": "message" }
# Example: fetch CAKE price from ANVL's DexScreener proxy
curl "https://anvl.site/api/dexscreener?chain=BSC&address=0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82"
# Response
{
"pairs": [{ "priceUsd": "2.14", "volume": { "h24": 9420000 }, ... }]
}Exceeding limits returns HTTP 429. These are best-effort limits — heavy abuse may result in IP blocks. For production integrations with higher needs, reach out at dev@anvl.site.
Fetch token pair data from DexScreener. Returns price, liquidity, volume, and price change data.
curl "https://anvl.site/api/dexscreener?chain=BSC&address=0x0E09...cE82"
{
"pairs": [
{
"priceUsd": "185.42",
"liquidity": { "usd": 12480000 },
"volume": { "h24": 94200000 },
"priceChange": { "h24": 2.14 }
}
]
}Search for tokens by name, symbol, or address across DexScreener's index.
curl "https://anvl.site/api/dexscreener/search?q=BONK"
Get a swap quote routed through the 1inch Aggregation API on BNB Smart Chain (chain 56). Returns best output amount and gas estimate.
curl "https://anvl.site/api/oneinch/quote?src=0xEeee...EEeE&dst=0x55d3...7955&amount=1000000000000000000"
{
"dstAmount": "1000234000000000000",
"gas": 180000
}Build a ready-to-send BSC transaction (to/data/value/gas) for a swap. Sign and broadcast it directly with your wallet — no separate serialize step needed.
curl "https://anvl.site/api/oneinch/swap?src=0xEeee...EEeE&dst=0x55d3...7955&amount=1000000000000000000&from=0xAbC1...&slippage=1"
{
"tx": { "to": "0x1111...", "data": "0x...", "value": "0", "gas": 180000, "gasPrice": "..." },
"dstAmount": "1000234000000000000"
}Look up a BEP-20 token by contract address — symbol, name, decimals, and logo.
curl "https://anvl.site/api/oneinch/token?address=0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82"
{
"address": "0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82",
"symbol": "CAKE",
"name": "PancakeSwap Token",
"decimals": 18,
"logoURI": "https://..."
}Returns aggregate platform statistics — total projects created, wallets connected, and swap volume.
curl "https://anvl.site/api/stats"
{
"projects": 1420,
"wallets": 3812,
"swapVolume": 142000
}Live ticker data for the $ANVL token — price, 24h change, and market cap.
curl "https://anvl.site/api/ticker"
{
"symbol": "ANVL",
"priceUsd": "0.00042",
"change24h": 12.4,
"marketCap": 420000
}Returns the authenticated user's Forge profile — XP, tier, crafted items, and quest progress.
curl "https://anvl.site/api/forge/me" \ -H "Authorization: Bearer <session_token>"
{
"wallet": "BjNR...Dz5Y",
"xp": 2400,
"tier": "IRON",
"questsCompleted": 7
}Top wallets ranked by XP and crafting activity on the Forge.
curl "https://anvl.site/api/forge/leaderboard"
Official TypeScript SDK and community-maintained wrappers are in progress. Follow @anvlproject for release updates. In the meantime, all endpoints are standard HTTP REST — use fetch, axios, or curl directly.
// TypeScript — fetch a 1inch quote
const params = new URLSearchParams({
src: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", // BNB
dst: "0x55d398326f99059fF775485246999027B3197955", // USDT
amount: "1000000000000000000",
});
const res = await fetch(`https://anvl.site/api/oneinch/quote?${params}`);
const data = await res.json();
console.log(data.dstAmount); // USDT base units (wei)Open an issue on GitHub or reach us at dev@anvl.site