curl or fetch call against https://api.velora.xyz; no SDK required.
For the conceptual model behind the auction and settlement, see Delta → How it works. For a typed wrapper over these same calls, see SDK → Delta.
The flow
Quote the trade
GET /v2/quote?mode=DELTA returns a delta block with the recommended route, the spender to approve, and the resolved partner fee. See GET /v2/quote.Approve the spender
Authorize the
spender (the Delta contract) to pull the source token, by on-chain approval or a permit. Native source skips this. See Approvals and permit.Build the order
POST /v2/delta/orders/build with the delta.route passed verbatim, owner set to the user, and a deadline. You get back { toSign, orderHash }. See POST /v2/delta/orders/build.Sign and submit
The user signs
toSign (ERC-2098 compact signature). POST /v2/delta/orders with the order, signature, chainId, and partner. See POST /v2/delta/orders.Poll until settled
GET /v2/delta/orders/{orderId} until the status is terminal (COMPLETED, EXPIRED, FAILED, CANCELLED). See GET /v2/delta/orders/{orderId}.1. Quote
delta block:
mode=DELTA returns a delta block or fails with a 400; it never falls back to Market. If you’d rather let Velora pick the cheaper path, send mode=ALL and branch on whether the response has a delta or a market block. See Trading modes.
2. Approve the spender
Authorize the Delta contract (thespender from the quote) to pull the source token at settlement, with either an on-chain approval or a signed permit. See Approvals and permit for both methods and when each applies. Selling native ETH skips this step; see Native ETH (dETH).
3. Build
Pass thedelta.route from the quote verbatim into the build call, with owner set to the user’s address and a deadline (unix seconds) after which the order is unfillable:
4. Sign and submit
The user signs thetoSign typed data. Delta uses ERC-2098 compact signatures (64 bytes); viem, ethers v6, and wagmi produce them natively. Then submit the signed order:
id.
5. Poll for settlement
https://explorer.velora.xyz/order/{orderId}. It’s handy for debugging and for linking users to their order.
Partner fee
Passpartner on the quote, build, and submit calls to attribute volume and capture a fee; add partnerAddress, partnerFeeBps, and partnerTakesSurplus to configure it. See Monetize for the field reference.
Related pages
- Delta → How it works: the auction and settlement model behind these calls.
- Trading modes covers
DELTAvsMARKETvsALLand the fallback envelope. - Native ETH (dETH): selling native ETH as a Delta source.
- Limit orders and TWAP, the same flow with a price constraint or a schedule.
- Delta API reference for full parameters and response schemas.
- SDK → Delta, a typed wrapper over this flow.