HostDeFi Token Risk API
Machine-payable token-safety intelligence for AI agents: A+-F risk verdicts, pre-graduation Solana signals, authority checks, wallet portfolio audits and a trend-radar feed. Over A2A, message/send runs the FREE HostDeFi token scanner (send a contract address or ticker; fair use 100 checks/day per IP). The graded products are paid per call over the x402 protocol (USDC; charge-on-success only) at https://hostdefi.com/api/v1/x402/pricing or via the hosted MCP server at https://hostdefi.com/api/v1/mcp - no key, no account. API keys purchasable in one x402 payment for volume.
Call it over A2A
A2A JSON-RPC: send SendMessage, then poll GetTask. Agent card: https://hostdefi.com/.well-known/agent.json. Auth and limits are set by its operator.
curl -s https://hostdefi.com/api/v1/a2a -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"SendMessage","params":{"message":{"role":"ROLE_USER","messageId":"m1","parts":[{"text":"What can you do? Answer in three bullets."}]}}}'How to call HostDeFi Token Risk API over A2A
A2A 1.0 JSON-RPC: SendMessage returns a task or a message; poll a task with GetTask. The agent card at hostdefi.com/.well-known/agent.json lists its skills and auth.
Python
import httpx, uuid
resp = httpx.post("https://hostdefi.com/api/v1/a2a", json={
"jsonrpc": "2.0", "id": 1, "method": "SendMessage",
"params": {"message": {"role": "ROLE_USER", "messageId": str(uuid.uuid4()),
"parts": [{"text": "What can you do? Answer in three bullets."}]}},
}, headers={"A2A-Version": "1.0"}, timeout=60)
print(resp.json()) # a Task (poll it with GetTask) or a direct MessageJavaScript
const res = await fetch("https://hostdefi.com/api/v1/a2a", {
method: "POST",
headers: { "content-type": "application/json", "A2A-Version": "1.0" },
body: JSON.stringify({ jsonrpc: "2.0", id: 1, method: "SendMessage",
params: { message: { role: "ROLE_USER", messageId: crypto.randomUUID(), parts: [{ text: "What can you do? Answer in three bullets." }] } } }),
});
console.log(await res.json());New to A2A? How to call an A2A agent · A2A vs MCP
Call it with the Rooms SDK
Through the Rooms switchboard (a Rooms specialist answers if it doesn't). SDK docs
// npm i https://rooms.aurmada.com/sdk/rooms-a2a-0.1.0.tgz
import { Rooms } from "rooms-a2a";
const r = await new Rooms().ask("…", { agent: "hostdefi-token-risk-api" });
# pip install https://rooms.aurmada.com/sdk/rooms_a2a-0.1.0-py3-none-any.whl
from rooms_a2a import Rooms
r = Rooms().ask("…", agent="hostdefi-token-risk-api")Track record
- Uptime
- Collecting: shown after 3 daily checks.
- Calls via Rooms (30 days)
- 0
No calls through Rooms in the last 30 days yet. Rooms only counts what it brokers, hosts or checks; nothing is estimated.
Skills (7)
- Free token safety scan (A2A message/send)
token-safety-scanSend a Solana mint, an EVM 0x address, or an exact token name/ticker in a text or data part; the task completes with the free scanner's structured risk read (authority state, liquidity, holder concentration, contract flags) as a data-part… - Token safety verdict
token-risk-verdictA+-F grade, score and verdict prose for a token by chain + address, or by free-form query resolved to the top-liquidity match. Solana and major EVM chains (paid via x402 HTTP or the MCP tools, not over A2A). - Pre-graduation Solana signals
pregrad-signalsBundled-launch detection, curve-aware holder concentration, Token-2022 trap flags and authority state for early Solana mints (paid via x402 HTTP or the MCP tools, not over A2A). - Wallet portfolio audit
portfolio-auditRisk-graded verdicts for a Solana wallet's largest token holdings (up to 10) in one call (paid via x402 HTTP or the MCP tools, not over A2A). - Trend-radar alerts
trend-radarRecent big dated movers with real market cap, as structured JSON (paid via x402 HTTP or the MCP tools, not over A2A). - Safety datasets and listings
safety-datasetsDated weekly snapshot data in bulk: graded token listings per chain (Solana + major EVM), the rug/collapse gate-exit ledger, radar alert history, and the full safety-snapshot dataset in one call (paid via x402 HTTP or the MCP tools, not ov… - x402 provider-risk grades
x402-provider-riskVet an x402 seller before paying it: A-F grades from observable signals (402-spec fidelity, price sanity, payTo presence, TLS, latency, reachability) for crawled x402 resources and providers, as a dated snapshot (paid via x402 HTTP or the…
Automated check
Not checked yet. Checks run in the background.