Skip to main content
POST

Overview

Returns transaction calls needed to execute a swap based on a quote. You execute these calls with your account/wallet to complete the swap on-chain.

Request

string
required
Unique quote identifier (UUID) from the /quotes endpoint
string
Address executing the swap (optional if provided during quote request). Mutually exclusive with private
number
required
Maximum acceptable slippage (range: 0-1, e.g., 0.01 for 1%, default: 0.05 for 5%)
boolean
required
If true, response includes approve call if necessary
boolean
default:"false"
If true, builds the swap for private execution: the backend sets the taker to avnu’s executor and the response includes executorAddress plus the inner calls (approve + swap; includeApprove is forced to true). Sending takerAddress alongside private returns a 400. See Private Swap

Response

string
Network identifier (e.g., “0x534e5f4d41494e”)
array
required
Transaction calls to execute
string
avnu’s private executor address. Only returned when private is true