Skip to main content
GET
Find the optimal trading route through Fibrous’s liquidity pools on Citrea to maximize output and minimize slippage. This endpoint analyzes multiple protocols, pool depths, and potential paths to deliver the most efficient swap execution for your tokens.

Query Parameters

string
required
The amount of input tokens in wei format. For tokens with 18 decimals, multiply the amount by 10^18.Example: "1000000000000000000" for 1 cBTC (18 decimals)
string
required
The address of the input token.Example: "0x0000000000000000000000000000000000000000" for cBTC on Citrea
string
required
The address of the output token.Example: "0xE045e6c36cF77FAA2CfB54466D71A3aEF7bbE839" for USDC.e on Citrea

Response

boolean
Indicates if the request was successful.
number
Type of swap route (e.g., 2 for split routes).
object
Details about the input token.
object
Details about the output token.