name: token-risk-x402 description: >- Use when the agent must pre-screen a crypto token before sizing, quoting or executing a trade on Solana or Base: "check token risk", "is this token safe", "rug check", "honeypot", "mint authority", "LP locked". Paid x402 API with a free tier, no API key needed. version: 1.0.0
Token risk x402 skill
Pre-trade token safety checks for AI agents. Two tools on one origin,
https://api.ogenalabs.com. No API key. No signup. Payment is x402 USDC
per call, which your wallet or agent framework settles automatically.
What x402 payment looks like
x402 reuses HTTP 402 Payment Required. The flow is always:
- POST the endpoint with JSON body, no payment headers.
- Read the 402 body:
accepts[]lists price, asset, network andpayTo. - Sign the payment with a standard x402 v2 client (EIP-3009 authorization on Base, signed transfer on Solana) and base64-encode the PaymentPayload JSON.
- Retry the same POST with a
payment-signatureheader carrying that base64 payload. - Read the 200 body plus the base64
PAYMENT-RESPONSEreceipt header. Keep theattestation.hmacfor your audit trail.
Free tier: the deep report allows 3 free calls per caller per 24 hours.
Send any stable x-client-id header to track your quota
(x-free-tier-remaining is not used; count your own calls).
Tool 1: safety ping ($0.005)
POST https://api.ogenalabs.com/api/token-risk/v1/ping
Content-Type: application/json
{"chain": "solana", "address": "<mint>"}
Response: safe true, false or null (null means unknown, size zero),
mintAuthorityOff, lpLocked, pairs, priceUsd, fetchedAt,
cacheHit. Use this as the cheap gate on every candidate mint.
Tool 2: deep risk report ($0.04)
POST https://api.ogenalabs.com/api/token-risk/v1/deep
Content-Type: application/json
X-Client-Id: <stable-caller-id>
{"chain": "solana", "address": "<mint>"}
Response: verdict allow, caution or avoid, reasons (max 2),
score 0-100 (higher is riskier), band, priceUsd,
liquidityUsd, attestation (digest plus hmac), fetchedAt,
free (true while inside your free tier).
Rules for spending
- Ping every candidate mint first. Only run deep on mints that pass ping or that back an order worth more than $100.
- Treat
nullandcautionas size zero. Never average a caution away. - Base chain has no RugCheck coverage: scores skew high there by design. Solana coverage is full.
- Verify the HMAC offline against the published key before wiring payouts to a verdict.