Cambrian List DEXes API
GET /api/v1/evm/dexes
EVM DEXes
This endpoint returns a list of all decentralized exchanges (DEXes) available on EVM-compatible chains. It provides essential information about each DEX including its chain ID, contract address, name, and underlying algorithm.
Business Value
- DEX Discovery: Easily discover all DEXes operating across different EVM chains in one request
- Integration Planning: Get comprehensive DEX information needed for multi-chain DeFi integrations
- Algorithm Analysis: Understand the distribution of different AMM algorithms (Uniswap V3, Algebra, etc.) across chains
- Chain Coverage: See which DEXes operate on specific chains like Base (chainId: 8453)
- Contract Verification: Access verified DEX contract addresses for secure integrations
Endpoint Details
URL:
https://opabinia.cambrian.network/api/v1/evm/dexes
Method: GET
Authentication: Required via X-API-Key header
Query Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| - | - | - | - | No query parameters required |
Response Field Descriptions
| Response Field | Type | Description |
|---|---|---|
| chainId | UInt32 | The blockchain network identifier (e.g., 8453 for Base) |
| address | FixedString(42) | The contract address of the DEX |
| name | String | The name of the DEX (e.g., Uniswap, Aerodrome, PancakeSwap) |
| algorithm | LowCardinality(FixedString(10)) | The AMM algorithm used (e.g., univ3, algb, na) |
Examples
1. Get All EVM DEXes
Retrieve the complete list of DEXes across all supported EVM chains.
curl -X GET "https://opabinia.cambrian.network/api/v1/evm/dexes" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json"
Response:
{
"columns": [
{
"name": "chainId",
"type": "UInt32"
},
{
"name": "address",
"type": "FixedString(42)"
},
{
"name": "name",
"type": "String"
},
{
"name": "algorithm",
"type": "LowCardinality(FixedString(10))"
}
],
"data": [
[
8453,
"0x7b72c4002ea7c276dd717b96b20f4956c5c904e7",
"9mm",
"univ3"
],
[
8453,
"0x420dd381b31aef6683db6b902084cb0ffece40da",
"Aerodrome",
"na"
],
[
8453,
"0x5e7bb104d84c7cb9b682aac2f3d509f5f406809a",
"Aerodrome",
"univ3"
],
[
8453,
"0x9592cd9b267748cbfbde90ac9f7df3c437a6d51b",
"Aerodrome",
"univ3"
],
[
8453,
"0x0fd83557b2be93617c9c1b6fd549401c74558c",
"AlienBase",
"univ3"
]
],
"rows": 38
// ... additional rows omitted for brevity
}
The response shows 38 DEXes currently available, with the majority operating on Base chain (chainId: 8453). Most DEXes use the Uniswap V3 algorithm (univ3), with some using Algebra (algb) or marked as not applicable (na).
x402 Payment Option
This endpoint supports pay-per-use access via the x402 payment protocol (v2) — pay $0.05 USDC per request using blockchain micropayments. No API key required.
Quick Start (TypeScript)
npm install @x402/fetch @x402/evm viem
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";
const signer = privateKeyToAccount(process.env.EVM_PRIVATE_KEY as `0x${string}`);
const client = new x402Client();
client.register("eip155:*", new ExactEvmScheme(signer));
const fetchWithPayment = wrapFetchWithPayment(fetch, client);
const response = await fetchWithPayment(
"https://deep42.cambrian.network/api/v1/evm/dexes"
);
const data = await response.json();
Quick Start (Python)
pip install "x402[httpx]"
import asyncio, os
from eth_account import Account
from x402 import x402Client
from x402.http.clients import x402HttpxClient
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
async def main():
client = x402Client()
account = Account.from_key(os.getenv("EVM_PRIVATE_KEY"))
register_exact_evm_client(client, EthAccountSigner(account))
async with x402HttpxClient(client) as http:
response = await http.get("https://deep42.cambrian.network/api/v1/evm/dexes")
print(response.json())
asyncio.run(main())
Payment Flow
- Send a normal request to the endpoint (no API key needed)
- Server returns
402 Payment Requiredwith payment details - The x402 SDK automatically signs a payment authorization with your wallet
- The SDK resubmits the request with the signed payment
- Server verifies payment and returns the API response
The x402 SDK handles steps 2–5 automatically.
Network: Base (chain ID 8453) | Currency: USDC | Price: $0.05 per request
Related Endpoints
/api/v1/evm/aero/v2/pools- Returns a paginated list of Aerodrome liquidity pools with summary metrics/api/v1/evm/aero/v2/pool- Get detailed information for a specific Aerodrome V2 pool address/api/v1/evm/aero/v2/pool-volume- Get hourly volume data for Aerodrome pools over specific timeframes/api/v1/evm/aero/v2/fee-metrics- Shows daily historical fee data for Aerodrome pools over time