Skip to content

@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 โ€‹

ts
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 โ€‹

ts
expectedOut: bigint;

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

Quoter's expected output before slippage adjustment.


gasEstimate โ€‹

ts
gasEstimate: number;

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

Wrapper-overhead-included gas estimate.


minOut โ€‹

ts
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 โ€‹

ts
quotedAt: number;

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

Unix seconds at which the venue was queried.


route โ€‹

ts
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 โ€‹

ts
venue: "univ3";

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

Lelantosno cookies ๐Ÿช ยท no tracking ๐Ÿ‘๏ธ ยท no accounts ๐Ÿ‘คwalletexplorer4536080GitHub