{
"gas_limit": 21000,
"max_fee_per_gas_wei": "2000000000"
}
Local chain primitives · chain-primitives-local
EVM Gas Cost Ceiling
EVM Gas Cost Ceiling: calculates a worst-case native fee from gas limit and fee cap using only bounded caller-supplied values. Call when you need a bounded evm gas cost ceiling result before signing, submitting, replacing, or accepting an EVM/Base transaction assembled from caller-owned data. Returns normalized transaction evidence, calculated budget or shape findings, and a fail-closed preflight status for EVM Gas Cost Ceiling as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base or Solana. First-party, stateless, memory-only execution with no paid upstream, live RPC, web search, credentials, custody, signing, media generator, or input retention. Honest limit: Uses caller-supplied values only; it performs no RPC call, signing, broadcasting, balance lookup, custody, trading, or live-chain claim. Advisory output only; the buyer owns authorization, payment policy, and production decisions.
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/evm-gas-cost-ceiling -m POST -H 'x-delx-source: product-page' --max-amount 0.001 -b '{"gas_limit":21000,"max_fee_per_gas_wei":"2000000000"}'
{
"schema": "delx/util-evm-gas-cost-ceiling/v1",
"operation": "evm_preflight:evm_gas_cost_ceiling",
"status": "pass",
"result": {
"fee_ceiling_wei": "42000000000000",
"gas_limit": 21000
},
"evidence": {
"input_sha256": "19061cf987ca5901459acb5789767ddf5192ab7d107094a556164762a62044c7",
"retained": false,
"external_calls": 0
}
}
Machine-readable evidence