Skip to content
Fourohtwo

Compare bridge routes, best first

chainhilt.ai/api/v1/bridge/simulate

Compare bridge routes, best first: tokens, estimated and minimum target amounts, fees by token, duration, expiry and the approval each route needs. sourceAmount is exactly what leaves the wallet. Errors: 400 invalid input, 502 when no adapter returns a route.

BaseAnswering
POSThttps://chainhilt.ai/api/v1/bridge/simulate

Uptime100% 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://chainhilt.ai/api/v1/bridge/simulate", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"hyperCoreBalance":"perps","senderAddress":"0xE4934BB19E0B97109033dBfDcCc6957E32F9Cc60","sourceAmount":"10000000","sourceChainId":8453,"sourceToken":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","targetChainId":999,"targetToken":"0xb88339CB7199b77E23DB6E890353E22632Ba630f","targetType":"hyperCore"}),
});
console.log(await res.json());

Example input

{
  "hyperCoreBalance": "perps",
  "senderAddress": "0xE4934BB19E0B97109033dBfDcCc6957E32F9Cc60",
  "sourceAmount": "10000000",
  "sourceChainId": 8453,
  "sourceToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "targetChainId": 999,
  "targetToken": "0xb88339CB7199b77E23DB6E890353E22632Ba630f",
  "targetType": "hyperCore"
}

More from chainhilt-x402Provider status