POST
Submit a private swap

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.

Headers

Idempotency-Key
string

Repeats for this quote with the same key and body get the first response; 1 to 255 visible ASCII characters

Path Parameters

id
string
required

The private swap's quote ID

Body

application/json

The body of POST /v1/quotes/{id}/submit: a private swap's transaction as the wallet proved it (strk20PrepareInvoke). Debug shows the proof's size only.

call
object
required

The privacy pool's apply_actions call.

proof
string
required

The proof, as the wallet returned it (proof.data, base64).

proofFacts
string[]
required

Felts in hex (proof.proof_facts).

Response

The relayer sends the private swap; follow 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.