grid402-plugin-elizaos
v1.1.0
Published
Grid402 Official ElizaOS Plugin for 31 Real-Time Open Data, Web3 Token Safety, Prediction Markets, SEC EDGAR, Vuln Audit, Chain Telemetry, Batch & Compliance APIs on Base & Solana
Maintainers
Readme
grid402-plugin-elizaos // Official ElizaOS Plugin for Grid402
Official ElizaOS plugin for Grid402: the autonomous open data and network utility hub on Base Mainnet (8453) powered by the HTTP x402 micropayment protocol.
Equip your AI agents with real-time financial market tickers, global corporate identity, OFAC/AML sanctions screening, and Brazilian government records with zero API keys or monthly subscriptions.
⚡ Features & Actions Included (v1.1.0 — 31 API Services Parity)
| Action | Description | Settlement / Cost |
|---|---|---|
| GET_FOREX_RATE | Real-time commercial exchange rates for USD, EUR, and GBP to BRL | 0.0050 USDC (or Session Pass) |
| GET_CRYPTO_PRICE | Spot market tickers and 24h variation for BTC, ETH, SOL, USDC, BASE | 0.0050 USDC (or Session Pass) |
| GET_GLOBAL_MARKETS | ECB reference rates (30+ currencies) and stock exchange holiday status (NYSE/LSE) | 0.0050 USDC (or Session Pass) |
| CHECK_SANCTIONS_OFAC | Real-time AML compliance check against US Treasury OFAC SDN, UN, EU, UK & DFAT lists | 0.0200 USDC (or Session Pass) |
| LOOKUP_LEI | GLEIF Legal Entity Identifier (ISO 17442) verification across 200+ countries | 0.0100 USDC (or Session Pass) |
| LOOKUP_CNPJ | Brazilian Federal Revenue corporate registry, status, CNAE, and location | 0.0100 USDC (or Session Pass) |
| GET_DOSSIER_360 | Brazil KYB 360° dossier (CNPJ + Simples/MEI + CGU CEIS/CNEP + AI verdict) | 0.0500 USDC (or Session Pass) |
| CHECK_TOKEN_SAFETY | Multi-chain token risk score (0-100), honeypot & DEX liquidity via GoPlus + DexScreener | 0.0150 USDC (or Session Pass) |
| GET_PREDICTION_MARKETS | Normalized prediction market odds, 24h volume & liquidity (Polymarket + Kalshi) | 0.0100 USDC (or Session Pass) |
| GET_CHAIN_TELEMETRY | Live RPC block/slot, gas/priority fees, latency & DeFiLlama TVL (Base/ETH/Polygon/Arb/Solana) | 0.0050 USDC (or Session Pass) |
| LOOKUP_SEC_COMPANY | US SEC EDGAR company profile, 10-K/10-Q/8-K filings & optional XBRL facts | 0.0100 USDC (or Session Pass) |
| AUDIT_VULNERABILITY | Package & CVE/GHSA vulnerability audit combining OSV.dev + CISA KEV | 0.0050 USDC (or Session Pass) |
| EXECUTE_BATCH_QUERY | Multi-service batch execution (1-5 items via POST /api/v1/batch) with exact item-sum billing | Dynamic item sum |
Client HTTP (
Grid402Client): além dos 13 Actions acima, expõeemailVerify(email)(viaPOST /api/v1/email-verifyZero-PII),tokenSafety(),predictionMarkets(),secCompany(),vulnAudit(),chainTelemetry(),batch()erequest()para todos os 31 serviços da API Grid402.
📦 Installation
npm install grid402-plugin-elizaosOr install locally in your Eliza project:
pnpm add ./integrations/elizaos🚀 Quick Setup in Your Eliza Character
Add grid402Plugin to your character JSON or TypeScript configuration:
import { grid402Plugin } from "grid402-plugin-elizaos";
export const myAgentCharacter = {
name: "DeFiMarketAnalyst",
plugins: [grid402Plugin],
settings: {
secrets: {
// 1-Click Top-Up Pass Token from https://grid402.online/pass
GRID402_PASS_TOKEN: "pass_g402_live..._..."
}
}
};🔑 Environment Variables
| Variable | Description | Default |
|---|---|---|
| GRID402_PASS_TOKEN | Pre-paid Session Pass token for fast-track queries (<15ms latency). Buy passes at grid402.online/pass. | Optional |
| GRID402_SANDBOX | Set to true to enable free testing mode (up to 3 queries/day per IP). | false |
| GRID402_BASE_URL | Base API URL. | https://grid402.online |
💡 How Session Passes Work (Zero Friction M2M)
Instead of signing an on-chain transaction for every single HTTP GET request:
- Top up 2 USDC, 5 USDC, or 20 USDC (or Pix R$ 12) once at https://grid402.online/pass.
- Receive your
pass_g402_live...token (400 to 6,000 credits; 1 credit = 0.0050 USDC). - Provide the token in
GRID402_PASS_TOKEN. Your Eliza agent will execute instant queries with <15ms response times.
📜 License & Compliance
MIT License. All open data records provided by Grid402 comply strictly with public domain directives: CC0 1.0 Universal (GLEIF), 17 U.S.C. § 105 (US OFAC Public Domain), and EU Open Data Directive 2019/1024.
