Soheil Router

v1.4.0
fi.soheil/router Checked 2 days ago Published 3 days ago

Swaps and bridges on 100+ networks, token and approval checks, multisend, and Soheil Pay invoices.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_networks Networks

Where Soheil Router trades. "networks": the EVM networks with our contract (chain id, name, contract, fee, the contracts a trade may call). "otherNetworks": Solana, Bitcoin, TON, Tron, Sui, Hyperliquid, Cosmos networks and the networks paid by deposit, each with its chainId, how its addresses look (type), its coin (nativeToken), the tokens it takes (tokens; null = any), and whether trades can be paid out there (receive), start there (send) or swap there (swap). No API key needed. Example: {}

find_token Find a token

A token's address, decimals and price in USD. By symbol ("USDC"): the well-known tokens of our lists, on the network given or on every network that has one. By contract address with chainId: any token, read from the chain when our lists do not have it and then marked verified: false. Anyone can make a token with any symbol, so trade by address and run check_token on an unverified one. No API key needed. Example: {"query":"USDC","chainId":8453} finds USDC on Base.

ParameterTypeDescription
query *stringThe token's symbol (USDC, WETH) or its contract address
chainIdintegerThe network, a chainId from get_networks; required with an address, optional with a symbol

check_token Check a token with Soheil Guard

Soheil Guard's safety check of a token before buying it: can it be sold back (a quote, and on EVM networks a test buy, transfer and sale that sends nothing), hidden fees, who controls the contract and what they can do (mint, pause, block wallets, change fees), freeze and mint authorities on Solana, how much the largest wallets hold, the token's age and who owns its liquidity. Returns verdict (KNOWN, OK, CAUTION, RISKY or NOT_CHECKED) and the findings, worst first, each with a level and a sentence. On EVM networks, Solana, Tron, TON and Sui. A check, not a guarantee. Free; no API key needed. Ex…

ParameterTypeDescription
chainId *integerThe network the token is on, a chainId from get_networks
token *stringThe token's contract address (the mint on Solana, the coin type on Sui)

get_api_info API info

What the Soheil Router API is: version, router fee, the most an integrator may add, how keys are given, and where the docs and OpenAPI spec are. No API key needed. Example: {}

get_quote Get a quote

The best price for a token swap on one network, or a transfer to another network (bridge), and what the sender signs to make it. Works on every network in get_networks. Returns toAmount, toAmountMin (the least the recipient gets), the fees, and one of: transactionRequest (EVM: approve approvalAddress for exactly fromAmount first unless fromToken is the coin), transaction (Solana), messages (TON), tron (Tron), cosmos (a Cosmos network) or deposit (an address to pay; nothing to sign). Call get_signing_guide with the quote's fromChainId for the exact steps. Works without an API key at a low share…

ParameterTypeDescription
fromAddress *stringThe wallet that pays and signs (or, for a deposit, the sender's own address there for refunds)
fromChainId *integerWhere the trade starts: a chainId from get_networks, e.g. 8453 for Base
fromToken *stringToken sold, as that network writes it; on EVM networks the coin is 0x0000000000000000000000000000000000000000, elsewhere the network's nativeToken
toToken *stringToken bought, as the destination network writes it
feeWalletstringWithout a key: your EVM wallet (0x…) for your own fee (integratorBps). The fee is paid to it inside the trade, on-chain; get_earnings shows what it earned
fromAmountstringAmount sold, an integer string in the token's smallest unit (or give toAmount)
integratorBpsintegerYour own fee in basis points, added to the price the sender pays: up to your key's limit, or up to the most get_api_info names with feeWallet
slippageBpsintegerMax price move in basis points, 1 to 5000 (default 50). A cross-chain route whose own swaps need more room may use up to 300; toAmountMin shows the least that arrives
toAddressstringWhere the tokens go; defaults to fromAddress, required when the recipient is on another kind of network
toAmountstringInstead of fromAmount, for a swap on one EVM network: an exact amount to receive. The quote's fromAmount is then what it takes to send, and toAmountMin is never below this amount
toChainIdintegerWhere the recipient receives: fromChainId for a swap (the default), or another network from get_networks to bridge there

create_deposit_swap Swap or bridge by deposit (nothing to sign)

Opens a swap or a transfer to another network paid by deposit: you get a one-time address and the exact amount to send there from any wallet or exchange, and the tokens bought are paid to toAddress. Nothing to sign or approve and no wallet connection: for an agent that can send a transfer but not sign contract calls, or for a person paying from an exchange. refundAddress is required: a deposit that cannot be swapped goes back there. A token Soheil Guard marks RISKY is refused unless acceptRisk is true. The price includes the usual swap fee. Returns swapId (for get_deposit_status), sendTo (addr…

ParameterTypeDescription
fromAmount *stringHow much is sent, a whole number in the token's smallest unit (1 USDC = 1000000)
fromChainId *integerThe network the deposit is sent on, a chainId from get_networks
fromToken *stringThe token sent, by its address on that network (find_token gives it; the network's coin as get_networks names it)
refundAddress *stringYour own address on fromChainId: a deposit that cannot be swapped is sent back there
toAddress *stringWhere the tokens bought are paid, an address on toChainId
toChainId *integerThe network the tokens bought arrive on (fromChainId for a swap on one network)
toToken *stringThe token bought, by its address on toChainId
acceptRiskbooleantrue to buy a token Soheil Guard marks RISKY anyway (default false)

get_deposit_status Deposit swap status

Where a swap paid by deposit stands, by the swapId create_deposit_swap gave: PENDING_DEPOSIT, KNOWN_DEPOSIT_TX, PROCESSING, SUCCESS (payoutTxs paid toAddress), INCOMPLETE_DEPOSIT, REFUNDED or FAILED, with the transactions on both sides and what was paid out. final is true once nothing changes any more. Ask again every 30 seconds or so while it is not final. No API key needed. Example: {"swapId":"<swapId>"}

ParameterTypeDescription
swapId *stringThe swapId create_deposit_swap gave

get_earnings What a fee wallet earned

What trades paid a fee wallet as their integrator fee (the feeWallet of get_quote, or a key's fee address): trades, senders, volume and fees in USD for the last 30 days and all time, and per token sold (the fee in the token's smallest unit). Trades are counted once their transaction is final on an EVM network; fees on trades that start on Bitcoin, TON or Tron are paid separately and are not listed. No API key needed. Example: {"wallet":"0x…"}

ParameterTypeDescription
wallet *stringThe fee wallet, an EVM address (0x…)

get_signing_guide How to sign and send a quote

The exact steps to turn a quote into a sent trade on the network it starts on, and how to follow it afterwards: what to approve, what to sign, in which order, and which of txHash and id get_trade_status needs. Give the quote's fromChainId. No API key needed. Example: {"fromChainId":8453}

ParameterTypeDescription
fromChainId *integerThe network the trade starts on (the quote's fromChainId)

get_trade_status Trade status

Where a sent trade stands: PENDING, DONE (with what was paid and received; for a bridge, once paid on the destination; received gives the token and amount that arrived when known), REFUNDED (paid back on the source network; when refundBox is set, the refund waits in the user's own refund box: anyone may call its release(token) to send it to them), FAILED, NOT_FOUND or NOT_OURS. From an EVM network or Solana give txHash; from Bitcoin, TON, Sui (paid by deposit) and the deposit networks give id (the quote's id); from Tron, a Cosmos network and Sui (a transaction the wallet signed) give both. get…

ParameterTypeDescription
chainId *integerThe network the trade was sent on (the quote's fromChainId)
idstringThe quote's id (0x + 64 hex), where the trade is followed by it
txHashstringThe transaction's hash (0x + 64 hex on EVM; the signature on Solana; the digest on Sui; 64 hex on Tron and Cosmos)

send_signatures Start a trade from Hyperliquid

Starts a trade whose quote carries hyperliquid (it starts on Hyperliquid): give the quote's id and the sender's two signatures (eth_signTypedData_v4 of hyperliquid.authorize and of hyperliquid.transfer, each as it is). Both are checked against the quote's sender and handed on; nothing moves without them. Then follow the trade with get_trade_status(chainId, id). Works without an API key at a low shared rate. Example: {"chainId":<the quote's fromChainId>,"id":"0x…","authorizeSignature":"0x…","signature":"0x…"}

ParameterTypeDescription
authorizeSignature *stringThe sender's signature of hyperliquid.authorize (0x, 65 bytes)
chainId *integerHyperliquid's chainId (the quote's fromChainId)
id *stringThe quote's id (0x + 64 hex)
signature *stringThe sender's signature of hyperliquid.transfer (0x, 65 bytes)

check_approvals Who can spend a wallet's tokens

Every token approval a wallet gave that is still open, on one EVM network (chainId) or on every network read (leave chainId out): which contract or wallet may spend which token, how much (or unlimited), what it could take right now in USD, and a risk level: DANGER (the spender is a plain wallet, the usual shape of a phishing approval), WARN, UNKNOWN or KNOWN. Operators of whole NFT collections are listed too. Each comes with revoke: the transaction (to, data, value) the wallet itself sends on that chainId to take the approval back. Read-only; any address can be checked. networksNotRead names n…

ParameterTypeDescription
wallet *stringThe wallet to check, an EVM address (0x…)
chainIdintegerOne network to check (1, 8453, 42161…); leave out for every network read

track_transfer Where is my transfer?

Where a transfer sent to a bridge stands, by the sender's transaction hash alone, also for transfers not made through Soheil: found (a bridge knows it), bridge (its name), status PENDING, DONE (substatus REFUNDED when it was sent back) or FAILED, and a sentence. bridgesAsked lists the bridges that were asked. Not found can mean too new: ask again in a minute. No API key needed. Example: {"txHash":"0x…"}

ParameterTypeDescription
txHash *stringThe transaction the sender made (0x + 64 hex on EVM networks; a signature on Solana)

build_multisend Pay many addresses in one transaction

Builds the transactions that pay a list of addresses in one go from the caller's own wallet, through SoheilMultisend (a public contract with no owner that holds nothing: each payment goes straight from the wallet to its address; one that fails cancels them all). For a token: approve (exactly the total) and then send. For the network's coin (leave token out): send alone, with its value. Returns contract, total, payments, the transactions (to, data, value) and steps. Nothing is sent by this tool: the wallet signs. Up to 500 payments, one token and one network a list. No API key needed. Example:…

ParameterTypeDescription
chainId *integerThe EVM network to pay on (a chainId from get_networks)
payments *arrayThe list: who gets how much
tokenstringThe token's contract address; leave out to pay the network's coin

get_gift Gift link status

Whether a Soheil.fi gift link is funded and whether it was claimed, by the id in the link (soheil.fi/gift/claim/?id=<id>): state WAITING, NEEDS_GAS, READY or CLAIMED, the token, network and what it holds. Give only the id, never the part of a link after #: that is the gift's key, and whoever has it has the gift. Gifts are made and claimed on soheil.fi/gift/, not through this server. No API key needed. Example: {"id":"a1B2c3D4"}

ParameterTypeDescription
id *stringThe gift's id (the id= value of its link), without anything after #

pay_create_invoice Soheil Pay: create an invoice

Creates a Soheil Pay invoice: a payment page the buyer pays from any wallet or exchange (USDT or USDC on Tron, TON, BNB Chain, Base, Solana and more), straight to the merchant's own wallet. Needs the merchant's Soheil Pay API key in the X-Soheil-Pay-Key header of the MCP connection, set once in the client's configuration (keys: soheil.fi/pay/dashboard). Never ask a person to paste a key into the chat. A test key (sp_test_…) makes test invoices nobody pays. Returns the invoice with id, url (send it to the buyer), status, amountUsd and expiresAt. A webhook and email tell the merchant once it i…

ParameterTypeDescription
amount *stringThe price, with at most two decimals ("25.00"), in currency
description *stringWhat is paid for, shown to the buyer
currencystringUSD (the default) or another currency code (EUR, TRY…): turned into dollars at the day's rate when the invoice is made
expiresInMinutesintegerHow long the buyer has, 5 minutes to 72 hours (optional)
orderIdstringThe merchant's own order number (optional); an open invoice for the same orderId is returned instead of a new one
redirectUrlstringhttps address the payment page sends the buyer back to (optional)

pay_get_invoice Soheil Pay: read an invoice

One Soheil Pay invoice as it is now: status (OPEN, PAID, OVERPAID, UNDERPAID, EXPIRED, CANCELLED…), what was paid with which transaction, and its url. Needs the merchant's Soheil Pay API key in the X-Soheil-Pay-Key header of the MCP connection, set once in the client's configuration (keys: soheil.fi/pay/dashboard). Never ask a person to paste a key into the chat. Example: {"id":"<invoice id>"}

ParameterTypeDescription
id *stringThe invoice's id

pay_list_invoices Soheil Pay: list invoices

The merchant's latest Soheil Pay invoices, newest first (test invoices with a test key, real ones with a live key). Needs the merchant's Soheil Pay API key in the X-Soheil-Pay-Key header of the MCP connection, set once in the client's configuration (keys: soheil.fi/pay/dashboard). Never ask a person to paste a key into the chat. Example: {"status":"PAID","limit":10}

ParameterTypeDescription
limitintegerHow many, 1 to 50 (default 20)
statusstringOnly invoices in this status (OPEN, PAID, EXPIRED…), optional

pay_cancel_invoice Soheil Pay: cancel an invoice

Cancels an open Soheil Pay invoice that nothing was paid for, so its page no longer takes payments. Needs the merchant's Soheil Pay API key in the X-Soheil-Pay-Key header of the MCP connection, set once in the client's configuration (keys: soheil.fi/pay/dashboard). Never ask a person to paste a key into the chat. Example: {"id":"<invoice id>"}

ParameterTypeDescription
id *stringThe invoice's id