DEV Community

ScriptMasterLabs
ScriptMasterLabs

Posted on Originally published at scriptmasterlabs.com

SwapGate: an AI agent holding SOL can now pay for a built swap to POL — every fee itemized, minimum received guaranteed

The wrong-coin problem

An agent finishes a job and gets paid in SOL. The next job needs POL. Or it holds Base USDC and the endpoint it needs prices in XRP. Today the agent's options are: integrate every swap aggregator itself, open a centralized-exchange account (identity checks, custody, deposit-trade-withdraw), or fail the task.

ScriptMasterLabs built SwapGate to close that gap the same way our other agent services work: one paid HTTP call, no account, no custody.

What SwapGate does

POST /swap/build — $0.01 USDC on Base via x402 — returns one built swap:

  • the best route found at quote time (LI.FI for cross-chain and EVM routes, Jupiter for Solana→Solana),
  • an estimated output amount,
  • a guaranteed minimum amount received — you receive at least that or the transaction reverts,
  • every fee itemized before signing: our $0.01 build fee, our 0.5% integrator fee taken inside the route (stated rate — not yet collected at launch; LI.FI requires a portal-registered fee wallet, an owner step in progress, and quotes show the line as $0 until it activates), LI.FI's own 0.25% service fee (theirs, disclosed as theirs), bridge/DEX fees, and the gas estimate,
  • the unsigned transaction. SwapGate never receives a private key and never holds funds. Your wallet signs; the swap executes from your wallet.

The refusal is part of the product

SwapGate fails closed. If no route exists, the answer is an explicit no_route refusal, not a forced swap. If a route's price impact exceeds the cap — 3% by default, 5% hard maximum that no caller can raise — the build is refused with the measured impact stated. A bad trade is never built.

What it costs, stated three ways

  • Build: 0.01 USDC per call, Base, x402. No subscription, no API key.
  • In the route: 0.5% SwapGate integrator fee (the configured rate; not yet collected at launch — see above) + 0.25% LI.FI service fee + the route's own bridge/DEX fees and gas — all itemized in the quote before you sign. (The Solana same-chain route charges no integrator fee in this version; the reason is documented in the build report.)
  • Worked example on $100 at full activation: $0.01 + $0.50 + $0.25 + route fees/gas, each line shown in your actual quote. Today the same quote shows the integrator line as $0.

Prices effective November 20, 2026.

How it compares

Doing this by hand means an integration per aggregator and per chain family, fee math you assemble yourself, and no minimum-received bound unless you wire one. A centralized exchange means custody and an account. SwapGate is one call, non-custodial, with the minimum stated up front.

SwapGate sits next to the rest of the ScriptMasterLabs agent stack: HIVE402 (41,726 listed paid endpoints, 37,189 probe-verified payable at last live read) for discovering paid services, OMNIGATE as the facilitator that settles the build fee on Base, and 402Proof on the XRPL/Xahau side.

Try it

One honest limit, stated the way we state all of ours: a quote is an estimate plus a guaranteed minimum — nothing more is promised. Prices move; the minimum-received bound is the commitment, and it is enforced by the transaction itself.

Script Master Labs LLC — SDVOSB (self-attested, SAM-registered), UEI G24VZA4RLMK3, CAGE 21U51.

Top comments (0)