@velora-dex/sdk is a TypeScript SDK for the Velora API. It wraps the Delta and Market endpoints into typed methods, leaves your wallet library (viem, ethers, or web3) and HTTP client (axios or fetch) up to you, and ships in three construction shapes so you only pay for what you import.
What you get
Composable
Three entry points (Simple, Full, Partial) over the same
construct*
primitives. Pick one to import only the methods you call.Lightweight
10 KB gzipped for the minimal variant. Tree-shake the rest at build time.
Quick example
Fetch a Delta-or-market quote and submit the order in one flow:How it works
All three entry points are thin orchestrators over the same per-methodconstruct* factories. Pick the shape that matches how much of the SDK you actually use:
- Simple auto-wires the fetcher and contract caller from a single options object. Best for quickstarts and server-side scripts.
- Full exposes the same methods namespaced (
sdk.swap.*,sdk.delta.*) but lets you construct the fetcher and caller yourself, including a custom transaction-response type. - Partial is the tree-shaken variant: pass in only the
construct*functions you import, and TypeScript infers the resulting SDK shape from your selection.
Pick your starting point
Install
Add
@velora-dex/sdk and get the first quote in under five minutes.Choose a variant
Simple vs Full vs Partial: bundle size, API shape, when to pick each.
Simple SDK
One constructor, sensible defaults, every method available.
Configure providers
Wire up viem, ethers, or web3, then choose your HTTP client.
Related pages
- Why Velora: when to reach for the SDK vs the API or widget.
- Migration from
@paraswap/sdk: upgrade the legacy package to@velora-dex/sdk. - API reference — the HTTP endpoints the SDK wraps.