Skip to content
Fourohtwo

Prepare the selected bridge route as ordered unsigned transactions

chainhilt.ai/api/v1/bridge/execute

Prepare the selected bridge route as ordered unsigned transactions: an exact-amount ERC-20 approval when needed (after an approval to 0 for tokens like Ethereum USDT), then the bridge transaction. Pass the minTargetAmount and maxNativeFee the user accepted; if the fresh quote delivers less or charges more native fee, it returns 409 with quote { adapter, estimatedTargetAmount, minTargetAmount, nati

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

Uptime100% of 2 checks 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/execute", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"adapterId":"across","hyperCoreBalance":"perps","maxNativeFee":"0","minTargetAmount":"9944085","recipientAddress":"0xE4934BB19E0B97109033dBfDcCc6957E32F9Cc60","senderAddress":"0xE4934BB19E0B97109033dBfDcCc6957E32F9Cc60","sourceAmount":"10000000","sourceChainId":8453,"sourceToken":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","targetChainId":999,"targetToken":"0xb88339CB7199b77E23DB6E890353E22632Ba),
});
console.log(await res.json());

Example input

{"adapterId":"across","hyperCoreBalance":"perps","maxNativeFee":"0","minTargetAmount":"9944085","recipientAddress":"0xE4934BB19E0B97109033dBfDcCc6957E32F9Cc60","senderAddress":"0xE4934BB19E0B97109033dBfDcCc6957E32F9Cc60","sourceAmount":"10000000","sourceChainId":8453,"sourceToken":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","targetChainId":999,"targetToken":"0xb88339CB7199b77E23DB6E890353E22632Ba

More from chainhilt-x402Provider status