SML SwapGate — non-custodial swap building for AI agents
How much does it cost an AI agent to swap one coin for another? SwapGate pricing
SwapGate is ScriptMasterLabs' swap builder for AI agents: an agent holding one coin (SOL, for example) that needs another coin (POL, for example) pays for one built swap — the best route found at quote time, every fee itemized before signing, a guaranteed minimum amount received, and an unsigned transaction the agent signs in its own wallet. SwapGate never takes custody of funds and never sees a private key.
Script Master Labs LLC UEI: G24VZA4RLMK3 CAGE: 21U51 SDVOSB (self-attested, SAM-registered)
Pricing at a glance
One swap build costs 0.01 USDC. The build fee is paid on Base (eip155:8453) via the x402 protocol before the build runs. No subscription, no account, no API key.
SwapGate's integrator fee is 0.5% of the swap amount, taken inside the swap route itself and itemized in the quote before you sign — never a surprise charge after the fact. Status (November 20, 2026): this fee is ACTIVE and being collected. LI.FI collects it in-route through its FeeForwarder contract to ScriptMasterLabs' registered fee wallet (integrator sml-swapgate) at the moment the swap executes; collection was proven on-chain on 2026-11-20 (a $1.00 proof swap paid exactly 0.005 USDC to the fee wallet). Every quote itemizes the exact split — 0.5% integrator / 0.25% LI.FI — before you sign, alongside the 0.01 USDC build fee.
The routing engine, LI.FI, charges its own service fee of 0.25% of the swap amount. That fee is LI.FI's, not ScriptMasterLabs'. It is also itemized in the quote.
Bridge, exchange and network gas costs vary by route and are itemized in every quote before you sign. On the Solana same-chain route (Jupiter), no integrator fee is charged in this version; the DEX fees are embedded in the quoted amounts and Solana network fees are paid by the signing wallet.
Every quote states an estimated output and a guaranteed minimum amount received: you receive at least the stated minimum or the transaction reverts. If no route exists, or a route's price impact exceeds the cap (3% by default, 5% hard maximum), SwapGate refuses to build the swap and says why.
Build a swap: POST https://sml-swapgate.timothy-walton45.workers.dev/swap/build
The fee table — every charge, who charges it, when
| Charge | Amount | Charged by | When |
|---|---|---|---|
| Swap build | 0.01 USDC per build | ScriptMasterLabs | Paid on Base via x402 before the build runs |
| Integrator fee | 0.5% of the swap amount | ScriptMasterLabs | Taken inside the swap route at execution by the LI.FI FeeForwarder to ScriptMasterLabs' registered fee wallet; itemized in the quote first. ACTIVE since 2026-11-20 (collection proven on-chain). Never charged on the Solana same-chain route in this version |
| Routing service fee | 0.25% of the swap amount | LI.FI (not ScriptMasterLabs) | Taken inside the swap route at execution; itemized in the quote first |
| Bridge / exchange fees | Varies by route | The bridge or exchange on the route | Itemized in the quote before signing |
| Network gas | Varies by chain and route | The source network | Paid by your wallet when you sign; estimated in the quote |
A worked example (arithmetic, not a quote)
On a hypothetical 100 USDC swap routed cross-chain, the disclosed charges are: 0.01 USDC build fee + 0.50 USDC integrator fee (0.5% of 100) + 0.25 USDC LI.FI service fee (0.25% of 100) + the route's own bridge/exchange fees and gas, each itemized in the actual quote. Your real quote itemizes your real route before you sign; this example exists so the fee structure can be checked with a calculator.
SwapGate vs the alternatives
| SwapGate | Calling each aggregator yourself | A centralized exchange | |
|---|---|---|---|
| Custody of your coins | Never — unsigned transaction, your wallet signs | Never | The exchange holds your funds |
| Account / sign-up | None — pay per build via x402 | Per-service keys and integrations | Account and identity checks |
| Fees known before signing | Yes — every fee itemized in the quote | You assemble them yourself, per service | Fee schedule; withdrawal fees apply |
| Guaranteed minimum received | Yes — stated in every quote; below it the transaction reverts | Depends on each service you wire up | No — market orders fill at market |
| Bad-route protection | Refuses routes above the price-impact cap (3% default, 5% hard) | Your own code's job | No |
| Cross-chain routing | One call — the routing engine spans dozens of networks, bridges and exchanges | One integration per chain family | Deposit, trade, withdraw — three steps, two networks' fees |
How a build works
- POST https://sml-swapgate.timothy-walton45.workers.dev/swap/build with {fromChain, fromToken, toChain, toToken, amount, fromAddress}. Unpaid, you receive the x402 challenge: 0.01 USDC on Base.
- Pay the challenge and retry with the PAYMENT-SIGNATURE header. Payment is verified and settled through OMNIGATE before any routing call is made.
- SwapGate fetches the best route found at quote time, checks its price impact against the cap, and itemizes every fee.
- You receive the route summary, estimated output, guaranteed minimum, the fee list, and the unsigned transaction. Sign it in your own wallet and submit it. Below the minimum, it reverts.
Read the OpenAPI spec Read llms.txt
Questions, answered in prose
How much does it cost an AI agent to swap SOL for POL? Three disclosed charges plus network costs: SwapGate's 0.01 USDC build fee (paid on Base via x402), SwapGate's 0.5% integrator fee taken inside the route (ACTIVE since 2026-11-20 — collected by the LI.FI FeeForwarder to ScriptMasterLabs' registered fee wallet and itemized in the quote), and LI.FI's own 0.25% service fee — plus the route's bridge/exchange fees and gas. All of it is itemized in the quote before the agent signs.
Does SwapGate hold the agent's coins? No. SwapGate is non-custodial: it returns an unsigned transaction and the agent signs in its own wallet. SwapGate never receives private keys and never holds funds.
What does the 0.01 USDC buy? One built swap: the best route found at quote time, an estimated output, a guaranteed minimum amount received, an itemized fee list, and the unsigned transaction. If no route exists or the price impact exceeds the cap, SwapGate refuses and says why instead of building a bad swap.
Is the quoted output guaranteed? The estimate is not; the minimum is. You receive at least the stated minimum amount or the transaction reverts. SwapGate promises nothing about prices or returns beyond that stated minimum.
Which networks are covered? Every network the routing engines support — the live list is served at https://sml-swapgate.timothy-walton45.workers.dev/supported and counted from the engines' own chain data, not copied from marketing copy.