> ## 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.

# Calldata

> Generate calldata for the Fibrous router contract for swap on Citrea

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

Generate the calldata required to execute a swap through the Fibrous router contract on Citrea. This endpoint provides the raw transaction data that can be used to execute the swap directly through a Web3 provider.

## Request Body Parameters

<ParamField body="route_response" type="object" required>
  The complete response object from the `/citrea/route` endpoint.
  This contains all the necessary information about the optimal route.
</ParamField>

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

<ParamField body="signer" type="string" required>
  The address that will sign and execute the transaction.
  This address must have sufficient balance of the input token.
</ParamField>

## Response

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

<ResponseField name="calldata" type="string">
  The hex-encoded calldata to execute the swap through the router contract.
</ResponseField>


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