GET
Get a quote

Authorizations

x-api-key
string
header
required

A partner's API key. Optional: without it a request is anonymous. An invalid key is 401 unauthorized.

Path Parameters

id
string
required

The quote's ID

Query Parameters

withTransactions
boolean

true: an escrow quote still awaiting its deposit, before expiresAt, carries its steps again in execute, rebuilt from its stored terms, with the approval only if the sender's allowance is still short. Ignored for swaps and for quotes whose deposit is seen or which have expired.

Response

The quote

A firm quote: a solver's commitment (or a swap's route), and its progress. Every quote route and webhook returns this one object.

id
string
required

q_ and a ULID.

Pattern: ^q_[0-9A-HJKMNP-TV-Z]{26}$
Example:

"q_01JB8Z5W3F6V9Q2X4K7M1N0P8R"

status
required

Where a firm quote stands. completed, refunded and expired are final.

Allowed value: "awaiting_deposit"
route
required

How a quote settles.

Allowed value: "escrow"
from
object
required

What the user sends: the source side of a quote.

to
object
required

What the recipient gets: the destination side of a quote.

createdAt
integer<int64>
required

When the quote was made, in Unix seconds.

Required range: x >= 0
Example:

1793084030

expiresAt
integer<int64>
required

Escrows: the deposit deadline. Swaps: the time to send by (the route goes stale). Unix seconds.

Required range: x >= 0
Example:

1793085830

fees
object

The fees the user accepted, when known.

etaSecs
integer<int64>

Seconds from the deposit (or the swap) being seen until the recipient is paid, as estimated at quote time.

Required range: x >= 0
Example:

40

execute
object

What to send. On creation, everything; on reads, an escrow quote's depositAddress, and its transactions when asked for with withTransactions=true.