Skip to main content
POST
Prepare a swap

Authorizations

x-api-key
string
header
required

Production API key beginning with o1_launch_.

Body

application/json
quote_id
string
required

Opaque signed quote_id returned by /swaps/quote. Do not modify it; quotes expire after 2 minutes.

Required string length: 16 - 8192
wallet
string
required

Executing wallet. Must match the wallet used to create the quote.

Pattern: ^0x[0-9a-fA-F]{40}$
Example:

"0x1111111111111111111111111111111111111111"

permit2_signature
string

Permit2 typed-data signature when the quote includes a permit-signature step. Omit it otherwise.

Maximum string length: 2048
Pattern: ^0x(?:[0-9a-fA-F]{2})+$

Response

An unsigned swap transaction plan.

data
object
required
meta
object
required