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

Production chain ID: 8453 for Base or 4663 for Robinhood Chain.

Available options:
8453,
4663
Example:

8453

wallet
string
required

Wallet that will execute the prepared swap.

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

"0x1111111111111111111111111111111111111111"

token_address
string
required

Tracked launch token to buy or sell, returned as token.address by GET /tokens.

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

"0x1111111111111111111111111111111111111111"

side
enum<string>
required

buy spends the quote asset for launch tokens; sell spends launch tokens for the quote asset.

Available options:
buy,
sell
amount_in_raw
string
required

Exact input in base units: quote-asset units for buy, launch-token units for sell. Range: 1 through uint128 max.

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

"1000000000000000000"

slippage_bps
integer
required

Slippage tolerance in basis points. 1 bps = 0.01%; 50 means 0.5%, 100 means 1%, and 300 means 3%. The swap reverts below the calculated minimum output.

Required range: 0 <= x <= 4999
Example:

50

referrer
string

Optional eligible referral wallet. It cannot be the trader, creator, platform treasury, or router.

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