Example inputPOST /api/v1/x402/int-to-hex
{
"value": 255
}
Portable intent card · chain-primitives-local
Encode non-negative integers into 0x-hex strings. Call when building simple hex fields or debug payloads from decimal values. Returns 0x-prefixed hex string 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/int-to-hex -m POST -H 'x-delx-source: intent-card-int-to-hex-api' --max-amount 0.001 -b '{"value":255}'
{
"value": 255
}
{
"intent": "Integer to Hex for an agent workflow",
"tool_name": "util_int_to_hex",
"price_usdc": "0.001",
"machine_url": "https://commerce.delx.ai/intents/int-to-hex-api.json"
}
Portable and inspectable