Route
Find the optimal trading route through Fibrous Finance liquidity pools
https://api.fibrous.finance/base
Find the optimal trading route through Fibrous Finance’s liquidity pools 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
The amount of input tokens in wei format. For tokens with 18 decimals, multiply the amount by 10^18.
Example: "1000000000000000000"
for 1 ETH
The address of the input token.
Example: "0x4200000000000000000000000000000000000006"
for ETH
The address of the output token.
Example: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
for USDC
Response
Indicates if the request was successful.
Type of swap route (e.g., 2 for split routes).
Details about the input token.
Details about the output token.
The estimated amount of output tokens in wei format.
Estimated gas cost for the swap in wei.
Estimated gas cost in USD.
Array of route segments with detailed swap information.