Why Vector?¶
One integration, the whole swap stack¶
Building swaps directly means integrating quoting, calldata construction, approvals, slippage math, and execution tracking — per venue, per chain. Vector collapses that into one surface: quote, build, execute, track. Your integration is four HTTP calls, and adding a chain or venue on the platform side costs you nothing.
That surface includes Hyperliquid: the same quote-build-execute flow covers Core-spot swaps against HyperCore's order book, executed gaslessly. See Hyperliquid on Edith.
Gasless swaps change the funnel¶
The classic swap flow loses users twice: once at "you need ETH for gas" and again at the approval transaction. Vector's Permit2 path removes both. The user signs one typed-data message; Vector pulls the input token with that signature, executes the swap, and delivers the output — gas paid by the platform relayer through Photon. A user holding only USDC can swap it the moment it arrives.
The fee for this is taken in the input token, so the user needs no other
asset, and you see it quoted up front (fee on every
gasless quote) rather than discovering it in
slippage.
Deterministic quotes you can hold briefly¶
Every route is pinned by a quoteId: amounts, fee, and path are fixed at quote
time, with an explicit expiry. Price display, user confirmation, and execution
all reference the same immutable snapshot — no "the rate changed between quote
and build" ambiguity. When a quote is stale, building it fails loudly and you
re-quote; nothing executes at a price the user didn't see.
Honest execution¶
Vector routes through real on-chain liquidity and reports the route it will
take — path legs and providers are on every quote. Simulation results ride
along on build responses, and mode-3 gasless quotes cryptographically bind the
signature to the exact calldata being authorized (see
core concepts); what the user signed is the only thing that
can run.
When Vector is the wrong tool¶
- You need a single fixed pool with custom logic — call it directly; a router adds indirection you don't need.
- You're moving your own treasury with an ops wallet that holds gas — the gasless machinery buys you nothing; use Build path for calldata, or skip Vector entirely.
- The asset pair has no routable on-chain liquidity — Vector can only rank routes that exist.