Skip to main content
POST
Quote a swap

Authorizations

x-api-key
string
header
required

Production API key beginning with o1_launch_.

Body

application/json
chain_id
enum<integer>
required
Available options:
8453,
4663
Example:

8453

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

"0x1111111111111111111111111111111111111111"

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

"0x1111111111111111111111111111111111111111"

side
enum<string>
required
Available options:
buy,
sell
amount_in_raw
string
required

Exact input amount in base units, from 1 through uint128 max.

Pattern: ^(0|[1-9][0-9]*)$
Example:

"1000000000000000000"

slippage_bps
integer
required
Required range: 0 <= x <= 4999
referrer
string
Pattern: ^0x[0-9a-fA-F]{40}$
Example:

"0x1111111111111111111111111111111111111111"

comment
string

Optional hook comment limited to 32 UTF-8 bytes.

Maximum string length: 32

Response

A signed short-lived quote and prerequisite steps.

data
object
required
meta
object
required