Skip to content

Quote

A ranked quote: ApiQuote plus the spread the relay measures against its reference mid.

network: string

ApiQuote.network


relay: string

ApiQuote.relay


requestId: string

ApiQuote.requestId


appId: string

ApiQuote.appId


pair: TokenPair

ApiQuote.pair


giveAmount: string

ApiQuote.giveAmount


feeDecl: FeeDeclaration

ApiQuote.feeDecl


quoteId: string

ApiQuote.quoteId


solverId: string

ApiQuote.solverId


wantAmount: string

What the user receives, after fees.

ApiQuote.wantAmount


settlement: "solver_offer" | "user_offer"

ApiQuote.settlement


expiresAt: number

ApiQuote.expiresAt


uses: string[]

MIP-0005 offer ids the settlement merges besides the user's and the solver's own.

ApiQuote.uses


firm: boolean

True: signed by the solver and binding. False: derived by the relay from a ladder.

ApiQuote.firm


optional solverSig?: Signature

Present exactly when firm is true.

ApiQuote.solverSig


quoteDigest: string

SHA-256 of the quote's payload: what accept names and the attestation commits to.

ApiQuote.quoteDigest


source: "rfq" | "ladder" | "matcher"

ApiQuote.source


fees: object

protocol: string

app: string

ApiQuote.fees


best: boolean

ApiQuote.best


spreadBps: number | null

Spread in bps (after fees) against referenceMid; null without a reference price.

ApiQuote.spreadBps