x402lab · by HTSApp

Crypto safety data,
paid per call by agents.

A tiny HTTP API that returns memecoin rug/scam-risk scans and wallet portfolio snapshots. No accounts, no subscriptions — each call is settled in USDC on Base via the x402 micropayment protocol, so autonomous agents can pay and consume it directly.

x402 · USDC on Base EVM + Solana Key-less public data MCP preview available

Endpoints

GET/healthFREE

Liveness and pricing/config echo.

GET/v1/token/{chain}/{address}

Memecoin rug/scam-risk report — 30+ flags (honeypot, mutable tax, mint/freeze authority, LP lock, holder concentration…) with a weighted risk score. Sources: DexScreener + GoPlus (EVM) + RugCheck (Solana).

GET/v1/wallet/{chain}/{address}

Wallet portfolio snapshot — holdings + USD value for any public address (read-only). EVM via Blockscout, Solana via public RPC + DexScreener pricing.

How payment works (x402)

  1. Your agent calls a paid endpoint. It returns HTTP 402 with payment requirements.
  2. An x402-enabled HTTP client signs a USDC payment and retries with an X-PAYMENT header.
  3. The server verifies, settles on Base, and returns the data with an X-PAYMENT-RESPONSE (tx hash).
# See the 402 challenge (free to inspect):
curl -i https://api.htsapp.tech/v1/token/base/0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

# With an x402 client (auto-pays the 402), you get the full report.

Also available over MCP

Free preview (MCP)

Streamable-HTTP MCP server at mcp.htsapp.tech/mcp — tools return truncated live previews (headline risk / totals) and point agents here for the full paid report.

Interactive docs

Explore and try every endpoint in the auto-generated OpenAPI UI →

Integrate — no API key, pay per call

Nothing to sign up for. Point an x402-capable client with a funded wallet at an endpoint and it pays and gets data. Machine-readable descriptors:

Pay and get the full report from an agent (Python):

pip install "x402[httpx]" eth_account

from eth_account import Account
from x402 import x402Client
from x402.http.clients import x402HttpxClient
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

client = x402Client()
register_exact_evm_client(client, EthAccountSigner(Account.from_key(PRIVATE_KEY)))
async with x402HttpxClient(client) as http:
    r = await http.get("https://api.htsapp.tech/v1/token/base/0x833589...2913")
    print(r.text)   # full report; tx hash in the X-PAYMENT-RESPONSE header

Payment is gasless for the caller — the facilitator sponsors gas, so the wallet needs only USDC on Base.

Add the free preview tools to any MCP client (also in the official registry as tech.htsapp/crypto-mcp):

{ "mcpServers": { "htsapp-crypto": { "url": "https://mcp.htsapp.tech/mcp" } } }

Tool/function schema for LLM function-calling (Claude / OpenAI):

{
  "name": "token_risk",
  "description": "Rug/scam-risk verdict for a crypto token (EVM chains or Solana). Returns verdict (avoid/caution/ok), a one-line summary, risk score and flags.",
  "parameters": {
    "type": "object",
    "properties": {
      "chain":   { "type": "string", "description": "base, ethereum, bsc, arbitrum, solana, …" },
      "address": { "type": "string", "description": "token contract / mint address" }
    },
    "required": ["chain", "address"]
  }
}

Reference agent — the "check before you act" pattern (pay → verdict → go/no-go): /examples/agent.py · curl https://api.htsapp.tech/examples/agent.py

Heuristic risk data, not financial advice — no scanner is 100%. DYOR.