Add HelmSwap as a route
For aggregators, meta-aggregators, wallets, trading bots and agent frameworks that compare several swap providers and pick the best net output per trade. HelmSwap answers one HTTP request with the output amount, the minimum output, the approval spender and an unsigned transaction. Your user signs it in their own wallet. HelmSwap never holds keys or funds, never signs and never broadcasts.
Nine chains from one endpoint: Solana, Base, Ethereum, BNB Chain, Robinhood Chain, Ink, HyperEVM, Elysium and Arc.
One call: GET /api/v1/swap
Params: chainId, tokenIn, tokenOut (contract address, or ETH / BNB / HYPE for the native coin), amountIn (integer base units), recipient (the signing wallet; taker or user also work) and optional slippageBps (default 50). sellToken, buyToken and sellAmount are accepted as aliases. POST with the same fields as JSON works too.
curl "https://helmswap.com/api/v1/swap?chainId=8453&tokenIn=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913&tokenOut=ETH&amountIn=20000000&recipient=0xUSER_WALLET&slippageBps=50"Response (trimmed):
{
"ok": true,
"chainId": 8453,
"tokenIn": "0x8335…2913",
"tokenOut": "0xEeee…EEeE", // native coin
"amountIn": "20000000",
"amountOut": "…", // what the user receives, after the disclosed fee
"minAmountOut": "…", // on-chain floor at slippageBps
"priceImpactPct": 0.01,
"approvalAddress": "0x…", // null for native-coin input
"approvals": [{ "to": "…", "data": "0x095ea7b3…", "value": "0", "chainId": 8453 }],
"tx": { "to": "0x…", "data": "0x…", "value": "0", "chainId": 8453 },
"fee": { … }, // the disclosed fee object
"quoteValidForSec": 45,
"signsOrBroadcasts": false
}amountOut is already net of HelmSwap's fee, so you can rank it directly against other providers' output. The fee is disclosed in the fee object of every response. ERC-20 inputs need the exact-amount approval in approvals first; native-coin inputs need none.
Solana: pass chain=solana, inputMint, outputMint, amount and user. The response carries the quote and a base64 v0 transaction for the user to sign.
curl "https://helmswap.com/api/v1/swap?chain=solana&inputMint=So11111111111111111111111111111111111111112&outputMint=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v&amount=10000000&user=USER_SOLANA_WALLET"Prefer two steps (price first, calldata only when the user commits)? Use GET /api/v1/quote then POST /api/v1/build-tx, documented on the API page.
Adapter example (TypeScript)
// Minimal adapter: quote and calldata in one request.
export async function getQuote(chainId: number, from: string, to: string, amount: string, user: string, slippageBps = 50) {
const native = "0x0000000000000000000000000000000000000000";
const q = new URLSearchParams({
chainId: String(chainId),
tokenIn: from === native ? "ETH" : from, // ETH / BNB / HYPE = the chain's native coin
tokenOut: to === native ? "ETH" : to,
amountIn: amount,
recipient: user,
slippageBps: String(slippageBps),
});
const r = await fetch("https://helmswap.com/api/v1/swap?" + q);
const body = await r.json();
if (!body.ok) throw new Error(body.error ?? "no route");
return {
amountReturned: body.amountOut,
minAmountOut: body.minAmountOut,
tokenApprovalAddress: body.approvalAddress,
tx: body.tx, // { to, data, value } for the user's wallet to sign
rawQuote: body,
};
}Service commitments
- Versioned API. Everything under
/api/v1only gains fields. We give at least three weeks' notice on X and on this page before any breaking change. - Throughput. About 60 requests per minute per IP on each endpoint with no key, which covers one request per second. Over the limit you get
429withRetry-After. Need more for a production integration? Ask us. - Errors you can act on.
404 NO_ROUTEwhen there is no route,422 PRICE_IMPACT_TOO_HIGH,409when a price moved,451for sanctioned wallets and tokenized stocks,503when an upstream node is down. The response says which step failed instage. - Health. Live checks at /status and
GET /api/health. - Open CORS, no sign-up, and no API key needed to quote or build.
- Verified contracts. The EVM router on each chain is source-verified; addresses are on the API page and in
/api/config.
Chains
| Chain | chainId | Liquidity routed |
|---|---|---|
| Solana | chain=solana | Concentrated-liquidity and constant-product pools, including launch curves |
| Base | 8453 | Major AMM pools, including hook pools |
| Ethereum | 1 | Major AMM and stable pools |
| BNB Chain | 56 | Major AMM pools |
| Robinhood Chain | 4663 | Concentrated-liquidity and hook pools |
| Ink | 57073 | Concentrated-liquidity and hook pools |
| HyperEVM | 999 | EVM pools (native coin HYPE) |
| Elysium | 99901 | EVM pools (native coin HYPE) |
| Arc | 5042 | USDC pools (USDC is the gas token) |
What we will not do
No custody, no server-side signing, no hidden spread: the quoted output is what the transaction enforces, net of the disclosed fee. Tokenized stocks are refused. Perps and prediction markets are not offered through this API.
Talk to us
Integrating HelmSwap into an aggregator, wallet or bot? Message @HelmSwap on X. Use of the API is covered by the Terms of Service.