Bridge Execute
by chainhilt-x402 in Onchain & crypto
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, nativeFee } and no actions. Send the actions before expiresAt.
https://chainhilt.ai/api/v1/bridge/execute- Price
- $0.01
- per call in USDC
- Uptime
- 97.9%
- last 30 days
- Response time
- 178 ms
- 1.2 s slowest 5%
- Last check
- Passed
- 4 h ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://chainhilt.ai/api/v1/bridge/execute
Each call costs $0.01 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://chainhilt.ai/api/v1/bridge/execute
content-type: application/json
{
"adapterId": "across",
"hyperCoreBalance": "perps",
"maxNativeFee": "0",
"minTargetAmount": "9944085",
"recipientAddress": "0xE4934BB19E0B97109033dBfDcCc6957E32F9Cc60",
"senderAddress": "0xE4934BB19E0B97109033dBfDcCc6957E32F9Cc60",
"sourceAmount": "10000000",
"sourceChainId": 8453,
"sourceToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"targetChainId": 999,
"targetToken": "0xb88339CB7199b77E23DB6E890353E22632Ba630f",
"targetType": "hyperCore"
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
adapterId | string | Yes | The chosen route's adapter from bridge/simulate. One of: across, circleCctp, debridge, layerzero, relay, socket. |
excludedAdapters | array of string | No | Adapter ids to skip, as listed by GET /bridge/adapters. |
hyperCoreBalance | string | No | HyperCore targets only. Defaults to perps. One of: perps, spot. |
maxNativeFee | string | No | The most the user accepted paying in native fees on top of sourceAmount, in base units of the source chain's native token: the sum of the chosen route's fees with paidFrom native plus headroom (about 20%, since message fees follow gas prices), 0 when it has none. If the new route's native fees are … |
minTargetAmount | string | No | The least the user accepted receiving, in targetToken base units: the minTargetAmount of the route they chose, usually less a small margin (about 0.5%) since it moves between calls. Execute quotes again, and if the new route could deliver less, it returns 409 with the new amounts and no actions so … |
recipientAddress | string | Yes | Must equal senderAddress. |
senderAddress | string | Yes | Wallet that signs and sends the bridge; every returned action is from it. |
sourceAmount | string | Yes | Exact base-unit amount that leaves the wallet. Every fee except native ones comes out of it. |
sourceChainId | integer | Yes | EVM chain id the tokens leave from. |
sourceToken | string | Yes | Source token; the zero address (or 0xEeee…EEeE) bridges the chain's native token. |
targetChainId | integer | Yes | EVM chain id the tokens arrive on; HyperCore deliveries use HyperEVM's chain id. Both chains must be mainnets or both testnets. |
targetToken | string | Yes | Target token. It may differ from sourceToken, in which case the route swaps across tokens. |
targetType | string | No | HyperEVM targets only. hyperCore credits the recipient's HyperCore USDC balance; hyperEvm delivers the token on HyperEVM. Defaults to hyperCore for HyperEVM USDC or when hyperCoreBalance is set, otherwise hyperEvm. One of: hyperCore, hyperEvm. |
Example response
The provider's example. We can't check it without paying.
Example response, 69 lines
{
"execution": {
"adapter": "across",
"adapterName": "Across",
"approval": {
"spender": "0x09aea4b2242abC8bb4BB78D537A67a245A7bEC64",
"token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
},
"estimatedDurationSeconds": 2,
"estimatedTargetAmount": "9994056",
"expiresAt": 1790870627,
"fees": [
{
"amount": "5900",
"kind": "bridge",
"paidFrom": "input",
"token": {
"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"chainId": 8453,
"decimals": 6,
"symbol": "USDC"
}
}
],
"hyperCoreBalance": "perps",
"minTargetAmount": "9994056",
"providerRef": "lh5r9-1790867234078-e436362840a7",
"sourceAmount": "10000000",
"sourceToken": {
"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"chainId": 8453,
"decimals": 6,
"symbol": "USDC"
},
"targetToken": {
"address": "0xb88339CB7199b77E23DB6E890353E22632Ba630f",
"chainId": 999,
"decimals": 6,
"symbol": "USDC"
},
"targetType": "hyperCore"
},
"response": {
"actions": [
{
"chainId": 8453,
"data": {
"data": "0x095ea7b3",
"from": "0xE4934BB19E0B97109033dBfDcCc6957E32F9Cc60",
"to": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"value": "0"
},
"type": "transaction"
},
{
"chainId": 8453,
"data": {
"data": "0xad5425c6",
"from": "0xE4934BB19E0B97109033dBfDcCc6957E32F9Cc60",
"to": "0x09aea4b2242abC8bb4BB78D537A67a245A7bEC64",
"value": "0"
},
"type": "transaction"
}
],
"errors": [],
"warnings": []
}
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.01.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://chainhilt.ai/api/v1/bridge/execute' \
-H 'content-type: application/json' \
--data-raw '{"adapterId":"across","hyperCoreBalance":"perps","maxNativeFee":"0","minTargetAmount":"9944085","recipientAddress":"0xE4934BB19E0B97109033dBfDcCc6957E32F9Cc60","senderAddress":"0xE4934BB19E0B97109033dBfDcCc6957E32F9Cc60","sourceAmount":"10000000","sourceChainId":8453,"sourceToken":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","targetChainId":999,"targetToken":"0xb88339CB7199b77E23DB6E890353E22632Ba630f","targetType":"hyperCore"}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://chainhilt.ai/api/v1/bridge/execute' \
-H 'content-type: application/json' \
--data-raw '{"adapterId":"across","hyperCoreBalance":"perps","maxNativeFee":"0","minTargetAmount":"9944085","recipientAddress":"0xE4934BB19E0B97109033dBfDcCc6957E32F9Cc60","senderAddress":"0xE4934BB19E0B97109033dBfDcCc6957E32F9Cc60","sourceAmount":"10000000","sourceChainId":8453,"sourceToken":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","targetChainId":999,"targetToken":"0xb88339CB7199b77E23DB6E890353E22632Ba630f","targetType":"hyperCore"}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.01 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.01" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.01 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fchainhilt.ai%2Fapi%2Fv1%2Fbridge%2Fexecute&method=POST
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": "0xb88339CB7199b77E23DB6E890353E22632Ba630f",
"targetType": "hyperCore"
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.01 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.01"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://chainhilt.ai/api/v1/bridge/execute",
json={
"adapterId": "across",
"hyperCoreBalance": "perps",
"maxNativeFee": "0",
"minTargetAmount": "9944085",
"recipientAddress": "0xE4934BB19E0B97109033dBfDcCc6957E32F9Cc60",
"senderAddress": "0xE4934BB19E0B97109033dBfDcCc6957E32F9Cc60",
"sourceAmount": "10000000",
"sourceChainId": 8453,
"sourceToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"targetChainId": 999,
"targetToken": "0xb88339CB7199b77E23DB6E890353E22632Ba630f",
"targetType": "hyperCore",
},
)
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 4 h ago | Passed | 402 | 55 ms | $0.01 |
| 15 h ago | Passed | 402 | 90 ms | $0.01 |
| 37 h ago | Timed out | - | - | - |
| 4 days ago | Timed out | - | - | - |
| 4 days ago | Passed | 402 | 77 ms | $0.01 |
Show 10 older checks
| 5 days ago | Passed | 402 | 898 ms | $0.01 |
| 5 days ago | Passed | 402 | 916 ms | $0.01 |
| 6 days ago | Passed | 402 | 100 ms | $0.01 |
| 6 days ago | Passed | 402 | 914 ms | $0.01 |
| 6 days ago | Passed | 402 | 640 ms | $0.01 |
| 7 days ago | Passed | 402 | 905 ms | $0.01 |
| 7 days ago | Passed | 402 | 188 ms | $0.01 |
| 7 days ago | Passed | 402 | 36 ms | $0.01 |
| 8 days ago | Passed | 402 | 68 ms | $0.01 |
| 8 days ago | Passed | 402 | 42 ms | $0.01 |