Produce swap instruction (calldata) for client execution
API Reference
Swap
POST
Produce swap instruction (calldata) for client execution
This endpoint returns swap instructions (calldata + constraints) for you to execute.
For execution options, see Swap.
Authorizations
Basic Auth (assumed at gateway for MVP)
Body
application/json
Example:
1
Pattern:
^0x[a-fA-F0-9]{40}$Example:
"0x742d35Cc6634C0532925a3b844Bc9e7595f5fE4b"
Pattern:
^0x[a-fA-F0-9]{40}$Example:
"0x742d35Cc6634C0532925a3b844Bc9e7595f5fE4b"
Available options:
EXACT_IN, EXACT_OUT Amount (smallest units as string). Interpretation depends on tradeType.
Example:
"1000000"
Required range:
0 <= x <= 5000Recipient address for swap outputs (when applicable)
Pattern:
^0x[a-fA-F0-9]{40}$Example:
"0x742d35Cc6634C0532925a3b844Bc9e7595f5fE4b"