DeFi Infrastructure
for Developers
Build trading bots, DeFi aggregators, and portfolio trackers with our unified API. One integration, multiple chains, instant execution.
Supported Networks
Everything You Need for DeFi
From token swaps to detailed analytics, our API provides all the building blocks for your DeFi application.
Instant Trading
Execute token swaps across multiple DEXes with optimal routing and MEV protection.
Revert Protection
Private transaction routes ensure your trades either succeed or never land on-chain.
Simple Integration
WebSocket-based API with straightforward request/response patterns. Get started in minutes.
Token Reports
Comprehensive token analysis including liquidity, taxes, holder limits, and market data.
Multi-Chain
Unified API for Ethereum, Base, BSC, and Solana. Same interface, multiple networks.
DEX Coverage
Access liquidity from Uniswap, Raydium, PumpFun, Meteora, and more.
Simple WebSocket Integration
Connect via Socket.IO and start making requests immediately. Our API uses a straightforward emit/listen pattern that works with any language.
- Real-time WebSocket connection
- Token-based authentication
- Batch requests for efficiency
- TypeScript types available
import { io } from "socket.io-client";
const socket = io(CHAINWORKS_API_URL, {
transports: ["websocket"],
auth: { token: CHAINWORKS_API_AUTH_TOKEN }
});
// Get a buy quote
socket.emit("/evm/buy/quote", {
chain: "eth",
token: "0x...",
swapMode: "ExactIn",
amountIn: "1000000000000000000", // 1 ETH
wallet: "0x..."
});
socket.on("/evm/buy/quote", (response) => {
console.log("Quote:", response.result);
// { price: 0.00001, expectedAmountOut: "100000000000" }
});import { io } from "socket.io-client";
const socket = io(CHAINWORKS_API_URL, {
transports: ["websocket"],
auth: { token: CHAINWORKS_API_AUTH_TOKEN }
});
// Get a buy quote
socket.emit("/evm/buy/quote", {
chain: "eth",
token: "0x...",
swapMode: "ExactIn",
amountIn: "1000000000000000000", // 1 ETH
wallet: "0x..."
});
socket.on("/evm/buy/quote", (response) => {
console.log("Quote:", response.result);
// { price: 0.00001, expectedAmountOut: "100000000000" }
});Ready to Build?
Try our interactive playground to test the API with your own credentials, or dive into the documentation.