@lelantos-org/sdk / services/quoter / SwapQuote
Interface: SwapQuote โ
Defined in: @lelantos-org/sdk/dist/services/quoter/client.d.ts:13
Best route returned by POST /v1/quotes. All bigint-shaped fields arrive as decimal strings on the wire; this type holds the parsed bigint values.
Properties โ
adapter โ
adapter: `0x${string}`;Defined in: @lelantos-org/sdk/dist/services/quoter/client.d.ts:16
Allowlisted ISwapAdapter address bound to the route on-chain.
expectedOut โ
expectedOut: bigint;Defined in: @lelantos-org/sdk/dist/services/quoter/client.d.ts:26
Quoter's expected output before slippage adjustment.
gasEstimate โ
gasEstimate: number;Defined in: @lelantos-org/sdk/dist/services/quoter/client.d.ts:33
Wrapper-overhead-included gas estimate.
minOut โ
minOut: bigint;Defined in: @lelantos-org/sdk/dist/services/quoter/client.d.ts:31
expectedOut * (10_000 - slippageBps) / 10_000, the floor the caller must encode as pi.publicIn on the deposit leg.
quotedAt โ
quotedAt: number;Defined in: @lelantos-org/sdk/dist/services/quoter/client.d.ts:35
Unix seconds at which the venue was queried.
route โ
route: `0x${string}`;Defined in: @lelantos-org/sdk/dist/services/quoter/client.d.ts:24
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.
venue โ
venue: "univ3";Defined in: @lelantos-org/sdk/dist/services/quoter/client.d.ts:14