https://api.fibrous.finance/scroll
Find the optimal trading route through Fibrous Finance’s liquidity pools on Scroll 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: "0x5300000000000000000000000000000000000004"
for ETH on Scroll
The address of the output token.
Example: "0x06eFdBF3B1ab11D8CDE82B0FA792D4cE44dBE550"
for USDC on Scroll
Response
Indicates if the request was successful.
Type of swap route (e.g., 2 for split routes).
Details about the input token.
The token’s name (e.g., “Wrapped Ether”)
The token’s contract address
Number of decimals the token uses
Current price of the token in USD
Details about the output token.
The token’s name (e.g., “USD Coin”)
The token’s contract address
Number of decimals the token uses
Current price of the token in USD
curl -L \
"https://api.fibrous.finance/scroll/route?amount=1000000000000000000&tokenInAddress=0x5300000000000000000000000000000000000004&tokenOutAddress=0x06eFdBF3B1ab11D8CDE82B0FA792D4cE44dBE550" \
--header "Accept: */*"
{
"success" : true ,
"routeSwapType" : 2 ,
"inputToken" : {
"name" : "Wrapped Ether" ,
"address" : "0x5300000000000000000000000000000000000004" ,
"decimals" : 18 ,
"price" : 1590.87
} ,
"inputAmount" : "1000000000000000000" ,
"outputToken" : {
"name" : "USD Coin" ,
"address" : "0x06eFdBF3B1ab11D8CDE82B0FA792D4cE44dBE550" ,
"decimals" : 6 ,
"price" : 0.999982
} ,
"outputAmount" : "1596313860" ,
"time" : 1.1 ,
"estimatedGasUsed" : "212280540264" ,
"estimatedGasUsedInUsd" : 0.0013627561562787743 ,
"route" : [
{
"percent" : "100%" ,
"swaps" : [
[
{
"protocol" : 5 ,
"poolName" : "Uniswap V3" ,
"poolAddress" : "0xd0b53d9277642d899df5c87a3966a349a798f224" ,
"fromTokenAddress" : "0x5300000000000000000000000000000000000004" ,
"toTokenAddress" : "0x06eFdBF3B1ab11D8CDE82B0FA792D4cE44dBE550" ,
"percent" : "100%" ,
"extraData" : {
"fee" : 500
}
}
]
]
}
] ,
"bestQuotesByProtocols" : [ ]
}