> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fibrous.finance/llms.txt
> Use this file to discover all available pages before exploring further.

# Execute

> Execute a swap using the optimal route found through Fibrous on Citrea

<CodeGroup>
  ```bash theme={null}
  https://api.fibrous.finance/citrea/execute
  ```
</CodeGroup>

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

<ParamField body="route" type="object" required>
  The route object returned from the `/citrea/route` endpoint.
  This contains all necessary information about the swap path and expected outcomes.
</ParamField>

<ParamField body="slippageTolerance" type="number" default="0.5">
  Maximum acceptable slippage in percentage (0.1 to 100).
  Example: `0.5` for 0.5% slippage tolerance
</ParamField>

<ParamField body="deadline" type="number">
  Unix timestamp (in seconds) after which the transaction will revert.
  Defaults to 20 minutes from the current time if not specified.
</ParamField>

<ParamField body="recipient" type="string">
  The address that will receive the output tokens.
  If not specified, tokens will be sent to the transaction sender.
</ParamField>

## Response

<ResponseField name="success" type="boolean">
  Indicates if the execution request was successful.
</ResponseField>

<ResponseField name="transactionHash" type="string">
  The hash of the executed transaction.
</ResponseField>

<ResponseField name="route" type="object">
  The executed route details.

  <Expandable>
    <ResponseField name="protocol" type="string">
      The protocol used for the swap
    </ResponseField>

    <ResponseField name="path" type="array">
      Array of token addresses in the swap path
    </ResponseField>

    <ResponseField name="pools" type="array">
      Array of pool addresses used in the swap
    </ResponseField>
  </Expandable>
</ResponseField>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.