https://api.fibrous.finance/
Last updated 8 months ago
Always returns 200 if API is up and running
const response = await fetch('/healthcheck', { method: 'GET', headers: {}, }); const data = await response.json();
Supported protocols
const response = await fetch('/protocols', { method: 'GET', headers: {}, }); const data = await response.json();
const response = await fetch('/execute?amount=text&tokenInAddress=text&tokenOutAddress=text&slippage=0&destination=text', { method: 'GET', headers: {}, }); const data = await response.json();
Supported tokens
const response = await fetch('/tokens', { method: 'GET', headers: {}, }); const data = await response.json();
{ "name": "text", "symbol": "text", "decimals": 0, "address": "text", "isBase": false, "isNative": false, "price": 0 }
route api response
const response = await fetch('/route?amount=text&tokenInAddress=text&tokenOutAddress=text', { method: 'GET', headers: {}, }); const data = await response.json();
{ "success": false, "inputAmount": "text", "outputAmount": "text", "estimatedGasUsed": "text", "route": [ "text" ], "time": 0, "bestQuotesByProtocols": [ "text" ] }
Route batch api response
const response = await fetch('/routeBatch', { method: 'GET', headers: {}, }); const data = await response.json();
[ { "success": false, "inputAmount": "text", "outputAmount": "text", "estimatedGasUsed": "text", "route": [ "text" ], "time": 0, "bestQuotesByProtocols": [ "text" ] } ]