Agents bridge across chains and get it wrong
402.com.tr/api/x402/bridge-route
Agents bridge across chains and get it wrong — bad route, an untrusted bridge, fees that eat the transfer. Returns the best cross-chain route via the LiFi aggregator: which bridge, how much arrives, est. time, gas + bridge fees in USD, and the ready-to-send tx. Chains: ethereum, base, arbitrum, optimism, polygon. Tokens by symbol (USDC/USDT/ETH/WETH/DAI) or a 0x address + amountUnits. A quote — re
GET
https://402.com.tr/api/x402/bridge-routeUptime100% 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://402.com.tr/api/x402/bridge-route?amount=100&from=base&to=arbitrum&token=USDC");
console.log(await res.json());Example input
{
"amount": "100",
"from": "base",
"to": "arbitrum",
"token": "USDC"
}