Example inputPOST /api/v1/x402/bridge-cost-budget
{
"gas_usd": 1.2,
"bridge_fee_usd": 0.5,
"slippage_usd": 0.3
}
Portable intent card · chain-primitives-local
Sum gas + bridge fee + slippage budget into total cost. Call when comparing bridge routes with known component costs. Returns total_cost and components as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.
Intent to transaction
The source header follows this discovery route through challenge, payment and delivery without exposing the buyer or request body.
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/bridge-cost-budget -m POST -H 'x-delx-source: intent-card-bridge-cost-budget-api' --max-amount 0.001 -b '{"gas_usd":1.2,"bridge_fee_usd":0.5,"slippage_usd":0.3}'
{
"gas_usd": 1.2,
"bridge_fee_usd": 0.5,
"slippage_usd": 0.3
}
{
"intent": "Bridge Cost Budget for an agent workflow",
"tool_name": "util_bridge_cost_budget",
"price_usdc": "0.001",
"machine_url": "https://commerce.delx.ai/intents/bridge-cost-budget-api.json"
}
Portable and inspectable