Example inputPOST /api/v1/x402/base64-size-estimate
{
"base64": "aGVsbG8="
}
Portable intent card · data-quality
Estimate decoded byte size of a base64 string without full decode. Call when you need this bounded result before handing data to a downstream tool. Returns deterministic machine-readable JSON for $0.001 USDC via x402 on Base. Honest limit: execution uses only caller-supplied data in memory; it does not call a paid upstream, retain input, search the web, read a live RPC, or invoke a media generator. Results are advisory; the caller owns authorization, budgets, 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/base64-size-estimate -m POST -H 'x-delx-source: intent-card-base64-size-estimate-api' --max-amount 0.001 -b '{"base64":"aGVsbG8="}'
{
"base64": "aGVsbG8="
}
{
"intent": "Base64 Size Estimate for an agent workflow",
"tool_name": "util_base64_size_estimate",
"price_usdc": "0.001",
"machine_url": "https://commerce.delx.ai/intents/base64-size-estimate-api.json"
}
Portable and inspectable