--- name: einstein description: > Blockchain analytics and DeFi intelligence via Einstein's x402 micropayment services. Use when user wants on-chain market analysis, token research, whale tracking, smart money tracking, rug pull scanning, launchpad monitoring (Pump.fun, Zora, Virtuals), portfolio analysis, MEV detection, cross-chain arbitrage, or Polymarket data. Supports Base, Ethereum, BSC, Arbitrum, Polygon, Optimism, zkSync, Solana. Costs $0.25-$1.15 USDC per query via x402 protocol on Base. metadata: author: project-einstein version: "1.0.0" clawdbot: emoji: "🧠" homepage: "https://emc2ai.io" requires: bins: ["node", "curl"] env: ["EINSTEIN_X402_PRIVATE_KEY"] --- # Einstein — Blockchain Analytics via x402 Einstein provides 27 blockchain analytics services accessible via x402 micropayments (USDC on Base). Each query costs $0.25–$1.15 depending on complexity. ## Quick Start ```bash # First-time setup node scripts/einstein-setup.mjs # List all services (free) node scripts/einstein.mjs services # Run a query node scripts/einstein.mjs top-movers --chain base --limit 10 ``` **Requirements:** - Node.js 18+ - A wallet private key with USDC on Base network - Set `EINSTEIN_X402_PRIVATE_KEY` environment variable or run setup ## Service Categories | Tier | Price (Raw) | Price (+AI) | Services | |------|-------------|-------------|----------| | Basic | $0.25 | $0.40 | Latest tokens, token chart | | Standard | $0.40 | $0.55 | Top movers, top tokens, OHLCV, Virtuals, wallet holdings, holder concentration | | Platform | $0.60 | $0.75 | Zora launches/volume, Pump.fun launches/volume/graduation, BSC alpha, liquidity shifts | | Advanced | $0.85 | $1.00 | Whale intel, smart money, top traders, DEX capital, token sniping, Polymarket events | | Comprehensive | $1.00 | $1.15 | Investment report, NFT analytics, MEV detection, arbitrage scanner, rug pull scanner, Polymarket compare | **Raw** = structured data only. **+AI** = includes AI-generated analysis and insights (default). ## Usage Examples ### Market Analysis ```bash # Top movers on Base in the last 24 hours node scripts/einstein.mjs top-movers --chain base --timeperiod 1d --limit 10 # Top tokens by market cap on Ethereum node scripts/einstein.mjs top-tokens --chain ethereum --limit 20 # Latest deployed tokens with liquidity node scripts/einstein.mjs latest-tokens --chain base --limit 15 ``` ### Whale & Smart Money Intelligence ```bash # Track whale accumulation on Ethereum node scripts/einstein.mjs whale-intel --chain ethereum --limit 10 --timeperiod 7d # Smart money leaderboard on Base node scripts/einstein.mjs smart-money --chain base --limit 20 --timeperiod 7d # Capital-intensive DEX traders node scripts/einstein.mjs dex-capital --chain base --limit 10 --timeperiod 3d ``` ### Security & Risk Analysis ```bash # Scan a token for rug pull risk node scripts/einstein.mjs rug-scan --chain ethereum --token 0x1234...abcd # Detect MEV/sandwich attacks node scripts/einstein.mjs mev-detect --chain ethereum --limit 10 --timeperiod 1d # Identify early snipers on a token node scripts/einstein.mjs token-snipe --chain base --token 0x1234...abcd --limit 20 ``` ### Launchpad Monitoring ```bash # Latest Pump.fun launches on Solana node scripts/einstein.mjs pump-launches --limit 15 --timeperiod 1d # Pump.fun tokens about to graduate node scripts/einstein.mjs pump-grads --limit 10 # Zora launches on Base node scripts/einstein.mjs zora-launches --limit 10 --timeperiod 3d # Virtuals Protocol agent tokens node scripts/einstein.mjs virtuals --limit 10 --timeperiod 7d ``` ### Portfolio & Token Analysis ```bash # Check wallet holdings node scripts/einstein.mjs wallet --chain ethereum --wallet 0xd8dA... # Token holder concentration node scripts/einstein.mjs holders --chain base --token 0x1234... --limit 50 # Token price chart node scripts/einstein.mjs chart --chain base --token 0x1234... --timeperiod 7d # OHLCV data for technical analysis node scripts/einstein.mjs ohlcv --chain base --token 0x1234... --timeperiod 30d ``` ### Advanced Reports ```bash # Multi-chain investment report node scripts/einstein.mjs investment-report --chains base,ethereum,bsc --limit 10 --timeperiod 7d # Cross-chain arbitrage opportunities node scripts/einstein.mjs arbitrage --chain ethereum --limit 10 --timeperiod 1d # NFT collection analytics node scripts/einstein.mjs nft-analytics --chain ethereum --limit 10 --timeperiod 7d ``` ### Prediction Markets ```bash # Polymarket events (Polygon) node scripts/einstein.mjs polymarket --limit 10 --timeperiod 7d # Compare Polymarket API vs chain data node scripts/einstein.mjs polymarket-compare --limit 10 ``` ## How Payment Works Einstein uses the **x402 protocol** — an HTTP-native micropayment standard. Payment is automatic: 1. Your request hits Einstein's endpoint 2. Server responds with HTTP 402 + payment challenge 3. The skill signs a USDC TransferWithAuthorization (EIP-3009) using your private key 4. Request is re-sent with the payment signature 5. Coinbase CDP facilitator settles the USDC transfer on Base 6. You receive the analytics data **No accounts, no API keys, no subscriptions.** Just USDC on Base and a private key. ## Options Reference | Flag | Description | Default | |------|-------------|---------| | `--chain ` | Blockchain network | `base` | | `--limit ` | Number of results (1-500) | `10` | | `--timeperiod ` | Time window: 1d, 3d, 7d, 30d | `7d` | | `--token
` | Token contract address | — | | `--wallet
` | Wallet address | — | | `--chains ` | Comma-separated chains | — | | `--raw` | Data-only response (cheaper) | `false` | **Supported chains:** base, ethereum, bsc, solana, arbitrum, polygon, optimism, zksync ## Troubleshooting **"No private key configured"** Run `node scripts/einstein-setup.mjs` or set `EINSTEIN_X402_PRIVATE_KEY`. **"Payment rejected" / "Insufficient balance"** Your wallet needs USDC on Base. Bridge via https://bridge.base.org. **"Cannot reach emc2ai.io"** Check internet connection. The service may have temporary downtime. **"Unknown service"** Run `node scripts/einstein.mjs services` to see all available commands. ## References - `references/services-catalog.md` — Full service catalog with parameters - `references/payment-guide.md` — Detailed x402 payment protocol guide - `references/examples.md` — Extended usage examples by category