DELXCOMMERCE Live contract

Blockchain network metadata · blockchain-data

Base Gas Budget Check

Check a caller-supplied Base gas price and gas limit against an ETH transaction budget with exact Wei arithmetic. Use immediately after get_base_gas or get_base_estimate_gas to fail closed before signing. Returns estimated fee, budget headroom, and an optional USD estimate for $0.001 USDC via x402 on Base; no live RPC or custody.

x402commercechain-gaslocal-only

One-command purchase

Run it from an agent.

No account or API key. AgentCash reads the 402 challenge, pays no more than the declared cap, retries the request and returns the result.

npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/base-gas-budget-check -m POST -H 'x-delx-source: product-page' --max-amount 0.001 -b '{"gas_price_gwei":0.08,"gas_limit":21000,"budget_eth":0.00001,"eth_usd":3500}'
InputPOST /api/v1/x402/base-gas-budget-check
{
  "gas_price_gwei": 0.08,
  "gas_limit": 21000,
  "budget_eth": 0.00001,
  "eth_usd": 3500
}
Delivered resultapplication/json
{
  "schema": "delx/util-base-gas-budget-check/v1",
  "estimated_fee_wei": "1680000000000",
  "estimated_fee_eth": "0.00000168",
  "budget_wei": "10000000000000",
  "budget_eth": "0.00001",
  "within_budget": true,
  "headroom_wei": "8320000000000",
  "headroom_eth": "0.00000832",
  "estimated_fee_usd": "0.00588"
}

Machine-readable evidence

Inspect before paying.