Skip to content

ApiQuote

A quote as the relay returns it: the draft's Quote (firm with the solver's signature, or indicative), and what the relay adds for display. The added fields are not signed.

  • Quote

network: string

Quote.network


relay: string

Quote.relay


requestId: string

Quote.requestId


appId: string

Quote.appId


pair: TokenPair

Quote.pair


giveAmount: string

Quote.giveAmount


feeDecl: FeeDeclaration

Quote.feeDecl


quoteId: string

Quote.quoteId


solverId: string

Quote.solverId


wantAmount: string

What the user receives, after fees.

Quote.wantAmount


settlement: "solver_offer" | "user_offer"

Quote.settlement


expiresAt: number

Quote.expiresAt


uses: string[]

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

Quote.uses


firm: boolean

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

Quote.firm


optional solverSig?: Signature

Present exactly when firm is true.

Quote.solverSig


quoteDigest: string

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


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


fees: object

protocol: string

app: string


spreadBps: number | null

Effective spread vs the reference mid, fees excluded (null without a mid).


best: boolean