Skip to main content
POST

Overview

The Calldata V2 endpoint generates transaction calldata for executing a swap using a pre-calculated route. This endpoint is useful when you already have a route from the /v2/route endpoint and want to generate the execution calldata with specific slippage and destination parameters. Currently available on EVM networks.
V2 API is currently available on EVM networks. V1 endpoints remain available for backward compatibility.

Endpoint

Generate transaction calldata for executing a swap using a pre-calculated route. This endpoint is useful when you already have a route and want to generate calldata with different slippage or destination parameters.

Request Body Parameters

object
required
The complete route response object from the /v2/route endpoint. This contains all the necessary information about the optimal route.
number
required
Maximum acceptable slippage percentage (0-49, e.g., 0.5 for 0.5%).
string
required
Recipient address for the output tokens.
API Key Required: Integrator features (integratorAddress, integratorFeePercentageBps or integratorSurplusPercentageBps) require an API key. Partners must obtain an API key from Fibrous to use these monetization features. Include the API key in the request headers as X-API-Key.

Response

object
Route information for the calldata.
array
Array of swap parameters for each hop in the route.
string
Router contract address for executing the swap.
object
required
API metadata including version and timestamp.