UPUnlockPressure

Agent token risk precheck

A task recipe for wallet-enabled agents deciding whether to buy the $0.25 token-level 90-day unlock pressure summary.

Phase 1Cloudflare Worker API with free scanner routes and paid x402 risk routes.
JobBefore an agent buys, holds, routes, or rebalances a token, check whether upcoming source-backed unlocks create near-term pressure.
When to buy token summaryBuy `POST /v1/token/risk-summary` when the agent has a token symbol and needs the 90-day window, top events, max risk, confidence, and source links in one JSON answer.
When to use the cheaper event routeUse `POST /v1/unlock-risk` only when the agent already has a specific unlock_event_id and needs a single event score.
No Phase 2 productThis recipe uses only current Phase 1 routes. No watchlists, alerts, portfolio reports, digests, or new report endpoints are exposed.
Phase 1 paid inventory Exactly four x402 routes GET /v1/unlocks/upcoming ($0.02), POST /v1/unlock-risk ($0.10), POST /v1/token/risk-summary ($0.25), POST /v1/unlock/backtest ($0.50). No watchlists, alerts, portfolio reports, digests, or new report paid products are exposed in Phase 1.
import { wrapFetchWithPayment, x402HTTPClient } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const signer = privateKeyToAccount(process.env.EVM_PRIVATE_KEY);
const client = new x402Client();
client.register("eip155:*", new ExactEvmScheme(signer));

const fetchWithPayment = wrapFetchWithPayment(fetch, client);
const httpClient = new x402HTTPClient(client);
const response = await fetchWithPayment("https://unlockpressure.pricepilot402-arya.workers.dev/v1/token/risk-summary", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({ token: "SXT", lookbackDays: 90 })
});

const paid = await httpClient.processResponse(response);
console.log(paid.body);
curl -i "https://unlockpressure.pricepilot402-arya.workers.dev/v1/token/risk-summary" \
  -H "content-type: application/json" \
  --data '{"token":"SXT","lookbackDays":90}'
curl -i "https://unlockpressure.pricepilot402-arya.workers.dev/v1/unlock-risk" \
  -H "content-type: application/json" \
  --data '{"token":"SXT","unlock_event_id":"unlock_8059a416","includeEvidence":true}'