HelmSwap
v0.2.5Swap quotes and unsigned swap transactions on 9 chains.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_quote
Get a disclosed HelmSwap quote and a short-lived quote ticket. Fees are disclosed in each quote. An optional payout address attributes a share of that fee; the trader pays the same fee with or without it. Helm never signs or broadcasts; the user signs in their own wallet. Live: 8453 (Base), 56 (BNB Chain), 1 (Ethereum), 4663 (Robinhood Chain), 57073 (Ink), 999 (HyperEVM), 99901 (Elysium), 5042 (Arc), or chain='solana'. Arbitrum (42161) and Polygon (137) can quote but cannot build. Tokenized stocks return an error (HTTP 451) and must not be retried. US users can use this swap API. Predictions a…
| Parameter | Type | Description |
|---|---|---|
amountIn * | string | Integer amount in tokenIn base units (e.g. 10000000 for 0.01 SOL, 9 decimals) |
tokenIn * | string | Token address or native symbol (ETH, BNB, POL, SOL) |
tokenOut * | string | Token address or mint, or a native symbol |
chain | string | solana, base, bnb, ethereum, robinhood, or a numeric chainId |
chainId | number | EVM chain id. Ignored when chain is solana. Default 8453. |
referrer | string | Optional payout address (EVM 0x or Solana base58). Overrides HELM_REFERRER for this call. The share is disclosed on the quote. |
slippageBps | number | Slippage tolerance in bps. Default 50. |
build_swap
Build an unsigned swap transaction for the user's wallet to sign. Fees are disclosed in each quote. An optional payout address attributes a share of that fee; the trader pays the same fee with or without it. Helm never signs or broadcasts; the user signs in their own wallet. Helm never broadcasts. Prefer passing the quote object from get_quote so the signed ticket is reused. There is no execute/sign tool.
| Parameter | Type | Description |
|---|---|---|
amountIn * | string | Integer amount in tokenIn base units (e.g. 10000000 for 0.01 SOL, 9 decimals) |
recipient * | string | The user's wallet that will sign. Address only, never a key. |
tokenIn * | string | Token address or native symbol (ETH, BNB, POL, SOL) |
tokenOut * | string | Token address or mint, or a native symbol |
chain | string | solana, base, bnb, ethereum, robinhood, or a numeric chainId |
chainId | number | EVM chain id. Ignored when chain is solana. Default 8453. |
quote | object | The object returned by get_quote (must include quoteTicket). If omitted, a fresh quote is taken first. |
referrer | string | Optional payout address (EVM 0x or Solana base58). Overrides HELM_REFERRER for this call. The share is disclosed on the quote. |
slippageBps | number | Slippage tolerance in bps. Default 50. |
get_swap_quote
Same quote as get_quote, for agents that already use the inputMint / outputMint / amount / slippageBps convention (also accepted: tokenIn / tokenOut / amountIn, sellToken / buyToken / sellAmount, fromToken / toToken). amount is an integer in the token's smallest unit; decimal amounts are rejected. The chain is inferred as Solana when a mint address is given and no chain is set, otherwise it defaults to Base. Only exact-input (swapMode ExactIn) is supported. Returns inputMint, inAmount, outputMint, outAmount (after the disclosed fee, before slippage), otherAmountThreshold (the minimum after sli…
| Parameter | Type | Description |
|---|---|---|
amount * | string | Integer amount of inputMint in its smallest unit. Alias: amountIn, sellAmount, inAmount. |
inputMint * | string | Token to sell: mint or contract address, or a native symbol. Alias: tokenIn, sellToken, fromToken. |
outputMint * | string | Token to buy: mint or contract address, or a native symbol. Alias: tokenOut, buyToken, toToken. |
chain | string | Optional: solana, base, bnb, ethereum, robinhood, ink, hyperevm, elysium, arc, or a numeric chainId. Inferred as Solana from a mint address. |
referrer | string | Optional payout address (EVM 0x or Solana base58). The share is disclosed on the quote. |
slippageBps | number | Slippage tolerance in bps. Default 50. |
swapMode | string | Only ExactIn is supported. |
build_swap_transaction
Same unsigned transaction as build_swap, for agents that already pass a quoteResponse and a userPublicKey (also accepted: walletAddress, taker, recipient). Pass the whole result of get_swap_quote as quoteResponse. Returns swapTransaction (base64) and lastValidBlockHeight on Solana, or transaction and any approvals on EVM chains, plus the fields build_swap returns. Other common swap options (priority fee, wrap/unwrap, compute-unit settings) are accepted and ignored. userPublicKey is an address only, never a key. Fees are disclosed in each quote. An optional payout address attributes a share of…
| Parameter | Type | Description |
|---|---|---|
quoteResponse * | object | The whole object returned by get_swap_quote (must include quoteTicket). |
userPublicKey * | string | The user's wallet that will sign. Address only, never a key. Alias: walletAddress, taker, recipient. |
chain | string | Optional. Taken from quoteResponse when omitted. |