Swap API
Two endpoints give your wallet or app the same routing that powers Validir DEX. Quotes return the full split breakdown plus ready-to-sign calldata.
const res = await fetch("https://api.validir.dex/v1/quote?" + new URLSearchParams({
chain: "ethereum",
from: "ETH",
to: "USDC",
amount: "1.5",
slippageBps: "50",
}));
const { out, splits, calldata } = await res.json();GET /v1/quote
Best route, output amount, split breakdown, price impact
POST /v1/swap
Signed-ready calldata with slippage bounds and private relay
GET /v1/tokens
Verified token lists per chain with liquidity depth
WS /v1/prices
Streaming mid prices and venue depth updates