Example inputPOST /api/v1/x402/twap-simple
{
"prices": [
10,
11,
12,
11
]
}
Portable intent card · commercial-operations
Simple average of price samples for a light TWAP mark. Call when benchmarking fills against an equal-weight path you already hold. Returns twap and sample count 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/twap-simple -m POST -H 'x-delx-source: intent-card-twap-simple-api' --max-amount 0.001 -b '{"prices":[10,11,12,11]}'
{
"prices": [
10,
11,
12,
11
]
}
{
"intent": "Simple TWAP for an agent workflow",
"tool_name": "util_twap_simple",
"price_usdc": "0.001",
"machine_url": "https://commerce.delx.ai/intents/twap-simple-api.json"
}
Portable and inspectable