plugin-x402-alpha-data
v1.0.0
Published
Eliza plugin: paid alpha data endpoints via x402 protocol — token safety, whale tracking, yield strategies, and more.
Maintainers
Readme
plugin-x402-alpha-data
Eliza plugin: paid alpha data endpoints via x402 protocol.
Token safety, whale tracking, yield strategies, governance, sentiment — powered by on-chain data from Alchemy, DexScreener, and DeFiLlama.
Endpoints (15 paid routes)
| Route | Price | Description |
|-------|-------|-------------|
| /token-safety | $0.20 | Composite token safety score (rug check + honeypot + holder analysis) |
| /whale-moves | $0.20 | Real-time whale transfer alerts across chains |
| /whale-tx | $0.20 | Large pending transactions in mempool |
| /sandwich-detect | $0.20 | Sandwich attack detection in mempool |
| /new-coins | $0.20 | New coins launched in last 24h with risk score |
| /token-dumps | $0.19 | Token dump detection and alerts |
| /yield-strategy | $0.18 | AI-optimized yield farming strategy |
| /honeypot-check | $0.18 | Honeypot detection via bytecode analysis |
| /whale-entry | $0.17 | Whale entry point detection for tokens |
| /gas-optimal | $0.17 | Cheapest chain recommendation for bridging |
| /alpha-potential | $0.16 | Alpha potential score for early tokens |
| /smart-money | $0.10 | Smart money wallet transfers on Base |
| /sentiment | $0.10 | Token sentiment score |
| /fear-greed | $0.08 | Crypto Fear & Greed index |
| /gov-proposals | $0.06 | Active DAO proposals |
Payment
- Network: Base chain (EVM) + Solana
- Asset: USDC
- Protocol: x402 micropayment
Installation
# In your Eliza project
bun add @sna4an/plugin-x402-alpha-dataThen add to your agent's plugins:
import alphaDataPlugin from "@sna4an/plugin-x402-alpha-data";
const agent = {
plugins: [alphaDataPlugin],
// ...
};Usage
Other agents can call the paid routes. The x402 protocol handles payment automatically.
// From another Eliza agent
const res = await fetch("https://your-agent.com/alpha-data/token-safety", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ address: "0xabc...", chain: "base" }),
});
// Agent pays $0.20 USDC automatically via x402
const data = await res.json();How It Works
AI Agent (Eliza)
↓ install plugin-x402-alpha-data
↓ call /token-safety
↓
Plugin route handler
↓ proxy to Vercel endpoint
↓ https://x402-trading-hub-v2.vercel.app/api/rug/token-safety
↓
x402 Protocol
↓ $0.20 USDC payment
↓
Your Wallet ← payment received!License
MIT
