{"openapi":"3.1.0","info":{"title":"Helm Swap API","version":"0.1.0","summary":"Live: keyless quotes and unsigned swap transactions (an optional free API key for lower fees on the bot / API tier) on Solana, Base, Ethereum, BNB Chain, Robinhood Chain, Ink, HyperEVM (999), Elysium (99901) and Arc (5042) (Arbitrum and Polygon quote-only), with the fee disclosed on every quote. The user's wallet signs and sends; Helm never holds keys and the server never broadcasts.","description":"Swaps are LIVE on Solana, Base (8453), BNB Chain (56), Ethereum (1), Robinhood Chain (4663), Ink (57073), HyperEVM (999), Elysium (99901) and Arc (5042), free to call. Quotes and builds are keyless on Solana and EVM chains, limited per IP (about 60 requests per minute per endpoint); a free API key in the X-Helm-Key header (https://helmswap.com/developers or POST /api/v1/keys) is optional and unlocks the lower bot / API fee tier. Arbitrum (42161) and Polygon (137) are quote-only: build-tx returns HTTP 503 FEE_ROUTER_NOT_CONFIGURED. The API returns quotes and unsigned transactions that the user's own wallet signs and sends. Helm never holds keys; this server never signs and never broadcasts. Responses carry live: true (swaps are real; the returned transaction is real) and serverBroadcasts: false (the server never sends; your wallet or agent signs and sends). The older dryRun: true / broadcast: false / broadcastable: false fields are DEPRECATED, kept only for backward compatibility, and never mean sandbox or simulation. Every quote discloses the HelmSwap fee before signing: 25 bps (0.25%) for majors (ETH, WETH, USDC, USDbC, DAI, cbBTC, USDT, EURC, USDS, wstETH, cbETH, weETH, rETH, WBTC, and the equivalent majors on each chain), 60 bps (0.60%) for other curated tokens, 72 bps (0.72%) for new or long-tail tokens; the pair pays the higher tier. Lower fees for bots and API integrations: requests to /api/v1/quote and /api/v1/build-tx that include a free API key in the X-Helm-Key header get a lower fee, disclosed in the quote. Keyless requests and the website use the standard tiers above. Pool/LP fees are in the quoted price. No hidden spread, no forced routing. On EVM fee-router swaps, positive slippage above the honest (not padded) quoted net is split as disclosed in surplusShare; the user does not always receive at least the quoted net if the swap underperforms (floor is the signed minOut, never reduced to pay surplus). The optional referrer (alias ref) attributes a swap to a wallet; the trader pays the same fee, and any referral payout is shown in the quote's fee object and covered by the referral terms (https://helmswap.com/referrals, https://helmswap.com/terms). Perps and prediction markets are not part of this API. Tokenized stocks are refused (HTTP 451).","license":{"name":"MIT","identifier":"MIT"}},"servers":[{"url":"https://helmswap.com","description":"HelmSwap production API (swaps live; the server never broadcasts)."}],"tags":[{"name":"swap"},{"name":"tokens"},{"name":"meta"}],"paths":{"/api/v1/quote":{"get":{"tags":["swap"],"operationId":"getQuote","summary":"Best quoted route + disclosed fee","parameters":[{"name":"tokenIn","in":"query","required":true,"schema":{"type":"string","description":"EVM address on the selected chain, or a native symbol for this chain (ETH; BNB on BNB Chain; POL on Polygon; HYPE on HyperEVM and Elysium) or 0xEeee…EEeE for the native asset."}},{"name":"tokenOut","in":"query","required":true,"schema":{"type":"string","description":"EVM address on the selected chain, or a native symbol for this chain (ETH; BNB on BNB Chain; POL on Polygon; HYPE on HyperEVM and Elysium) or 0xEeee…EEeE for the native asset."}},{"name":"amountIn","in":"query","required":true,"schema":{"type":"string","pattern":"^[0-9]+$","description":"Integer amount in token base units."}},{"name":"chainId","in":"query","description":"EVM chain (alias chain): 8453 Base (default), 56 BNB Chain, 1 Ethereum, 4663 Robinhood Chain, 57073 Ink, 999 HyperEVM, 99901 Elysium and 5042 Arc are swap-live; 42161 Arbitrum and 137 Polygon are quote-only (build-tx returns 503). Aliases base/bnb/eth/robinhood/ink/hyperevm/elysium/arc/arbitrum/polygon accepted. chain=solana uses the Solana path (inputMint / outputMint / amount, base58 mints).","schema":{"type":"integer","enum":[8453,56,1,4663,57073,999,99901,5042,42161,137],"default":8453}},{"name":"slippageBps","in":"query","schema":{"type":"integer","minimum":0,"maximum":1000,"default":50}},{"name":"referrer","in":"query","description":"Integrator API key (x-api-key) only: payout address for the integrator share (alias ref). Ignored on keyless requests while referral links are not available.","schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},{"name":"referrerShareBps","in":"query","description":"Integrator API key only (the applied value is echoed in fee.referrerShareBps).","schema":{"type":"integer","minimum":0,"maximum":5000}},{"name":"x-api-key","in":"header","required":false,"description":"Not needed. API keys are not being issued; omit this header (standard keyless tier).","schema":{"type":"string"}},{"name":"prebuild","in":"query","required":false,"description":"Solana only: true returns the unsigned tx with the quote (keyless).","schema":{"type":"boolean"}},{"name":"X-Helm-Key","in":"header","required":false,"description":"Free API key from POST /api/v1/keys or https://helmswap.com/developers. Optional. On /api/v1/quote and /api/v1/build-tx, an active key also applies the lower bot / API fee tier (the exact fee is disclosed in the quote). Keyless requests on Solana and EVM use standard fees.","schema":{"type":"string","pattern":"^hsk_[A-Za-z0-9_-]{32}$"}}],"responses":{"200":{"description":"Quote","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteResponse"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unknown API key (API_KEY_INVALID) or an unknown or disabled x-api-key. No key is needed for Solana or EVM builds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No route: no supported venue can price this pair and amount right now (code NO_ROUTE). Not a server failure; try another pair or size.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"451":{"description":"Refused: a tokenized stock / tokenized ETF / pre-IPO token is on one side (code TOKENIZED_EQUITY_BLOCKED). No override.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquityBlocked"}}}},"502":{"description":"Upstream RPC / quote failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/swap":{"get":{"tags":["swap"],"operationId":"oneCallSwap","summary":"One call: quote plus unsigned transaction (for aggregators, meta-aggregators and wallets). The server never signs or broadcasts.","description":"Runs the same pipeline as GET /api/v1/quote followed by POST /api/v1/build-tx and returns amountOut (net of the disclosed fee), minAmountOut, approvalAddress, approvals[] and tx {to,data,value,chainId}. sellToken/buyToken/sellAmount are accepted as aliases. Solana (chain=solana, inputMint, outputMint, amount, user) returns the quote with a prebuilt unsigned v0 transaction. Errors keep the upstream status and add stage: quote|build. POST with the same fields as JSON is also accepted.","parameters":[{"name":"chainId","in":"query","required":false,"schema":{"type":"integer","enum":[8453,56,1,4663,57073,999,99901,5042],"default":8453}},{"name":"tokenIn","in":"query","required":true,"schema":{"type":"string","description":"EVM address on the selected chain, or a native symbol for this chain (ETH; BNB on BNB Chain; POL on Polygon; HYPE on HyperEVM and Elysium) or 0xEeee…EEeE for the native asset."}},{"name":"tokenOut","in":"query","required":true,"schema":{"type":"string","description":"EVM address on the selected chain, or a native symbol for this chain (ETH; BNB on BNB Chain; POL on Polygon; HYPE on HyperEVM and Elysium) or 0xEeee…EEeE for the native asset."}},{"name":"amountIn","in":"query","required":true,"schema":{"type":"string","pattern":"^[0-9]+$","description":"Integer amount in token base units."}},{"name":"recipient","in":"query","required":true,"description":"Wallet that will sign (taker or user also accepted). Never a private key.","schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},{"name":"slippageBps","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":1000,"default":50}}],"responses":{"200":{"description":"amountOut, minAmountOut, approvalAddress, approvals, tx, fee and the full build object","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unknown API key (API_KEY_INVALID) or an unknown or disabled x-api-key. No key is needed for Solana or EVM builds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No route: no supported venue can price this pair and amount right now (code NO_ROUTE). Not a server failure; try another pair or size.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"451":{"description":"Refused: a tokenized stock / tokenized ETF / pre-IPO token is on one side (code TOKENIZED_EQUITY_BLOCKED). No override.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquityBlocked"}}}},"502":{"description":"Upstream RPC / quote failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/build-tx":{"post":{"tags":["swap"],"operationId":"buildTx","summary":"Unsigned fee-router transaction for the user's wallet to sign and send (the server never broadcasts). 503 on 42161/137.","description":"Solana and EVM builds are keyless, limited per IP. A key in X-Helm-Key is optional; an unknown key is 401 API_KEY_INVALID and a suspended or revoked key is 403.","security":[{},{"helmKey":[]}],"parameters":[{"name":"x-api-key","in":"header","required":false,"description":"Not needed. API keys are not being issued; omit this header (standard keyless tier).","schema":{"type":"string"}},{"name":"X-Helm-Key","in":"header","required":false,"description":"Optional free API key. On EVM and Solana, an active key applies the bot / API fee tier when the quote used that tier. Keyless builds use standard fees.","schema":{"type":"string","pattern":"^hsk_[A-Za-z0-9_-]{32}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["tokenIn","tokenOut","amountIn","recipient"],"properties":{"tokenIn":{"type":"string","description":"EVM address on the selected chain, or a native symbol for this chain (ETH; BNB on BNB Chain; POL on Polygon; HYPE on HyperEVM and Elysium) or 0xEeee…EEeE for the native asset."},"tokenOut":{"type":"string","description":"EVM address on the selected chain, or a native symbol for this chain (ETH; BNB on BNB Chain; POL on Polygon; HYPE on HyperEVM and Elysium) or 0xEeee…EEeE for the native asset."},"amountIn":{"type":"string","pattern":"^[0-9]+$","description":"Integer amount in token base units."},"recipient":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"Taker / recipient address. Never a private key."},"chainId":{"type":"integer","enum":[8453,56,1,4663,57073,999,99901,5042,42161,137],"default":8453,"description":"EVM chain. 8453, 56, 1, 4663, 57073, 999, 99901, 5042 build; 42161 and 137 return 503 FEE_ROUTER_NOT_CONFIGURED. Solana uses the separate chain=solana path."},"quoteTicket":{"type":"object","description":"Signed ticket from GET /api/v1/quote. Required; the server reads quotedOutNet and surplusShareBps from it."},"referrer":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"referrerShareBps":{"type":"integer","minimum":0,"maximum":5000,"description":"Integrator API key only."},"slippageBps":{"type":"integer","minimum":0,"maximum":1000},"usePermit2":{"type":"boolean"},"allowHighPriceImpact":{"type":"boolean","default":false,"description":"Explicit opt-in to build when price impact is at/above the hard cap (default 15%) or could not be measured. Never lifts the exhausted-liquidity refusal (HTTP 422 PRICE_IMPACT_TOO_HIGH)."}}}}}},"responses":{"200":{"description":"Unsigned tx + approvals","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildTxResponse"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unknown API key (API_KEY_INVALID) or an unknown or disabled x-api-key. No key is needed for Solana or EVM builds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No route: no supported venue can price this pair and amount right now (code NO_ROUTE). Not a server failure; try another pair or size.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"451":{"description":"Refused: a tokenized stock / tokenized ETF / pre-IPO token is on one side (code TOKENIZED_EQUITY_BLOCKED). No override.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquityBlocked"}}}},"502":{"description":"Upstream RPC / quote failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/link":{"get":{"tags":["meta"],"operationId":"getTradeLink","summary":"Build a canonical Open on HelmSwap deep link","description":"Returns https://helmswap.com/t/{chain}/{token} plus a copyable 'Open on HelmSwap: <link>' template. Referral links are not available right now, so ref is ignored.","parameters":[{"name":"chain","in":"query","required":true,"description":"solana, base, bnb (alias bsc), ethereum, robinhood, ink, hyperevm, elysium, or arc. chainId is also accepted.","schema":{"type":"string"}},{"name":"token","in":"query","required":true,"description":"Token mint (Solana, including launch-curve tokens) or contract address. Alias: tokenOut.","schema":{"type":"string"}},{"name":"ref","in":"query","required":false,"description":"Referrer wallet (alias referrer). Invalid values are omitted.","schema":{"type":"string"}}],"responses":{"200":{"description":"Canonical link","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"template":{"type":"string"},"path":{"type":"string"},"chain":{"type":"string"},"token":{"type":"string"},"ref":{"type":["string","null"]}},"required":["url","template","path","chain","token"]}}}},"400":{"description":"Invalid chain or token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/tokens/search":{"get":{"tags":["tokens"],"operationId":"searchTokens","summary":"Search tokens by name, symbol or address (featured list when q is empty)","parameters":[{"name":"q","in":"query","required":false,"description":"Name, symbol, contract address or mint. Empty returns featured tokens.","schema":{"type":"string"}},{"name":"chain","in":"query","required":false,"description":"solana, base (default), bnb, ethereum, robinhood, ink, hyperevm, elysium, arc, arbitrum or polygon. chainId (8453, 56, 1, 4663, 57073, 999, 99901, 5042, 42161, 137) is also accepted. all searches every swap chain at once (name, ticker or any contract address); each hit carries its chain, and tokens found only on chains without swaps here come back under elsewhere.","schema":{"type":"string"}}],"responses":{"200":{"description":"{ tokens: [{ id, name, symbol, decimals, usdPrice, chain, icon, ... }] }. Tokenized stocks are excluded."},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unknown API key (API_KEY_INVALID) or an unknown or disabled x-api-key. No key is needed for Solana or EVM builds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No route: no supported venue can price this pair and amount right now (code NO_ROUTE). Not a server failure; try another pair or size.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"451":{"description":"Refused: a tokenized stock / tokenized ETF / pre-IPO token is on one side (code TOKENIZED_EQUITY_BLOCKED). No override.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquityBlocked"}}}},"502":{"description":"Upstream RPC / quote failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/keys":{"post":{"tags":["meta"],"operationId":"createApiKey","summary":"Create a free API key (optional: lower bot / API fee tier). Shown once; only a hash is stored.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["label"],"properties":{"label":{"type":"string","minLength":2,"maxLength":60,"description":"Your app or bot name."},"email":{"type":"string","format":"email","description":"Optional. Only used to cap keys per person."}}}}}},"responses":{"201":{"description":"Key created","content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string"},"id":{"type":"string"},"label":{"type":"string"},"createdAt":{"type":"string"},"header":{"const":"X-Helm-Key"}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"tags":["meta"],"operationId":"getApiKey","summary":"Status of the key in X-Helm-Key (active, suspended or revoked) and its fee-check counts.","security":[{"helmKey":[]}],"responses":{"200":{"description":"Key status"},"404":{"description":"Unknown key"}}},"delete":{"tags":["meta"],"operationId":"revokeApiKey","summary":"Permanently revoke the key in X-Helm-Key.","security":[{"helmKey":[]}],"responses":{"200":{"description":"Revoked"},"404":{"description":"Unknown key"}}}},"/api/v1/openapi.json":{"get":{"tags":["meta"],"operationId":"getOpenApi","summary":"This document (also served at /openapi.json)","responses":{"200":{"description":"OpenAPI 3.1 JSON"}}}},"/api/v1/chains":{"get":{"operationId":"listChains","summary":"Swap chains, token-by-address support and server-run order types","responses":{"200":{"description":"Chain list","content":{"application/json":{"schema":{"type":"object","properties":{"chains":{"type":"array","items":{"type":"object","additionalProperties":true}},"note":{"type":"string"}}}}}}}}},"/api/v1/token":{"get":{"operationId":"lookupToken","summary":"Look up a token you paste by contract address or mint (read-only; does not promise a swap route)","parameters":[{"name":"chain","in":"query","required":true,"schema":{"type":"string","enum":["solana","base","ethereum","bnb","robinhood","ink","hyperevm","elysium","arc"]}},{"name":"address","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Token facts; missing fields are not available right now","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid chain or address"},"451":{"description":"Tokenized equities are not supported"}}}},"/api/v1/orders/prepare":{"post":{"operationId":"prepareOrder","summary":"Prepare an unsigned server-run order for the user's wallet to sign (never signs or submits)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["owner","tokenIn","tokenOut","amountIn","type"],"properties":{"chain":{"type":"string","enum":["base","solana"],"default":"base"},"owner":{"type":"string","description":"The user's wallet address (never a key)."},"tokenIn":{"type":"string"},"tokenOut":{"type":"string"},"amountIn":{"type":"string","pattern":"^[0-9]+$"},"type":{"type":"string","enum":["limit","take_profit","stop_loss","trailing_stop","tp_sl","dca"]},"targetPct":{"type":"number"},"stopPct":{"type":"number"},"floorPct":{"type":"number"},"trailPct":{"type":"number"},"dcaSlices":{"type":"integer"},"dcaHours":{"type":"number"},"days":{"type":"integer","minimum":1,"maximum":30}}}}}},"responses":{"200":{"description":"humanSummary, typed data to sign, approvals, request bodies with signature placeholders, expiresAt (prepare again after it) and reviewUrl (the same order on HelmSwap's own review screen)","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid input or plan; a failed quote carries a reason and hint"},"429":{"description":"Rate limit exceeded (10 per minute per client)"}}}}},"components":{"securitySchemes":{"helmKey":{"type":"apiKey","in":"header","name":"X-Helm-Key","description":"Free API key from https://helmswap.com/developers. Optional; used for the bot / API fee tier on /api/v1/quote and /api/v1/build-tx. Rate-limited per key; revocable. Keys whose landed swaps skip the disclosed fee are suspended."}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"string"},"retryAfterSec":{"type":"integer"}},"required":["error"]},"EquityBlocked":{"type":"object","description":"Tokenized stocks, tokenized ETFs, and pre-IPO tokens are blocked on either side of a swap (HTTP 451, code TOKENIZED_EQUITY_BLOCKED). There is no override.","properties":{"error":{"type":"string"},"code":{"const":"TOKENIZED_EQUITY_BLOCKED"},"side":{"type":"string","description":"Which input held the stock: tokenIn, tokenOut, destinationToken, targetToken, sourceToken."},"token":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"symbol":{"type":"string"},"name":{"type":"string"},"issuer":{"type":"string","enum":["coinbase","dinari","backed","unverified-claim","unknown"]},"detection":{"type":"string","enum":["maintained-list","issuer-contract","name-heuristic"]},"rule":{"type":"string"},"listVersion":{"type":"string"}},"required":["error","code","side","token"]},"Fee":{"type":"object","description":"Swaps are LIVE on Solana, Base (8453), BNB Chain (56), Ethereum (1), Robinhood Chain (4663), Ink (57073), HyperEVM (999), Elysium (99901) and Arc (5042), free to call. Quotes and builds are keyless on Solana and EVM chains, limited per IP (about 60 requests per minute per endpoint); a free API key in the X-Helm-Key header (https://helmswap.com/developers or POST /api/v1/keys) is optional and unlocks the lower bot / API fee tier. Arbitrum (42161) and Polygon (137) are quote-only: build-tx returns HTTP 503 FEE_ROUTER_NOT_CONFIGURED. The API returns quotes and unsigned transactions that the user's own wallet signs and sends. Helm never holds keys; this server never signs and never broadcasts. Responses carry live: true (swaps are real; the returned transaction is real) and serverBroadcasts: false (the server never sends; your wallet or agent signs and sends). The older dryRun: true / broadcast: false / broadcastable: false fields are DEPRECATED, kept only for backward compatibility, and never mean sandbox or simulation. Every quote discloses the HelmSwap fee before signing: 25 bps (0.25%) for majors (ETH, WETH, USDC, USDbC, DAI, cbBTC, USDT, EURC, USDS, wstETH, cbETH, weETH, rETH, WBTC, and the equivalent majors on each chain), 60 bps (0.60%) for other curated tokens, 72 bps (0.72%) for new or long-tail tokens; the pair pays the higher tier. Lower fees for bots and API integrations: requests to /api/v1/quote and /api/v1/build-tx that include a free API key in the X-Helm-Key header get a lower fee, disclosed in the quote. Keyless requests and the website use the standard tiers above. Pool/LP fees are in the quoted price. No hidden spread, no forced routing. On EVM fee-router swaps, positive slippage above the honest (not padded) quoted net is split as disclosed in surplusShare; the user does not always receive at least the quoted net if the swap underperforms (floor is the signed minOut, never reduced to pay surplus). The optional referrer (alias ref) attributes a swap to a wallet; the trader pays the same fee, and any referral payout is shown in the quote's fee object and covered by the referral terms (https://helmswap.com/referrals, https://helmswap.com/terms). Perps and prediction markets are not part of this API. Tokenized stocks are refused (HTTP 451).","properties":{"disclosed":{"const":true},"feeBps":{"type":"integer","minimum":1,"maximum":100,"description":"Standard 25 majors / 60 listed / 72 long-tail; volume tiers pro 19/48/57, scale 13/36/46."},"feePercent":{"type":"string"},"feeFrom":{"type":"string","enum":["output","input"]},"feeAmount":{"type":"string","pattern":"^[0-9]+$","description":"Integer amount in token base units."},"grossOutAmount":{"type":"string","pattern":"^[0-9]+$","description":"Integer amount in token base units."},"netOutAmount":{"type":"string","pattern":"^[0-9]+$","description":"Integer amount in token base units."},"referrer":{"type":["string","null"]},"referrerShareBps":{"type":"integer"},"referrerAmount":{"type":"string","pattern":"^[0-9]+$","description":"Integer amount in token base units."},"treasuryAmount":{"type":"string","pattern":"^[0-9]+$","description":"Integer amount in token base units."},"description":{"type":"string"},"surplusShare":{"$ref":"#/components/schemas/SurplusShare"}},"required":["disclosed","feeBps","feeAmount","netOutAmount"]},"SurplusShare":{"type":"object","description":"Disclosed positive-slippage share. If the swap clears above quotedOutNet (honest net after the swap fee), the extra is split userShareBps/operatorShareBps (default 50/50, operator cap 50%). The signed minimum is never reduced. Off (0) on Solana and keeper fills. Not a hidden spread; quotes are not padded.","properties":{"disclosed":{"const":true},"enabled":{"type":"boolean"},"operatorShareBps":{"type":"integer","minimum":0,"maximum":5000},"userShareBps":{"type":"integer"},"quotedOutNet":{"type":"string","pattern":"^[0-9]+$","description":"Integer amount in token base units."},"description":{"type":"string"},"scope":{"type":"string","enum":["evm-fee-router","solana-unsupported","keeper-fill-off","not-via-fee-router","fee-router-undeployed"]}},"required":["disclosed","enabled","operatorShareBps","quotedOutNet"]},"Pricing":{"type":"object","description":"Pricing tier applied to this request. feeBpsEncoded (build-tx) is the exact feeBps in the router calldata.","properties":{"tier":{"type":"string","enum":["standard","pro","scale"]},"volumeUsd30d":{"type":"number"},"nextTier":{"type":["object","null"]},"feeBpsApplied":{"type":"integer"},"feeBpsEncoded":{"type":"integer"},"standardFeeBps":{"type":"integer"},"discountBps":{"type":"integer"},"referrer":{"type":["string","null"]},"referrerShareBps":{"type":"integer"},"shareSource":{"type":"string"},"trackedNotionalUsd":{"type":["number","null"]},"disclosure":{"type":"string"}}},"UnsignedTx":{"type":"object","properties":{"to":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"data":{"type":"string"},"value":{"type":"string"},"chainId":{"type":"integer"},"description":{"type":"string"}},"required":["to","data","value","chainId"]},"PublicVenueId":{"type":"string","description":"Pool-kind id on public quote and build-tx responses (route.executionPath.venue, hops[].venue, Solana legs[].venue). Stable values: cl-pool (concentrated-liquidity), classic-pool, native-eth-pool, stable-pool, weighted-pool, liquidity-pool, bin-pool, launch-curve, pool. Internal router ids never appear in this field. Older vendor-named ids are mapped to these values so existing clients still receive a machine-readable kind.","enum":["cl-pool","classic-pool","native-eth-pool","stable-pool","weighted-pool","liquidity-pool","bin-pool","launch-curve","pool"]},"QuoteResponse":{"type":"object","properties":{"fee":{"$ref":"#/components/schemas/Fee"},"pricing":{"$ref":"#/components/schemas/Pricing"},"quote":{"type":"object","description":"Public quote. route.label and executionPath.label are vendor-free (e.g. 'concentrated-liquidity pool 0.05%'). route.executionPath.venue and hops[].venue are PublicVenueId values, not internal router ids. Path ids are rewritten the same way. Internal routing details stay on the server."},"quoteTicket":{"type":"object"},"quotedOutNet":{"type":"string","pattern":"^[0-9]+$","description":"Integer amount in token base units."},"surplusShareBps":{"type":"integer","minimum":0,"maximum":5000},"surplusShare":{"$ref":"#/components/schemas/SurplusShare"},"priceImpactPct":{"type":["number","null"],"description":"Price impact of the executable path vs a 1% reference quote on the same path, in percent. null if not measured in time."},"priceImpact":{"$ref":"#/components/schemas/PriceImpact"},"exitLiquidity":{"$ref":"#/components/schemas/ExitLiquidity"},"warnings":{"type":"array","items":{"type":"string"}},"timing":{"type":"object","description":"Route-search budget. partial=true means the best quote found before the deadline (some routes did not answer)."},"config":{"type":"object"},"note":{"type":"string"}}},"ExitLiquidity":{"type":"object","description":"Sell-back depth of the bought amount, estimated after a successful buy quote. status is skipped for majors and cash assets (no check), ok when selling back looks liquid, no_route or high_impact when it looks badly illiquid (warning is set; the trade is never blocked), or unknown when the check timed out. warn threshold is 10% impact or round-trip loss.","properties":{"checked":{"type":"boolean"},"warned":{"type":"boolean"},"status":{"type":"string","enum":["skipped","ok","no_route","high_impact","unknown"]},"sellImpactPct":{"type":["number","null"]},"roundTripLossPct":{"type":["number","null"]},"sellBackAmount":{"type":["string","null"]},"warning":{"type":["string","null"]}}},"PriceImpact":{"type":"object","description":"Impact guard. level warn at/above warnPct (default 1%); blocked at/above maxPct (default 15%), when unmeasured, or when liquidity is exhausted (output stops growing with input). build-tx refuses when buildable=false unless allowHighPriceImpact is set and overridable=true.","properties":{"level":{"type":"string","enum":["ok","warn","blocked","unknown"]},"priceImpactPct":{"type":["number","null"]},"liquidityExhausted":{"type":"boolean"},"buildable":{"type":"boolean"},"overridable":{"type":"boolean"},"warnPct":{"type":"number"},"maxPct":{"type":"number"},"warning":{"type":["string","null"]}}},"BuildTxResponse":{"type":"object","properties":{"live":{"type":"boolean","description":"True when swaps are live (they are): the quote and the transaction are real, not a sandbox."},"serverBroadcasts":{"const":false,"description":"Always false: this server never signs or sends. Your wallet or agent signs and sends the unsigned tx."},"dryRun":{"const":true,"deprecated":true,"description":"DEPRECATED, always true, kept for backward compatibility. Means only that the server never broadcasts; it is NOT a sandbox flag. Use live and serverBroadcasts."},"broadcast":{"const":false,"deprecated":true,"description":"DEPRECATED, always false. Use serverBroadcasts."},"broadcastable":{"const":false,"deprecated":true,"description":"DEPRECATED, always false: the server will not broadcast. Not a simulation flag. Use serverBroadcasts."},"pricing":{"$ref":"#/components/schemas/Pricing"},"fee":{"$ref":"#/components/schemas/Fee"},"tx":{"$ref":"#/components/schemas/UnsignedTx"},"feeParams":{"type":"object","description":"FeeParams encoded in tx.data, including quotedOutNet and surplusShareBps from the signed quoteTicket."},"quotedOutNet":{"type":"string","pattern":"^[0-9]+$","description":"Integer amount in token base units."},"surplusShareBps":{"type":"integer","minimum":0,"maximum":5000},"surplusShare":{"$ref":"#/components/schemas/SurplusShare"},"priceImpactPct":{"type":["number","null"]},"priceImpact":{"$ref":"#/components/schemas/PriceImpact"},"approvals":{"type":"array","items":{"$ref":"#/components/schemas/UnsignedTx"}},"note":{"type":"string"}}},"DryRunEnvelope":{"type":"object","description":"Unsigned plan envelope. live: true means the plan is real; serverBroadcasts: false means this server never sends it (the user's wallet or agent signs and sends). dryRun: true / broadcast: false / broadcastable: false are deprecated aliases kept for backward compatibility.","properties":{"ok":{"type":"boolean"},"live":{"type":"boolean"},"serverBroadcasts":{"const":false},"dryRun":{"const":true,"deprecated":true},"broadcast":{"const":false,"deprecated":true},"broadcastable":{"const":false,"deprecated":true}},"additionalProperties":true}}},"x-fee-router":{"1":"0xA93991fb66f3847Beab3B5e79B5da4F5c2184e52","56":"0xA93991fb66f3847Beab3B5e79B5da4F5c2184e52","999":"0x2384EFffE80523aAe945d996257810282D4E25eB","4663":"0xA93991fb66f3847Beab3B5e79B5da4F5c2184e52","5042":"0x917c533F38283898C6E6C0EEDA238AE6B7b90FD2","8453":"0xB8da0dc565232632281738Bc0237409673D91487","57073":"0xa6097c11a2A57bAEc02ebd180be567CA1cda288C","99901":"0xa6097c11a2A57bAEc02ebd180be567CA1cda288C"},"x-swaps-live":true,"x-swap-live-chains":["solana",8453,56,1,4663,57073,999,99901,5042],"x-not-live":["perps","predictions"],"x-dry-run":false,"x-broadcast":false,"x-live":true,"x-server-broadcasts":false}