Example inputPOST /api/v1/x402/hex-to-int
{
"hex": "0xff"
}
Portable intent card · chain-primitives-local
Parse 0x-hex strings into decimal integer strings for agents. Call when decoding calldata, logs, or block fields without a full ABI stack. Returns decimal integer string from hex 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/hex-to-int -m POST -H 'x-delx-source: intent-card-hex-to-int-api' --max-amount 0.001 -b '{"hex":"0xff"}'
{
"hex": "0xff"
}
{
"intent": "Hex to Integer for an agent workflow",
"tool_name": "util_hex_to_int",
"price_usdc": "0.001",
"machine_url": "https://commerce.delx.ai/intents/hex-to-int-api.json"
}
Portable and inspectable