HelmSwap

v0.2.5
io.github.gambrelcolby63/helm-mcp Checked 1 day ago Published 1 day ago

Swap 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…

ParameterTypeDescription
amountIn *stringInteger amount in tokenIn base units (e.g. 10000000 for 0.01 SOL, 9 decimals)
tokenIn *stringToken address or native symbol (ETH, BNB, POL, SOL)
tokenOut *stringToken address or mint, or a native symbol
chainstringsolana, base, bnb, ethereum, robinhood, or a numeric chainId
chainIdnumberEVM chain id. Ignored when chain is solana. Default 8453.
referrerstringOptional payout address (EVM 0x or Solana base58). Overrides HELM_REFERRER for this call. The share is disclosed on the quote.
slippageBpsnumberSlippage 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.

ParameterTypeDescription
amountIn *stringInteger amount in tokenIn base units (e.g. 10000000 for 0.01 SOL, 9 decimals)
recipient *stringThe user's wallet that will sign. Address only, never a key.
tokenIn *stringToken address or native symbol (ETH, BNB, POL, SOL)
tokenOut *stringToken address or mint, or a native symbol
chainstringsolana, base, bnb, ethereum, robinhood, or a numeric chainId
chainIdnumberEVM chain id. Ignored when chain is solana. Default 8453.
quoteobjectThe object returned by get_quote (must include quoteTicket). If omitted, a fresh quote is taken first.
referrerstringOptional payout address (EVM 0x or Solana base58). Overrides HELM_REFERRER for this call. The share is disclosed on the quote.
slippageBpsnumberSlippage 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…

ParameterTypeDescription
amount *stringInteger amount of inputMint in its smallest unit. Alias: amountIn, sellAmount, inAmount.
inputMint *stringToken to sell: mint or contract address, or a native symbol. Alias: tokenIn, sellToken, fromToken.
outputMint *stringToken to buy: mint or contract address, or a native symbol. Alias: tokenOut, buyToken, toToken.
chainstringOptional: solana, base, bnb, ethereum, robinhood, ink, hyperevm, elysium, arc, or a numeric chainId. Inferred as Solana from a mint address.
referrerstringOptional payout address (EVM 0x or Solana base58). The share is disclosed on the quote.
slippageBpsnumberSlippage tolerance in bps. Default 50.
swapModestringOnly 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…

ParameterTypeDescription
quoteResponse *objectThe whole object returned by get_swap_quote (must include quoteTicket).
userPublicKey *stringThe user's wallet that will sign. Address only, never a key. Alias: walletAddress, taker, recipient.
chainstringOptional. Taken from quoteResponse when omitted.