Skip to main content
POST
Execute
Execute a token swap using the optimal route previously found through the route endpoint. This endpoint handles the actual transaction execution and ensures the swap is performed with the best possible outcome on Citrea.

Request Body Parameters

object
required
The route object returned from the /citrea/route endpoint. This contains all necessary information about the swap path and expected outcomes.
number
default:"0.5"
Maximum acceptable slippage in percentage (0.1 to 100). Example: 0.5 for 0.5% slippage tolerance
number
Unix timestamp (in seconds) after which the transaction will revert. Defaults to 20 minutes from the current time if not specified.
string
The address that will receive the output tokens. If not specified, tokens will be sent to the transaction sender.

Response

boolean
Indicates if the execution request was successful.
string
The hash of the executed transaction.
object
The executed route details.