Example inputPOST /api/v1/x402/shares-from-budget
{
"budget": 50,
"price": 0.25
}
Portable intent card · signal-normalize
Shares purchasable for a budget at a given share price. Call when sizing prediction-market orders from cash budget. Returns shares and residual cash 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/shares-from-budget -m POST -H 'x-delx-source: intent-card-shares-from-budget-api' --max-amount 0.001 -b '{"budget":50,"price":0.25}'
{
"budget": 50,
"price": 0.25
}
{
"intent": "Shares from Budget for an agent workflow",
"tool_name": "util_shares_from_budget",
"price_usdc": "0.001",
"machine_url": "https://commerce.delx.ai/intents/shares-from-budget-api.json"
}
Portable and inspectable