https://api.fibrous.finance/base

Parameter nameTypeDescription
amount *stringamount of a token to sell, for 1 eth set as 1000000000000000000
tokenInAddress *stringcontract address of a token to sell e.g.: 0x4200000000000000000000000000000000000006
tokenOutAddress *stringcontract address of a token to buy e.g.: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
slippage *integerslippage=0.5 means 0.5% slippage is acceptable. Low values increase chances that transaction will fail, high values increase chances of front running.
destination *stringThe receiver address for the output token
reversebooleanDefault false, it’s not supported yet.
directbooleanDefault false. If it’s true direct route
excludeProtocols[string]The protocol ID

excludeProtocols

This is where you list the IDs of the AMMs you don’t want to include. For example, if there are certain AMMs you prefer not to use due to high fees or other reasons, you simply put their unique IDs in this list.

supportPairs ↗

This function returns a list of supported AMMs, along with the AMM IDs.

Returns data with best route to transaction via Fibrous Finance