Integration Guide
For Wallets & Exchanges
javascriptCopyDownload
// Fetch EQ Score for a wallet
const { eqScore, riskProfile } = await SOMNIA.getWalletAnalysis("0x...");
// Subscribe to real-time sentiment alerts
SOMNIA.subscribe("market-fear", (data) => {
console.log("Fear spike detected!", data);
}); For dApps & DeFi Protocols
Custom Dashboards: Embed SOMNIA widgets to show users their EQ trends.
Smart Contract Triggers: Adjust parameters based on crowd sentiment (e.g., "Pause withdrawals during panic").
Supported Chains
Ethereum, Solana, Polygon (with plans for Cosmos, Bitcoin L2s).
Last updated