Skip to content

@lelantos-org/sdk / services / SwapRouteQuote

Interface: SwapRouteQuote ​

Defined in: @lelantos-org/sdk/dist/services/quoter/client.d.ts:12

Best route returned by POST /v1/quotes. bigint fields arrive as decimal strings on the wire and are held here parsed.

Properties ​

adapter ​

ts
adapter: `0x${string}`;

Defined in: @lelantos-org/sdk/dist/services/quoter/client.d.ts:15

Allowlisted ISwapAdapter address bound to the route on-chain.


expectedOut ​

ts
expectedOut: bigint;

Defined in: @lelantos-org/sdk/dist/services/quoter/client.d.ts:29

Quoter's expected output before slippage adjustment.


gasEstimate ​

ts
gasEstimate: number;

Defined in: @lelantos-org/sdk/dist/services/quoter/client.d.ts:36

Gas estimate, wrapper overhead included.


minOut ​

ts
minOut: bigint;

Defined in: @lelantos-org/sdk/dist/services/quoter/client.d.ts:34

expectedOut * (10_000 - slippageBps) / 10_000, the floor the caller must encode as pi.publicIn on the deposit leg.


quotedAt ​

ts
quotedAt: number;

Defined in: @lelantos-org/sdk/dist/services/quoter/client.d.ts:38

Unix seconds at which the venue was queried.


route ​

ts
route: `0x${string}`;

Defined in: @lelantos-org/sdk/dist/services/quoter/client.d.ts:27

Adapter-specific opaque blob, hex-encoded. UniV3 single-hop: abi.encode(uint24 fee, uint160 sqrtPriceLimitX96) (64B); set sqrtPriceLimitX96 to a tight bound around the quote to keep the router's SPL check between the caller and the mempool. Multi-hop: abi.encodePacked path bytes.

UniV4 single-hop: abi.encode(uint24 fee, int24 tickSpacing) (64B). Currency ordering is derived from the token addresses by the adapter and hooks is pinned to the zero address, so neither appears here.


venue ​

ts
venue: SwapVenue;

Defined in: @lelantos-org/sdk/dist/services/quoter/client.d.ts:13