Hosted by vAPI for LI.FI
api.vapinetwork.ai/shim/lifi/routes
Hosted by vAPI for LI.FI: Finds routes for a token transfer.
POST
https://api.vapinetwork.ai/shim/lifi/routesUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://api.vapinetwork.ai/shim/lifi/routes", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"fromAddress":"0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0","fromAmount":"1000000","fromChainId":100,"fromTokenAddress":"0x4ecaba5870353805a9f068101a40e0f32ed605c6","options":{"order":"CHEAPEST","slippage":0.003},"toChainId":137,"toTokenAddress":"0x2791bca1f2de4661ed88a30c99a7a9449aa84174"}),
});
console.log(await res.json());Example input
{
"fromAddress": "0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0",
"fromAmount": "1000000",
"fromChainId": 100,
"fromTokenAddress": "0x4ecaba5870353805a9f068101a40e0f32ed605c6",
"options": {
"order": "CHEAPEST",
"slippage": 0.003
},
"toChainId": 137,
"toTokenAddress": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174"
}More from LI.FI via vAPIProvider status
- api.vapinetwork.ai/shim/lifi/chainsHosted by vAPI for LI.FI: Fetches the supported chains.0.001
- api.vapinetwork.ai/shim/lifi/connectionsHosted by vAPI for LI.FI: Lists available connections between two chains.0.001
- api.vapinetwork.ai/shim/lifi/quoteHosted by vAPI for LI.FI: Builds a transfer quote for the originating wallet.0.001
- api.vapinetwork.ai/shim/lifi/statusHosted by vAPI for LI.FI: Checks the status of a cross-chain transfer.0.001
- api.vapinetwork.ai/shim/lifi/step-transactionHosted by vAPI for LI.FI: Populates a selected route step with transaction data.0.001
- api.vapinetwork.ai/shim/lifi/tokenHosted by vAPI for LI.FI: Fetches information about a known token.0.001
- api.vapinetwork.ai/shim/lifi/tokensHosted by vAPI for LI.FI: Fetches known tokens.0.001
- api.vapinetwork.ai/shim/lifi/toolsHosted by vAPI for LI.FI: Fetches available bridges and exchanges.0.001
