InputPOST /api/v1/x402/confirmations-needed
{
"tx_block": 100,
"head_block": 105,
"target": 12
}
Local chain primitives · chain-primitives-local
Compute confirmations remaining from head and inclusion block. Call when progress bars and readiness gates for deposit/finality logic. Returns confirmations observed vs needed 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.
One-command purchase
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/confirmations-needed -m POST -H 'x-delx-source: product-page' --max-amount 0.001 -b '{"tx_block":100,"head_block":105,"target":12}'
{
"tx_block": 100,
"head_block": 105,
"target": 12
}
{
"schema": "delx/util-confirmations-needed/v1",
"confirmations": 6,
"target": 12,
"remaining": 6,
"done": false
}
Machine-readable evidence