uvrouter: swap quotes and swaps from onchain pools.

Two GET endpoints return a price and a ready-to-send transaction. The swap settles through UvRouter, a contract with no owner, no upgrade path and no pause.

GET /v1/quote

curl 'https://router.uvstack.xyz/v1/quote?chainId=56&sellToken=0x55d398326f99059fF775485246999027B3197955&buyToken=0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c&sellAmount=1000000000000000000'
chainId
56, BNB Chain
sellToken
USDT 0x55d3…7955
buyToken
WBNB 0xbb4C…095c
sellAmount
1 USDT 18 decimals, in base units

A price for selling an exact amount: 1 USDT for WBNB on BNB Chain. Nothing is signed or reserved. /v1/swap takes the same parameters plus taker and returns the transaction too.

response, taken 2026-11-14

{
  "chainId": 56,
  "sellToken": "0x55d398326f99059ff775485246999027b3197955",
  "buyToken": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
  "sellAmount": "1000000000000000000",
  "buyAmount": "1670076516394888",
  "feeBps": 2,
  "route": {
    "hops": [
      {
        "venue": "0xb971ef87ede563556b2ed4b1c0b0019111dd85d2",
        "tokenIn": "0x55d398326f99059ff775485246999027b3197955",
        "tokenOut": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"
      }
    ]
  },
  "gasEstimate": "316000",
  "quoteId": "1a1da726b76-14",
  "validFor": 15
}

What it does

uvrouter quotes and builds swaps on BNB Chain. We run it ourselves.

EndpointsGET /v1/quote returns a price for selling an exact amount. GET /v1/swap returns the same quote plus the transaction that executes it on UvRouter.
ChainsBNB Chain (chain 56). Exact input only: you give the sell amount.
RoutingPrices come from the routing engine that runs our CoW Protocol solver, over PancakeSwap and Uniswap V2 and V3 pools. One path of up to 4 hops, and every quote is a route /v1/swap can build.
LiquidityNo RFQ, no intents and no off-chain market maker. The output comes from onchain AMM pools.
AuthNo API key. HTTPS GET with JSON answers. The rate limit today is 120 requests a minute per client IP.
Specopenapi.json, OpenAPI 3.1. /v1 is stable: a breaking change ships only as /v2, announced at least 3 weeks ahead.

The contract

Every swap the API builds executes through UvRouter on BNB Chain. The source is verified on both BscScan and Sourcify.

0x8e625Bc6786F8DdA4DbC23bDeA0B9Ab7c625B893
  • No owner, no admin function, no upgrade path and no pause.
  • Fee cap, fee recipient, venues and per-swap caps are set in the constructor and cannot change.
  • Pools are derived onchain from fixed factories, so a hop names a venue index, never an address.
  • Wallets using the Permit2 or native path never approve UvRouter itself.
  • The contract holds nothing between transactions.

Base deployments

UvRouter 1.2.0 and its two enforcers are deployed on Base (chain 8453). The source is in uvstarr97/uvrouter-contracts.

ContractAddress
UvRouter 1.2.00x0Dc5Cf7AeD22AC4D0D03eC4f28227A1BCC571261
UvPriceFloorEnforcer0x98ac73737236Ccf0ED7fFcc9cc351e784E5D8cE5
UvSpendCapEnforcer0x6C805c7A51e975b7dBE5eAacEb51Bd3192334b6D

The enforcers limit a budget: the spend cap bounds what an agent key may sell per token, and the price floor bounds each swap's output against Chainlink. uvsign checks all three against pinned code hashes before it signs. You can compare the runtime code with cast code <address> --rpc-url https://mainnet.base.org and the repository's build.

Fees

The only charge is a share of the output. It is already taken out of buyAmount, so you do not subtract anything.

Today0 to 30 bps, chosen per swap by pair and size. Where the table has no entry the default is 5 bps.
Shown asfeeBps in every response. The response you act on is the fee you pay.
Contract limitUvRouter refuses any fee above 50 bps (0.5%), and a submitter cannot change the signed value.

Reviewed by us, in public

Before deployment we ran four internal reviews of the BNB Chain contract and the API code that builds its transactions. They are published in full, with each finding and how we fixed it. The Base contracts have the repository's test suite, including fork tests, and no published review.

No outside firm has audited any of them. The security page has the threat model, every external call the contract makes, its known limits and how to check the deployment yourself.

If you find a problem, send us a direct message on X, @uvstack. Our Telegram channel is public, so keep security problems off it. We scale the reward to the cap that was at risk.

Two endpoints, JSON, no API key

The docs have every parameter, field, error and limit.