Important: If integrator fees are used (integratorFeePercentageBps > 0), the min_received value in the calldata response will be the amount after fees have been deducted and slippage has been applied. This ensures the minimum received amount accounts for the integrator fee that will be taken from the output.
The Route and Calldata V2 endpoint combines route finding and calldata generation in a single request, reducing API calls and latency. This is a V2-only endpoint that provides enhanced features including integrator support and metadata. Currently available on EVM networks.
This endpoint is V2-only and currently available on EVM networks. For V1, use separate /route and /calldata endpoints.
Find the optimal trading route through Fibrous’ integrated liquidity sources and generate the transaction calldata for executing the swap. This endpoint combines route finding with calldata generation, making it ideal for direct integration with smart contracts.
Integrator surplus percentage in basis points (0-5000, maximum 50%). Cannot be used together with integratorFeePercentageBps.
API Key Required: Integrator features (integratorAddress, integratorFeePercentageBps or integratorSurplusPercentageBps) require an API key. Partners must obtain an API key from Fibrous Finance to use these monetization features. Include the API key in the request headers as X-API-Key.
Verify min_received - Always check that the minimum received amount matches your expectations. Note that if integrator fees are used, min_received already accounts for the fee deduction.
Check destination - Ensure the destination address is correct before executing
Use fresh data - This endpoint provides fresh route and calldata, ideal for immediate execution
Monitor meta.timestamp - Track when the response was generated for debugging