# Address Poisoning Detection Source: https://docs.webacy.com/address-poisoning Detect and classify address poisoning attacks with Webacy's onchain analysis of lookalike addresses, transaction patterns, and attacker infrastructure. The Address Poisoning engine detects and classifies blockchain transactions designed to deceive users into sending assets to fraudulent wallet addresses. By analyzing transaction patterns, wallet relationships, address similarity, and behavioral signals, Webacy identifies poisoning campaigns before they result in financial loss. Unlike traditional fraud detection systems that focus on completed attacks, Address Poisoning identifies the malicious infrastructure itself, allowing wallets, exchanges, custodians, and applications to warn users before funds are sent. ![H Ds Rh U Pb UAA Sxh](https://mintcdn.com/webacy/WOwccSluwNfjURJB/images/HDsRhUPbUAA_sxh.jpg?fit=max\&auto=format\&n=WOwccSluwNfjURJB\&q=85\&s=f8342ad4c9e91917f9f327c1daecf538) ## What is Address Poisoning? Address poisoning is a blockchain scam in which attackers send small transactions from wallet addresses that closely resemble legitimate ones. Their goal is to trick users into copying the malicious address from their transaction history and accidentally sending funds to the attacker in a future transaction. Because blockchain addresses are long and difficult to verify at a glance, these attacks exploit human behavior rather than technical vulnerabilities. Webacy continuously detects and tracks address poisoning campaigns across supported blockchains, helping wallets, exchanges, and applications identify malicious addresses before users interact with them. ## Built on Real-World Intelligence Webacy maintains one of the industry's largest historical datasets of address poisoning activity, continuously monitoring new campaigns across supported blockchains. Every confirmed poisoning event strengthens the detection engine, allowing it to recognize recurring attacker behaviors, emerging techniques, and evolving campaign infrastructure. This historical intelligence is integrated directly into the Webacy Risk Framework, improving detection accuracy as new attacks emerge. ## Common Use Cases * Wallet security * Transaction warnings * Exchange protection * Fraud prevention * Consumer applications * AI transaction review * Treasury operations ## What's Next > [card] [Supported Blockchains](/supported-blockchains) > > Explore the blockchain networks currently supported across the Webacy intelligence platform. # Trading Bot Risk Engine Source: https://docs.webacy.com/agentic/trading-bot-risk-engine Add sub-200ms token risk screening to your trading bot or sniper to filter honeypots, hidden taxes, sniper clusters, and low-liquidity traps before buying. Your bot finds a 10x opportunity—a new token trending on social with an early chart that looks perfect. You buy in automatically. When you try to take profit, nothing happens—there's a 95% sell tax. The token is a honeypot designed to trap bots. This guide shows you how to filter the noise and protect your capital. ## Why Bots Need Risk Screening > [card] Speed + Safety > > Sub-second screening that doesn't slow down execution > [card] Honeypot Detection > > Catch traps before capital gets locked > [card] Sniper Detection > > Know when you're competing against coordinated actors **Why trading bot developers choose Webacy:** * **Trading Lite API** — Sub-200ms token screening optimized for bots * **Honeypot detection** — Don't buy what you can't sell * **Hidden tax detection** — Expose the real cost before buying * **Holder analysis** — Detect sniper clusters and bundler activity * **Liquidity analysis** — Verify there's enough depth to exit * **Multi-chain support** — Solana, Base, ETH, and more *** ## Prerequisites Before implementing risk screening, ensure you have: * A Webacy API key ([sign up here](https://developers.webacy.co/billing)) * Basic familiarity with REST APIs or the [Webacy SDK](../sdk/installation) * Your bot's trade execution flow identified for integration points *** ## Fast Token Screening Speed is critical for trading bots. The Trading Lite API is optimized for sub-second decisions. ### Trading Lite API (Solana) Get essential risk data in under 200ms. > [!WARNING] > > Trading Lite is currently available for **Solana only**. For EVM chains, use the standard contract analysis endpoints. ```bash cURL theme={null} curl -X GET "https://api.webacy.com/trading-lite/TokenMintAddress..." \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} import { TradingClient, Chain } from '@webacy-xyz/sdk'; const client = new TradingClient({ apiKey: process.env.WEBACY_API_KEY }); const analysis = await client.tradingLite.analyze('PumpTokenMint...'); // Quick decision const shouldBuy = analysis.riskScore < 40 && !analysis.isHoneypot && analysis.liquidity > 10000; if (shouldBuy) { console.log('✓ Token passed screening'); } else { console.log('✗ Token failed screening'); console.log(` Risk: ${analysis.riskScore}, Honeypot: ${analysis.isHoneypot}`); } ``` ```python Python theme={null} import requests response = requests.get( "https://api.webacy.com/trading-lite/TokenMintAddress...", headers={"x-api-key": "YOUR_API_KEY"} ) analysis = response.json() # Quick decision should_buy = ( analysis.get("riskScore", 100) < 40 and not analysis.get("isHoneypot", True) and analysis.get("liquidity", 0) > 10000 ) ``` **Response fields:** | Field | Type | Description | | - | - | - | | `riskScore` | number | 0-100 overall risk score | | `isHoneypot` | boolean | Can you sell this token? | | `liquidity` | number | Total liquidity in USD | | `holderCount` | number | Number of token holders | ### Honeypot Detection The most critical check—don't buy what you can't sell. ```typescript theme={null} interface TradeDecision { action: 'buy' | 'skip'; reason: string; riskScore: number; } async function evaluateToken(mint: string): Promise { const analysis = await client.tradingLite.analyze(mint); // Immediate rejection: honeypot if (analysis.isHoneypot) { return { action: 'skip', reason: 'Honeypot detected - cannot sell', riskScore: 100, }; } // Risk score threshold if (analysis.riskScore > 60) { return { action: 'skip', reason: `High risk score: ${analysis.riskScore}`, riskScore: analysis.riskScore, }; } // Liquidity threshold if (analysis.liquidity < 5000) { return { action: 'skip', reason: `Insufficient liquidity: $${analysis.liquidity}`, riskScore: analysis.riskScore, }; } return { action: 'buy', reason: 'Passed all checks', riskScore: analysis.riskScore, }; } ``` ### Tax Detection Hidden taxes can destroy profitability. A 10x gain means nothing with a 90% sell tax. ```bash cURL theme={null} curl -X GET "https://api.webacy.com/contracts/0xTokenAddress.../tax?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} import { ThreatClient, Chain } from '@webacy-xyz/sdk'; const threatClient = new ThreatClient({ apiKey: process.env.WEBACY_API_KEY }); const tax = await threatClient.contracts.getTax( '0xTokenAddress...', { chain: Chain.ETH } ); // Calculate effective profit threshold const buyTax = tax.buyTax / 100; const sellTax = tax.sellTax / 100; const taxDrag = 1 - ((1 - buyTax) * (1 - sellTax)); console.log(`Total tax drag: ${(taxDrag * 100).toFixed(2)}%`); // Example: If buy tax is 5% and sell tax is 10% // You lose 5% on buy, then 10% of remaining on sell // Total drag: 1 - (0.95 * 0.90) = 14.5% if (taxDrag > 0.20) { console.log('⚠️ High tax drag - need significant price movement to profit'); } ``` ```python Python theme={null} response = requests.get( "https://api.webacy.com/contracts/0xTokenAddress.../tax", params={"chain": "eth"}, headers={"x-api-key": "YOUR_API_KEY"} ) tax = response.json() buy_tax = tax.get("buyTax", 0) / 100 sell_tax = tax.get("sellTax", 0) / 100 tax_drag = 1 - ((1 - buy_tax) * (1 - sell_tax)) print(f"Total tax drag: {tax_drag * 100:.2f}%") ``` **Tax thresholds for bots:** | Scenario | Max Tax | Reasoning | | - | - | - | | Scalping | 3% total | Need tight spreads | | Swing trading | 10% total | Can absorb some tax | | Long-term | 15% total | Price appreciation covers tax | | Never trade | > 25% | Likely scam | *** ## Sniper & Bundler Detection Know what you're up against. If coordinated actors are already in, you're probably late. ### Holder Analysis ```bash cURL theme={null} curl -X GET "https://api.webacy.com/holder-analysis/TokenMint...?chain=sol" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} const holders = await client.holderAnalysis.get( 'TokenMint...', { chain: Chain.SOL } ); console.log(`Snipers: ${holders.sniperCount}`); console.log(`Bundlers: ${holders.bundlerCount}`); console.log(`Top 10 %: ${holders.top10Percentage}%`); // Sniper analysis if (holders.sniperCount > 5) { console.warn('⚠️ Heavy sniper activity - likely coordinated'); } // Bundler analysis (multiple wallets acting as one) if (holders.bundlerCount > 2) { console.warn('⚠️ Bundler activity detected - insider accumulation'); } // Concentration analysis if (holders.top10Percentage > 70) { console.warn('⚠️ High concentration - dump risk'); } ``` ```python Python theme={null} response = requests.get( "https://api.webacy.com/holder-analysis/TokenMint...", params={"chain": "sol"}, headers={"x-api-key": "YOUR_API_KEY"} ) holders = response.json() # Check for coordinated activity is_sniped = holders.get("sniperCount", 0) > 5 has_bundlers = holders.get("bundlerCount", 0) > 2 high_concentration = holders.get("top10Percentage", 0) > 70 ``` ### Launch Screening For new token launches, check the first buyers. ```typescript theme={null} interface LaunchAnalysis { safeToEnter: boolean; sniperRisk: 'low' | 'medium' | 'high'; bundlerRisk: 'low' | 'medium' | 'high'; concentrationRisk: 'low' | 'medium' | 'high'; reasons: string[]; } async function analyzeLaunch(mint: string): Promise { const holders = await client.holderAnalysis.get(mint, { chain: Chain.SOL }); const reasons: string[] = []; // Evaluate sniper risk let sniperRisk: 'low' | 'medium' | 'high' = 'low'; if (holders.sniperCount > 10) { sniperRisk = 'high'; reasons.push(`${holders.sniperCount} snipers detected`); } else if (holders.sniperCount > 5) { sniperRisk = 'medium'; } // Evaluate bundler risk let bundlerRisk: 'low' | 'medium' | 'high' = 'low'; if (holders.bundlerCount > 3) { bundlerRisk = 'high'; reasons.push(`${holders.bundlerCount} bundler clusters`); } else if (holders.bundlerCount > 1) { bundlerRisk = 'medium'; } // Evaluate concentration risk let concentrationRisk: 'low' | 'medium' | 'high' = 'low'; if (holders.top10Percentage > 80) { concentrationRisk = 'high'; reasons.push(`Top 10 hold ${holders.top10Percentage}%`); } else if (holders.top10Percentage > 60) { concentrationRisk = 'medium'; } // Overall decision const highRisks = [sniperRisk, bundlerRisk, concentrationRisk] .filter(r => r === 'high').length; const safeToEnter = highRisks === 0; return { safeToEnter, sniperRisk, bundlerRisk, concentrationRisk, reasons, }; } ``` *** ## Liquidity Checks Ensure you can exit your position. ### Pool Analysis ```bash cURL theme={null} curl -X GET "https://api.webacy.com/tokens/TokenAddress.../pools?chain=sol" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} const pools = await client.tokens.getPools( 'TokenAddress...', { chain: Chain.SOL } ); // Calculate total liquidity const totalLiquidity = pools.pools.reduce( (sum, pool) => sum + pool.liquidity, 0 ); // Calculate safe position size (max 2% of liquidity) const maxPositionSize = totalLiquidity * 0.02; console.log(`Total liquidity: $${totalLiquidity.toLocaleString()}`); console.log(`Max safe position: $${maxPositionSize.toLocaleString()}`); // Check if position is viable const intendedPosition = 1000; // $1000 if (intendedPosition > maxPositionSize) { console.warn(`⚠️ Position too large for liquidity`); console.warn(` Intended: $${intendedPosition}, Max: $${maxPositionSize}`); } ``` ```python Python theme={null} response = requests.get( "https://api.webacy.com/tokens/TokenAddress.../pools", params={"chain": "sol"}, headers={"x-api-key": "YOUR_API_KEY"} ) pools = response.json() total_liquidity = sum(p.get("liquidity", 0) for p in pools.get("pools", [])) max_position = total_liquidity * 0.02 # 2% of liquidity print(f"Total liquidity: ${total_liquidity:,.2f}") print(f"Max safe position: ${max_position:,.2f}") ``` ### Slippage Estimation ```typescript theme={null} function estimateSlippage(positionSize: number, liquidity: number): number { // Simple constant product formula approximation // Real slippage depends on pool type and depth distribution const impactRatio = positionSize / liquidity; const slippage = impactRatio * 100 * 2; // 2x for round trip return Math.min(slippage, 100); // Cap at 100% } // Usage const liquidity = 50000; // $50k in pool const position = 5000; // $5k trade const expectedSlippage = estimateSlippage(position, liquidity); console.log(`Expected slippage: ~${expectedSlippage.toFixed(2)}%`); // Decision threshold if (expectedSlippage > 5) { console.warn('⚠️ High slippage expected - reduce position size'); } ``` *** ## Complete Integration Workflow ### Bot Decision Flow ```mermaid theme={null} flowchart TD A[Signal Detected] --> B{Trading Lite Check} B -->|Honeypot| C["❌ SKIP - Honeypot"] B -->|Risk > 60| D["❌ SKIP - High Risk"] B -->|Pass| E{Tax Check} E -->|Tax > 20%| F["❌ SKIP - High Tax"] E -->|Pass| G{Holder Analysis} G -->|Snipers > 10| H["⚠️ FLAG - Heavy sniping"] G -->|Top 10 > 80%| I["⚠️ FLAG - Concentrated"] G -->|Pass| J{Liquidity Check} H --> J I --> J J -->|Liq < Position * 50| K["❌ SKIP - Low liquidity"] J -->|Pass| L["✅ EXECUTE Trade"] ``` ### Full TypeScript Implementation > [accordion] Complete Trading Bot Risk Engine > > ```typescript theme={null} > import { TradingClient, ThreatClient, Chain } from '@webacy-xyz/sdk'; > > const tradingClient = new TradingClient({ > apiKey: process.env.WEBACY_API_KEY, > defaultChain: Chain.SOL, > }); > > const threatClient = new ThreatClient({ > apiKey: process.env.WEBACY_API_KEY, > }); > > interface RiskEngineResult { > shouldTrade: boolean; > maxPositionUsd: number; > riskScore: number; > flags: string[]; > metrics: { > liquidity: number; > buyTax: number; > sellTax: number; > sniperCount: number; > bundlerCount: number; > top10Concentration: number; > }; > } > > // Main risk engine function > async function evaluateToken( > tokenAddress: string, > chain: Chain, > intendedPositionUsd: number > ): Promise { > const flags: string[] = []; > > // Step 1: Quick check (Trading Lite for Solana, contract analysis for EVM) > let quickCheck: { riskScore: number; isHoneypot: boolean; liquidity: number }; > > if (chain === Chain.SOL) { > quickCheck = await tradingClient.tradingLite.analyze(tokenAddress); > } else { > // EVM chains - use contract analysis > const contract = await threatClient.contracts.analyze(tokenAddress, { chain }); > const pools = await tradingClient.tokens.getPools(tokenAddress, { chain }); > const totalLiquidity = pools.pools.reduce((sum, p) => sum + p.liquidity, 0); > > quickCheck = { > riskScore: contract.overallRisk, > isHoneypot: contract.isHoneypot ?? false, > liquidity: totalLiquidity, > }; > } > > // Immediate rejection: honeypot > if (quickCheck.isHoneypot) { > return { > shouldTrade: false, > maxPositionUsd: 0, > riskScore: 100, > flags: ['HONEYPOT DETECTED'], > metrics: { > liquidity: quickCheck.liquidity, > buyTax: 0, > sellTax: 100, > sniperCount: 0, > bundlerCount: 0, > top10Concentration: 0, > }, > }; > } > > // Step 2: Tax analysis (EVM only) > let buyTax = 0; > let sellTax = 0; > > if (chain !== Chain.SOL) { > try { > const tax = await threatClient.contracts.getTax(tokenAddress, { chain }); > buyTax = tax.buyTax; > sellTax = tax.sellTax; > > if (sellTax > 25) { > flags.push(`EXTREME SELL TAX: ${sellTax}%`); > } else if (sellTax > 10) { > flags.push(`High sell tax: ${sellTax}%`); > } > > if (buyTax > 10) { > flags.push(`High buy tax: ${buyTax}%`); > } > } catch { > // Tax check failed - proceed with caution > flags.push('Tax check unavailable'); > } > } > > // Step 3: Holder analysis > let sniperCount = 0; > let bundlerCount = 0; > let top10Concentration = 0; > > try { > const holders = await tradingClient.holderAnalysis.get(tokenAddress, { chain }); > sniperCount = holders.sniperCount; > bundlerCount = holders.bundlerCount; > top10Concentration = holders.top10Percentage; > > if (sniperCount > 10) { > flags.push(`Heavy sniping: ${sniperCount} snipers`); > } > > if (bundlerCount > 3) { > flags.push(`Bundler activity: ${bundlerCount} clusters`); > } > > if (top10Concentration > 80) { > flags.push(`High concentration: Top 10 hold ${top10Concentration}%`); > } > } catch { > flags.push('Holder analysis unavailable'); > } > > // Step 4: Calculate max position based on liquidity > const liquidity = quickCheck.liquidity; > const maxPositionUsd = liquidity * 0.02; // 2% of liquidity > > if (intendedPositionUsd > maxPositionUsd) { > flags.push(`Position too large for liquidity`); > } > > if (liquidity < 5000) { > flags.push(`Low liquidity: $${liquidity.toLocaleString()}`); > } > > // Final decision > const criticalFlags = flags.filter(f => > f.includes('EXTREME') || > f.includes('HONEYPOT') || > f.includes('Position too large') > ); > > const shouldTrade = > !quickCheck.isHoneypot && > quickCheck.riskScore < 60 && > sellTax < 25 && > liquidity >= intendedPositionUsd * 50 && > criticalFlags.length === 0; > > return { > shouldTrade, > maxPositionUsd, > riskScore: quickCheck.riskScore, > flags, > metrics: { > liquidity, > buyTax, > sellTax, > sniperCount, > bundlerCount, > top10Concentration, > }, > }; > } > > // Batch evaluation for multiple tokens > async function evaluateTokenBatch( > tokens: Array<{ address: string; chain: Chain }>, > positionSizeUsd: number > ): Promise> { > const results = new Map(); > > // Process in parallel (up to 10 at a time) > const batchSize = 10; > > for (let i = 0; i < tokens.length; i += batchSize) { > const batch = tokens.slice(i, i + batchSize); > const batchResults = await Promise.all( > batch.map(t => evaluateToken(t.address, t.chain, positionSizeUsd)) > ); > > batch.forEach((token, index) => { > results.set(token.address, batchResults[index]); > }); > } > > return results; > } > > // Pre-trade checklist > async function preTradeCheck( > tokenAddress: string, > chain: Chain, > positionUsd: number > ): Promise<{ > approved: boolean; > checklist: Array<{ check: string; passed: boolean; details: string }>; > }> { > const evaluation = await evaluateToken(tokenAddress, chain, positionUsd); > > const checklist = [ > { > check: 'Not a honeypot', > passed: evaluation.metrics.sellTax < 100, > details: evaluation.metrics.sellTax >= 100 ? 'Cannot sell' : 'Sellable', > }, > { > check: 'Acceptable tax', > passed: evaluation.metrics.sellTax < 15, > details: `Buy: ${evaluation.metrics.buyTax}%, Sell: ${evaluation.metrics.sellTax}%`, > }, > { > check: 'Sufficient liquidity', > passed: evaluation.metrics.liquidity >= positionUsd * 50, > details: `$${evaluation.metrics.liquidity.toLocaleString()} available`, > }, > { > check: 'Not heavily sniped', > passed: evaluation.metrics.sniperCount < 10, > details: `${evaluation.metrics.sniperCount} snipers detected`, > }, > { > check: 'Not concentrated', > passed: evaluation.metrics.top10Concentration < 80, > details: `Top 10 hold ${evaluation.metrics.top10Concentration}%`, > }, > { > check: 'Risk score acceptable', > passed: evaluation.riskScore < 60, > details: `Score: ${evaluation.riskScore}/100`, > }, > ]; > > return { > approved: checklist.every(c => c.passed), > checklist, > }; > } > > // Usage example > async function main() { > const token = 'PumpTokenMint...'; > const positionSize = 500; // $500 > > const check = await preTradeCheck(token, Chain.SOL, positionSize); > > console.log('\nPre-Trade Checklist:'); > console.log('=================='); > > for (const item of check.checklist) { > const status = item.passed ? '✓' : '✗'; > console.log(`${status} ${item.check}: ${item.details}`); > } > > console.log('=================='); > console.log(`Decision: ${check.approved ? 'APPROVED' : 'REJECTED'}`); > } > ``` *** ## Example Tokens for Testing ### Solana Tokens Test against tokens from Pump.fun, Raydium, and Jupiter trending lists. Scam tokens are deployed constantly, so live data is the best test data. ### EVM Test Tokens | Address | Chain | Description | | - | - | - | | `0xdAC17F958D2ee523a2206206994597C13D831ec7` | ETH | USDT - safe, no tax | | `0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48` | ETH | USDC - safe baseline | > [!NOTE] > > **Testing tip**: For realistic testing, grab tokens from live trending feeds and run them through your risk engine. This gives you real data on current scam patterns. *** ## Performance Optimization ### Caching Strategy ```typescript theme={null} // Cache results to reduce API calls const cache = new Map(); const CACHE_TTL = 60 * 1000; // 1 minute async function evaluateWithCache( tokenAddress: string, chain: Chain, positionUsd: number ): Promise { const cacheKey = `${tokenAddress}-${chain}`; const cached = cache.get(cacheKey); if (cached && Date.now() - cached.timestamp < CACHE_TTL) { return cached.result; } const result = await evaluateToken(tokenAddress, chain, positionUsd); cache.set(cacheKey, { result, timestamp: Date.now() }); return result; } ``` ### Parallel Processing ```typescript theme={null} // Evaluate multiple tokens in parallel async function batchEvaluate( tokens: string[], chain: Chain, positionUsd: number ): Promise> { const results = await Promise.all( tokens.map(t => evaluateToken(t, chain, positionUsd)) ); return new Map(tokens.map((t, i) => [t, results[i]])); } ``` *** ## API Quick Reference | Endpoint | Use Case | Response Time | | - | - | - | | `GET /trading-lite/{address}` | Quick analysis (SOL) | \~200ms | | `GET /contracts/{address}` | Contract analysis | \~500ms | | `GET /contracts/{address}/tax` | Tax detection | \~300ms | | `GET /holder-analysis/{address}` | Holder distribution | \~400ms | | `GET /tokens/{address}/pools` | Liquidity pools | \~300ms | *** ## Next Steps > [card] [Get Your API Key](https://developers.webacy.co/billing) > > Start screening tokens today > [card] [Trading Client SDK](../sdk/trading-client) > > SDK for holder analysis > [card] [Honeypots Explained](../glossary/honeypots) > > Deep dive on honeypot mechanics > [card] [Snipers & Bundlers](../glossary/snipers-bundlers) > > Understand coordinated trading # Detect address poisoning on a wallet address Source: https://docs.webacy.com/api-reference/address-poisoning/detect-address-poisoning-for-a-specific-wallet-address GET /addresses/{address}/poisoning Checks if a given wallet address has been targeted by similar-looking addresses in potential poisoning attacks. `poisoners` names the look-alike addresses and the real counterparties they imitate. In address risk responses the scanned wallet gets the informational `address_poisoning_target` tag (no score), and each poisoner is tagged `address_poisoner` (medium risk). # Get API usage for specified dates Source: https://docs.webacy.com/api-reference/api-usage/get-api-usage-for-specified-dates GET /usage Retrieve API usage statistics for a specified date range. Dates are returned in ascending order, limited to [from, min(to, today)] (UTC). On a live response for a range of up to 366 days every day in that range is present; days with no traffic are zero-filled with `remainingQuota: null`. Wider ranges are only sorted, not zero-filled. A cache-served response (`use-cache=true` or `stale: true`) only contains the days that were persisted, because later days are unknown rather than zero. `usedQuota` is a request count, not compute units (CU). # Get current API usage Source: https://docs.webacy.com/api-reference/api-usage/get-current-api-usage GET /usage/current Get current billing-period API usage by endpoint. Each route reports real served-request consumption from Datadog completion logs plus AWS quota state. `remaining` and `limit` are null for unlimited plans. Cache-served responses—requested with `use-cache=true` or used when a live provider is rate-limited—add the `stale` and `generated_at` markers plus the X-Data-Age-Seconds header. # Get current CU usage Source: https://docs.webacy.com/api-reference/api-usage/get-current-cu-usage GET /usage/cu Returns the compute units (CU) your organization has used in the current billing period. Each request is charged at the CU pricing in effect when it was served. The period is your current subscription period in whole UTC days, or the current UTC calendar month if you have no active subscription period. `cuLimit`, `cuRemaining` and `usagePercentage` are null when your organization has no CU allowance. # Get daily CU usage Source: https://docs.webacy.com/api-reference/api-usage/get-daily-cu-usage GET /usage/cu/daily Returns the compute units (CU) and CU-metered requests your organization used per UTC day in [from, to]. The range spans at most 92 days, inclusive. Only days with usage are listed, so a missing day means no usage was recorded for it. Daily history starts in October 2026; earlier days have no data. Daily figures are recorded separately from the period total returned by GET /usage/cu and can differ slightly from it. # Get open approvals with risk data on a wallet address Source: https://docs.webacy.com/api-reference/approval-risks/approvals-with-threat-risks GET /addresses/{address}/approvals Retrieve token approvals for an address with associated threat risk analysis # Authenticate with the Webacy API using API keys Source: https://docs.webacy.com/api-reference/authentication Learn how to authenticate with the Webacy API using API key headers, manage keys across environments, and handle rate limits for production traffic. ## API Keys All API requests require authentication using an API key passed in the `x-api-key` header. ### Getting Your API Key 1. Visit [developers.webacy.co](https://developers.webacy.co/) to sign up 2. Generate your API key 3. Copy and securely store your key > [!WARNING] > > Keep your API key secure. Do not expose it in client-side code or public repositories. ### Troubleshooting API key creation If you hit an error while creating a key on [developers.webacy.co](https://developers.webacy.co/), try the steps below before contacting support. | Symptom | What to try | | - | - | | `The security token included in the request is invalid` (or a similar session error when clicking **Create API key**) | Sign out of the developer portal and sign back in. Portal sessions expire and must be refreshed before a new key can be issued. | | The **Create API key** button does nothing, or the page fails to load | Clear your browser cache and cookies for `developers.webacy.co`, then reload. Stale cached assets are a common cause. | | Errors persist after re-authenticating and clearing the cache | Retry in a private/incognito window or a different browser to rule out extensions and cookies. | | Key was created but immediately returns `401` or `403` | Confirm you copied the full key with no whitespace and that you are sending it in the `x-api-key` header, not `Authorization`. See [Authentication Errors](#authentication-errors) below. | If the issue continues after these steps, contact Webacy support with the exact error message and a timestamp. ## Using Your API Key Include your API key in the `x-api-key` header with every request: ```bash theme={null} x-api-key: YOUR_API_KEY ``` ### Example Requests ```bash cURL theme={null} curl -X GET "https://api.webacy.com/addresses/0x742d35Cc6634C0532925a3b844Bc454e4438f44e?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` ```javascript JavaScript theme={null} const response = await fetch( 'https://api.webacy.com/addresses/0x742d35Cc6634C0532925a3b844Bc454e4438f44e?chain=eth', { headers: { 'x-api-key': 'YOUR_API_KEY' } } ); const data = await response.json(); console.log(data); ``` ```python Python theme={null} import requests response = requests.get( 'https://api.webacy.com/addresses/0x742d35Cc6634C0532925a3b844Bc454e4438f44e', params={'chain': 'eth'}, headers={'x-api-key': 'YOUR_API_KEY'} ) print(response.json()) ``` ```go Go theme={null} package main import ( "fmt" "net/http" "io" ) func main() { req, _ := http.NewRequest("GET", "https://api.webacy.com/addresses/0x742d35Cc6634C0532925a3b844Bc454e4438f44e?chain=eth", nil) req.Header.Set("x-api-key", "YOUR_API_KEY") client := &http.Client{} resp, _ := client.Do(req) defer resp.Body.Close() body, _ := io.ReadAll(resp.Body) fmt.Println(string(body)) } ``` ## Authentication Errors | Status Code | Description | | - | - | | 401 | Missing or invalid API key | | 403 | API key lacks required permissions | | 429 | Rate limit exceeded (see [Rate Limits](/rate-limits)) | ### Example Error Response ```json theme={null} { "message": "Unauthorized" } ``` ## Best Practices > [!TIP] > > Store your API key in environment variables, not in your code. * **Rotate keys periodically** - Generate new keys and deprecate old ones on a regular schedule * **Use separate keys** - Maintain different keys for development, staging, and production * **Monitor usage** - Check the [API Usage](/api-reference/api-usage/get-current-api-usage) endpoint regularly * **Revoke compromised keys** - If a key is exposed, revoke it immediately in your dashboard * **Server-side only** - Never expose your API key in client-side code or mobile apps # Get full risk analysis for a contract address Source: https://docs.webacy.com/api-reference/contract-risk/get-a-real-time-analysis-for-a-given-contract-address GET /contracts/{contractAddress} Perform real-time security analysis on a smart contract including vulnerability detection. Returns the full contract risk report (score, tags, metadata, asset type, deployer, provider status). Source-code security analysis is included inline under source_code_analysis. To fetch only those source-code findings, use GET /contracts/{contractAddress}/code-analysis. > [!NOTE] > > This is the **full** contract risk report. Source-code findings are included inline under `source_code_analysis`. Need only those findings? See [Get only the source-code findings](/api-reference/contract-risk/get-source-code-analysis-for-a-contract). # Get only the source-code findings for a contract address Source: https://docs.webacy.com/api-reference/contract-risk/get-source-code-analysis-for-a-contract GET /contracts/{contractAddress}/code-analysis Returns just the source-code (Solidity) analysis for a contract: the same source_code_analysis block already embedded in the real-time endpoint (GET /contracts/{contractAddress}). Use this when you want the source-code findings alone, without the rest of the risk payload. If you already call the real-time endpoint, you don't need this one. > [!NOTE] > > This returns **only** the `source_code_analysis` block, which is already embedded in the [full contract risk report](/api-reference/contract-risk/get-a-real-time-analysis-for-a-given-contract-address). If you already call that endpoint, you don't need this one. # Get verified source code for a contract address Source: https://docs.webacy.com/api-reference/contract-risk/get-verified-source-code-for-a-contract GET /source-code/{contractAddress} Returns verified source code payload from the respective block explorer (EVM) if available. Caches results. This is the raw verified source code only, with no detector analysis; for source-code security findings use GET /contracts/{contractAddress}/code-analysis. > [!NOTE] > > This returns the **raw verified source code** only, with no detector analysis. For source-code security findings, use [Get only the source-code findings](/api-reference/contract-risk/get-source-code-analysis-for-a-contract). # Depeg Monitor Source: https://docs.webacy.com/api-reference/depeg-monitor Use the Webacy depeg monitor endpoints to track stablecoin and RWA peg deviations in real time, with thresholds, severity bands, and event history. ## Overview The Depeg Monitor gives you real-time risk ratings for 600+ pegged tokens (stablecoins, RWAs, gold-backed, yield-bearing) across 7 EVM chains (Ethereum, Arbitrum, Base, BNB Chain, Polygon, Optimism, Avalanche) and Solana. Ratings are updated every 20 minutes using a multi-factor model that tracks price deviation, liquidity depth, persistence, volatility, oracle divergence, cross-chain spread, and leading on-chain supply/redemption-flow signals. Coverage is deepest on Ethereum, BNB Chain, Arbitrum, Base, Polygon, and Optimism; Avalanche and Solana carry a smaller token set. Each response includes a standard `risk` field in the same format used by all other Webacy risk endpoints (Threat Risks, Token Analysis, Pool Analysis), so you can consume depeg risk data using the same schema as token and pool risk. ## Endpoints > [card] [List Pegged Tokens](/api-reference/depeg-monitor/list-pegged-tokens-with-depeg-risk) > > Paginated list of all stablecoins and RWAs with depeg risk ratings, filtering, sorting, and ecosystem aggregates > [card] [Token Detail](/api-reference/depeg-monitor/get-depeg-risk-detail-for-a-pegged-token) > > Full depeg snapshot with 50+ metrics, historical time series, and depeg event history for a specific token *** ## Key Concepts ### Risk Rating (0-100) You get a composite risk rating for each token every 20 minutes from a weighted, multi-factor model. Weights are relative; when a signal has no data for a token (e.g. a CEX cross-rate for a DEX-only token) it is skipped and the remaining weights are renormalized. | Signal | Weight | Description | | - | - | - | | Price Deviation (5m) | 31% | Distance from peg; 5% deviation = maximum rating | | Persistence (50bp, 60m) | 14% | Minutes exceeding 0.5% deviation in last hour | | Persistence (100bp, 60m) | 11% | Minutes exceeding 1.0% deviation in last hour | | Liquidity Depth | 10% | DEX pool depth / ±2% order-book depth — thinner depth raises risk | | CEX Cross-Rate Deviation | 6% | Centralized-venue cross-rate (CEX-listed tokens only) | | Volatility Burst | 5% | Triggered when recent volatility exceeds baseline | | Cross-Chain Spread (5m) | 5% | Price dispersion of the same token across chains | | Supply Spike (leading) | 5% | Anomalous minting — leading exploit signal | | Redemption Velocity (leading) | 5% | Concentrated redemption/burn drain — leading run signal | | Corroborating signals | \~8% | Oracle deviation & staleness, liquidity decay, volume anomaly, max drawdown, price-source disagreement, executable liquidity | ### Risk Tiers | Tier | Rating | Interpretation | | - | - | - | | `critical` | >= 70 | Severe depeg risk, immediate attention required | | `warning` | 50-69 | Elevated risk, close monitoring needed | | `watch` | 25-49 | Early stress signals, track trends | | `ok` | \< 25 | Normal conditions, low risk | | `premium` | N/A | Token trading above peg (positive deviation) | ### Standard Risk Response The `risk` field on each token follows the same structure used by the Token Analysis and Pool Analysis endpoints: ```json theme={null} { "risk": { "count": 2, "medium": 1, "high": 1, "overallRisk": 65, "issues": [ { "score": 65, "tags": [ { "key": "depeg_price_deviation", "name": "Price Deviation", "type": "depegRisk", "severity": 5.3, "description": "Token price deviating from its peg value" } ], "categories": { "price_stability": { "name": "Price Stability", "tags": { "depeg_price_deviation": true } } } } ] } } ``` ### Supported Chains `eth`, `arb`, `base`, `bsc`, `pol`, `opt`, `avax`, `solana` Solana-native stablecoins (e.g. USDC, USDT, PYUSD) are market-priced against a \$1 peg through the same aggregator and scoring path as EVM tokens — pass `chain=solana` with the token's base58 mint address. *** ## Common Use Cases | Use Case | Endpoint | Parameters | | - | - | - | | Dashboard overview | `GET /rwa` | `sort=score&order=desc&pageSize=50` | | Filter by chain | `GET /rwa` | `chain=eth&tier=ok&sort=market_cap_usd&order=desc` | | Search for a token | `GET /rwa` | `q=USDC` | | Token detail with 7-day history | `GET /rwa/{address}` | `chain=eth&hours=168` | | Graveyard (dead tokens) | `GET /rwa` | `collapsedOnly=true` | | Whole classified catalog, tokens not selected for monitoring included | `GET /rwa` | `includeUnenrolled=true` | | High-cap stablecoins only | `GET /rwa` | `minMcap=1000000000&tags=standard` | # Get risk detail for a single stablecoin Source: https://docs.webacy.com/api-reference/depeg-monitor/get-depeg-risk-detail-for-a-pegged-token GET /rwa/{address} Returns the full token detail: identity, classification, market data (with cross-chain rollups, DEX markets, migration lifecycle, audit provenance, score deltas), the latest depeg snapshot with full score decomposition, history series, and recorded depeg events. Address is resolved against the DB; supply `chain` when the same address exists on multiple chains. During partial outage the response carries `stale: true`. # List pegged tokens — stablecoins & RWAs Source: https://docs.webacy.com/api-reference/depeg-monitor/list-pegged-tokens-with-depeg-risk GET /rwa Returns paginated rows of pegged tokens with score, tier, market data, optional cross-chain rollups, DEX market entries, migration lifecycle, audit provenance, and score deltas. The `aggregates` block (`aggregates.tier_counts`, `total_mcap`, `total_volume_24h`, leaderboards) is computed after `segment` but BEFORE every other filter, so dashboards show segment-wide context regardless of the active view filters. The TOP-LEVEL `tier_counts` is different: it is computed after all filters. `segment` and the default enrollment gate are the exceptions — `segment` defines the caller's universe and the gate (see `includeUnenrolled`) keeps only tokens selected for monitoring, and both are applied *before* the aggregates, so `segment=stablecoin` returns stablecoin-only `aggregates` / `tier_counts` over the served set; `pegType` and every other filter remain post-aggregate view filters. `stale: true` indicates the response is served from the fallback cache during an upstream data outage; `source` (`upstream` / `primary` / `fallback` / `none`) names the cache tier that answered and `cache_age_seconds` is how long ago that copy was cached (`null` only when no cached copy was served). Unless `includeUnenrolled=true`, `pagination.total` counts the served rows, not the whole classified catalog. ## Which tokens are listed By default the list contains only tokens Webacy has selected for monitoring (see [Requesting coverage](/integrations/rwa-diligence-guide#coverage-isnt-binary)): those the depeg monitor has ingested (`has_monitor_data: true`) plus selected tokens it has not ingested yet (`has_monitor_data: false` and `null` metrics until their first snapshot). A token that is classified as pegged but not selected — most tokenized stocks from the bulk catalog imports — is not listed, and neither is a token Webacy has taken out of monitoring, even while it still has data; `showAll` does not restore either (it only adds collapsed/dead tokens). `pagination.total` therefore counts the served rows rather than the whole classified catalog. Pass `includeUnenrolled=true` to list every classified token. Rows the monitor has not ingested carry `has_monitor_data: false` and `null` for every metric; a token taken out of monitoring keeps its last data. Only the literal string `true` turns it on; any other value keeps the default. > [!NOTE] > > Like `segment`, this default is applied **before** `aggregates`: under the default, `aggregates` (including `monitored_count` and `total_mcap`) describe the served set, and under `includeUnenrolled=true` the whole catalog. `aggregates.monitored_count` counts the ingested tokens of the served set — the number to show as "assets tracked" — so it can rise under `includeUnenrolled=true` when a token taken out of monitoring still carries data. `includeUnenrolled` changes which rows are listed, not how they are scored. ## Splitting stablecoins from RWAs `segment` scopes the list to one category and is applied **before** `aggregates`, so the aggregates describe the selected segment rather than the whole pegged universe. > [!NOTE] > > There are **two** tier histograms and they do not share a scope. `aggregates` — including `aggregates.tier_counts` — is computed on the segment alone, with every other filter applied after it. The **top-level** `tier_counts` is computed after all of them. A KPI strip built on the assumption that both track the same filter set will drift as soon as a second filter is applied. | Segment | Rule | | - | - | | `rwa` | `is_rwa` is true and `asset_class` is not `fiat` | | `stablecoin` | everything else | The two values are exclusive and total, so they partition the list. Each row returns its computed `segment` alongside the `asset_class` / `is_rwa` / `subclass` it was derived from. > [!WARNING] > > **`segment = stablecoin` is not the same as `asset_class = "fiat"`.** > > A token joins the pegged universe through **any one** of three signals: `asset_class = "fiat"`, `is_rwa = true`, or a stable peg behaviour. The third admits tokens that assert a stable peg whose backing is not confirmed, and those deliberately carry **no** `asset_class`. They resolve to the `stablecoin` segment. > > Read each row's `asset_class` to tell a confirmed fiat token (`"fiat"`) from one carrying none (`null`). A non-trivial minority of stablecoin rows are `null`, so do not filter client-side on `asset_class === "fiat"` expecting the full set. > [!WARNING] > > `segment` takes `stablecoin` or `rwa`. It is **not** the `asset_class` dimension, which reads `fiat`, `fixed-income`, `commodity` and so on. Passing a dimension value is ignored like any other unknown enum value, which returns the unfiltered list rather than an error. `asset_class = fiat` means the token is **denominated in a government currency**, not that it is backed by cash. USDC, DAI and USDe are all fiat-denominated. `pegType` is a separate axis — how the peg is held (`direct`, `collateralized`, `algorithmic`, `derivative-hedged`, `yield-bearing`) — and stays a view filter applied after the aggregates. A token with no denomination record falls back to a currency lookup, where the listed fiat codes read `direct`, so treat `direct` as "cash-backed **or not yet classified**". # Get the risk profile and exposure of a wallet address Source: https://docs.webacy.com/api-reference/exposure-risk/understand-the-risk-profile-risk-exposure-of-an-address GET /quick-profile/{walletAddress} Get a summarized risk profile including exposure to known threats and malicious entities # Get detailed early holder analysis for a token Source: https://docs.webacy.com/api-reference/holder-analysis/get-detailed-early-holder-analysis-for-a-token GET /holder-analysis/{address} Analyzes token holders, buying patterns, and detects suspicious activity such as sniper bots and coordinated buys. This endpoint provides comprehensive insights into token ownership distribution, early investor behavior, and potential risk factors. **Supported Chains:** - **Solana** (`sol`): Data reflects initial 10-hours window after mint with sniper detection. Early holder analysis is available for tokens launched within the last **12 months** (data provider retention). Older tokens return `data_availability: unsupported_token_age`; previously analyzed tokens continue to return stored results. - **EVM chains** (`eth`, `bsc`, `pol`, `arb`, `opt`, `base`): Top holders and sniper detection. On **BSC**, early holder analysis is available for tokens deployed within the last **3 months** (data provider retention). Older tokens return `data_availability: unsupported_token_age`; previously analyzed tokens continue to return stored results. - **Stellar** (`stellar`): Address must be in `CODE:ISSUER` format - **Sui** (`sui`): First buyers analysis with bundler detection - **Hedera** (`hedera`): Accepts native `0.0.X` format (HTS token ID) or EVM address format. Includes token admin keys analysis (admin, freeze, wipe, pause, supply, KYC, fee schedule keys), custom fee schedules, and pause status. Sniper/bundling analysis is excluded (Hedera has deterministic transaction ordering, no MEV). > [!NOTE] > > **Data availability**: early holder analysis is limited by data provider retention. Solana covers tokens launched within the last 12 months; BSC covers tokens deployed within the last 3 months. Requests for older tokens return HTTP 200 with `data_availability: "unsupported_token_age"` and a human-readable `data_availability_message`. Tokens analyzed before the retention cutoff continue to return their stored results. ## Telling "no data" apart from "no answer" A successful response with `total_holders_count: 0` and empty analysis blocks means exactly that: we looked, and there was nothing to report. When we **could not** produce an answer, the response says so explicitly rather than looking like a zero. Always check `data_availability` before treating an empty result as a real finding: | `data_availability` | Meaning | What to do | | - | - | - | | *(absent)* | The analysis succeeded. An empty result is a genuine zero. | Use the result as-is. | | `unsupported_token_age` | The token predates the data provider's retention window (see above). | Don't retry — the answer won't change. Previously analyzed tokens keep returning their stored results. | | `provider_unavailable` | An upstream data provider was unavailable for this request (rate limit, timeout, or an open circuit breaker), so no fresh analysis could be computed. | **Retry.** This is transient. | Both non-empty values are accompanied by `data_availability_message`, a human-readable explanation safe to surface to end users. ```json Provider unavailable theme={null} { "token_address": "0xd1d2Eb1B1e90B638588728b4130137D262C87cae", "data_availability": "provider_unavailable", "data_availability_message": "Early holder analysis could not be computed because an upstream data provider was unavailable. This is a temporary condition — please retry.", "total_holders_count": 0 } ``` > [!WARNING] > > `data_availability` is returned alongside HTTP **200**, not an error status, because a partial result may still be present — for example a cached analysis served with reduced token metadata. Treating any `200` as a complete answer without checking this field can silently turn a provider outage into a "this token has zero holders" conclusion. The field is additive and may gain new values over time, so treat an unrecognized value as "analysis unavailable" rather than failing the parse. # Holder Concentration Index API Source: https://docs.webacy.com/api-reference/holder-concentration Query on-chain holder concentration metrics for stablecoins and RWA tokens, including risk bands, top-holder shares, and ecosystem-wide distributions. ## Overview Use the HCI API to retrieve paginated, daily-updated concentration data for our stablecoin universe. For each token you get how much of its supply is controlled by the top 10 and top 30 holders, classified into risk bands (`low` / `medium` / `high` / `extreme`). Pair HCI with the [Depeg Monitor](/api-reference/depeg-monitor) to distinguish between tokens that are depegging right now and tokens with structural concentration risk that could trigger a depeg in the future. ## Endpoints > [card] [List Holder Concentration Index](/api-reference/holder-concentration/list-holder-concentration-index) > > Paginated list of all tracked tokens with top-10 and top-30 concentration data, risk bands, and ecosystem-wide `byRiskBand` aggregates > [card] [Holder Concentration Index history](/api-reference/holder-concentration/get-holder-concentration-index-history) > > Daily top-10 and top-30 concentration points for one token (`address` required; `chain` optional; `days` 1–180, default 90), with the methodology version of each point *** ## Key Concepts ### The Index vs. Top Share Each cohort gives you three related but distinct numbers, each with one fixed meaning: | Field | Formula | What it measures | | - | - | - | | `index` | `source: holders` — organic top-N share − N ÷ holder count, floored at 0; `source: aggregate` — raw top-N share − N ÷ holder count, floored at 0 | Excess concentration over an even spread (0–1) | | `topSharePct` | organic top-N share × 100 | Percentage of supply held by the top-N **organic** wallets — always this, never the raw share | | `rawTopSharePct` | top-N share × 100, every holder counted | Percentage of supply held by the top-N holders including protocol contracts, exchanges and bridges | "Organic" excludes exchange, bridge and pool wallets and every contract holder (staking vaults, lending markets, bridges). When every top-N holder is a protocol contract, the cohort carries `note: all_top_n_are_protocol_contracts_organic_low`, `index` and `topSharePct` are 0 and `rawTopSharePct` shows the protocol-held share. Comparing the two shares tells you how much of the top-N sits in protocol inventory: crvUSD reads `topSharePct` ≈ 0.1 against `rawTopSharePct` ≈ 78. `source` says where the numbers came from: `holders` (the fetched per-holder list, up to 50 holders) or `aggregate` (the data source's top-N totals when the per-holder list could not support the cohort — `topSharePct` is then `null` and `index` is computed from the raw share). `null` on snapshots that predate the field. `rawTopSharePct` is `null` on snapshots produced before the pipeline published it, except older all-contracts cohorts (resolved to `topSharePct` 0) and older aggregate-sourced cohorts (resolved to `topSharePct` `null`), whose legacy share is published as `rawTopSharePct`. `top30` is `null` when the pipeline has no top-30 value; `top30NullReason` beside it says why: `organic_cohort_not_larger_than_top10` (at most 10 of the 50 largest holders are organic, so a top-30 value would only repeat the top-10), `fewer_than_30_holders_fetched`, or `no_top30_aggregate`. A null top-30 is not a failure of the top-10. `topSharePct = 80` means the top 10 organic wallets hold 80% of supply. For a token with millions of holders the even-spread baseline is negligible, so `index` ≈ 0.8 too; for a token with 20 holders the top 10 would hold half the supply under an even spread, so `index` = 0.8 − 0.5 = 0.3. ### Risk Bands | Band | `index` threshold | Signal | | - | - | - | | `low` | \< 0.2 | Broadly distributed | | `medium` | 0.2 – 0.4 | Moderate concentration | | `high` | 0.4 – 0.6 | Elevated — whale exits could move price | | `extreme` | ≥ 0.6 | Highly concentrated — structural depeg risk | You'll find the derivation thresholds in every response as `meta.riskBandThresholds`. ### `byRiskBand` is computed before the `riskBand` filter `meta.byRiskBand` counts top-10 bands **before** the `riskBand` query filter, but after `chain` and `minTop10Index`. Without those two filters you get the full ecosystem distribution whatever `riskBand` you pass — useful for risk-breakdown dashboards without a separate unfiltered request. *** ## Common Use Cases | Use case | Parameters | | - | - | | Highest-risk tokens first | `sort=top10Index&order=desc` | | Extreme-band tokens on Ethereum | `chain=eth&riskBand=extreme` | | `high` and `extreme` top-10 bands only | `minTop10Index=0.4` | | Alphabetical token picker | `sort=symbol&order=asc&pageSize=500` | | Ecosystem risk snapshot | Any call — read `meta.byRiskBand` | # Get holder concentration history for one token Source: https://docs.webacy.com/api-reference/holder-concentration/get-holder-concentration-index-history GET /rwa/hci/history Daily time series of top-10/top-30 holder concentration for one token, assembled from the daily HCI snapshots (accruing since 2026-03-31). Points are sparse: dates with no snapshot are absent. **Methodology versions.** On 2026-09-30 the holder-concentration computation changed (top holders are now fetched explicitly and the top-30 cohort is built from 30 holders; before that, the organic top-10 was computed from at most 10 fetched holders and top-30 repeated it). Values are only comparable within one `methodologyVersion`: split a chart at each date in `meta.methodologyBreaks` instead of reading the step as a market move. `meta.methodologyVersions` lists every version with the date it took effect. Earlier snapshots cannot be recomputed. # List all stablecoin and rwa holder data Source: https://docs.webacy.com/api-reference/holder-concentration/list-holder-concentration-index GET /rwa/hci Returns a paginated list of stablecoins and RWA tokens with daily-updated holder concentration data. Each record includes top-10 and top-30 cohort objects with an `index`, a `topSharePct` and a risk band. `topSharePct` is the share of supply (%) held by the top-N **organic** holders: wallets labelled as exchanges, bridges or pools and any contract holder (staking vaults, lending markets, bridges) are excluded. `index` (0–1) is that organic top-N share minus the fair-share baseline effective N / holderCount (effective N is N, or fewer when fewer organic holders were fetched; nothing is subtracted when holderCount is at most effective N), floored at 0, so it reads close to `topSharePct / 100` for widely held tokens; on `source: aggregate` cohorts it is computed from the raw share instead, because contracts cannot be excluded without per-holder data. It is **not** a Herfindahl index. Every cohort also carries `rawTopSharePct`, the same share with every holder counted, and `source` (`holders` or `aggregate`). When every top-N holder is a protocol contract, `note` is `all_top_n_are_protocol_contracts_organic_low`, `index` and `topSharePct` are 0 and `rawTopSharePct` shows the protocol-held share. `top30` is null when the pipeline has no value for it; `top30NullReason` says why (for example the organic top-30 would only repeat the organic top-10). `meta.byRiskBand` counts are computed before the `riskBand` filter so dashboards always see the full ecosystem distribution. Every `riskBand` (on each cohort, in the `riskBand` filter and in `meta.byRiskBand`) is derived from the cohort `index` with the thresholds published in `meta.riskBandThresholds`, so a caller can always re-derive and verify it. # API Introduction Source: https://docs.webacy.com/api-reference/introduction Get started with the Webacy Risk Score API for blockchain addresses, transactions, contracts, tokens, and URLs, and learn how the surface is organized. The Webacy Risk Score API provides comprehensive security analysis for blockchain addresses, transactions, smart contracts, tokens, and URLs. Protect your users from threats, fraud, and malicious activity across multiple blockchain networks. ## Base URL All API requests are made to: ```text theme={null} https://api.webacy.com ``` A development environment is also available at `https://api-development.webacy.com`. ### Versioning in the path * **v2 (default)** endpoints have **no version prefix** — for example `/addresses/{address}`, `/contracts/{address}`, `/rwa`. * **v3** endpoints use a `/v3/` prefix — for example `/v3/vaults/{address}`, `/v3/rwa/grades`, `/v3/framework`. * **Never use `/api/`.** A request to `https://api.webacy.com/api/v3/...` returns `403 Missing Authentication Token`. The prod gateway strips `/api`, so it must not appear in any request. ## Supported Chains The API supports more than a dozen blockchain networks including Ethereum, Solana, Hedera, and more. > [card] [View All Supported Blockchains](/supported-blockchains) > > Complete list of supported chains with their identifiers and endpoint availability ## API Categories > [card] [Threat Risks](/api-reference/threat-risks/threat-considerations-for-an-address) > > Analyze addresses for security threats and malicious activity > [card] [Sanction Checks](/api-reference/sanction-checks/check-if-wallet-address-is-sanctioned) > > Check addresses against OFAC and other sanction lists > [card] [Contract Risk](/api-reference/contract-risk/get-a-real-time-analysis-for-a-given-contract-address) > > Real-time smart contract security analysis > [card] [Token Analysis](/api-reference/token-analysis/get-token-economic-history) > > Comprehensive token security and market analysis > [card] [Transaction Scanning (KYT)](/api-reference/transaction-scanning/scan-raw-evm-transaction-for-security-risks) > > Know Your Transaction — scan and simulate transactions for risks > [card] [Holder Analysis](/api-reference/holder-analysis/get-detailed-early-holder-analysis-for-a-token) > > Token holder distribution and sniper detection ## Response Format Successful responses return JSON with relevant risk data: ```json theme={null} { "count": 1, "medium": 0, "high": 0, "overallRisk": 25.99, "issues": [], "isContract": false } ``` ### Error Responses ```json theme={null} { "message": "Unauthorized" } ``` ## Hard-gating and fail behavior > [!WARNING] > > REST is the primary integration path for hard-gate and pre-execution decisioning. The [MCP server](/integrations/mcp-server) is a convenience wrapper over a subset of the REST surface. > > Treat missing, stale, or errored data as **unknown — never as safe**. Before using a result in a decisioning path, check the relevant freshness field for that endpoint: > > * **`stale`** — the RWA / depeg list and detail endpoints (`/rwa`, `/rwa/{address}`) and the supply endpoints. Hard-gate on this when present. > * **`generated_at`** — the RWA / depeg list and supply list responses. > * **`metadata.last_scored_at`** — v3 vault detail. The **v3 vault detail endpoint does not return `stale` or `generated_at`** — use `metadata.last_scored_at`. > * **`analyzed_at`** — address risk (`/addresses/{address}`). > > A missing endpoint, a `4xx`/`5xx`, or a `stale: true` flag means you do not have a current risk assessment. Fail closed. ## Rate Limits API requests are rate-limited based on your plan. See [Rate Limits](/rate-limits) for details on limits and quotas. Use the API Usage endpoint to monitor your consumption. ## Support Need help? Contact us at [info@webacy.com](mailto:info@webacy.com) or get your API key at [developers.webacy.co](https://developers.webacy.co/). # Get OHLCV and risk data for a liquidity pool Source: https://docs.webacy.com/api-reference/pool-analysis/get-pool-ohlcv-data-with-risk-assessment GET /tokens/pools/{poolAddress} Retrieves OHLCV (Open, High, Low, Close, Volume) data for a liquidity pool along with risk assessment information for the pool and associated tokens. This endpoint enables comprehensive analysis of trading patterns and potential risks within a specific liquidity pool. # Get trending liquidity pools with risk data Source: https://docs.webacy.com/api-reference/pool-analysis/get-trending-pools-with-risk-analysis GET /tokens/pools/trending Retrieves current trending liquidity pools with comprehensive risk analysis for the pools and their associated tokens. Data is refreshed every 24 hours. # Risk Due Diligence Source: https://docs.webacy.com/api-reference/riskdd Run risk due diligence on wallet addresses, tokens, smart contracts, and transactions with Webacy multi-chain risk analysis endpoints and signals. ## Overview Our risk endpoints provide comprehensive risk due diligence for blockchain entities. Use these endpoints to analyze addresses, tokens, smart contracts, and transactions for security threats, fraud indicators, and compliance risks — including KYT (Know Your Transaction) screening. ## Core Analysis Fundamental risk assessment endpoints for any blockchain entity. > [card] [Threat Risks](/api-reference/threat-risks/threat-considerations-for-an-address) > > Analyze any address (wallet, token, or contract) for security threats, fraud indicators, and risk factors > [card] [Contract Risk](/api-reference/contract-risk/get-a-real-time-analysis-for-a-given-contract-address) > > Real-time smart contract security analysis and vulnerability detection > [card] [Token Analysis](/api-reference/token-analysis/get-token-economic-history) > > Comprehensive token security, market data, and manipulation detection > [card] [Holder Analysis](/api-reference/holder-analysis/get-detailed-early-holder-analysis-for-a-token) > > Token holder distribution, whale concentration, and sniper detection > [card] [URL Risks](/api-reference/url-risks/project-url-risk-analysis) > > Analyze URLs for phishing, malware, and security threats > [card] [Transaction Risks (KYT)](/api-reference/transaction-risks/risk-details-for-a-transaction) > > Know Your Transaction — assess risk details for completed blockchain transactions *** ## Wallet Risks Specialized endpoints for wallet-level risk assessment and compliance. > [card] [Sanction Checks](/api-reference/sanction-checks/check-if-wallet-address-is-sanctioned) > > Screen addresses against OFAC and global sanction lists > [card] [Address Poisoning](/api-reference/address-poisoning/detect-address-poisoning-for-a-specific-wallet-address) > > Detect address poisoning attack patterns and contaminated addresses > [card] [Approval Risks](/api-reference/approval-risks/approvals-with-threat-risks) > > Analyze token approvals and identify risky allowances > [card] [Exposure Risk](/api-reference/exposure-risk/understand-the-risk-profile-risk-exposure-of-an-address) > > Quick risk profile and exposure assessment for any address *** ## When to Use Risk DD | Use Case | Recommended Endpoints | | - | - | | **Wallet screening** | Threat Risks, Sanction Checks, Exposure Risk | | **Token due diligence** | Token Analysis, Holder Analysis | | **Stablecoin / RWA due diligence** | RWA Risk (v3), Depeg Monitor (not Token Analysis alone) | | **Smart contract audit** | Contract Risk, Threat Risks | | **Compliance checks (KYT/AML)** | Transaction Risks, Sanction Checks, Threat Risks | | **Approval auditing** | Approval Risks | | **Phishing prevention** | URL Risks | ## Example Workflow ### Screen a New Token > [!NOTE] > > If the token is a **stablecoin or RWA** (USDC, USDT, PYUSD, DAI, tokenized treasuries, gold), `GET /tokens/{address}` alone is not enough — it omits peg and structural risk. Also call [`GET /v3/rwa/{address}`](/api-reference/rwa-v3/get-rwa-risk-detail) for structural health and the [Depeg Monitor](/api-reference/depeg-monitor) for real-time peg deviation. ```bash theme={null} # 1. Check the token contract for risks curl -X GET "https://api.webacy.com/tokens/0x123...?chain=eth" \ -H "x-api-key: YOUR_API_KEY" # 2. Analyze holder distribution curl -X GET "https://api.webacy.com/holder-analysis/0x123...?chain=eth" \ -H "x-api-key: YOUR_API_KEY" # 3. Check deployer/owner for threats curl -X GET "https://api.webacy.com/addresses/0xdeployer...?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` ### Compliance Screening ```bash theme={null} # Check address against sanctions curl -X GET "https://api.webacy.com/addresses/sanctioned/0x123..." \ -H "x-api-key: YOUR_API_KEY" # Full threat analysis curl -X GET "https://api.webacy.com/addresses/0x123...?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` ## Related Resources > [card] [Risk Tags Reference](/glossary/threats-and-labels) > > Complete list of all risk tags returned by Risk DD endpoints > [card] [Risk Modules](/glossary/modules) > > Configure which risk modules to include in analysis # RWA Risk (v3) Source: https://docs.webacy.com/api-reference/rwa-v3 Use the Webacy V3 RWA endpoints for structural risk on stablecoins and tokenized real-world assets — composite grades, category scores, and coverage. ## Overview The v3 RWA Risk endpoints give you a Webacy-native structural risk score for stablecoins and real-world asset tokens. Unlike the [Depeg Monitor](../api-reference/depeg-monitor) — which tracks real-time price deviation — v3 RWA Risk evaluates the **structural health** of a token: collateral quality, smart contract governance, liquidity depth, exploit history, and more. For stablecoins and RWAs, use these endpoints instead of the generic [`GET /tokens/{address}`](../api-reference/token-analysis/get-token-economic-history) analysis — that endpoint covers general token security and market data but omits peg and structural risk. Scores are updated on a 24-hour cadence and computed against a versioned grading scheme you can pin for consistency. ## Endpoints > [card] [Token Detail](../api-reference/rwa-v3/get-rwa-risk-detail) > > `GET /v3/rwa/{address}` — Full structural risk decomposition: composite grade, seven weighted categories, criterion-level pass/warn/fail status, and coverage metadata. > [card] [Batch Structural Health](../api-reference/rwa-v3/post-batch-structural-health) > > `POST /v3/rwa/batch/structural-health` — Check up to 100 tokens in one call. 24h cadence. Always returns 200 with per-token results. `GET /v3/rwa/{address}` requires a `chain` query parameter (for example `eth`); `grading_scheme` is optional and defaults to `v2` (the standard scale). The batch endpoint takes `{ address, chain }` pairs in the request body. *** ## Key Concepts ### Score Polarity > [!WARNING] > > **Higher score = more risk.** This is the opposite of yield or performance scores. > > `composite.score` and all `categories.*.score` values are in the range **0–100**, where **0 means no structural risk** and **100 means maximum structural risk**. The letter grade `A+` corresponds to a score near 0 (best); `F` corresponds to a score near 100 (worst). ### Composite Grade Each token receives a composite score derived from seven weighted risk categories. The weights below are shared across both grading schemes (`v2` reuses the `v1` category weights — only the score-to-letter band mapping differs between schemes): | Category | Weight | Description | | - | - | - | | `asset_collateral` | 30% | Collateral quality, reserve transparency, and backing type | | `market_liquidity` | 20% | On-chain liquidity depth and DEX/CEX accessibility | | `smart_contract` | 20% | Audit history, contract ownership model, and timelock presence | | `operational_governance` | 15% | Multisig controls, admin key practices, and operational hygiene | | `hack_exploit_history` | 15% | Known exploits or security incidents | | `counterparty` | 0% | (Reserved — weights may shift in future scheme versions) | | `chain_infrastructure` | 0% | (Reserved — weights may shift in future scheme versions) | The detail response also returns two composite-level fields, `upstream_risk` and `clamped_by_upstream`. When a token's composite score is raised by risk inherited from an upstream dependency, `upstream_risk` carries that contributing score and `clamped_by_upstream` is `true`; when no upstream adjustment applies — as in the example below — they are `null` and `false`. ### Letter Grades and Stars The composite risk score maps to a letter grade on the standard 11-band scale (grading scheme `v2`). It is a **risk rating**: lower risk earns a better grade — **A+ is the lowest risk, F is the highest**. Bands are tighter at the safe end and widen as risk rises. | Grade | Stars | Risk score | Interpretation | | - | - | - | - | | A+ | ★★★★★ | 0–5 | Excellent structural health | | A | ★★★★★ | 6–12 | Strong — minor concerns only | | A- | ★★★★★ | 13–20 | Strong — a couple of watchpoints | | B+ | ★★★★☆ | 21–28 | Good — minor structural risk | | B | ★★★★☆ | 29–37 | Good — a few watchpoints | | B- | ★★★★☆ | 38–46 | Adequate — review recommended | | C+ | ★★★☆☆ | 47–56 | Moderate risk — review recommended | | C | ★★★☆☆ | 57–66 | Moderate risk — monitor closely | | C- | ★★★☆☆ | 67–77 | Elevated risk — close monitoring needed | | D | ★★☆☆☆ | 78–88 | High risk — close monitoring needed | | F | ★☆☆☆☆ | 89–100 | Critical structural risk | ### Criterion Status Each criterion in a category has one of three statuses: | Status | Meaning | | - | - | | `pass` | Criterion is satisfied — no risk contribution | | `warn` | Criterion is partially met or data quality is limited | | `fail` | Criterion is not met — contributes to category score | ### `large_holder_concentration` — Holder Concentration Grading The `large_holder_concentration` criterion is graded on the top-10 **Holder Concentration Index** (`hci_10`: the top-10 organic holders' share of supply minus the even-spread share — the same `index` as the top-10 cohort on the [Holder Concentration Index API](/api-reference/holder-concentration)): | HCI Range | Status | | - | - | | `hci_10 < 0.20` | `pass` — broadly distributed | | `0.20 ≤ hci_10 < 0.40` | `warn` — moderate concentration | | `hci_10 ≥ 0.40` | `fail` — highly concentrated | | `null` (data unavailable) | `warn` | > [!NOTE] > > These cut-offs match the top-10 bands on the [Holder Concentration Index API](/api-reference/holder-concentration): `pass` = `low`, `warn` = `medium`, `fail` = `high` or `extreme`. ### Data Quality Every criterion carries a `data_quality` block: ```json theme={null} { "confidence": "high", "last_observed_at": "2026-05-20T12:00:00Z", "source": "webacy" } ``` `confidence` is `"high"`, `"medium"`, or `"low"`. Use `last_observed_at` to surface data staleness to your users. *** ## Coverage — Live vs. Planned The v3 framework defines more criteria than are currently live. The `coverage` block in every detail response tells you exactly which criteria are active today vs. pending data. | Criterion | Category | Live? | | - | - | - | | `audited` | `smart_contract` | Yes | | `mint_cap_present` | `smart_contract` | Yes | | `owner_is_multisig` | `smart_contract` | Yes | | `timelock_present` | `smart_contract` | Yes | | `share_price_stable` | `asset_collateral` | Yes | | `mint_burn_anomaly` | `market_liquidity` | Yes | | `large_holder_concentration` | `market_liquidity` | Yes | | `no_exploit_history` | `hack_exploit_history` | Yes | | `supply_reserves_reconciliation` | `asset_collateral` | Planned | | `large_transaction_alerts` | `market_liquidity` | Planned | | `admin_key_changes` | `operational_governance` | Planned | | `timelock_changes` | `operational_governance` | Planned | Planned criteria are excluded from scoring until their underlying data is ready. When they go live, scores will shift — pin a grading scheme (see below) if you need stability. *** ## Grading Scheme Versioning `grading_scheme` defaults to **`v2`**, the standard 11-band scale (lower risk = better grade) shared across every Webacy grade surface. The scheme version is reflected in: * The `composite.grading_scheme` field in the response body * The `Webacy-Grading-Scheme` response header `v1` is the **frozen legacy scale** — it uses an `E` band and has no `C+`. Pin `?grading_scheme=v1` to keep v1-computed grades byte-for-byte. `v1` is now **deprecated** with a minimum **9-month sunset window**; responses pinned to `v1` carry the standard `Deprecation` and `Sunset` HTTP response headers. Both schemes appear in `supported_schemes`. > [!NOTE] > > The batch endpoint (`POST /v3/rwa/batch/structural-health`) emits raw criterion data only — no composite score, no grading scheme parameter. It is always scheme-neutral. Today it evaluates two live criteria — `mint_burn_anomaly` and `large_holder_concentration`; additional structural criteria will be added as their underlying data goes live. *** ## Authentication All v3 RWA endpoints require an `x-api-key` header. Requests without a valid key return `403`. ```bash theme={null} curl -H "x-api-key: $API_KEY" "https://api.webacy.com/v3/rwa/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48?chain=eth" ``` ### Response Headers Every response (including 4xx errors) includes: | Header | Example | Description | | - | - | - | | `Webacy-Api-Version` | `3.0` | API version | | `Webacy-Framework-Version` | `v1` | Scoring framework version | | `Webacy-Grading-Scheme` | `v2` | Grading scheme applied | *** ## Batch Partial-Success Semantics The request is validated first. A malformed batch returns **`400 Bad Request`** and **no tokens are evaluated**: * empty `tokens` array * more than 100 tokens * unknown or unexpected properties in the body Once the request is well-formed, the batch endpoint **always returns HTTP 200**. Check each result's `ok` field: * `ok: true` — criterion data is present * `ok: false` — token could not be evaluated; read `error_code` | `error_code` | Meaning | | - | - | | `NOT_FOUND` | Token address/chain not in Webacy universe | | `INVALID_ADDRESS` | Address string is not a valid contract address | | `UNSUPPORTED_CHAIN` | Chain identifier is not supported | *** ## Code Examples ```bash Get token detail theme={null} curl -X GET \ "https://api.webacy.com/v3/rwa/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48?chain=eth&grading_scheme=v2" \ -H "x-api-key: $API_KEY" ``` ```bash Batch structural health theme={null} curl -X POST \ "https://api.webacy.com/v3/rwa/batch/structural-health" \ -H "x-api-key: $API_KEY" \ -H "Content-Type: application/json" \ -d '{ "tokens": [ { "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "chain": "eth" }, { "address": "0xdac17f958d2ee523a2206206994597c13d831ec7", "chain": "eth" } ] }' ``` ### Example: Token Detail Response ```json theme={null} { "schema_version": "3.0", "metadata": { "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "chain": "eth", "symbol": "USDC", "name": "USD Coin", "asset_type": "stablecoin", "market_cap_usd": 43000000000 }, "composite": { "grading_scheme": "v2", "grade": "A+", "stars": 5, "score": 4, "contributors": { "asset_collateral": { "score": 2, "weight": 0.30 }, "market_liquidity": { "score": 5, "weight": 0.20 }, "smart_contract": { "score": 3, "weight": 0.20 }, "operational_governance": { "score": 8, "weight": 0.15 }, "hack_exploit_history": { "score": 0, "weight": 0.15 }, "counterparty": { "score": 0, "weight": 0 }, "chain_infrastructure": { "score": 0, "weight": 0 } }, "upstream_risk": null, "clamped_by_upstream": false }, "categories": { "smart_contract": { "score": 3, "criteria": { "audited": { "status": "pass", "data_quality": { "confidence": "high", "last_observed_at": "2026-05-01T00:00:00Z", "source": "webacy" } }, "mint_cap_present": { "status": "pass", "data_quality": { "confidence": "high", "last_observed_at": "2026-05-20T12:00:00Z", "source": "webacy" } }, "owner_is_multisig": { "status": "pass", "data_quality": { "confidence": "high", "last_observed_at": "2026-05-20T12:00:00Z", "source": "webacy" } }, "timelock_present": { "status": "warn", "data_quality": { "confidence": "medium", "last_observed_at": "2026-05-20T12:00:00Z", "source": "webacy" } } } }, "market_liquidity": { "score": 5, "criteria": { "mint_burn_anomaly": { "status": "pass", "data_quality": { "confidence": "high", "last_observed_at": "2026-05-31T18:00:00Z", "source": "webacy" } }, "large_holder_concentration": { "status": "warn", "data_quality": { "confidence": "high", "last_observed_at": "2026-05-31T18:00:00Z", "source": "webacy" } } } } }, "coverage": { "framework_version": "v1", "total_criteria": 12, "live_criteria": 8, "per_category": { "smart_contract": { "live": 4, "total": 4 }, "asset_collateral": { "live": 1, "total": 2 }, "market_liquidity": { "live": 2, "total": 3 }, "operational_governance": { "live": 0, "total": 2 }, "hack_exploit_history": { "live": 1, "total": 1 }, "counterparty": { "live": 0, "total": 0 }, "chain_infrastructure": { "live": 0, "total": 0 } } } } ``` ### Example: Batch Response (partial success) ```json theme={null} { "schema_version": "3.0", "results": [ { "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "chain": "eth", "ok": true, "mint_burn_anomaly": { "status": "pass", "data_quality": { "confidence": "high", "last_observed_at": "2026-05-31T18:00:00Z", "source": "webacy" } }, "large_holder_concentration": { "status": "warn", "data_quality": { "confidence": "high", "last_observed_at": "2026-05-31T18:00:00Z", "source": "webacy" } } }, { "address": "0xdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef", "chain": "eth", "ok": false, "error_code": "NOT_FOUND" } ] } ``` *** ## Related Resources > [card] [Depeg Monitor](../api-reference/depeg-monitor) > > Real-time price-deviation risk for stablecoins — pairs well with v3 structural scores > [card] [Holder Concentration Index](../api-reference/holder-concentration) > > Deeper HCI data and historical concentration trends > [card] [Scoring Methodology](../scoring-methodology) > > How Webacy computes risk scores across all product lines > [card] [API Authentication](../api-reference/authentication) > > How to obtain and use your `x-api-key` # List RWA & stablecoin grades Source: https://docs.webacy.com/api-reference/rwa-v3/get-rwa-grades GET /v3/rwa/grades Paginated list of every graded RWA / stablecoin token with its v3 risk-polarity `composite` grade (letter + 0–100 score + per-category contributors). Filterable by chain / grade / minimum score, sortable, and paginated — the bulk companion to `GET /v3/rwa/{address}`. `grade_counts` is a histogram over the full graded universe — before every filter (`segment`, `chain`, `grade`, `minScore`) and before pagination. POLARITY: scores 0–100, higher = worse. Returns every graded RWA / stablecoin token with its headline composite grade (letter + 0–100 risk score + per-category contributors), filterable, sortable, and paginated. This is the bulk list companion to the per-token detail endpoint [`GET /v3/rwa/{address}`](/api-reference/rwa-v3/get-rwa-risk-detail). > [!NOTE] > > `grade_counts` is a histogram over the **full graded universe** — before every filter (`segment`, `chain`, `grade`, `minScore`) and before pagination. Grades are emitted in the resolved `grading_scheme`'s letters (default `v2`). ## Freshness The response carries two top-level freshness fields: `generated_at` (when this snapshot was produced) and `stale` (`true` when the snapshot is older than the expected refresh cadence). Unlike the [RWA detail endpoint](/api-reference/rwa-v3/get-rwa-risk-detail), this list gives you a `stale` flag you can hard-gate on. See [Hard-gating and fail behavior](/api-reference/introduction#hard-gating-and-fail-behavior). ## Filtering by segment `segment` scopes the list to `stablecoin` or `rwa`. The two are exclusive and total, so their counts add up to the unfiltered total. The grades universe is our grading snapshot rather than the set of classified tokens, and many tokens in it are not classified yet. Those fall to the `stablecoin` arm, so on this endpoint `stablecoin` means **"pegged and not a classified RWA, including not-yet-classified"**. Read each row's `asset_class` to tell a confirmed fiat token (`"fiat"`) from an unclassified one (`null`). `pegType` is **not** accepted on this route: grade rows carry no denomination. Use [`GET /rwa`](/api-reference/depeg-monitor/list-pegged-tokens-with-depeg-risk) for that filter. For a stablecoin-only route that pins the segment server-side, see [`GET /v3/stablecoins/grades`](/api-reference/stablecoins/get-stablecoin-grades). ## When the classification is unavailable Degradation is split by risk: | Request | Behaviour | | - | - | | No `segment` | `200` with the classification fields omitted from each row and `classification_available: false` | | Explicit `segment` | `503` — the filter cannot be honoured, and a superset would be a wrong answer presented as a correct one | Treat `classification_available: false` as **unknown**, never as "not a stablecoin". # Get risk detail for a single RWA Source: https://docs.webacy.com/api-reference/rwa-v3/get-rwa-risk-detail GET /v3/rwa/{address} Returns the v3 Webacy-native RWA / stablecoin decomposition: `composite` grade + per-category `contributors`, the dense `categories` criteria map, and `coverage` disclosure. No `risk` pass-through (the v2 RWA grade has none; `composite` carries the headline, floored by `upstream_risk`). POLARITY: scores 0–100, higher = worse. > [!WARNING] > > **Higher score = more risk.** `composite.score` and every `categories.*.score` run **0–100**, where **0 = no structural risk** and **100 = maximum risk** (grade `A+` ≈ 0, `F` ≈ 100) — the opposite of yield or performance scores. See [Score Polarity](/api-reference/rwa-v3#score-polarity) for the full grade bands. ## Assessing freshness > [!WARNING] > > This endpoint does **not** return a response-level `stale` flag or `generated_at`. For a freshness signal, read the [RWA grades list](/api-reference/rwa-v3/get-rwa-grades) (`GET /v3/rwa/grades`), which carries `generated_at` and `stale`. > > Treat missing, stale, or errored data as **unknown — never as safe**. See [Hard-gating and fail behavior](/api-reference/introduction#hard-gating-and-fail-behavior). ## Segment and classification `metadata.segment` carries the derived category — `stablecoin` or `rwa` — alongside the classification fields it comes from (`metadata.asset_class`, `metadata.subclass`). `metadata.asset_type` holds the same value as `segment` and predates the split; prefer `segment` in new integrations. `metadata.asset_class = "fiat"` means the token is denominated in a government currency, not that it is cash-backed. > [!NOTE] > > `classification_available: false` means the classification could not be loaded for this request. The response still succeeds, but the classification fields are not trustworthy — treat them as unknown. For a stablecoin-only route that answers `404` for an RWA, see [`GET /v3/stablecoins/{address}`](/api-reference/stablecoins/get-stablecoin-detail). # Batch structural risk data for RWAs Source: https://docs.webacy.com/api-reference/rwa-v3/post-batch-structural-health POST /v3/rwa/batch/structural-health Returns the live structural-health criteria (`mint_burn_anomaly`, `large_holder_concentration`) plus the v3 composite letter grade (`composite.grade`, identical derivation to the detail endpoint's) for up to 100 `{ address, chain }` tuples. Per-token failures are reported in-band as `{ ok: false, error_code }` so a single bad address never fails the whole batch (HTTP 200). Addresses travel in the POST body (privacy + non-EVM encoding). > [!NOTE] > > This endpoint **always returns HTTP 200** — check each result's `ok` field, and read `error_code` (`NOT_FOUND`, `INVALID_ADDRESS`, `UNSUPPORTED_CHAIN`) when `ok` is `false`. Malformed requests — empty `tokens`, more than 100 tokens, or unknown properties — return `400` and no tokens are evaluated. See [batch partial-success semantics](/api-reference/rwa-v3#batch-partial-success-semantics). # Check if a wallet address is sanctioned Source: https://docs.webacy.com/api-reference/sanction-checks/check-if-wallet-address-is-sanctioned GET /addresses/sanctioned/{walletAddress} Verify if a wallet address appears on OFAC or other sanctions lists. The address-screening `sanctions_status` on this operation is distinct from the RWA token-attribute field with the same name: here, `clean` means screening completed without a match and `unknown` means authoritative screening could not be completed when fail-open behavior is enabled. With fail-closed behavior, the same unavailable-screening condition returns HTTP 503 instead. The successful response is a closed contract containing exactly `address`, `is_sanctioned`, `sanctions_status`, `is_sanctions_related`, and `sanctions_related_status`, plus the audit-trail fields `check_id`, `checked_at`, and `data_as_of` shared by the risk endpoints; adding another response field requires an explicit contract and specification change. Direct access to this operation requires `x-api-key`; keyless x402 access is available through the public `/pay` gateway. TRON support added in May 2026. > [!TIP] > > Checks whether a given address is **directly** listed on an official sanctions list, including OFAC. This endpoint returns `true` only for an **exact address** match; addresses merely associated with a sanctioned entity will return `false`. To identify indirect sanctions exposure or entity associations, use the [main risk intelligence endpoint](/api-reference/riskdd). # Get Stablecoin Risk Detail Source: https://docs.webacy.com/api-reference/stablecoins/get-stablecoin-detail GET /v3/stablecoins/{address} Stablecoin-only twin of `GET /v3/rwa/{address}`: identical response for a stablecoin; answers **404** when the token resolves to an RWA (`metadata.asset_type = rwa`) and names `GET /v3/rwa/{address}` as the route to use. The class is derived, not asserted: `stablecoin` means "pegged and not a classified RWA", so a token that is graded but not yet classified takes the stablecoin arm and answers **200**. Read `metadata.asset_class` to tell a confirmed fiat token (`fiat`) from a not-yet-classified one (`null`); classification coverage is still expanding, so that second set is shrinking over time. Stablecoin-only twin of [`GET /v3/rwa/{address}`](/api-reference/rwa-v3/get-rwa-risk-detail). Identical response for a stablecoin. > [!WARNING] > > **Higher score = more risk.** `composite.score` and every `categories.*.score` run **0–100** (`A+` ≈ 0, `F` ≈ 100). See [Score Polarity](/api-reference/rwa-v3#score-polarity). ## Responses specific to this route | Status | When | | - | - | | `404` | The token is not in the graded universe at all. | | `404` | The token is graded but resolves to an RWA. The message names `GET /api/v3/rwa/{address}?chain=` as the route to use. | | `503` | The classification could not be loaded, so membership cannot be proven. Retry, or use `GET /v3/rwa/{address}`, which serves both segments. | Both return the same status with no distinguishing error code, so the two are only separable by the message text — which is **not** a stable contract. The safe rule: a `404` here does not imply the token is an RWA, and retrying an ungraded token against `/v3/rwa/{address}` will `404` as well. The segment gate reads the same derived value the list and grades routes filter on, exposed as `metadata.segment` and mirrored on the legacy `metadata.asset_type`, so the three surfaces cannot disagree. > [!NOTE] > > The class is derived, not asserted. A token that is graded but not yet classified takes the `stablecoin` arm and answers `200`. Read `metadata.asset_class` to separate a confirmed fiat token (`"fiat"`) from one carrying none (`null`) — either not classified yet, or classified as stable without a confirmed backing. `metadata.asset_type` carries the same value as `metadata.segment` and predates the split; prefer `segment` in new integrations. > [!NOTE] > > Reclassification is not immediate here. Membership and the derived classification are both cached, so a freshly retagged token can keep returning its previous answer for a few minutes. # List Stablecoin Grades Source: https://docs.webacy.com/api-reference/stablecoins/get-stablecoin-grades GET /v3/stablecoins/grades Stablecoin-only twin of `GET /v3/rwa/grades`: identical response, with `segment` fixed to `stablecoin` — `asset_class` fiat plus graded tokens that have not been classified yet, i.e. everything the `segment` rule does not resolve to `rwa`. `grade_counts` still covers the full graded set. A caller-supplied `segment` is ignored. Stablecoin-only twin of [`GET /v3/rwa/grades`](/api-reference/rwa-v3/get-rwa-grades). Identical response, with `segment` pinned to `stablecoin`; a caller-supplied `segment` is ignored. > [!WARNING] > > **Higher score = more risk.** `composite.score` runs **0–100**, where **0 = no structural risk** and **100 = maximum risk** (`A+` ≈ 0, `F` ≈ 100). See [Score Polarity](/api-reference/rwa-v3#score-polarity). ## The segment rule on this list The grades universe is our grading snapshot rather than the set of classified tokens, and many tokens in it are not classified yet. Those fall to the `stablecoin` arm, so here `stablecoin` means **"pegged and not a classified RWA, including not-yet-classified"** — it is not the same as `asset_class = fiat`. Read each row's `asset_class` to tell a confirmed fiat token (`"fiat"`) from one carrying none (`null`). A `null` has two causes: the token has not been classified yet, or it is confirmed stable without a confirmed backing type. The two segments are exclusive and total, so the `stablecoin` and `rwa` counts add up to the unfiltered total. > [!NOTE] > > `grade_counts` describes the **full graded universe** — before every filter and before pagination, so pinning the segment does not narrow it. That is deliberate, for parity with `GET /v3/rwa/grades`. ## When the classification is unavailable The classification is resolved on every request. If it cannot be resolved, this route **fails closed with `503`** rather than returning every graded token as though it were a stablecoin. `pegType` is not accepted on either grades route — grade rows carry no denomination. Use [`GET /rwa`](/api-reference/depeg-monitor/list-pegged-tokens-with-depeg-risk) for that filter. The unfiltered [`GET /v3/rwa/grades`](/api-reference/rwa-v3/get-rwa-grades) degrades differently: it still answers `200`, omits the classification fields on each row, and sets `classification_available: false`. Treat that flag as "unknown", never as "not a stablecoin". # List Stablecoins Source: https://docs.webacy.com/api-reference/stablecoins/list-stablecoins GET /v3/stablecoins Stablecoin-only twin of `GET /v3/rwa`: the depeg list with `segment` fixed to `stablecoin`. `stablecoin` here is the derived segment, not `asset_class` fiat: membership also admits tokens for their stable peg behaviour, and those rows carry no `asset_class`. Read each row's `asset_class` to separate confirmed fiat from null. Each row is enriched with the v3 composite letter grade (`grade`, null when ungraded) plus top-level `schema_version` and `grades_available`. Accepts every `GET /rwa` filter except `segment`; `pegType` narrows by peg mechanism; note `direct` is also the fallback for a token with no recorded denomination, so it means "cash-backed OR not yet classified", and `yield-bearing` cuts across the other four rather than being a fifth peer. Requires the v3 API usage plan. `aggregates` (including `aggregates.tier_counts`) covers the segment-selected universe: the segment and the default enrollment gate (see `includeUnenrolled`) are applied before aggregation, every other filter after it. The TOP-LEVEL `tier_counts` is different — it counts the filtered result set, before pagination. `pegType` and the other filters are post-aggregate view filters. Unless `includeUnenrolled=true`, `pagination.total` counts the served rows, not the whole classified catalog. The v3 depeg list with `segment` pinned to `stablecoin` server-side — this route cannot return an RWA, and a caller-supplied `segment` is ignored. Use it when your integration only ever wants stablecoins. If you need both segments from one call, use [`GET /rwa`](/api-reference/depeg-monitor/list-pegged-tokens-with-depeg-risk) and pass `segment` yourself — note those rows do **not** carry the v3 composite `grade` this route adds. > [!WARNING] > > **Two polarities in one payload.** Each row carries the v3 composite `grade` (risk polarity: `A+` ≈ 0 risk, `F` ≈ 100) **and** the v2 depeg `score`. Do not compare them directly. See [Score Polarity](/api-reference/rwa-v3#score-polarity). ## Which tokens are listed Same default and `includeUnenrolled` as `GET /rwa` — see [Which tokens are listed](/api-reference/depeg-monitor/list-pegged-tokens-with-depeg-risk#which-tokens-are-listed). Only tokens Webacy has selected for monitoring are served unless you pass `includeUnenrolled=true`; `pagination.total` and `aggregates` follow the served set. ## What counts as a stablecoin A **segment** is a category derived from the asset classification fields (`asset_class`, `is_rwa`, `subclass`); it is not one of their values: | Segment | Rule | | - | - | | `rwa` | `is_rwa` is true and `asset_class` is not `fiat` | | `stablecoin` | everything else | `asset_class = fiat` means the token is **denominated in a government currency** — it is not a statement about what backs the peg. USDC, DAI and USDe are all fiat-denominated and all stablecoins, whether the reserves are cash, over-collateralised crypto or a hedged derivative book. > [!WARNING] > > Do **not** pass an `asset_class` value such as `fiat` or `fixed-income` to `segment`. They are different vocabularies: `segment` is `stablecoin` or `rwa`, while each returned row's `asset_class` reads `fiat`, `fixed-income`, `commodity` and so on. Every row carries both, so you can see why it matched. > [!WARNING] > > **`segment = stablecoin` is not the same as `asset_class = "fiat"`.** > > A token joins the pegged universe through **any one** of three signals: `asset_class = "fiat"`, `is_rwa = true`, or a stable peg behaviour. The third admits tokens that assert a stable peg whose backing is not confirmed, and those deliberately carry **no** `asset_class`. They resolve to the `stablecoin` segment. > > Read each row's `asset_class` to tell a confirmed fiat token (`"fiat"`) from one carrying none (`null`). A non-trivial minority of stablecoin rows are `null`, so do not filter client-side on `asset_class === "fiat"` expecting the full set. ## Narrowing by peg mechanism `pegType` filters by **how the peg is held**, which is a separate axis from the segment: | Value | Meaning | | - | - | | `direct` | held in cash and equivalents | | `collateralized` | crypto-backed, typically over-collateralised | | `algorithmic` | algorithmic supply control | | `derivative-hedged` | hedged derivative book | | `yield-bearing` | yield-bearing wrapper | > [!WARNING] > > `yield-bearing` is **not** a fifth peer of the other four. The first four partition how the peg is *defended*; `yield-bearing` answers whether the holder receives yield, so it cuts across them. Treat the five as one selector rather than a clean taxonomy, and do not assume `pegType=direct` returns every cash-backed token. > [!NOTE] > > **A classification outage does not fail closed here.** The grades and detail aliases answer `503` when the classification cannot be loaded; this list is served from a cached set of tracked tokens instead, so the same outage yields the last-known list, or an empty one, with `200`. The `stale` flag reflects the pricing snapshot, not the token set, so it will not signal it either. Treat an unexpectedly empty result as unknown rather than as "no stablecoins match". > > The `503` in the response list below is the payment path (x402), not a classification failure. > [!NOTE] > > A token with no denomination record falls back to a currency lookup, where the listed fiat codes read `direct`. Treat `direct` as "cash-backed **or not yet classified**" rather than a confirmed reserve model. # Get supply-flow detail for one token Source: https://docs.webacy.com/api-reference/supply-flows/get-supply-flow-detail GET /rwa/supply/{symbol} Case-insensitive symbol lookup. For symbols that collide across tokens, send `chain` + `address` (strongest) or `canonicalId` to pin a deterministic row, or `tokenType` as a soft disambiguator. Without a pin, the largest-supply token wins and, when the symbol matches more than one distinct token, the response carries `collision: true` plus a `candidates` list so callers can re-query pinned. Returns 404 when the symbol is absent from a resolved snapshot, or when `canonicalId` is supplied but no row matches that `{symbol, canonicalId}` pair. During partial outage (stale cache, known symbol) the response carries `stale: true`; during total outage (fallback cache also empty) returns 200 with `token: null, stale: true, degraded: true`, the same outage envelope as the list endpoint, so clients can distinguish a retryable outage from a permanent 404. # List stablecoin supply flows Source: https://docs.webacy.com/api-reference/supply-flows/list-supply-flows GET /rwa/supply Returns paginated per-token supply-flow rows plus an aggregates envelope carrying the hero metrics (bank_run_gauge, minting_pressure, supply_by_category, network_count, stress_tokens, mcap_7d_pct). Aggregates are computed over the filtered set before pagination; `mcap_7d_pct` and `stress_tokens` pass through from the pipeline's universe-level totals. Data is refreshed daily — responses carry `stale: true` when the snapshot is older than 25h or served from the fallback cache during an upstream data outage, and `degraded: true` only during a total outage (stale snapshot AND zero tokens) — an empty `items` with `degraded: false` is genuinely empty. # Risk intelligence for an address Source: https://docs.webacy.com/api-reference/threat-risks/threat-considerations-for-an-address GET /addresses/{address} Analyze any address for security threats, fraud indicators, and risk factors across supported blockchains. **Supported Address Types:** - Wallet addresses (EOA) - Token/coin addresses - Smart contract addresses The API automatically detects the address type and returns relevant risk analysis. You do not need to use separate endpoints for different address types. # Get economic history for a token Source: https://docs.webacy.com/api-reference/token-analysis/get-token-economic-history GET /tokens/{tokenAddress} Retrieves historical token economics data for a specific date, including price, market cap, and trading volume across multiple currencies. This endpoint also provides risk assessment and token metadata to enable comprehensive analysis of token performance at a specified point in time. > [!NOTE] > > For a **stablecoin or RWA** (USDC, USDT, PYUSD, DAI, tokenized treasuries, gold), this endpoint omits peg and structural risk. Use [RWA Risk (v3)](/api-reference/rwa-v3/get-rwa-risk-detail) for structural health and the [Depeg Monitor](/api-reference/depeg-monitor) for peg deviation instead. # Get pools with risk assessment for a token Source: https://docs.webacy.com/api-reference/token-analysis/get-token-pools-with-risk-assessment GET /tokens/{tokenAddress}/pools Retrieves liquidity pools associated with a token and provides risk assessments for each related token in those pools. This endpoint helps in understanding the liquidity landscape and potential risks within the token's ecosystem. > [!NOTE] > > For a **stablecoin or RWA** (USDC, USDT, PYUSD, DAI, tokenized treasuries, gold), pool data omits peg and structural risk. Use [RWA Risk (v3)](/api-reference/rwa-v3/get-rwa-risk-detail) for structural health and the [Depeg Monitor](/api-reference/depeg-monitor) for peg deviation instead. # Get trending tokens with risk analysis Source: https://docs.webacy.com/api-reference/token-analysis/get-trending-cryptocurrencies-with-risk-analysis GET /tokens/trending We index new trending tokens every 10 minutes and provide comprehensive risk analysis, token economics, and metadata for each. This endpoint returns a complete view of trending tokens and their associated risks. # Get Solana token risk with security indicators Source: https://docs.webacy.com/api-reference/trading-lite/get-simplified-token-analysis-with-security-indicators GET /trading-lite/{address} Returns simplified token analysis including bundler detection, sniper detection, top holder distribution, developer activity, token authority status (mintable/freezable), and the fees a trader pays (Token-2022 transfer fee as buy/sell/transfer tax, plus the trade and creator fee of the primary Raydium pool). Optimized for repeat calls. **Chains:** Solana (`sol`) returns the full analysis (`TradingLiteAnalysis`). EVM chains (`eth`, `base`, `bsc`, `arb`, `robinhood`) return the holder distribution and the fee block only (`TradingLiteEvmAnalysis`): bundler, sniper, developer, `mintable`/`freezable` and `lastAnalyzedSlot` are Solana-only and are omitted. **Security Indicators:** - `mintable: false` = Mint authority renounced (supply is fixed) ✅ - `mintable: true` = Token supply can still be increased ⚠️ - `freezable: false` = Freeze authority renounced (accounts cannot be frozen) ✅ - `freezable: true` = Accounts can be frozen by issuer ⚠️ **Performance:** - First call: Full analysis (~2-5 seconds on Solana; on EVM chains typically 2-8 seconds; a whole-request deadline of 25 seconds returns whatever has resolved as a degraded response) - Cached calls: Fast response (~0.5 seconds) - Cache TTL: 5 minutes **Fees:** - `buy_sell_taxes` — Token-2022 transfer fee as buy, sell and transfer tax (0-100). It is charged on every transfer, so wallet-to-wallet sends pay it too (`has_transfer_tax` / `transfer_tax_percentage`); same rate on all three - `pool_fees` — trade fee and, when enabled, creator fee of the highest-TVL Raydium pool; `null` when the token has no Raydium pool - `total_effective_fee_percentage` — transfer fee (counted once) + trade fee + creator fee **Fees on EVM chains:** - `buy_sell_taxes` — buy and sell tax are measured by simulating a swap; transfer tax by simulating a wallet-to-wallet `transfer()` from a current holder and comparing the amount received with the amount sent. Each leg is independent: `has_buy_tax` / `has_sell_tax` / `has_transfer_tax` is `null` when that leg could not be measured (no pair, the simulation reverted, provider unavailable), `false` when it was measured as 0 - `pool_fees` — swap fee of the highest-liquidity pool: read on-chain from `fee()` for Uniswap V3-style pools, a protocol constant for V2-style pools (for example Uniswap V2 0.30%, PancakeSwap V2 0.25%). `null` when the primary pool is on a DEX the fee cannot be read from (Uniswap v4, Algebra forks, dynamic-fee pools). `creator_fee_percentage` is never set on EVM - `total_effective_fee_percentage` — buy tax + pool fee (the cost of a buy). Omitted when either is unknown - A response with a degraded leg (unmeasured tax, a failed holder/metadata or pool lookup, or the request deadline) is cached for 1 minute instead of 5 # Trading Due Diligence Source: https://docs.webacy.com/api-reference/tradingdd Run trading due diligence with Webacy market-intelligence endpoints — real-time liquidity, holder, and risk signals for tokens you trade or list. ## Overview Trading DD endpoints provide real-time trading intelligence and market analysis. Use these endpoints for trading bots, portfolio management, and DEX integrations that require fast, actionable data. ## Trading Endpoints > [card] [Trading Lite](/api-reference/trading-lite/get-simplified-token-analysis-with-security-indicators) > > Lightweight, fast risk assessment optimized for trading applications > [card] [Pool Analysis](/api-reference/pool-analysis/get-pool-ohlcv-data-with-risk-assessment) > > Liquidity pool data, TVL, and trading pair information > [card] [Holder Analysis](/api-reference/holder-analysis/get-detailed-early-holder-analysis-for-a-token) > > Token holder distribution, whale concentration, and sniper detection > [card] [Transaction Scanning (KYT)](/api-reference/transaction-scanning/scan-raw-evm-transaction-for-security-risks) > > Know Your Transaction — scan and simulate transactions before signing *** ## Endpoint Details ### Trading Lite Fast, lightweight risk checks optimized for trading workflows. Returns essential risk signals without the full analysis overhead. **Best for:** * Trading bots requiring sub-second responses * Quick screening before trades * High-volume applications ```bash theme={null} curl -X GET "https://api.webacy.com/trading-lite/So111...?chain=sol" \ -H "x-api-key: YOUR_API_KEY" ``` *** ### Pool Analysis Get detailed liquidity pool information including TVL, trading pairs, and pool health metrics. **Best for:** * DEX aggregators * Liquidity analysis * Price impact estimation * Slippage calculation ```bash theme={null} # Get pools for a token curl -X GET "https://api.webacy.com/tokens/0x123.../pools?chain=eth" \ -H "x-api-key: YOUR_API_KEY" # Get specific pool data curl -X GET "https://api.webacy.com/tokens/pools/0xpool...?chain=eth" \ -H "x-api-key: YOUR_API_KEY" # Get trending pools curl -X GET "https://api.webacy.com/tokens/pools/trending?chain=sol" \ -H "x-api-key: YOUR_API_KEY" ``` *** ### Holder Analysis Analyze token holder distribution to identify concentration risks, whale movements, and sniper activity. **Best for:** * Detecting insider concentration * Identifying sniper wallets * Whale watching * Token distribution analysis ```bash theme={null} curl -X GET "https://api.webacy.com/holder-analysis/So111...?chain=sol" \ -H "x-api-key: YOUR_API_KEY" ``` > [!NOTE] > > Early holder analysis covers Solana tokens launched within the last 12 months and BSC tokens deployed within the last 3 months (data provider retention). Older tokens return `data_availability: "unsupported_token_age"`; previously analyzed tokens continue to return stored results. *** ### Transaction Scanning Simulate and analyze transactions before they're signed. Essential for wallet security and transaction preview features. **Best for:** * Wallet transaction previews * dApp transaction validation * Phishing detection * Approval screening ```bash theme={null} # Scan a pending transaction curl -X POST "https://api.webacy.com/scan/0xfrom.../transactions" \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "to": "0xto...", "data": "0x...", "value": "1000000000000000000", "chain": "eth" }' # Scan EIP-712 typed data curl -X POST "https://api.webacy.com/scan/0xfrom.../eip712" \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "typedData": { "domain": { "name": "Example", "version": "1", "chainId": 1 }, "types": { "Message": [{ "name": "content", "type": "string" }] }, "primaryType": "Message", "message": { "content": "Hello" } }, "chain": "eth" }' ``` *** ## When to Use Trading DD | Use Case | Recommended Endpoints | | - | - | | **Trading bots** | Trading Lite, Pool Analysis | | **DEX integrations** | Pool Analysis, Transaction Scanning | | **Wallet security** | Transaction Scanning | | **Liquidity analysis** | Pool Analysis | | **Pre-trade checks** | Trading Lite, Transaction Scanning | | **Token analysis** | Holder Analysis, Pool Analysis | | **Whale watching** | Holder Analysis | ## Trading DD vs Risk DD | Aspect | Trading DD | Risk DD | | - | - | - | | **Speed** | Optimized for low latency | Comprehensive analysis | | **Depth** | Essential signals | Full risk breakdown | | **Use case** | Real-time trading | Due diligence | | **Response size** | Minimal | Detailed | > [!TIP] > > For trading applications, start with **Trading Lite** for speed. Use **Risk DD** endpoints when you need deeper analysis or compliance checks. ## Example Trading Workflow ```javascript theme={null} // 1. Quick risk check before trade const quickCheck = await fetch( `https://api.webacy.com/trading-lite/${tokenAddress}?chain=sol`, { headers: { 'x-api-key': API_KEY } } ).then(r => r.json()); if (quickCheck.overallRisk > 70) { console.log('High risk token - skipping'); return; } // 2. Check liquidity const pools = await fetch( `https://api.webacy.com/tokens/${tokenAddress}/pools?chain=sol`, { headers: { 'x-api-key': API_KEY } } ).then(r => r.json()); if (pools.totalLiquidity < 10000) { console.log('Low liquidity - high slippage risk'); return; } // 3. Proceed with trade... ``` ## Related Resources > [card] [Risk DD Endpoints](/api-reference/riskdd) > > Full risk due diligence endpoints for deeper analysis > [card] [Webhooks](/essentials/webhooks) > > Real-time push notifications for trading events # Get risk details for a transaction hash Source: https://docs.webacy.com/api-reference/transaction-risks/risk-details-for-a-transaction GET /transactions/{txHash} Get comprehensive risk analysis for a specific blockchain transaction # Simulate an EIP-712 signed message for security risks Source: https://docs.webacy.com/api-reference/transaction-scanning/scan-eip-712-signed-message-for-security-risks POST /scan/{fromAddress}/eip712 Analyzes an EIP-712 typed data signature for security risks including malicious domains, suspicious contracts, and potential phishing attempts. Only Ethereum mainnet is supported: the chain is `data.domain.chainId` (1, as a number or a decimal / `0x` hex string) and must agree with the `chain` query when both are given. # Simulate a raw EVM transaction for security risks Source: https://docs.webacy.com/api-reference/transaction-scanning/scan-raw-evm-transaction-for-security-risks POST /scan/{fromAddress}/transactions Analyzes a raw EVM transaction for security risks including malicious contracts, suspicious addresses, and potential threats. Supports Ethereum (1), BSC (56), Polygon (137), Optimism (10), Arbitrum (42161), and Base (8453). # Get risk analysis of a URL Source: https://docs.webacy.com/api-reference/url-risks/project-url-risk-analysis POST /url Analyze a URL for phishing, malware, and other security threats # V3 Framework Methodology Source: https://docs.webacy.com/api-reference/vault-risk-v3/framework-methodology Learn how the Webacy V3 risk framework is structured, how composite vault scores are derived from category contributors, and why the taxonomy is API-driven. ## Overview The V3 risk framework is a versioned taxonomy of **7 categories** and **42 criteria** that the scoring pipeline evaluates for every vault. Each criterion resolves to `pass`, `warn`, or `fail` per vault; criteria roll up into category scores; category scores roll up into a single composite, which is then mapped to a letter grade. This page narrates the framework. The framework itself lives at [`GET /v3/framework`](/api-reference/vault-risk-v3/get-framework) — that endpoint is the source of truth for the category list, the criteria within each category, and which criteria are live versus planned. > [!TIP] > > For the endpoint payload format and the polarity / upstream-floor mechanics, see the [V3 overview](/api-reference/vault-risk-v3/v3-overview). *** ## Why the framework is an API The framework lives behind a public, cacheable endpoint instead of being maintained as a parallel table in the docs. There's one reason: **the docs cannot drift from the API**. When the API adds a criterion or moves a planned criterion to live, the next call to `GET /v3/framework` reflects that change immediately. Clients that fetch the framework get the same view the scoring pipeline used to score their last response. The framework is data, not documentation. You can render it client-side, ship it in your own admin UI, or pin a snapshot for reproducible scoring. The endpoint is **public** (no API key, no billing) and cacheable for 5 minutes (`Cache-Control: public, max-age=300, stale-while-revalidate=60`). Hit it freely. *** ## Categories at a glance | Key | Name | Weight | What it measures | Status | | - | - | - | - | - | | `smart_contract` | Smart contract | 0.20 | Audit history, contract ownership model, timelock presence, and Webacy's real-time contract analysis | Live | | `operational_governance` | Operational governance | 0.20 | Multisig controls, admin key practices, and operational hygiene | Live | | `asset_collateral` | Asset & collateral | 0.15 | Collateral quality, asset integrity, reserve transparency, backing type, and share-price (depeg) stability | Live | | `market_liquidity` | Market & liquidity | 0.20 | On-chain liquidity depth and exit/redemption accessibility | Live | | `counterparty` | Counterparty | 0.10 | Exposure to external protocols, custodians, and other dependencies | Live | | `hack_exploit_history` | Hack & exploit history | 0.15 | Known exploits or security incidents | Live | | `chain_infrastructure` | Chain infrastructure | 0.00 | Underlying-chain risk (reserved — zero weight today) | Stub (reserved, zero weight) | `chain_infrastructure` carries zero weight today and is included so the schema is stable — its weight may become non-zero in a future scheme version, at which point existing clients keep working without any code changes. The weights always sum to 1.00. Today the six live categories carry the full weight (`chain_infrastructure` is `0.00`). If `chain_infrastructure` gains weight in a future scheme version, the live-category weights are rebalanced downward to make room — so the total stays 1.00 rather than the new category being added on top. *** ## What each category measures Each criterion resolves to `pass`, `warn`, or `fail`, and the criteria within a category roll up into that category's 0–100 score; [Composite derivation](#composite-derivation) below shows how those category scores combine into the grade. The breakdown here explains what each category covers and names representative live criteria — the [framework endpoint](/api-reference/vault-risk-v3/get-framework) is the canonical, always-current source for the full criteria list and each criterion's live/planned status. For the underlying V2 signal-level breakdown that rolls into these categories, see [Vault Ratings → Sub-scores](/vault-ratings#sub-scores). On the vault detail response, each criterion doesn't just report a verdict — it shows its work. Every criterion includes a `name` (a human-readable label for the check) and, when a value is available, an `evidence` object with the actual numbers behind the `pass`/`warn`/`fail` — for example holder concentration or an audit count and auditor tier. This is the per-criterion risk-data breakdown: the same checks described below, annotated with the measurements that produced each verdict. Above the criteria, `composite.drivers` ranks the penalty-driving subcategories worst-first (descending by weighted contribution), so you can read a grade top-down: which subcategory cost the most points, then the specific criteria inside it and their evidence. This is what answers a question like "why is USDS an `A-` and not an `A`?" — the drivers name the subcategory that took the points, and the criterion-level evidence shows the numbers that drove it. These fields are additive; the response includes them when the data is available. See the [Explainability](/api-reference/vault-risk-v3/v3-overview#explainability) section on the V3 overview for the response shape, and the [Vault Detail (V3) reference](/api-reference/vault-risk-v3/get-vault-risk-detail-v3) for the full field schema. > [accordion] Smart contract — weight 0.20 > > Code-level safety of the vault contracts: audit coverage, the contract ownership and admin model, upgradeability, and timelock protection. Complemented by [Webacy's real-time contract analysis](/api-reference/contract-risk/get-a-real-time-analysis-for-a-given-contract-address) — our proprietary scan for reentrancy, unchecked calls, and malicious external calls. > > Representative live criteria: `audited`, `owner_is_multisig`, `timelock_present`, `mint_cap_present`. > [accordion] Operational governance — weight 0.20 > > How the vault is controlled and operated day to day: multisig controls, admin-key practices, monitoring of privileged changes, and operational hygiene. > > Representative criteria: `admin_key_changes`, `timelock_changes`. > [accordion] Asset & collateral — weight 0.15 > > Quality and integrity of the vault's underlying assets: collateral quality, asset integrity, reserve transparency, backing type, and share-price (depeg) stability. > > Representative criteria: `share_price_stable`, `supply_reserves_reconciliation`. > > Related: for real-time peg monitoring of stablecoins and pegged assets, see the [Depeg Monitor](/api-reference/depeg-monitor); for structural risk scoring of stablecoins and RWA tokens, see [RWA Risk](/api-reference/rwa-v3). > [accordion] Market & liquidity — weight 0.20 > > Whether positions can be entered and exited safely: on-chain liquidity depth, exit and redemption liquidity, holder concentration, and anomalous mint/burn or transfer flow. > > Representative criteria: `large_holder_concentration`, `mint_burn_anomaly`, `large_transaction_alerts`. > [accordion] Counterparty — weight 0.10 > > Exposure to external entities the vault depends on: protocol and custodian dependencies, concentration in a single counterparty, and centralized points of failure. > > The live criteria for this category are listed in the [framework endpoint](/api-reference/vault-risk-v3/get-framework). > [accordion] Hack & exploit history — weight 0.15 > > Track record of security incidents: known exploits, compromises, or incidents affecting the vault, its protocol, or its dependencies. > > Representative criteria: `no_exploit_history`. > [accordion] Chain infrastructure — weight 0.00 (reserved) > > Risk inherited from the underlying chain: liveness, validator or sequencer centralization, reorg exposure, and bridge security. This category is reserved and carries zero weight today, so no criteria are live yet. *** ## Composite derivation The composite score is a two-step calculation. ### Step 1 — framework composite For each category that has live criteria, compute a category score (0–100, higher = worse). Multiply each category score by its weight and sum: ```text theme={null} framework_composite = Σ ( category_score × category_weight ) ``` ### Step 2 — upstream floor Take the maximum of the framework composite and the upstream risk signal: ```text theme={null} composite.score = max(framework_composite, upstream_risk) ``` Where `upstream_risk` is a verbatim copy of `risk.overallRisk` from the v2 envelope on the same response. When the upstream value wins, `composite.clamped_by_upstream` is `true`. See [The upstream floor](/api-reference/vault-risk-v3/v3-overview#the-upstream-floor) on the overview for why this matters. > [!WARNING] > > **Polarity is risk-magnitude direction: higher = worse.** Category scores, contributor scores, and the composite all run 0 (lowest risk) to 100 (highest risk). The letter grade then maps in the conventional direction — `A+` is best, `F` is worst. See the [polarity warning](/api-reference/vault-risk-v3/v3-overview#score-polarity) on the V3 overview for the worked example. ### Letter grade mapping The composite score maps through the active grading scheme to a letter grade (`A+`–`F`) and a star count (`1`–`5`). It is a **risk rating**: lower risk earns a better grade — `A+` is the lowest risk, `F` is the highest. The grading scheme is versioned independently of the framework via `?grading_scheme`. The default is **`v2`**, the standard 11-band scale below; `v1` is the frozen legacy scale (it uses an `E` band and has no `C+`) and stays pinnable. | Grade | Risk score | Stars | Grade | Risk score | Stars | | :- | :- | :- | :- | :- | :- | | A+ | 0–5 | ★★★★★ | C+ | 47–56 | ★★★☆☆ | | A | 6–12 | ★★★★★ | C | 57–66 | ★★★☆☆ | | A- | 13–20 | ★★★★★ | C- | 67–77 | ★★★☆☆ | | B+ | 21–28 | ★★★★☆ | D | 78–88 | ★★☆☆☆ | | B | 29–37 | ★★★★☆ | F | 89–100 | ★☆☆☆☆ | | B- | 38–46 | ★★★★☆ | | | | *** ## Coverage disclosure Every V3 vault detail response includes a `coverage` block: ```jsonc theme={null} { "coverage": { "framework_version": "v1", "total_criteria": 42, "live_criteria": 28, "per_category": { /* live + total counts per WebacyCategory */ } } } ``` This is part of the framework contract, not a side note. A category score where 3 of 6 criteria are live is not the same statement as a category score where all criteria are live, and clients deserve to see the difference. Surface the per-category coverage alongside the score whenever you display category-level risk. The 42-criteria total counts every criterion in the taxonomy, live or not. The 28-criteria live count is what the scoring pipeline actually evaluated. The remaining 14 come online over the next several releases. *** ## Vault composition > [!NOTE] > > Composition on the **v3** detail endpoint is not live yet. It is already available on the `GET /vaults/{address}` endpoint; this section documents the v3 shape, which applies once that endpoint reaches parity. For vaults where the underlying holdings are resolvable (e.g. Lagoon Safe vaults), you receive a per-leg composition breakdown alongside the grade — the score **and** what backs the vault in one call, including any impaired (depegged) collateral: ```jsonc theme={null} { "vault_composition": [ { "symbol": "pmUSD", "share_pct": 8.27, "usd_value": 350618, "impaired": true, "position_label": "Convex - PMUSD/CRVUSD" } // ...remaining legs ], "coverage_ratio": 0.4664, "coverage_incomplete": true, "impaired_composition_legs": ["Convex - PMUSD/CRVUSD"] } ``` * `vault_composition` — per-leg holdings: `symbol`, `share_pct`, `usd_value`, an `impaired` flag (leg holds a registry-impaired asset), and `position_label` (the named DeFi position for an impaired leg, whose `symbol` is the underlying ticker). Empty array when composition is not computed for the vault. * `coverage_ratio` — attributable composition ÷ reported NAV, in `[0, 1]`. `null` when not computed. * `coverage_incomplete` — `true` when attributed composition falls below the coverage threshold (read the legs as a partial view). `null` when not computed. * `impaired_composition_legs` — identifiers of the impaired legs; `null` when none are impaired. > [!WARNING] > > Do not confuse `coverage_ratio` with the framework `coverage` block above. `coverage_ratio` measures **composition attribution** (how much of NAV the listed legs account for); the `coverage` block measures **framework criteria coverage** (how many risk criteria were evaluated). They are unrelated, and both can appear in the same response. For Kamino (Solana) vaults, you get the equivalent per-reserve allocation breakdown on `metadata.kamino_reserve_allocations`. *** ## Pinning the framework Both the framework version and the grading scheme are pinnable via query parameters: | Parameter | Default | Behavior | | - | - | - | | `?framework_version=v1` | `v1` | Selects which taxonomy version to score against. Unknown → `400` with `{ error, supported_versions: ['v1'] }`. | | `?grading_scheme=v2` | `v2` | Selects which composite-to-letter mapping to use. Unknown → `400` with `{ error, supported_schemes: ['v1', 'v2'] }`. | Both default, but **pinning is the contract**. Clients that don't pin will silently re-score when a new framework or scheme version ships. Pin from day one — the table above is the full contract. The framework endpoint accepts the same `?framework_version=v1` parameter — pass it to get the exact taxonomy that a pinned vault detail call would use. *** ## Related resources > [card] [Framework Taxonomy](/api-reference/vault-risk-v3/get-framework) > > The canonical, machine-readable framework. Call this for the current category and criteria list. > [card] [Vault Detail (V3)](/api-reference/vault-risk-v3/get-vault-risk-detail-v3) > > Request/response reference for the per-vault scoring endpoint. > [card] [Vault Risk V3 Overview](/api-reference/vault-risk-v3/v3-overview) > > Polarity, upstream floor, and the V3 versioning contract in one page. ## Related Webacy risk coverage These complementary Webacy products score adjacent risk surfaces independently of the vault composite — use them alongside V3 vault risk for fuller coverage. > [card] [Contract Risk](/api-reference/contract-risk/get-a-real-time-analysis-for-a-given-contract-address) > > Real-time smart contract security analysis and vulnerability detection. > [card] [Depeg Monitor](/api-reference/depeg-monitor) > > Real-time peg-deviation risk for 600+ stablecoins and pegged assets. > [card] [RWA Risk (v3)](/api-reference/rwa-v3) > > Structural risk scoring for stablecoins and real-world asset tokens. # Get vault risk data framework and taxonomy Source: https://docs.webacy.com/api-reference/vault-risk-v3/get-framework GET /v3/framework Public methodology endpoint (no API key). Returns the full criteria taxonomy plus the supported framework / grading-scheme version lists. Unknown `framework_version` pins return 400 with the supported list. Cached 5 min. This endpoint returns the canonical V3 risk framework — the seven categories and their criteria, with each criterion's live/planned status. > [!NOTE] > > **Understanding the version numbers.** Three independent version axes show up on the V3 surface — they are not the same number: > > * **API version `v3`** — the URL path (`/v3/...`) and the response `schema_version` (`3.0`). > * **`framework_version`** — which criteria taxonomy was used. `v1` today (the only supported value). > * **`grading_scheme`** — which letter-grade band table is applied. **`v2` is the default** (the standard 11-band scale); `v1` is frozen and deprecated. > > So the V3 API uses `framework_version=v1` and `grading_scheme=v2` by default. The `v1` you may see on `framework_version` is **not** an older API — it's just the current taxonomy version. # Batch vault ratings Source: https://docs.webacy.com/api-reference/vault-risk-v3/get-vault-grades-batch POST /v3/vaults/batch/grades Returns the v3 `composite` grade (letter + 0–100 risk score + per-category contributors) for up to 100 vaults in one request. Vault addresses travel in the POST body because the list is variable-length and may include non-EVM addresses; the endpoint is read-only. Per-vault failures are reported in-band as `{ ok: false, error_code }` (HTTP 200) so a single bad address never fails the whole batch. POLARITY: scores 0–100, higher = worse. Returns the V3 composite grade (letter + 0–100 risk score + per-category contributors) for up to **100** vaults in a single request. The vault addresses travel in the request **body** because the list is variable-length and can include non-EVM addresses; the endpoint is read-only. > [!NOTE] > > The batch never fails as a whole. Each result row carries its own outcome — either `ok: true` with a `composite`, or `ok: false` with an `error_code` (`NOT_FOUND`, `INVALID_ADDRESS`, `UNSUPPORTED_CHAIN`, or `UPSTREAM_ERROR`) — so one bad vault can't sink the request. # Get risk data for a single vault Source: https://docs.webacy.com/api-reference/vault-risk-v3/get-vault-risk-detail-v3 GET /v3/vaults/{address} Returns the v3 Webacy-native vault decomposition: `composite` grade + per-category `contributors`, the dense `categories` criteria map, `coverage` disclosure, plus pass-through v2 `metadata` and `risk`. POLARITY: scores are 0–100, higher = worse (A+ = 0, F = 100). `composite.score` is floored from below by `upstream_risk`. Returns the full V3 risk decomposition for one vault — composite grade, per-category contributors, the dense criteria taxonomy, coverage disclosure, and the pass-through v2 `risk` envelope. > [!NOTE] > > **Understanding the version numbers.** Three independent version axes show up on the V3 surface — they are not the same number: > > * **API version `v3`** — the URL path (`/v3/...`) and the response `schema_version` (`3.0`). > * **`framework_version`** — which criteria taxonomy was used. `v1` today (the only supported value). > * **`grading_scheme`** — which letter-grade band table is applied. **`v2` is the default** (the standard 11-band scale); `v1` is frozen and deprecated. > > So the V3 API uses `framework_version=v1` and `grading_scheme=v2` by default. Seeing `v1` on `framework_version` does **not** mean you're on an older API. ## Supported chains The `chain` query parameter is required. Vault v3 covers **9 chains**: `eth`, `arb`, `base`, `opt`, `pol`, `bsc`, `avax`, `gnosis`, `sol`. Chains outside this list return `400 "Invalid chain"`, even if accepted by a shared parameter enum. ## Assessing freshness > [!WARNING] > > This endpoint does **not** return a `stale` flag or `generated_at`. To assess freshness, use `metadata.last_scored_at` on the response, or read the v2 list / grades endpoints, which carry `stale`. > > Treat missing, stale, or errored data as **unknown — never as safe**. See [Hard-gating and fail behavior](/api-reference/introduction#hard-gating-and-fail-behavior). # V3 Vault Risk API Overview Source: https://docs.webacy.com/api-reference/vault-risk-v3/v3-overview Explore the V3 vault risk surface — composite grades, per-category contributors, the full criteria taxonomy, and coverage disclosure for every vault. ## Overview The V3 vault risk surface (`/v3/*`) is a new, versioned API that builds on top of the v2 risk pipeline. It introduces: * A **composite letter grade** (`A+`–`F`) plus an underlying 0–100 score. * **Per-category contributors** with explicit weights, so you can see exactly which categories drove a vault's score. * A **dense criteria taxonomy** (`pass` / `warn` / `fail` per criterion) across all seven Webacy risk categories. * **Coverage disclosure** — every response tells you how many criteria are live versus planned. * A pass-through `risk` envelope identical to v2 for clients that already consume the standard Webacy risk format. V3 (`/v3/*`) is the recommended, documented path for vault risk. The underlying v2 `risk` envelope is preserved verbatim on every V3 response, so clients that already consume the standard Webacy `risk` format can adopt V3 without changing how they read `risk.*`. ## Endpoints > [card] [Vault Detail (V3)](/api-reference/vault-risk-v3/get-vault-risk-detail-v3) > > `GET /v3/vaults/{address}?chain={chain}` — Composite grade, category contributors, criteria taxonomy, coverage disclosure, and the v2 `risk` envelope. > [card] [Framework Taxonomy](/api-reference/vault-risk-v3/get-framework) > > `GET /v3/framework` — Public endpoint returning the full criteria taxonomy and live/planned status. No API key required. ## Supported chains Vault v3 covers **9 chains**: `eth`, `arb`, `base`, `opt`, `pol`, `bsc`, `avax`, `gnosis`, `sol`. Chains outside this list return `400 "Invalid chain"`, even if accepted by a shared parameter enum. On `sol`, coverage includes **Kamino** vaults (kVaults). Pass the vault's base58 pubkey as `{address}` with `chain=sol` (Solana addresses are case-sensitive — do not lowercase them). Native Solana risk scoring drives the composite, and per-reserve allocations are carried on `metadata.kamino_reserve_allocations`. *** ## Versioning contract V3 responses carry a stable contract on every request. Pin it and you get reproducible scoring even as new framework or grading-scheme versions ship. ### URL path `/v3/...` — parallel to the unversioned v2 root paths. The major version lives in the path; minor revisions ship under the same path with additive fields. Never use `/api/` — the prod gateway strips it and returns `403 Missing Authentication Token`. ### Response body Every V3 response includes a top-level `schema_version` field (currently `"3.0"`). ### Response headers | Header | Value | Meaning | | - | - | - | | `Webacy-Api-Version` | `3.0` | Major.minor version of the response schema | | `Webacy-Framework-Version` | `v1` | Which criteria taxonomy was used to score this response | | `Webacy-Grading-Scheme` | `v2` | Which letter-grade mapping was used (echoes the resolved pin) | ### Query parameters for pinning | Parameter | Default | Behavior on unknown value | | - | - | - | | `?framework_version=v1` | `v1` | `400` with `{ error, supported_versions: ['v1'] }` | | `?grading_scheme=v2` | `v2` | `400` with `{ error, supported_schemes: ['v1', 'v2'] }` | Both default, but **pinning is the contract**. Clients that don't pin will silently re-score when a new framework or scheme version ships. Pin both from your very first V3 call. *** ## Score polarity > [!WARNING] > > **V3 numeric scores follow risk-magnitude polarity: higher = worse.** > > `composite.score`, `categories[].score`, and `composite.contributors[].score` are all on a 0–100 scale where **0 represents the lowest risk** and **100 represents the highest risk**. This matches the polarity of `risk.score` and `risk.overallRisk` from v2 on the same response. > > Letter grades preserve the conventional mapping: **`A+` is the best (lowest risk)**, **`F` is the worst (highest risk)**. So a vault with a low numeric score earns a high letter grade. > > If you're building dashboards, make sure your sort, color, and threshold logic treat higher numbers as *worse*, not better. ### Worked example A vault that scores `64` lands at **`C`**: ```jsonc theme={null} { "schema_version": "3.0", "composite": { "grading_scheme": "v2", "grade": "C", // A+..F, A+ = best (lowest risk) "score": 64.0, // 0–100, HIGHER = WORSE "stars": 3, "contributors": { "smart_contract": { "score": 10, "weight": 0.20 }, "operational_governance": { "score": 25, "weight": 0.20 }, "asset_collateral": { "score": 0, "weight": 0.15 }, "market_liquidity": { "score": 10, "weight": 0.20 }, "counterparty": { "score": 0, "weight": 0.10 }, "hack_exploit_history": { "score": 25, "weight": 0.15 }, "chain_infrastructure": { "score": 0, "weight": 0.00 } }, "upstream_risk": 64, "clamped_by_upstream": true } } ``` The framework-weighted composite of the contributors above is below 64, but the response's `composite.score` is `64`. That's not a bug — read the next section. *** ## The upstream floor > [!NOTE] > > **`composite.score = max(framework_composite, upstream_risk)`.** > > The composite is *floored from below* by `upstream_risk`, which is a verbatim copy of `risk.overallRisk` from the v2 envelope. When the v2 pipeline detects high upstream risk (active exploits, sanctioned counterparties, severe protocol issues), the V3 composite cannot grade better than that signal allows — even if every framework criterion looks clean. > > The boolean `clamped_by_upstream: true` is the visible red flag. When you see it, the contributors below tell you what the framework saw, and `upstream_risk` tells you what the v2 pipeline saw — the worse of the two wins. ### When you'll see this A vault might show every category contributor near zero and still grade `C-` or worse. That happens when `risk.overallRisk` on the same response is elevated. Surface `clamped_by_upstream` in your UI alongside the contributors so users understand why a clean-looking vault has a high score — the framework wasn't blind, the upstream pipeline just had the louder signal. *** ## Explainability The grade is the same grade it has always been — V3 now also tells you *why* it landed there. The vault detail response includes a machine-readable breakdown of which subcategory drove the grade down and the real numbers behind each check, so you can answer "why is this vault a `B+` and not an `A`?" straight from the payload instead of inferring it from the contributors table. ### Drivers On the detail endpoints, `composite.drivers` is a ranked list (descending by `weighted_contribution`) of the subcategories pulling the grade down — worst offender first. Each driver carries its score, weight, and weighted contribution, plus the specific `warn`/`fail` criteria within it: ```jsonc theme={null} { "composite": { "score_source": "framework", "drivers_complete": true, "contributors": { "smart_contract": { "score": 41.5, "weight": 0.20, "weighted_contribution": 8.3 } // ...other categories }, "drivers": [ { "category": "smart_contract", "category_name": "Smart contract", "score": 41.5, "weight": 0.20, "weighted_contribution": 8.3, "criteria": [ { "key": "audited", "name": "Has third-party audits", "status": "warn", "evidence": { "audit_count": 1, "auditor_tier": "mid" } } ] } ] } } ``` ### Per-criterion evidence Every criterion in the response now carries two explainability fields: * `name` — a human-readable label for the check (e.g. `large_holder_concentration` → "Large-holder concentration bounded"). * `evidence` — the actual numbers behind the verdict, such as `{ "hci_10": 0.34 }` for holder concentration or `{ "audit_count": 1, "auditor_tier": "mid" }` for audit coverage. Tag-driven criteria with no underlying number instead carry `{ "triggered_by_tag": "" }`. `evidence` is omitted when no value is available, so treat it as present-when-known rather than guaranteed. ### Composite-level fields * `composite.contributors[*].weighted_contribution` — `score × weight`, i.e. how much each subcategory moved the grade. It quantifies the contributors table you already render. * `composite.score_source` — `"framework"` or `"upstream"`. The explicit companion to `clamped_by_upstream`: it names whether the grade came from the V3 weighted model or was floored by overall pipeline risk. * `composite.drivers_complete` — boolean, detail endpoints only. When `true`, `drivers` fully explains the grade, and an empty `drivers: []` means a genuinely clean grade. When `false`, the grade was floored by upstream pipeline risk, so `drivers` reflects only the framework sub-signal and may be empty even on a bad grade — in that case read `upstream_risk`, not "no risk." ### Where these fields appear `drivers` and `drivers_complete` are on the **detail endpoints** (`GET /v3/vaults/{address}`, `GET /v3/rwa/{address}`). The batch and list responses stay lean — they don't carry the per-driver breakdown — but the composite-level fields still ride along, so `score_source` and `contributors[].weighted_contribution` are available there too. These fields are additive: the response includes them when the data is available, and existing integrations that only read `grade` and `score` keep working unchanged. For the full field-by-field schema, see the [Vault Detail (V3) reference](/api-reference/vault-risk-v3/get-vault-risk-detail-v3). *** ## Categories All V3 responses include scores for **seven** Webacy risk categories. Today **28 of 42** criteria ship live; the rest are present in the taxonomy with `live: false`. | Key | Name | Weight | What it measures | | - | - | - | - | | `smart_contract` | Smart contract | 0.20 | Audit history, contract ownership model, timelock presence, and Webacy's real-time contract analysis | | `operational_governance` | Operational governance | 0.20 | Multisig controls, admin key practices, and operational hygiene | | `asset_collateral` | Asset & collateral | 0.15 | Collateral quality, asset integrity, reserve transparency, backing type, and share-price (depeg) stability | | `market_liquidity` | Market & liquidity | 0.20 | On-chain liquidity depth and exit/redemption accessibility | | `counterparty` | Counterparty | 0.10 | Exposure to external protocols, custodians, and other dependencies | | `hack_exploit_history` | Hack & exploit history | 0.15 | Known exploits or security incidents | | `chain_infrastructure` | Chain infrastructure | 0.00 | Underlying-chain risk (reserved — zero weight today) | `chain_infrastructure` has zero weight today (the category is present so the schema is stable) and may become non-zero in a future scheme version. The category's `criteria` object on the vault detail response is empty (`{}`) until then. For a per-category breakdown of what each category covers and the representative criteria that feed it, see [What each category measures](/api-reference/vault-risk-v3/framework-methodology#what-each-category-measures) on the framework methodology page. For the full criteria taxonomy — including which criteria are live today and which are planned for a future release — call the [framework endpoint](/api-reference/vault-risk-v3/get-framework). It's the canonical source; this docs site reflects whatever the framework endpoint returns. *** ## Coverage disclosure Every V3 vault detail response includes a `coverage` block: ```jsonc theme={null} { "coverage": { "framework_version": "v1", "total_criteria": 42, "live_criteria": 28, "per_category": { /* live + total counts per WebacyCategory */ } } } ``` This is a deliberate transparency mechanism: clients can show users exactly how much of the framework was evaluated. A score of `10` in a category where 3 of 6 criteria are live is a different statement than a score of `10` in a category where all criteria are live. *** ## Related resources > [card] [Framework Methodology](/api-reference/vault-risk-v3/framework-methodology) > > How the framework is structured, how scores compose, and why the taxonomy is API-driven. > [card] [Vault Detail (V3)](/api-reference/vault-risk-v3/get-vault-risk-detail-v3) > > Full request/response reference for `GET /v3/vaults/{address}`. > [card] [Framework Taxonomy](/api-reference/vault-risk-v3/get-framework) > > Public endpoint returning the live framework taxonomy. ## Related Webacy risk coverage These complementary Webacy products score adjacent risk surfaces. They are scored independently of the vault composite — use them alongside V3 vault risk for fuller coverage. > [card] [Contract Risk](/api-reference/contract-risk/get-a-real-time-analysis-for-a-given-contract-address) > > Real-time smart contract security analysis and vulnerability detection. > [card] [Depeg Monitor](/api-reference/depeg-monitor) > > Real-time peg-deviation risk for 600+ stablecoins and pegged assets. > [card] [RWA Risk (v3)](/api-reference/rwa-v3) > > Structural risk scoring for stablecoins and real-world asset tokens. # Get Vault Share Price History Source: https://docs.webacy.com/api-reference/vault-risk/get-vault-share-price-history GET /vaults/{address}/share-price-history Returns a daily time series of share prices for a single ERC-4626 vault, in underlying units (assets per share), the same unit as `metadata.last_share_price` on `GET /vaults` and `GET /vaults/{address}`. The per-point field keeps the name `share_price_usd` for backward compatibility; its value is not converted to USD. Each point carries `apy_trailing_7d` — annualised against the sample 7 days earlier — which is `null` when the 7-day look-back sample is missing or the absolute APY exceeds 100 (clamped to suppress single-day pricing artifacts). Each point also carries a `quality_flag` describing whether the underlying share price was marked trustworthy. The hoisted `latest` aggregate additionally surfaces `apy_trailing_30d`, a smoother window intended for headline / stat-tile display. **Quality filtering (default):** Samples flagged as `capped`, `diverged`, or `spike` are dropped from the response by default so the chart line stays clean against single-day pricing artifacts and depeg-style divergences. When this happens, `count` will be smaller than `days` and `filtered_count` reports how many points were excluded — a visible kink in the chart line is expected and does not indicate a missed daily update. The 7-day look-back required to compute `apy_trailing_7d` is **not** subject to the filter and does **not** count toward `filtered_count`. Set `includeFlagged=true` to bypass the filter and receive the raw series with every sample's `quality_flag` populated. **Envelope semantics:** `stale_reason` disambiguates the four post-filter states (`fresh`, `pipeline_lag`, `all_filtered`, `no_samples_yet`); `stale: boolean` is preserved for back-compat (`true` iff `stale_reason !== 'fresh'`). `schema_version` is bumped any time the response shape changes — pin it if you're building a regression harness. Returns 404 when the vault is not in the verified-vaults catalog; tracked vaults with no samples yet still return 200 with `count: 0`, `latest: null`, and `stale_reason: 'no_samples_yet'`. Cached for 5 minutes; the `includeFlagged=true` and default responses are cached in partitioned namespaces so they never cross-pollinate. # Get Vault TVL History Source: https://docs.webacy.com/api-reference/vault-risk/get-vault-tvl-history GET /vaults/{address}/tvl-history Returns a daily time series of total value locked (USD) for a single ERC-4626 vault. Each point is a UTC-midnight sample and carries a `quality_flag` describing whether the underlying TVL reading was marked trustworthy. The response also hoists the most recent passing point to a top-level `latest` aggregate so stat-tile consumers can render the current value without paging the full series. **Quality filtering (default):** Samples flagged as `capped`, `diverged`, or `spike` are dropped from the response by default, so the chart line stays clean against upstream data-quality issues. When this happens, `count` will be smaller than `days` and `filtered_count` reports how many points were excluded — a visible kink in the chart line is expected and does not indicate a missed daily update. Set `includeFlagged=true` to bypass the filter and receive the raw series with every sample's `quality_flag` populated. **Envelope semantics:** `stale_reason` disambiguates the four post-filter states (`fresh`, `pipeline_lag`, `all_filtered`, `no_samples_yet`); `stale: boolean` is preserved for back-compat (`true` iff `stale_reason !== 'fresh'`). `schema_version` is bumped any time the response shape changes — pin it if you're building a regression harness. Returns 404 when the vault is not in the verified-vaults catalog; tracked vaults with no samples yet still return 200 with `count: 0`, `latest: null`, and `stale_reason: 'no_samples_yet'`. Cached for 5 minutes; the `includeFlagged=true` and default responses are cached in partitioned namespaces so they never cross-pollinate. # How to Apply a Promo Code for Webacy Pro on DD.xyz Source: https://docs.webacy.com/apply-promo-code Apply a promo code during Webacy Pro checkout on DD.xyz to unlock eligible discounts and promotional pricing, with step-by-step signup and checkout steps. Promo codes can be applied during checkout when upgrading to Webacy Pro on [DD.xyz](https://dd.xyz). This guide walks you through where to enter your code. **1. Navigate to DD.xyz** Navigate to [DD.xyz](https://dd.xyz) **2. Log In or Sign up to DD.xyz** ![Walkthrough 1](https://mintcdn.com/webacy/6UsgSiiph8gDIV29/images/walkthrough-1.png?fit=max\&auto=format\&n=6UsgSiiph8gDIV29\&q=85\&s=d9ff16eefa95df4bb9f78c8dcfa74729) Sign in using your existing account credentials. If you do not yet have an account, select **Sign Up** and complete the registration process before continuing to the next step. ![Walkthrough 2](https://mintcdn.com/webacy/6UsgSiiph8gDIV29/images/walkthrough-2.png?fit=max\&auto=format\&n=6UsgSiiph8gDIV29\&q=85\&s=cd9d55eb5350d1f0205c0fb93c65221b) **3. Navigate to the Subscriptions page** On the bottom left, click your profile and you'll see an additional menu appear. Navigate to the "Subscriptions" page.  ![Screenshot 2026 07 28 At 11 29 55 AM](https://mintcdn.com/webacy/6UsgSiiph8gDIV29/images/Screenshot-2026-07-28-at-11.29.55-AM.png?fit=max\&auto=format\&n=6UsgSiiph8gDIV29\&q=85\&s=334ea06999b1db0daf916b5b9f456b88) **4. Upgrade your subscription tier** Click "Upgrade" on your chosen subscription tier. This will navigate to a Stripe checkout page. ![Screenshot 2026 07 28 At 11 33 18 AM](https://mintcdn.com/webacy/6UsgSiiph8gDIV29/images/Screenshot-2026-07-28-at-11.33.18-AM.png?fit=max\&auto=format\&n=6UsgSiiph8gDIV29\&q=85\&s=7270cbcfd395f8236fbe850d42d7c363) **5. Add Promotion Code** On the checkout page, click the "Add promotion code" box.  ![Screenshot 2026 07 28 At 11 33 49 AM](https://mintcdn.com/webacy/6UsgSiiph8gDIV29/images/Screenshot-2026-07-28-at-11.33.49-AM.png?fit=max\&auto=format\&n=6UsgSiiph8gDIV29\&q=85\&s=beaf80da8bb47df1829905871085fc32) Enter your Promo Code in this box. **6. Complete Upgrade** If successful, you will see the promotion applied.  Congratulations! You are now Webacy Pro 🎉 # Troubleshooting If your promo code is not being accepted or the discount is not appearing at checkout, there may be several possible causes. The code may have been entered incorrectly, expired, reached its usage limit, be restricted to specific plans or account types, or already have been redeemed on your account. * Double-check that the code has been entered exactly as provided, including any capitalization or special characters, and verify that you are applying it to an eligible Webacy Pro subscription. * If you recently received the code, try refreshing the page and reapplying it, or signing out and back into your account before attempting again. If the issue persists after these steps, please contact the Webacy team for assistance and include the promo code you are attempting to use along with any error messages you receive. # dApp Browser Security Source: https://docs.webacy.com/apps/dapp-browser-security Secure your dApp browser with URL phishing detection, transaction simulation, and contract verification to block lookalike domains before wallets connect. A phishing link can look exactly like Uniswap—the domain `uniswaρ.com` uses a Greek rho (ρ) instead of a 'p'. In one attack, 2,400 users connected their wallets before anyone noticed, and \$4.7 million was drained in 24 hours. This guide shows you how to protect your users and prevent this kind of attack. ## Why dApp Browsers Need Security > [card] URL Protection > > Block phishing sites before users connect their wallets > [card] Transaction Preview > > Show users what they're signing before they approve > [card] Contract Verification > > Verify the contracts users interact with are safe **Why dApp browser developers choose Webacy:** * **URL phishing detection** — Block known phishing and scam sites, and flag lookalikes of known projects * **Transaction simulation** — Show users exactly what will happen before signing * **Contract verification** — Check if the contract is legitimate or malicious * **Real-time risk scoring** — Fast enough for inline warnings without blocking navigation * **Multi-chain support** — Protect across all major networks *** ## Prerequisites Before implementing browser security, ensure you have: * A Webacy API key ([sign up here](https://developers.webacy.co/billing)) * Basic familiarity with REST APIs or the [Webacy SDK](../sdk/installation) * Your browser's navigation and transaction signing flows identified *** ## URL Security The first line of defense is stopping users from connecting to malicious sites. ### Phishing Detection Check URLs when users navigate to new sites or before they connect their wallet. ```bash cURL theme={null} curl -X POST "https://api.webacy.com/url" \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"url": "https://uniswap-claim.com"}' ``` ```typescript TypeScript theme={null} import { ThreatClient } from '@webacy-xyz/sdk'; const client = new ThreatClient({ apiKey: process.env.WEBACY_API_KEY }); const result = await client.url.check('https://uniswap-claim.com'); if (result.riskLevel === 'high') { // Block the connection showPhishingWarning({ url: 'https://uniswap-claim.com', message: result.description, }); } console.log(`Risk level: ${result.riskLevel}`); console.log(`Why: ${result.description}`); ``` ```python Python theme={null} import requests response = requests.post( "https://api.webacy.com/url", headers={ "x-api-key": "YOUR_API_KEY", "Content-Type": "application/json" }, json={"url": "https://uniswap-claim.com"} ) result = response.json() ``` **Response:** ```json theme={null} { "riskLevel": "high", "description": "This URL has been blacklisted.", "message": "Wrong response? Please report: https://forms.gle/4ievDbQDqRgrHcRV9" } ``` | Field | Type | Description | | - | - | - | | `riskLevel` | `"high"` \| `"medium"` \| `"low"` \| `"unknown"` | `high`: known phishing or blocklisted site. `medium`: not listed, but similar to a known project's domain (possible impersonation). `low`: a known project's site. `unknown`: no verdict — including pages on shared hosts such as `sites.google.com`, `docs.google.com` or `storage.googleapis.com`, where anyone can publish, so the host's reputation says nothing about the page. | | `description` | string | Human-readable reason for the verdict | | `message` | string | Where to report a wrong verdict | > [!NOTE] > > `unknown` means Webacy has no verdict for the site, not that it is safe. Treat it as unverified. > [!NOTE] > > The TypeScript samples use the `riskLevel` response and the `UrlRiskLevel` type, available from `@webacy-xyz/sdk` 2.0.0 (`@webacy-xyz/sdk-threat` 3.0.0). Older SDK versions type this response with fields the API doesn't return. ### Mapping the Verdict to an Action Turn the verdict into a browser action. ```typescript theme={null} async function checkUrlSafety(url: string): Promise<{ safe: boolean; action: 'allow' | 'warn' | 'block'; reason?: string; }> { const result = await client.url.check(url); switch (result.riskLevel) { case 'high': // Known phishing or blocklisted: block outright return { safe: false, action: 'block', reason: result.description }; case 'medium': // Looks like a known project's domain: possible impersonation return { safe: false, action: 'warn', reason: result.description }; case 'low': return { safe: true, action: 'allow' }; default: // 'unknown': no verdict. Allow, but don't show a "verified" badge return { safe: false, action: 'warn', reason: 'This site has not been verified.' }; } } ``` ### Homograph Attack Detection > [!WARNING] > > **Homograph attacks** use Unicode characters that look identical to ASCII letters. `аpple.com` (Cyrillic 'а') and `apple.com` (Latin 'a') look the same but are completely different domains. Common homograph substitutions: | Real | Fake | Unicode | | - | - | - | | a | а | Cyrillic U+0430 | | e | е | Cyrillic U+0435 | | o | о | Cyrillic U+043E | | p | р | Cyrillic U+0440 | | c | с | Cyrillic U+0441 | | x | х | Cyrillic U+0445 | The URL check flags lookalikes of known projects spelled with ASCII characters (`medium`), but Unicode lookalikes are not reliably flagged and can come back `unknown`. For any non-ASCII host, show the user its punycode form (`xn--…`) alongside the verdict. *** ## Transaction Security Every transaction request is an opportunity to protect users. ### Pre-Signing Preview Simulate transactions before users sign them. ```bash cURL theme={null} curl -X POST "https://api.webacy.com/scan/0xUserAddress.../transactions" \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "tx": { "from": "0xUserAddress...", "raw": "0x02f00180843b9aca008506fc23ac00830186a094d8da6bf26964af9d7eed9e03e53415d37aa96045872386f26fc1000080c0" }, "chain": 1, "domain": "suspicious-dapp.com" }' ``` ```typescript TypeScript theme={null} import { Transaction } from 'ethers'; // `raw` is the serialized unsigned transaction the dApp is asking the user to sign const raw = Transaction.from({ type: 2, chainId: 1, to: '0xContractAddress...', data: '0xTransactionData...', value: 0n, nonce: 12, gasLimit: 100_000n, maxFeePerGas: 30_000_000_000n, maxPriorityFeePerGas: 1_000_000_000n, }).unsignedSerialized; const result = await client.scan.scanTransaction( '0xUserAddress...', { tx: { from: '0xUserAddress...', raw }, chain: 1, // Ethereum mainnet domain: currentDappDomain, } ); // One item per simulated asset movement or approval const { simulation } = result as unknown as { simulation: Array<{ txData: { changeType: 'TRANSFER' | 'APPROVE'; rawAmount?: string; symbol?: string; assetType?: string; counterpartyAddress: string }; counterpartyRisk: { address: string; high?: number; overallRisk?: number; issues?: Array<{ tags: Array<{ name: string }> }> }; }>; }; displayTransactionPreview({ assetChanges: simulation.map((i) => i.txData), warnings: simulation.flatMap((i) => i.counterpartyRisk.issues?.flatMap((issue) => issue.tags.map((t) => t.name)) ?? []), // Block on a flagged recipient; an empty simulation is inconclusive, not safe blocked: simulation.some((i) => (i.counterpartyRisk.high ?? 0) > 0), }); ``` ````python Python theme={null} response = requests.post( "https://api.webacy.com/scan/0xUserAddress.../transactions", headers={ "x-api-key": "YOUR_API_KEY", "Content-Type": "application/json" }, json={ "tx": { "from": "0xUserAddress...", "raw": "0x02f00180843b9aca008506fc23ac00830186a094d8da6bf26964af9d7eed9e03e53415d37aa96045872386f26fc1000080c0" }, "chain": 1, "domain": "connected-dapp.com" } ) result = response.json() for item in result["simulation"]: tx = item["txData"] print(tx["changeType"], tx.get("rawAmount"), tx.get("symbol") or tx.get("assetType"), "->", tx["counterpartyAddress"]) if item["counterpartyRisk"].get("high", 0) > 0: print("BLOCK: flagged recipient", [t["name"] for i in item["counterpartyRisk"].get("issues", []) for t in i["tags"]]) **What to show users:** | Element | Priority | Description | | --- | --- | --- | | Asset changes | High | What tokens/ETH will move | | Warnings | High | Specific risks detected | | Risk level | Medium | Overall transaction safety | | Contract address | Medium | What contract they're interacting with | ### Contract Verification Check if the contract the user is interacting with is legitimate. ```bash cURL curl -X GET "https://api.webacy.com/addresses/0xContractAddress...?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ```` ```typescript TypeScript theme={null} const analysis = await client.addresses.analyze( '0xContractAddress...', { chain: Chain.ETH } ); // Check if it's a known legitimate contract if (analysis.labels?.includes('verified_protocol')) { console.log('✓ Verified protocol'); } else if (analysis.overallRisk > 50) { console.warn('⚠️ High risk contract'); } // Check for drainer patterns if (analysis.issues?.some(i => i.tag === 'drainer')) { console.error('🛑 Known drainer contract detected!'); } ``` ```python Python theme={null} response = requests.get( "https://api.webacy.com/addresses/0xContractAddress...", params={"chain": "eth"}, headers={"x-api-key": "YOUR_API_KEY"} ) analysis = response.json() ``` *** ## Session Protection Monitor the entire browsing session for threats. ### Connected dApp Monitoring Track all dApps the user has connected to and periodically recheck their safety. ```typescript theme={null} import type { UrlRiskLevel } from '@webacy-xyz/sdk'; // Your app's own "connect anyway?" prompt. declare function confirmConnection(domain: string, reason: string): Promise; interface ConnectedDapp { domain: string; connectedAt: Date; lastChecked: Date; riskLevel: UrlRiskLevel; } class DappSessionMonitor { private connectedDapps: Map = new Map(); private checkInterval = 5 * 60 * 1000; // 5 minutes async onConnect(domain: string): Promise { const result = await client.url.check(`https://${domain}`); if (result.riskLevel === 'high') { // Block connection return false; } if (result.riskLevel === 'medium' || result.riskLevel === 'unknown') { // Possible impersonation, or no verdict (most new phishing domains are // still unknown): the user decides before a wallet connects. if (!(await confirmConnection(domain, result.description))) return false; } this.connectedDapps.set(domain, { domain, connectedAt: new Date(), lastChecked: new Date(), riskLevel: result.riskLevel, }); return true; } async recheckConnectedDapps(): Promise { const flagged: ConnectedDapp[] = []; for (const [domain, dapp] of this.connectedDapps) { // Skip if recently checked if (Date.now() - dapp.lastChecked.getTime() < this.checkInterval) { continue; } const result = await client.url.check(`https://${domain}`); const previous = dapp.riskLevel; dapp.lastChecked = new Date(); dapp.riskLevel = result.riskLevel; // Flag risky verdicts, and a known-safe site that lost its verdict // (low → unknown) since the user connected. if ( result.riskLevel === 'high' || result.riskLevel === 'medium' || (result.riskLevel === 'unknown' && previous === 'low') ) { flagged.push(dapp); } } return flagged; } } ``` ### Risk-Scored Connections Show users the risk level of their connected dApps. ```typescript theme={null} async function getConnectionsWithRisk( connectedDomains: string[] ): Promise> { return Promise.all( connectedDomains.map(async domain => { const { riskLevel } = await client.url.check(`https://${domain}`); const recommendation = riskLevel === 'high' ? 'Disconnect immediately' : riskLevel === 'medium' ? 'Possible impersonation: verify the domain' : riskLevel === 'unknown' ? 'Unverified site: exercise caution' : undefined; return { domain, riskLevel, recommendation }; }) ); } ``` *** ## Complete Integration Workflow ### Navigation Flow ```mermaid theme={null} flowchart TD A[User Navigates to URL] --> B{URL Check} B -->|high| C["🛑 BLOCK + Show Warning"] B -->|medium| D["⚠️ Possible impersonation warning"] B -->|unknown| E["ℹ️ Unverified-site banner"] B -->|low| F["✅ Allow Navigation"] D --> G{User Proceeds?} E --> F G -->|Yes| F G -->|No| H[Return to Safety] ``` ### Wallet Connection Flow ```mermaid theme={null} flowchart TD A[dApp Requests Connection] --> B{URL Already Checked?} B -->|No| C[Check URL Safety] B -->|Yes, Safe| D[Show Connection Request] C -->|Safe| D C -->|Dangerous| E["🛑 BLOCK Connection"] D --> F{User Approves?} F -->|Yes| G[Connect Wallet] F -->|No| H[Cancel] G --> I[Add to Monitored Connections] ``` ### Transaction Request Flow ```mermaid theme={null} flowchart TD A[Transaction Request] --> B[Simulate Transaction] B --> C{Risk Level?} C -->|Critical| D["🛑 BLOCK Transaction"] C -->|High| E["⚠️ Strong Warning + Details"] C -->|Medium| F["ℹ️ Show Preview + Caution"] C -->|Low| G["Show Transaction Preview"] E --> H{User Confirms?} F --> H G --> I[User Signs] H -->|Yes| I H -->|No| J[Cancel] D --> K[Show Why Blocked] ``` ### Full TypeScript Implementation > [accordion] Complete dApp Browser Security Module > > ```typescript theme={null} > import { ThreatClient, Chain, type ScanChainId } from '@webacy-xyz/sdk'; > > const client = new ThreatClient({ > apiKey: process.env.WEBACY_API_KEY, > defaultChain: Chain.ETH, > }); > > // Types > type RiskLevel = 'safe' | 'warning' | 'danger' | 'blocked'; > > interface UrlCheckResult { > allowed: boolean; > riskLevel: RiskLevel; > message?: string; > } > > interface TransactionCheckResult { > allowed: boolean; > riskLevel: RiskLevel; > preview: { > assetChanges: Array<{ > type: string; > symbol: string; > amount: string; > }>; > warnings: string[]; > }; > requiresConfirmation: boolean; > } > > interface ConnectionInfo { > domain: string; > riskLevel: RiskLevel; > connectedAt: Date; > lastTransaction?: Date; > } > > // URL Security > async function checkUrlSafety(url: string): Promise { > const result = await client.url.check(url); > > switch (result.riskLevel) { > case 'high': > // Known phishing or blocklisted site > return { > allowed: false, > riskLevel: 'blocked', > message: `${result.description} Do not connect your wallet.`, > }; > case 'medium': > // Similar to a known project's domain: possible impersonation > return { > allowed: true, > riskLevel: 'danger', > message: `${result.description} Check the address bar before connecting.`, > }; > case 'low': > return { allowed: true, riskLevel: 'safe' }; > case 'unknown': > default: > // Fail toward caution: an unexpected level is never treated as safe. > return { > allowed: true, > riskLevel: 'warning', > message: 'This site has not been verified. Exercise caution.', > }; > } > } > > // Transaction Security > async function checkTransaction( > userAddress: string, > // `raw` = serialized unsigned tx (ethers `Transaction.unsignedSerialized`); `to` for the contract pre-check > txData: { to: string; raw: string }, > chainId: ScanChainId, > dappDomain: string > ): Promise { > // First, verify the contract > const chain = chainIdToChain(chainId); > const contractAnalysis = await client.addresses.analyze(txData.to, { chain }); > > // Check for known drainers > const isDrainer = contractAnalysis.issues?.some(i => > i.tag.toLowerCase().includes('drainer') > ); > > if (isDrainer) { > return { > allowed: false, > riskLevel: 'blocked', > preview: { > assetChanges: [], > warnings: ['This contract has been identified as a wallet drainer.'], > }, > requiresConfirmation: false, > }; > } > > // Simulate the transaction > const result = (await client.scan.scanTransaction(userAddress, { > tx: { from: userAddress, raw: txData.raw }, > chain: chainId, > domain: dappDomain, > })) as unknown as { > simulation: Array<{ > txData: { changeType: 'TRANSFER' | 'APPROVE'; rawAmount?: string; symbol?: string; assetType?: string; counterpartyAddress: string }; > counterpartyRisk: { high?: number; medium?: number; overallRisk?: number; issues?: Array<{ tags: Array<{ name: string }> }> }; > assetRisk: { high?: number; medium?: number }; > functionRisk?: { functionName: string; description: string }; > }>; > }; > > // Determine risk level from the recipient / spender and token profiles. > // An empty simulation, or a recipient that could not be scored, is inconclusive. > let riskLevel: RiskLevel = 'safe'; > const parties = result.simulation.flatMap((i) => [i.counterpartyRisk, i.assetRisk]); > if (parties.some((p) => (p.high ?? 0) > 0)) { > riskLevel = 'blocked'; > } else if (parties.some((p) => (p.medium ?? 0) > 0)) { > riskLevel = 'danger'; > } else if ( > result.simulation.length === 0 || > result.simulation.some((i) => i.counterpartyRisk.overallRisk === undefined) > ) { > riskLevel = 'warning'; > } > > return { > allowed: riskLevel !== 'blocked', > riskLevel, > preview: { > assetChanges: result.simulation.map((i) => ({ > type: i.txData.changeType, > symbol: i.txData.symbol ?? i.txData.assetType ?? 'asset', > amount: i.txData.rawAmount ?? '', > })), > warnings: result.simulation.flatMap((i) => [ > ...(i.counterpartyRisk.issues?.flatMap((issue) => issue.tags.map((t) => t.name)) ?? []), > ...(i.functionRisk ? [`Risky function: ${i.functionRisk.functionName}`] : []), > ]), > }, > requiresConfirmation: riskLevel === 'danger' || riskLevel === 'warning', > }; > } > > // Connection Management > class ConnectionManager { > private connections: Map = new Map(); > > async connect(domain: string): Promise<{ > success: boolean; > riskLevel: RiskLevel; > message?: string; > }> { > const urlCheck = await checkUrlSafety(`https://${domain}`); > > if (!urlCheck.allowed) { > return { > success: false, > riskLevel: urlCheck.riskLevel, > message: urlCheck.message, > }; > } > > this.connections.set(domain, { > domain, > riskLevel: urlCheck.riskLevel, > connectedAt: new Date(), > }); > > return { > success: true, > riskLevel: urlCheck.riskLevel, > message: urlCheck.message, > }; > } > > disconnect(domain: string): void { > this.connections.delete(domain); > } > > getConnections(): ConnectionInfo[] { > return Array.from(this.connections.values()); > } > > async refreshRiskLevels(): Promise { > const flagged: ConnectionInfo[] = []; > > for (const [domain, info] of this.connections) { > const { riskLevel } = await checkUrlSafety(`https://${domain}`); > const previous = info.riskLevel; > info.riskLevel = riskLevel; > // Flag blocked/danger, and a site that was safe and is now unverified. > if ( > riskLevel === 'blocked' || > riskLevel === 'danger' || > (riskLevel === 'warning' && previous === 'safe') > ) { > flagged.push(info); > } > } > > return flagged; > } > } > > // Browser Security Controller > class DappBrowserSecurity { > private connectionManager = new ConnectionManager(); > > // Call when user navigates to a new URL > async onNavigate(url: string): Promise { > return checkUrlSafety(url); > } > > // Call when dApp requests wallet connection > async onConnectionRequest(domain: string) { > return this.connectionManager.connect(domain); > } > > // Call when dApp requests transaction signature > async onTransactionRequest( > userAddress: string, > txData: { to: string; raw: string }, > chainId: ScanChainId, > dappDomain: string > ) { > return checkTransaction(userAddress, txData, chainId, dappDomain); > } > > // Call periodically to check connected dApps > async refreshConnections() { > return this.connectionManager.refreshRiskLevels(); > } > > // Get all active connections > getActiveConnections() { > return this.connectionManager.getConnections(); > } > > // Disconnect a dApp > disconnect(domain: string) { > this.connectionManager.disconnect(domain); > } > } > > // Helper function > function chainIdToChain(chainId: ScanChainId): Chain { > const mapping: Record = { > 1: Chain.ETH, > 56: Chain.BSC, > 137: Chain.POL, > 10: Chain.OPT, > 42161: Chain.ARB, > 8453: Chain.BASE, > }; > return mapping[chainId] ?? Chain.ETH; > } > > // Export the controller > export const browserSecurity = new DappBrowserSecurity(); > ``` *** ## Example URLs for Testing ### Known Phishing Sites Test with URLs that mimic legitimate sites but use different domains: * `uniswap-claim.com` * `opensea-claim.xyz` * `metamask-support.io` > [!WARNING] > > **Do not actually visit** these example domains—they may be active phishing sites. Use the URL check API to verify them safely. ### Legitimate Sites (for comparison) | URL | Expected Result | | - | - | | `https://uniswap.org` | `low` (known project site) | | `https://opensea.io` | `low` (known project site) | | `https://app.aave.com` | `low` (subdomain of a known project) | ### Test Addresses | Address | Chain | Description | | - | - | - | | `0xe7d13137923142a0424771e1778865b88752b3c7` | ETH | WalletConnect phishing campaign | | `0x84672cc56b6dad30cfa5f9751d9ccae6c39e29cd` | ETH | Permit phishing drainer | | `0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045` | ETH | Vitalik's wallet (safe baseline) | *** ## API Quick Reference | Endpoint | Use Case | Response Time | | - | - | - | | `POST /url` | URL phishing detection | \~0.5s (p95 \~1s) | | `POST /scan/{fromAddress}/transactions` | Transaction simulation | \~1–3s (cold), \~50ms (cached) | | `GET /addresses/{address}` | Contract verification | \~500ms | | `GET /addresses/{address}/quick-profile` | Fast risk check | \~200ms | *** ## Next Steps > [card] [Get Your API Key](https://developers.webacy.co/billing) > > Start protecting your browser users > [card] [API Reference](../api-reference/introduction) > > Complete endpoint documentation > [card] [Phishing Guide](../glossary/phishing) > > Understand phishing attack patterns > [card] [Install the SDK](../sdk/installation) > > TypeScript SDK for integration # Implement a Risk Rating in Your UI Source: https://docs.webacy.com/apps/implement-a-rating Surface Webacy's A+ to F vault and RWA rating in your UI: call the v3 endpoint, pull grade and category breakdown, and render a badge in React or HTML. Your users see a vault or tokenized asset in your app. They have no way to tell a well-run vault from a risky one, and building your own scoring model is a project you don't want to own. This guide shows you how to surface Webacy's graded A+ to F rating instead: call one v3 endpoint, pull a handful of fields, and render a badge your users can trust. ## Why Surface a Graded Rating > [card] Ship a Rating, Not a Model > > Render Webacy's graded A+ to F composite instead of building and maintaining your own scoring model > [card] Always Current > > Poll on a cadence and the grade reflects live governance, liquidity, and code risk, not a one-time score > [card] Explainable > > A per-category breakdown shows users exactly what is driving the grade **Why teams choose Webacy for ratings:** * **Graded output**: an `A+`-`F` composite grade, a star rating, and a 0-100 score in one response * **Category breakdown**: per-category scores so you can show what is driving the grade * **Same shape for vaults and RWAs**: one integration renders both `/v3/vaults` and `/v3/rwa` * **Fail-closed**: a freshness timestamp so you can hide stale grades instead of showing them *** ## Prerequisites Before implementing a rating, ensure you have: * A Webacy API key ([sign up here](https://developers.webacy.co/billing)) * Basic familiarity with REST APIs or the [Webacy SDK](/sdk/installation) * A vault or RWA contract address and its chain, plus the UI surface you want to render into *** ## Step 1: Call the v3 Endpoint Both `/v3/vaults/{address}` and `/v3/rwa/{address}` return the same graded shape. Call `/v3/vaults` for an ERC-4626 vault, and `/v3/rwa` for a tokenized real-world asset or a stablecoin (the RWA endpoint covers both). `chain` is required. ```bash cURL theme={null} curl -X GET "https://api.webacy.com/v3/vaults/0x0deFfd509197aAD5207d2A55862835b467E8128F?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} const response = await fetch( 'https://api.webacy.com/v3/vaults/0x0deFfd509197aAD5207d2A55862835b467E8128F?chain=eth', { headers: { 'x-api-key': process.env.WEBACY_API_KEY } } ); const rating = await response.json(); console.log(`Grade: ${rating.composite.grade} (${rating.composite.stars} stars)`); console.log(`Score: ${rating.composite.score}/100, higher is worse`); ``` ```python Python theme={null} import requests response = requests.get( "https://api.webacy.com/v3/vaults/0x0deFfd509197aAD5207d2A55862835b467E8128F", params={"chain": "eth"}, headers={"x-api-key": "YOUR_API_KEY"} ) rating = response.json() ``` > [!WARNING] > > `composite.score` and every `categories.*.score` run 0-100 where **higher means more risk**: `A+` maps to a score near 0, `F` maps to a score near 100. This is the opposite of a health or safety score. When you color, sort, or threshold by this number, higher must render as *worse*. To rate an RWA or a stablecoin instead, swap the path segment. Everything else is identical: ```bash theme={null} curl -X GET "https://api.webacy.com/v3/rwa/{rwaAddress}?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` *** ## Step 2: Pull the Fields That Matter Read the response into a small view model. These are the fields worth rendering: | Field | What it drives in the UI | | - | - | | `composite.grade` | The headline letter badge (`A+` … `F`) | | `composite.stars` | A 1 to 5 rating derived from the grade (optional secondary signal) | | `composite.score` | Tooltip / numeric label (0-100, **higher = more risk**) | | `categories.*.score` | The "what's driving the grade" breakdown, one row per category | | `coverage.live_criteria` / `coverage.total_criteria` | A "based on X of Y checks" disclosure | | `metadata.last_scored_at` | | ```typescript theme={null} type RatingViewModel = | { ok: false; reason: string } | { ok: true; grade: string; stars: number; score: number; // 0-100, higher = MORE risk color: string; categories: { name: string; score: number }[]; coverage: string; updatedAt: string; }; // Map on the first letter so every band (A+, A, A-, … F) resolves without gaps. function gradeColor(grade: string): string { switch (grade[0]) { case 'A': return '#0d9c4a'; case 'B': return '#8bc34a'; case 'C': return '#ffc107'; case 'D': return '#ff9800'; default: return '#b71c1c'; // F } } async function getRatingViewModel( kind: 'vaults' | 'rwa', address: string, chain: string, ): Promise { const res = await fetch( `https://api.webacy.com/v3/${kind}/${address}?chain=${chain}`, { headers: { 'x-api-key': process.env.WEBACY_API_KEY! } }, ); // Fail closed: never render an errored or missing rating as if it were good. if (!res.ok) return { ok: false, reason: `rating unavailable (${res.status})` }; const { composite, categories, coverage, metadata } = await res.json(); return { ok: true, grade: composite.grade, stars: composite.stars, score: composite.score, color: gradeColor(composite.grade), categories: Object.entries(categories).map(([name, c]: [string, any]) => ({ name, score: c.score, })), coverage: `${coverage.live_criteria}/${coverage.total_criteria} checks live`, updatedAt: metadata.last_scored_at, }; } ``` *** ## Step 3: Render the Badge The badge is the small pill your users see next to the asset: the letter grade tinted by risk (green for the `A` band through red for `F`), with the numeric score in the tooltip. This component takes the view model from Step 2 and renders that pill, showing a neutral "Rating unavailable" state when the rating could not be loaded. ```tsx theme={null} function RatingBadge({ vm }: { vm: RatingViewModel }) { if (!vm.ok) { return Rating unavailable; } return ( {vm.grade} ); } ``` Plain-HTML equivalent, if you're not on React: ```html theme={null} A ``` Rendered in a dark UI, the badge and its sub-scores look like this: ![Example vault rating card with an A grade, a 6.1 out of 100 risk score, and sub-score risk bars](https://mintcdn.com/webacy/Bjh4uQj4q27fBFsC/images/rating-badge-vault.png?fit=max\&auto=format\&n=Bjh4uQj4q27fBFsC\&q=85\&s=179cea320b8efd004cd83ec23fe0e5b0) Example vault rating (sample data) ![Example stablecoin rating card with an A+ grade, a 3.2 out of 100 risk score, and risk-driver bars](https://mintcdn.com/webacy/Bjh4uQj4q27fBFsC/images/rating-badge-stablecoin.png?fit=max\&auto=format\&n=Bjh4uQj4q27fBFsC\&q=85\&s=46b85a1f5984e07d9daaacdcad28b9ef) The same pattern for a stablecoin, sourced from the depeg endpoint (sample data) *** ## Step 4: Show What's Driving the Grade Use `categories.*` for an expandable breakdown, sorted worst-first (higher score = more risk): ```tsx theme={null} function CategoryBreakdown({ categories }: { categories: { name: string; score: number }[] }) { const sorted = [...categories].sort((a, b) => b.score - a.score); // worst first return (
    {sorted.map((c) => (
  • {c.name} {c.score}/100
  • ))}
); } ``` For a fuller view, the same rating powers a detailed breakdown: framework categories, risk flags, and curator terms. ![Example detailed vault rating card with a framework categories table, risk flags, and curator and protocol terms](https://mintcdn.com/webacy/Bjh4uQj4q27fBFsC/images/rating-detail-vault.png?fit=max\&auto=format\&n=Bjh4uQj4q27fBFsC\&q=85\&s=2ee2b2b4b783b71d2d7d7594e669ab70) Example detailed rating breakdown, v3 rating plus v1 vault detail (sample data) *** ## Handle Freshness and Failures A rating you can't vouch for is worse than no rating. The v3 detail endpoints do **not** return a top-level `stale` flag, use `metadata.last_scored_at` to decide whether the grade is current enough to show. > [!TIP] > > Render an explicit "rating unavailable" state, not a stale grade, whenever the call fails or `metadata.last_scored_at` is older than your freshness policy. Treat missing or stale data as unknown risk, never as a pass. See [hard-gating and fail behavior](/api-reference/introduction#hard-gating-and-fail-behavior). ```mermaid theme={null} flowchart TD A[Fetch /v3/vaults or /v3/rwa] --> B{Response OK?} B -->|No| U[Show 'Rating unavailable'] B -->|Yes| C{last_scored_at fresh?} C -->|No| U C -->|Yes| D[Build view model] D --> E[Render badge: grade + color] D --> F[Render category breakdown, worst-first] ``` *** ## Complete Example > [accordion] Full React Implementation > > ```tsx theme={null} > import { useEffect, useState } from 'react'; > > // See Step 2 for RatingViewModel, gradeColor, and getRatingViewModel. > > function VaultRating({ address, chain }: { address: string; chain: string }) { > const [vm, setVm] = useState(null); > > useEffect(() => { > getRatingViewModel('vaults', address, chain).then(setVm); > }, [address, chain]); > > if (!vm) return …; > if (!vm.ok) return Rating unavailable; > > return ( >
> > {vm.grade} > > {vm.coverage} · updated {vm.updatedAt} >
    > {[...vm.categories].sort((a, b) => b.score - a.score).map((c) => ( >
  • > {c.name} > > {c.score}/100 >
  • > ))} >
>
> ); > } > ``` *** ## API Quick Reference | Endpoint | Use Case | | - | - | | `GET /v3/vaults/{address}?chain={chain}` | Graded vault rating (grade, stars, score, categories, coverage) | | `GET /v3/rwa/{address}?chain={chain}` | Graded RWA rating (same shape as vaults) | **Authentication:** ```text theme={null} Header: x-api-key: YOUR_API_KEY Base URL: https://api.webacy.com ``` *** ## Next Steps > [card] [Ongoing Risk Monitoring](/monitor/ongoing-risk-monitoring) > > Poll the rating on a cadence and alert when the grade or tier changes > [card] [New Asset Due Diligence](/digital-assets/new-asset-due-diligence) > > Run the full pre-allocation workflow before you surface an asset > [card] [Vault Risk (V3) API](/api-reference/vault-risk-v3/get-vault-risk-detail-v3) > > Full endpoint reference for the graded vault rating > [card] [RWA Risk (V3) API](/api-reference/rwa-v3/get-rwa-risk-detail) > > Full endpoint reference for the graded RWA rating # Asset Integrity Source: https://docs.webacy.com/asset-integrity Asset Integrity measures the conditions that influence token and stablecoin price, covering supply, liquidity, holder concentration, and peg stability signals. The Asset Integrity engine continuously evaluates the health of digital financial products by monitoring their underlying structure, financial condition, governance, and operational resilience. Rather than relying on price movements alone, Webacy analyzes the underlying factors that determine whether an asset remains healthy over time. Built for institutional assets such as stablecoins, vaults, and tokenized real-world assets (RWAs), Asset Integrity provides real-time intelligence that helps issuers, exchanges, asset managers, regulators, and AI systems detect emerging risks before they become market events. > [!TIP] > > For a live view of this in action, visit [DD.xyz](https://dd.xyz/)! ## Stablecoins Stablecoins require continuous monitoring because their risk profile can change long before their market price does. The Asset Integrity engine evaluates reserve quality, redemption activity, liquidity, holder concentration, collateral composition, governance, market behavior, and dozens of other financial and operational signals to identify structural weaknesses as they emerge. ![6a7399480235869f5a9e72d3 6d96d5d1](https://mintcdn.com/webacy/WOwccSluwNfjURJB/images/6a7399480235869f5a9e72d3_6d96d5d1.png?fit=max\&auto=format\&n=WOwccSluwNfjURJB\&q=85\&s=054fd17aa7ec4bcd077c0544356f2f28) One example is Webacy's **Peg Canary**, an early-warning system designed to detect conditions commonly associated with future depeg events. Rather than monitoring price alone, Peg Canary identifies changes in the underlying health of a stablecoin that may indicate increasing redemption pressure, liquidity deterioration, or financial instability before the peg is affected. ![6a7399480235869f5a9e72df 03380c5d](https://mintcdn.com/webacy/WOwccSluwNfjURJB/images/6a7399480235869f5a9e72df_03380c5d.png?fit=max\&auto=format\&n=WOwccSluwNfjURJB\&q=85\&s=da82d0912e02202d5fa4982a189f74ca) **Common use cases** * Stablecoin monitoring * Treasury management * Exchange listing reviews * Reserve risk assessment * Depeg early warning * Institutional due diligence ## Vaults Vaults inherit risk from both their own design and the assets they manage. Webacy continuously evaluates vault strategies, collateral quality, governance, liquidity, smart contract dependencies, protocol integrations, and financial health to identify risks that may impact users or capital allocators. ![Screenshot 2026 08 06 At 5 07 15 PM](https://mintcdn.com/webacy/WOwccSluwNfjURJB/images/Screenshot-2026-08-06-at-5.07.15-PM.png?fit=max\&auto=format\&n=WOwccSluwNfjURJB\&q=85\&s=8648bdbaea288d4b9ab4e2815174339d) The engine also performs **cascading risk analysis**, monitoring the assets and protocols that underpin a vault. When risk increases in an underlying collateral asset, dependency, or integrated protocol, those changes can automatically influence the vault's own risk profile and trigger alerts before the impact is fully realized. ![Screenshot 2026 08 06 At 5 07 42 PM](https://mintcdn.com/webacy/WOwccSluwNfjURJB/images/Screenshot-2026-08-06-at-5.07.42-PM.png?fit=max\&auto=format\&n=WOwccSluwNfjURJB\&q=85\&s=255c6b47f7e25768d48d5f20ad0e6d83) This allows organizations to monitor not only the vault itself, but the entire network of dependencies that supports it. **Common use cases** * Vault monitoring * Treasury allocation * Collateral risk management * Institutional due diligence * Protocol monitoring * Real-time risk alerts ## Real World Assets (RWAs) Tokenized financial products introduce risks that extend beyond blockchain infrastructure. The Asset Integrity engine evaluates the financial, operational, governance, and structural characteristics of RWAs while considering the unique attributes of their underlying assets. ![Screenshot 2026 08 06 At 5 09 29 PM](https://mintcdn.com/webacy/WOwccSluwNfjURJB/images/Screenshot-2026-08-06-at-5.09.29-PM.png?fit=max\&auto=format\&n=WOwccSluwNfjURJB\&q=85\&s=4bfb414cf285cfade983e15c5458cea5) Different categories of RWAs require different methodologies. For example, tokenized Treasury funds, gold-backed assets, private credit, money market funds, and tokenized deposits each introduce distinct considerations around collateral quality, redemption mechanics, issuer obligations, and operational transparency. By combining blockchain intelligence with asset-specific methodologies, Webacy provides continuous oversight of digital financial products as they evolve. **Common use cases** * RWA due diligence * Institutional onboarding * Continuous issuer monitoring * Treasury risk management * Portfolio oversight * Regulatory reporting ## Real-Time by Design Traditional financial risk assessments are often performed periodically through audits, disclosures, or manual reviews. The blockchain operates continuously, and so does the Asset Integrity engine. By monitoring blockchain activity, financial conditions, governance events, and operational changes in real time, Webacy enables organizations to identify meaningful changes in asset health as they occur, supporting faster decisions, automated policies, and continuous risk management across the digital asset ecosystem. ## What's Next > [card] [Compliance](/compliance) > > Identify sanctions exposure, address poisoning, and other compliance risks using real-time blockchain intelligence. # Authentication Source: https://docs.webacy.com/authentication Get started with the Webacy API in minutes — create an API key, authenticate, and run your first wallet, token, or contract risk-analysis request. ## Prerequisites Before you begin, ensure you have: * An API key from [developers.webacy.co](https://developers.webacy.co/) (needed only for the API-key flow, not for keyless x402 payments) > [!NOTE] > > Prefer not to manage an API key? Supported endpoints can be called keylessly by paying per request in USDC on Base. See [x402 Payments](/x402-payments). ## Step 1: Get Your API Key 1. Visit [developers.webacy.co](https://developers.webacy.co/) to sign up 2. Generate your API key 3. Copy and securely store your API key > [!WARNING] > > Keep your API key secret. Never expose it in client-side code or public repositories. ## Step 2: Make Your First Request Check the risk score of any blockchain address: ```bash cURL theme={null} curl -X GET "https://api.webacy.com/addresses/0x742d35Cc6634C0532925a3b844Bc454e4438f44e?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` ```javascript JavaScript theme={null} const response = await fetch( 'https://api.webacy.com/addresses/0x742d35Cc6634C0532925a3b844Bc454e4438f44e?chain=eth', { headers: { 'x-api-key': 'YOUR_API_KEY' } } ); const data = await response.json(); console.log(data); ``` ```python Python theme={null} import requests response = requests.get( 'https://api.webacy.com/addresses/0x742d35Cc6634C0532925a3b844Bc454e4438f44e', params={'chain': 'eth'}, headers={'x-api-key': 'YOUR_API_KEY'} ) print(response.json()) ``` Your API key should be sent in the header in place of `YOUR_API_KEY`. ## Step 3: Understand the Response Each endpoint has a unique response. Visit the [API Reference](/api-reference/introduction) section for more details. ```json theme={null} { "count": 1, "medium": 0, "high": 0, "overallRisk": 25.99, "issues": [], "isContract": false } ``` | Field | Description | | - | - | | `overallRisk` | Risk score from 0-100 (higher = riskier) | | `count` | Total number of risk factors found | | `medium` | Count of medium-severity issues | | `high` | Count of high-severity issues | | `issues` | Array of specific risk factor details | | `isContract` | Whether the address is a smart contract | > [!TIP] > > For more information on the Risk Framework, view the [Risk Factors](/risk-factors), [Risk Scores and Ratings](/risk-scores-and-ratings), and [Severity Levels](/severity-levels) pages. ## What's Next > [card] [Rate Limits](/rate-limits) > > Understand how Webacy manages API usage, rate limits, and best practices for building reliable, high-volume integrations. # Backing Map Source: https://docs.webacy.com/backing-map Collateral and reserve composition of major stablecoins — see what assets actually back each dollar of supply across USDC, USDT, DAI, and other peg tokens. The Backing page shows the collateral and reserve composition of major stablecoins — what assets actually back each dollar of supply. # What it shows Each card displays one stablecoin with a horizontal bar chart of its reserve breakdown. The percentages represent the issuer's publicly disclosed collateral composition. | **Field** | **Description** | | :- | :- | | **Issuer** | The entity that issues and redeems the stablecoin. | | **Type** | Fiat-backed, collateralized, hybrid (algo + collateral), etc. | | **Asset bars** | Each bar = one collateral category, sized by % of total reserves. | | **Descriptions** | Additional notes on the asset quality (e.g. 'T-bills \< 90d', 'secured loans'). | # Data sources & freshness * **USDC** — the issuer's monthly reserve attestation reports. * **USDT** — the issuer's quarterly reserves transparency report. * **DAI** — issuer's on-chain collateral data (public). * **FRAX** — issuer's on-chain collateral and AMO data. * **USDP, BUSD, TUSD** — the issuer's published attestation reports. **Note:** This data is *not real-time*. Reserve compositions change slowly; figures reflect the most recent published disclosures and are updated manually when issuers publish new reports. For live depeg risk see the [Overview](https://depeg-monitor.webacy.co/). # Why backing matters for depeg risk The quality and liquidity of reserves directly affect how quickly a stablecoin can honor redemptions. | **Reserve type** | **Liquidation speed** | **Risk to peg** | | :- | :- | :- | | Cash (bank deposits) | Instant | Lowest — but bank run risk | | T-bills \< 90 days | 1–2 days | Very low | | Longer-dated treasuries | Days | Low, but duration risk | | Crypto collateral (ETH) | Minutes | Moderate — price volatile | | Secured loans | Weeks–months | High — illiquid | | Algorithmic (unbacked) | N/A | Highest — no floor | # Compliance and AML Source: https://docs.webacy.com/compliance Run onchain compliance and AML checks with Webacy: sanctions screening, counterparty exposure, fund-flow tracing, and explainable wallet risk scoring. The Compliance engine provides blockchain-native intelligence that helps organizations identify sanctions exposure, high-risk activity, and other compliance considerations before assets move. By combining blockchain analytics with real-time monitoring and explainable risk intelligence, Webacy enables developers and institutions to build proactive, risk-based compliance workflows. The Compliance engine (along with [Transaction Monitoring](/transaction-monitoring)) complements existing AML, KYC, and regulatory programs by providing continuous analysis of blockchain activity rather than identity verification. ## Sanctions Screening Blockchain transactions often involve multiple counterparties, protocols, and intermediaries that are difficult to evaluate using traditional compliance systems. Webacy screens wallets, transactions, and other supported entities for sanctions exposure, high-risk counterparties, and known illicit activity while continuously monitoring for new developments. Rather than evaluating only direct interactions, Webacy can incorporate contextual intelligence and multi-hop [fund-flow exposure](/wallet-screening#fund-flow-exposure) analysis to provide a broader understanding of potential exposure. **Common use cases** * Wallet screening * Transaction monitoring * Counterparty due diligence * Exchange compliance * Treasury controls * Regulatory reporting ## Risk-Based AML Intelligence Modern AML extends beyond sanctions screening. Effective compliance programs require continuous assessment of the counterparties, transactions, assets, and market behaviors that may introduce financial crime or regulatory risk. Webacy combines multiple intelligence engines—including Wallet Screening, Transaction Monitoring, Trading Intelligence, Asset Integrity, and Contract Analysis—to provide a broader view of onchain risk that supports modern AML workflows. Rather than relying on a single indicator, organizations can incorporate a wide range of blockchain-native signals into their risk-based decision making. Examples of AML intelligence include: * Wallet and counterparty screening * Multi-hop fund flow analysis * Transaction monitoring * Sanctions exposure * Holder concentration analysis * Wash trading detection * Liquidity and market manipulation signals * Asset and issuer risk * Smart contract risk * Behavioral analysis This intelligence can be used to support onboarding, transaction monitoring, enhanced due diligence, suspicious activity investigations, treasury controls, exchange listings, and automated compliance policies. ## Built for Modern Compliance Compliance requirements continue to evolve alongside digital assets. The Compliance engine is designed to support modern, risk-based compliance programs by providing continuous blockchain intelligence that can be integrated into onboarding, transaction monitoring, treasury operations, asset listings, and automated policy engines. Rather than replacing existing compliance infrastructure, Webacy enhances it with explainable, real-time risk intelligence built specifically for blockchain. ## What's Next > [card] [Address Poisoning](/address-poisoning) > > Detect and prevent address poisoning attacks using real-time blockchain intelligence and behavioral analysis. # Depeg Monitor data dictionary Source: https://docs.webacy.com/data-dictionary Definitions for every column and filter on the Depeg Monitor overview table — risk score, grade, peg deviation, supply flow, holder concentration, and more. What each column and filter means on the overview table. # Columns | Column | Meaning | | :- | :- | | **Symbol** | Token symbol with type badge (YIELD, RWA, BRIDGED, GOLD). Hover for market cap. Small line shows e.g. "\$1.2B mcap" when available. | | **Name** | Display name of the token/project. | | **Chain** | EVM chain (eth, arbitrum, optimism, base, polygon, bsc). | | **Currency** | Peg currency: USD, EUR, JPY, XAU (gold). | | **Score** | Risk score 0–100. Higher = higher depeg risk. Hover for score drivers. See [How the score is computed](https://depeg-monitor.webacy.co/docs/depeg-scoring). | | **Mcap** | Market cap in USD (from market-data aggregators when available). Used for market sizing. Tooltip may show circulating supply and mcap ≈ price × supply check. | | **Vol 24h** | 24h trading volume in USD (from market-data aggregators). Size-of-market and turnover context. | | **Trend** | 48h score sparkline. Red ▲ = risk increased; green ▼ = risk decreased. Δ = last score vs recent baseline. | | **Liq** | DEX liquidity tier: ████ high (>\$100k/hr), ███ medium, ██ low, █ very low. From 60m DEX volume. | | **Tier** | Risk tier: critical (70+), warning (50+), watch (25+), ok (\<25). ⚡ = volatility burst. | | **Price** | Current market price in USD (5m VWAP from DEX; may be corrected by reference market feeds). | | **Peg** | Target USD value. USD = \$1, EUR ≈ \$1.08, etc. ↕ = expected range for yield/RWA tokens. | | **% Off** | \|price ÷ peg − 1\| × 100. For yield tokens in range we show "+X% (in range)". ⚠️ = >50% (possible data issue). | | **Address** | Contract address (truncated). Copy / explorer links available. | | **Last** | Timestamp of last snapshot used for this row. | # Filters | Filter | Meaning | | :- | :- | | **Filter by type (tags)** | All, Standard, Yield, RWA, Gold, Bridged. Filters by token label/type. | | **Chain** | Restrict to one chain (eth, arbitrum, optimism, base, polygon, bsc). | | **Currency** | Restrict to peg currency (USD, EUR, JPY, XAU). | | **Tier** | Show only critical, warning, watch, or clear. | | **minScore** | Minimum risk score (0–100). | | **Liq: high / medium / low** | Filter by liquidity tier. "Low" includes very\_low. | | **Search (q)** | Text search in symbol, name, and address. | # Vault Output Fields | Field | Type | Meaning | | :- | :- | :- | | **monitoring\_status** | string enum | `active` \| `watch` \| `legacy` \| `deprecated`. Derived from TVL, trend, and protocol deprecation status. | | **actionability\_class** | string | Dominant risk class driving the score: `smart_contract` \| `liquidity_lock` \| `governance` \| `market_conditions`. | | **actionability\_action** | string | Recommended action verb: `monitor` \| `watch` \| `review` \| `reduce` \| `plan` \| `exit`. | | **actionability\_detail** | string | One-line guidance based on dominant class and tier (e.g. "Smart contract risk is elevated — review audit history and consider reducing exposure"). | | **actionability\_class\_scores** | object | Scores for each of the four risk classes: `{smart_contract, liquidity_lock, governance, market_conditions}`. Each value is 0–100. | | **data\_as\_of** | string (ISO 8601) | Timestamp when this vault was last scored. The UI shows an amber ⚠ staleness indicator when the value is more than 48 hours old. | | **last\_audit\_date** | string (ISO date) | Most recent security audit date for this protocol. | | **audit\_firms** | string\[] | Audit firms that have reviewed this protocol. | | **ts\_feature\_tags** | string\[] | Vault architecture tags (e.g. `euler_earn_like`, `pendle_pt`, `yearn_v3_like`). Used for architecture-specific scoring rules. | | **days\_since\_harvest** | integer (nullable) | Days since last `harvest()` keeper call for strategy/keeper vaults (Yearn V2/V3, Harvest Finance, etc.). `null` when `last_harvest_at` is not available from on-chain harvest data. | | **harvest\_slow** | risk flag | Strategy vault hasn't harvested in 30–60 days; mild yield drag accumulating. | | **harvest\_stale** | risk flag | Strategy vault hasn't harvested in 60–90 days; moderate yield drag. | | **harvest\_dormant** | risk flag | Strategy vault hasn't harvested in 90+ days; treated as fully inactive. | # CEX Price Feed Fields | Field | Type | Meaning | | :- | :- | :- | | **cex\_price\_usd** | float (nullable) | CEX-derived price for USDT/USDC/DAI/FDUSD via BTC cross-rate. Null for other tokens. | | **cex\_price\_deviation** | float (nullable) | Absolute deviation from peg from CEX price source. | | **price\_source\_agreement** | float (nullable) | Fractional divergence between DEX and CEX price (0 = identical, 1 = 100% apart). | # Supply Flow Fields | Field | Type | Meaning | | :- | :- | :- | | **organic\_net\_24h** | float (nullable) | Net native supply change excluding bridge flows. | | **bridge\_flow\_pct** | float (nullable) | Fraction of supply change from bridge activity. | | **bridged\_fraction** | float (nullable) | Fraction of total supply that is bridged. | | **has\_bridged\_data** | boolean | Whether a bridged-supply breakdown is available for this token. | # Stablecoin / Depeg Scoring Driver Fields | Field | Type | Meaning | | :- | :- | :- | | **reserve\_attestation\_date** | string (ISO date) | Date of the most recent reserve attestation for this issuer. Present as a meta-driver in the `drivers` array. | | **reserve\_attestation\_lag\_days** | integer | Days since the last reserve attestation. Scores 0 for \<30 days, ramping to the maximum penalty at 180+ days. | | **corroboration\_gated** | flag | Present in `drivers` when weak signals (`pool_balance_drift`, `single_source`, `blacklist_activity`) were capped at 40% weight due to a lack of corroborating signals. | | **confluence\_demotion** | flag | Present in `drivers` when the tier was demoted from warning → watch because fewer than 2 strong signals (normalized ≥0.10) were present. | | **supply\_spike\_gated** | meta-driver flag | Present in `drivers` when `supply_spike` signal was capped at 20% weight due to being a first-appearance spike with no prior snapshot confirmation. Full weight restores after 2+ consecutive spike snapshots. | | **bridge\_flow\_spike** | meta-driver flag | Supply spike capped at 50% weight; >80% of spike explained by L2 bridge inflows. | | **cex\_only\_stress** | meta-driver flag | CEX shows stress (>20bp) but DEX is calm; scored at 0 but flagged for investigation. | # Alert Payload Fields | Field | Type | Meaning | | :- | :- | :- | | **why\_now** | string | Human-readable summary of what changed to trigger this alert. | | **signal\_deltas** | object | Per-signal changes versus the prior snapshot. | | **tier\_change** | string | Tier transition if one occurred (e.g. `watch → warning`). | # Data Freshness Source: https://docs.webacy.com/data-freshness Learn how Webacy delivers real-time risk intelligence with per-block updates, streaming ingestion, and continuous re-scoring of wallets, tokens, and vaults. Blockchain networks operate continuously. Wallets transact, liquidity shifts, governance proposals execute, collateral changes, and new threats emerge every minute. Waiting hours, or even days, to refresh risk intelligence can leave critical decisions based on outdated information. Webacy is built around continuous data collection and real-time analysis, ensuring risk assessments evolve alongside the blockchain itself. ## Why Freshness Matters Traditional financial risk assessments are often based on scheduled reviews, periodic disclosures, or historical reports. Blockchain operates differently. An asset that appears healthy this morning may experience significant redemptions this afternoon. A wallet can become sanctioned at any time. A governance proposal can fundamentally alter a protocol within hours. A contract exploit can occur within a single transaction. Because risk changes continuously, the underlying intelligence must also be continuously refreshed. ## Continuous by Design Webacy continuously ingests blockchain activity across supported networks and updates its analyses as meaningful events occur. Depending on the entity and intelligence engine, this may include: * New transactions * Wallet activity * Liquidity changes * Holder movements * Governance events * Smart contract updates * Reserve composition * Redemption activity * Compliance events * Newly discovered threats Rather than relying on scheduled rescans, Webacy is designed to reflect the current state of the blockchain whenever possible. ## Different Data, Different Refresh Rates Not every type of blockchain intelligence changes at the same pace. Some data, such as transactions and wallet activity, updates continuously. Other information, such as governance, reserve attestations, audits, or issuer disclosures, changes less frequently but remains an important input to the overall risk assessment. Webacy continuously evaluates available data and incorporates new information as it becomes available, ensuring each analysis reflects the most current intelligence for that entity. ## Real-Time Monitoring Data freshness becomes especially important for continuously monitored assets. For products such as stablecoins, vaults, and RWAs, Webacy monitors changes in financial, operational, and governance conditions as they occur. When meaningful changes are detected, risk scores, severity levels, and alerts can be updated automatically without waiting for a scheduled review. This enables organizations to respond to changing conditions before they become broader market events. ## Built for Automated Decisions Fresh intelligence is essential for automation. Whether an institution is screening a wallet, approving a transaction, monitoring collateral, evaluating an asset for listing, or enabling an AI agent to make autonomous decisions, every action depends on current information. By continuously updating its intelligence, Webacy helps ensure automated decisions are based on the latest available blockchain data, not yesterday's assessment. ## What's Next > [card] [Start Building!](/getting-started) > > Get started with our builder guides! # Data Quality and Confidence Source: https://docs.webacy.com/data-quality-and-confidence Understand how Webacy validates risk data across onchain sources and third-party providers, minimizes false positives, and produces explainable risk scores. Confidence begins with the quality of the underlying data. Webacy aggregates data directly from supported blockchains and augments it with carefully selected third-party intelligence where additional context or redundancy improves accuracy. Rather than relying on a single external source, we intentionally validate critical datasets across multiple providers whenever possible. This approach is particularly important for financial data, where stale or inconsistent information, such as delayed oracle updates, incomplete market data, or inaccurate reserve information, has historically contributed to significant losses across the digital asset ecosystem. In many cases, discrepancies between trusted data sources are themselves meaningful risk signals that become inputs to the Webacy Risk Framework. ## Accuracy & False Positives Like any analytical system, no risk model can guarantee perfect accuracy. Blockchain ecosystems are dynamic, new protocols are introduced every day, and adversaries continuously develop new techniques designed to evade detection. Webacy minimizes false positives by grounding its analysis in verifiable blockchain data and explainable risk factors rather than opaque heuristics or probabilistic assumptions. Every score is derived from observable onchain behavior, measurable characteristics, and independently verifiable signals. This allows users to understand not only the outcome of an assessment, but also the evidence supporting it. Our methodology is continuously validated against real-world blockchain activity and refined as new threats, asset classes, and protocol designs emerge. Over years of deployment across millions of blockchain entities, Webacy has consistently demonstrated a strong ability to identify meaningful risk while maintaining a high degree of precision. Our detection systems have repeatedly identified material risks, including major stablecoin depegs, malicious token launches, address poisoning campaigns, and contract exploits, before they became widely recognized by the broader market. ## Explainability Over Black Boxes Rather than asking users to trust a score without context, Webacy is designed to produce explainable assessments. Risk scores can be traced back to the underlying risk factors, supporting evidence, and detection engines that contributed to the analysis. This transparency enables developers, institutions, regulators, and AI systems to evaluate the reasoning behind an assessment, build confidence in automated decisions, and apply additional policies where appropriate. ## Track Record: Proven in Production The Webacy Risk Framework is not a theoretical model. It has been continuously refined through real-world deployment across millions of blockchain entities and a rapidly evolving digital asset ecosystem. See for yourself: * [Metronome msUSD](https://www.webacy.com/blog/metronome-msusd-depeg-analysis) * [Stablecoin H1 2026 Recap](https://www.webacy.com/blog/stablecoin-depeg-failure-mechanisms) * [Main Street msUSD](https://www.webacy.com/blog/msusd-depeg-redemption-velocity-risk) * [apxUSD, MIM, USR, StabIR](https://www.webacy.com/blog/stablecoin-depegs-beyond-the-price) * [USDr, EURR](https://www.webacy.com/blog/alerting-on-the-stablr-exploit-before-the-peg-broke-heres-what-our-systems-saw) and read more on our [blog](https://www.webacy.com/blog). ## What's Next > [card] [Historical Analysis](/historical-analysis) > > Explore how Webacy uses historical blockchain intelligence to identify recurring patterns, improve risk detection, and strengthen future analyses. # Webacy Data Sources for Risk Ratings and Intelligence Source: https://docs.webacy.com/data-sources How Webacy combines real-time on-chain analysis with off-chain context to power risk ratings for wallets, tokens, contracts, vaults, and stablecoins. Webacy generates risk intelligence using a combination of real-time on-chain analysis and supporting off-chain information. Unlike traditional ratings or data analytics that rely heavily on periodic disclosures, static reports, or self-reported information, Webacy continuously analyzes the underlying blockchain activity that reflects the actual state of a vault (its assets, counterparties, and surrounding ecosystem), an asset, a wallet, a transaction, or anything else on the blockchain. In certain cases, we may supplement this analysis with off-chain information when it provides meaningful context or additional evidence. ## On-Chain Intelligence The majority of Webacy's risk signals originate from blockchain data. Our systems continuously analyze assets, wallets, smart contracts, transactions, vaults, pools, and protocols across supported networks. The majority of this intelligence is proprietary technology that has been built in-house. For a full breakdown of what we build and our 3rd party infrastructure, see [here](/what-technology-does-webacy-build-in-house). ### Smart Contract Intelligence Webacy evaluates smart contracts for potential security, governance, and operational risks, all in real time. Examples include: * Contract architecture * Upgradeability patterns * Administrative permissions * Ownership structures * Access controls * Governance mechanisms * Historical upgrades and changes * Known exploit indicators * Dependency analysis ### Asset Intelligence We analyze the assets themselves and the ecosystems that support them. Examples include: * Token structure * Supply dynamics * Holder concentration * Liquidity conditions * Market depth * Trading behavior * Stablecoin integrity * Wrapped asset exposure * Bridge dependencies ### Wallet & Counterparty Intelligence Understanding who is interacting with an asset is often as important as understanding the asset itself. Webacy analyzes: * Wallet behavior * Counterparty exposure * Fund flow patterns * Entity relationships * Contamination propagation * Historical transaction activity * Risk associations * Behavioral anomalies ### Transaction Intelligence Every transaction contains information that can reveal risk before funds move. Webacy evaluates: * Transaction simulations * Approval permissions * Contract interactions * Fund destinations * Known risk indicators * Malicious execution patterns * Transaction-level anomalies ### Market & Liquidity Intelligence Risk often emerges from changing market conditions before it appears elsewhere. Webacy continuously monitors: * Liquidity depth * Slippage conditions * Trading activity * Volatility events * Oracle integrity * Price deviations * Market stress indicators ### Governance & Operational Intelligence For protocols, vaults, and managed assets, governance can significantly impact risk. Examples include: * Governance concentration * Administrative control * Upgrade authority * Emergency permissions * Ownership transfers * Operational changes * Protocol configuration updates ## Off-Chain Intelligence While Webacy is primarily an on-chain intelligence platform, certain off-chain information may be incorporated when it materially impacts risk. Examples include: ### Security Reviews * Smart contract audits * Security assessments * Public vulnerability disclosures * Historical incident reports ### Issuer & Organizational Information Where applicable, we may consider: * Issuing organizations * Project teams * Governance structures * Public disclosures * Transparency reports ### Reserve & Attestation Information For stablecoins and other asset-backed products, supporting evidence may include: * Proof-of-reserve reports * Attestations * Custody disclosures * Third-party verification reports ## Vault Rating Data Sources Vault ratings combine proprietary Webacy systems with third-party blockchain infrastructure. The table below describes each source and what it contributes to a vault's composite score, withdrawal signals, and risk flags. For how these signals are weighted, see [Vault Ratings](/vault-ratings) and [Vault Risk Intelligence](/vault-risk-intelligence). ### Internal sources (Webacy proprietary) | Source | What it contributes | | - | - | | Webacy vulnerability scanner | Detects reentrancy, unchecked external calls, and malicious external calls. Feeds the Webacy Code Risk sub-score and the `webacy_contract_risk` additive penalty. | | Webacy contract & deployer risk | Independent flags on the deployed contract and its deployer. Applied as additive penalties when triggered. | | Exchange-rate velocity tracking | Share price is checkpointed across pipeline runs to detect donation-attack spikes and exploit-driven crashes. Feeds `exchange_rate_spike` / `exchange_rate_crash` flags and the corresponding hard floors. | | Large-redemption scanner | Continuous scan of on-chain `Withdraw` events across the verified-vault catalog. Feeds withdrawal-risk and concentration signals. | | 90-day score history | Daily snapshots of risk score, tier, active flags, share price, and looping exposure. Powers trend deltas and the score sparkline. | | Composite scoring & classification engine | Weighted sub-score aggregation, additive penalties, hard state floors, listing verdict, withdrawal state, liquidity tier, and `actionability_class`. | | Refresh cadence | Vault data (lending-market utilization, vault score, withdrawal-risk level) refreshes every 6 hours. On the vault detail endpoint, the share price is overlaid with a live market price (cached up to 60 seconds) where one is available. | ### External sources | Source | What it contributes | | - | - | | Protocol risk dataset | Protocol risk classification (Negligible → Blacklisted) used by the Protocol Risk sub-score, plus supporting vault-architecture context. | | DeFi data aggregator | Live share prices and audit records (last audit date, audit firms) used by the Code Risk sub-score and `no_audits` flag. | | Lending-protocol data APIs | Live utilization rates and ERC-4626 oracle-usage detection for supported lending-vault families. | | Block explorers and indexers (multiple providers with per-chain fallbacks) | Raw on-chain data: `Withdraw` events, contract metadata, proxy/upgrade status, source-code verification, timelock presence, and governance events (upgrades, pauses, ownership transfers). | | On-chain oracle feeds | Reported oracle price per collateral token, compared against market price to derive the Oracle Gap signal and `erc4626_donation_risk` flag. | | Platform and protocol APIs | Vault-specific live data pulled directly from the source platform when it is the most accurate feed for that vault. | Webacy does not resell third-party risk scores. Third-party services provide raw data and reference signals; Webacy's proprietary systems generate the risk intelligence on top. For the broader split between in-house technology and third-party infrastructure, see [What Technology Does Webacy Build In-House?](/what-technology-does-webacy-build-in-house). ## Continuous Risk Intelligence Webacy does not rely on static snapshots. Our systems continuously evaluate changing conditions across assets, wallets, transactions, smart contracts, stablecoins, vaults, pools, protocols, counterparties, markets, and more. This allows risk assessments to reflect current conditions rather than historical assumptions, helping institutions, platforms, and users make better decisions in real time. # Run Due Diligence on a New Asset Source: https://docs.webacy.com/digital-assets/new-asset-due-diligence Pre-allocation due diligence for curators and allocators: chain contract and deployer risk, threat screening, liquidity depth, and graded v3 ratings. A new token or collateral asset always looks fine at first glance. The chart is clean, the pool has volume, the contract is verified. What that surface view hides is the risk that actually costs you: a deployer with a history of rugged contracts, liquidity that is thin or unlocked, a stablecoin drifting off its peg, or a vault whose governance can move funds without a timelock. All of it is detectable before you allocate. This guide walks through the due diligence a curator, exchange listing team, or allocator should run on any new asset, token, or vault before committing capital. ## Why Pre-Allocation Due Diligence Matters > [card] Catch It Before Capital Moves > > Screen contracts, deployers, and liquidity before you list or allocate, not after funds are locked > [card] Deployer-Level Signal > > Surface a deployer's history across other contracts, not just the asset in front of you > [card] One Workflow, Any Asset Type > > Tokens, vaults, stablecoins, and RWAs all resolve through the same due diligence chain **Why teams choose Webacy for due diligence:** * **Cheapest checks first**: contract and threat screening return in milliseconds, before you spend time on deeper liquidity or rating analysis * **Deployer risk, not just contract risk**: `deployer_risk=true` surfaces what else the deployer has shipped and whether it was flagged * **Graded ratings for regulated-adjacent assets**: vaults, stablecoins, and RWAs get an A+ to F composite grade, not just a raw score * **Fail-closed by design**: missing or stale data is treated as unknown risk, never as a pass *** ## Prerequisites Before running due diligence, ensure you have: * A Webacy API key ([sign up here](https://developers.webacy.co/billing)) * Basic familiarity with REST APIs or the [Webacy SDK](/sdk/installation) * Your listing, collateral-onboarding, or allocation workflow identified for integration points *** ## Step 1: Scan the Contract and Its Deployer Start with the cheapest, fastest check. Every new asset is a contract, scan it, and pull its deployer's history in the same call with `deployer_risk=true`. ```bash cURL theme={null} curl -X GET "https://api.webacy.com/contracts/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599?chain=eth&deployer_risk=true" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} const response = await fetch( 'https://api.webacy.com/contracts/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599?chain=eth&deployer_risk=true', { headers: { 'x-api-key': process.env.WEBACY_API_KEY } } ); const contract = await response.json(); console.log(`Contract score: ${contract.score}/100`); console.log(`Tags: ${contract.tags?.join(', ')}`); console.log(`Deployer overall risk: ${contract.deployer?.risk?.overallRisk}`); console.log(`Deployer issues: ${contract.deployer?.risk?.issues?.length ?? 0}`); ``` ```python Python theme={null} import requests response = requests.get( "https://api.webacy.com/contracts/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599", params={"chain": "eth", "deployer_risk": "true"}, headers={"x-api-key": "YOUR_API_KEY"} ) contract = response.json() ``` **Response fields to use:** | Field | Description | Action | | - | - | - | | `score` | 0-100 contract risk score | Set your listing threshold | | `tags[]` | Contract-level risk tags | Check for honeypot, proxy, or mint-authority flags | | `categories[]` | Grouped risk categories | Understand which dimensions are driving the score | | `metadata` | Contract name/symbol | Confirm the asset matches what you expect to list | | `deployer.address` | The address that deployed this contract | Track across other assets you're evaluating | | `deployer.risk.overallRisk` | Deployer's own risk score | A risky deployer is a red flag even on a clean contract | | `deployer.risk.high` / `.medium` / `.count` | Severity breakdown of deployer issues | Prioritize review | | `deployer.risk.issues[]` | Specific deployer risk findings | Understand what the deployer has been flagged for | | `deployer.deployed_contracts[]` | Other contracts from this deployer | Check whether they've shipped rugs or exploits before | | `deployer.risk.isContract` | Whether the deployer address is itself a contract | Distinguish EOA deployers from factory/multisig deployers | > [!TIP] > > **Try it now**: Call this endpoint with `0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599` (WBTC) and `chain=eth`. Compare `deployer.risk.overallRisk` against a token whose deployer has multiple flagged `deployed_contracts[]`. The deployer signal is often the earliest warning, before the token's own market history exists. *** ## Step 2: Assess the Address for Threats Contract scanning tells you about the code. Address screening tells you about behavior, run the candidate asset's contract address (and, separately, any admin or treasury address tied to it) through threat assessment. ```bash cURL theme={null} curl -X GET "https://api.webacy.com/addresses/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} const response = await fetch( 'https://api.webacy.com/addresses/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599?chain=eth', { headers: { 'x-api-key': process.env.WEBACY_API_KEY } } ); const threat = await response.json(); console.log(`Overall risk: ${threat.overallRisk}/100`); console.log(`Is contract: ${threat.isContract}, type: ${threat.addressType}`); console.log(`High severity issues: ${threat.high}`); ``` ```python Python theme={null} response = requests.get( "https://api.webacy.com/addresses/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599", params={"chain": "eth"}, headers={"x-api-key": "YOUR_API_KEY"} ) threat = response.json() ``` **Response fields to use:** | Field | Description | Action | | - | - | - | | `overallRisk` | 0-100 composite threat score | Set your review threshold (e.g., >= 50 = manual review) | | `count` / `medium` / `high` | Issue counts by severity | Escalate anything with `high` counts | | `issues[]` | Each has `score`, `tags[]`, `categories[]` | Understand the specific threats detected | | `context[]` | Supporting context for the assessment | Read before overriding a flag | | `isContract` | Whether the address is a contract | Confirm you're screening the right entity | | `addressType` | Classification of the address | Distinguish EOAs, contracts, and known entity types | *** ## Step 3: Break Down Market and Liquidity A clean contract with no liquidity is still a bad allocation. Pull the token's pools to see where price discovery actually happens and how deep the liquidity is. ```bash cURL theme={null} curl -X GET "https://api.webacy.com/tokens/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599/pools?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} const response = await fetch( 'https://api.webacy.com/tokens/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599/pools?chain=eth', { headers: { 'x-api-key': process.env.WEBACY_API_KEY } } ); const { pools } = await response.json(); for (const pool of pools) { console.log( `${pool.poolType} | Reserve: $${pool.reserve} | Locked: ${pool.lockedLiquidityPercent}% | ` + `24h volume: $${pool.volume?.h24}` ); } ``` ```python Python theme={null} response = requests.get( "https://api.webacy.com/tokens/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599/pools", params={"chain": "eth"}, headers={"x-api-key": "YOUR_API_KEY"} ) pools = response.json()["pools"] ``` **Response fields to use:** | Field | Description | Action | | - | - | - | | `fdv` | Fully diluted valuation | Compare against `market_cap` to gauge dilution risk | | `market_cap` | Circulating market cap | Sanity-check against liquidity depth | | `token_price` | Current pool price | Cross-check against other price sources | | `reserve` | Pool liquidity in USD | Low `reserve` means high slippage and manipulation risk | | `lockedLiquidityPercent` | Share of LP tokens locked | Low or 0% is a rug-pull red flag | | `lpHolderCount` / `lpHolders[]` | Number and identity of LP holders | Concentrated LP ownership is a withdrawal risk | | `volume.h24` / `.h1` | Trading volume over time windows | Confirm the pool is actually active, not just deployed | | `poolType` | DEX/pool implementation | Understand the venue you're pricing against | | `issues[]` | Pool-level risk findings | Review before treating the pool as reliable | **Spot the difference, two pools, one healthy allocation candidate:** | | `reserve` | `lockedLiquidityPercent` | `lpHolderCount` | Verdict | | - | - | - | - | - | | ✅ Healthy pool | \$4.2M | 98% | 340 | Deep, locked, broadly distributed, safe to reference for pricing | | ❌ Risky pool | \$8,500 | 0% | 2 | Thin, unlocked, two wallets control exit, do not treat this price as reliable | Both pools can carry the same `poolType` label. Only `reserve`, `lockedLiquidityPercent`, and `lpHolderCount` tell you which one you can trust. *** ## Step 4: Pull the Graded Rating (Vaults, Stablecoins, RWAs) If the candidate asset is an ERC-4626 vault, a stablecoin, or a real-world asset, pull its graded v3 rating. Use the right endpoint for the asset type: | Asset type | Endpoint | Best for | | - | - | - | | Vault (ERC-4626, curated) | `GET /v3/vaults/{address}?chain={chain}` | Composite grade across strategy, governance, and liquidity criteria | | RWA | `GET /v3/rwa/{address}?chain={chain}` | Composite grade for tokenized real-world assets | | Stablecoin / pegged token | `GET /rwa/{address}?chain={chain}&hours={n}` | Live peg deviation and liquidity depth, not a graded composite | > [!WARNING] > > On both v3 endpoints, `composite.score` and each `categories.*.score` run 0-100 where **higher means more risk**: A+ grades score near 0, F grades score near 100. This is the opposite of a health or safety score. Don't treat a high number as good. ```bash cURL theme={null} # Vault curl -X GET "https://api.webacy.com/v3/vaults/0x0deFfd509197aAD5207d2A55862835b467E8128F?chain=eth" \ -H "x-api-key: YOUR_API_KEY" # RWA curl -X GET "https://api.webacy.com/v3/rwa/{rwaAddress}?chain=eth" \ -H "x-api-key: YOUR_API_KEY" # Stablecoin depeg detail curl -X GET "https://api.webacy.com/rwa/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48?chain=eth&hours=24" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} // Graded vault rating const vaultRes = await fetch( 'https://api.webacy.com/v3/vaults/0x0deFfd509197aAD5207d2A55862835b467E8128F?chain=eth', { headers: { 'x-api-key': process.env.WEBACY_API_KEY } } ); const vault = await vaultRes.json(); console.log(`Grade: ${vault.composite.grade} (${vault.composite.stars} stars)`); console.log(`Composite score: ${vault.composite.score}/100, higher is worse`); console.log(`Coverage: ${vault.coverage.live_criteria}/${vault.coverage.total_criteria} criteria live`); console.log(`Last scored: ${vault.metadata.last_scored_at}`); // Stablecoin depeg detail const pegRes = await fetch( 'https://api.webacy.com/rwa/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48?chain=eth&hours=24', { headers: { 'x-api-key': process.env.WEBACY_API_KEY } } ); const peg = await pegRes.json(); console.log(`Tier: ${peg.snapshot.tier}, deviation from peg: ${peg.snapshot.abs_dev_clean}`); ``` ```python Python theme={null} vault = requests.get( "https://api.webacy.com/v3/vaults/0x0deFfd509197aAD5207d2A55862835b467E8128F", params={"chain": "eth"}, headers={"x-api-key": "YOUR_API_KEY"} ).json() peg = requests.get( "https://api.webacy.com/rwa/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", params={"chain": "eth", "hours": 24}, headers={"x-api-key": "YOUR_API_KEY"} ).json() ``` **v3 rating fields to use:** | Field | Description | Action | | - | - | - | | `schema_version` | Rating framework version | Confirm you're reading a current schema | | `composite.grade` | Letter grade, A+ through F | Fast pass/fail threshold for listing policy | | `composite.stars` | Star rating derived from grade | Display-friendly summary | | `composite.score` | 0-100, higher = more risk | Set numeric thresholds; never invert the polarity | | `categories.*.score` / `.criteria` | Per-category breakdown | Identify which dimension (e.g. governance, liquidity) is weakest | | `coverage.framework_version` / `.total_criteria` / `.live_criteria` | How much of the framework has live data | Low coverage means the grade rests on fewer signals, treat with caution | | `metadata.last_scored_at` | Freshness timestamp | Fail closed if this is older than your policy allows | **Depeg detail fields to use (stablecoins):** | Field | Description | Action | | - | - | - | | `snapshot.price` / `.peg_value` | Current price vs. peg target | Compute deviation directly | | `snapshot.dev_clean` / `.abs_dev_clean` | Deviation from peg | Set alert thresholds on absolute deviation | | `snapshot.tier` | Categorized risk tier | Quick pass/fail read | | `snapshot.score` | Depeg risk score | Track alongside `tier` | | `token.markets[].liquidity_usd` | Liquidity depth per venue | Confirm redemption/exit liquidity exists | | `token.score_delta_24h` | 24h change in score | Catch deterioration even if the current tier still looks fine | For deeper coverage of depeg monitoring, see the [Monitor Stablecoin Depeg Risk](/monitor/stablecoin-depeg-monitoring) guide. > [!NOTE] > > There is no `stale` or `generated_at` field on the v3 detail endpoints, use `metadata.last_scored_at` to judge freshness, and fail closed per the [hard-gating rules](/api-reference/introduction#hard-gating-and-fail-behavior) if it's older than your policy allows. *** ## Complete Due Diligence Workflow Here's how the full playbook fits together, from a new asset landing on your desk to an allocate/review/reject decision. ```mermaid theme={null} flowchart TD A[New Asset Proposed] --> B["Step 1: Contract + Deployer Scan"] B -->|Deployer/contract flagged high| R1[REJECT] B -->|Clear or minor flags| C["Step 2: Address Threat Check"] C -->|overallRisk high| R2[REJECT] C -->|Clear or moderate| D["Step 3: Market + Liquidity"] D -->|Thin/unlocked liquidity| RV1[REVIEW] D -->|Healthy liquidity| E{Asset Type?} E -->|Plain token| ALLOCATE[ALLOCATE] E -->|Vault| G["Step 4: GET /v3/vaults"] E -->|Stablecoin / RWA| H["Step 4: GET /rwa or /v3/rwa"] G --> I{Grade Acceptable?} H --> I I -->|Low grade / high score| RV2[REVIEW] I -->|Acceptable grade| ALLOCATE ``` ### Implementation Example > [accordion] Full TypeScript Implementation > > ```typescript theme={null} > const API_BASE = 'https://api.webacy.com'; > const headers = { 'x-api-key': process.env.WEBACY_API_KEY! }; > > async function runDueDiligence(candidateAddress: string, chain: string, assetType: 'token' | 'vault' | 'stable' | 'rwa') { > const decision: { action: 'ALLOCATE' | 'REVIEW' | 'REJECT'; reasons: string[] } = { > action: 'ALLOCATE', > reasons: [], > }; > > // Step 1: Contract + deployer scan > const contract = await fetch( > `${API_BASE}/contracts/${candidateAddress}?chain=${chain}&deployer_risk=true`, > { headers } > ).then(r => r.json()); > > if (contract.deployer?.risk?.overallRisk >= 80) { > return { action: 'REJECT', reasons: ['Deployer risk critical'] }; > } > if (contract.deployer?.risk?.overallRisk >= 50) { > decision.action = 'REVIEW'; > decision.reasons.push(`Deployer risk elevated (${contract.deployer.risk.overallRisk})`); > } > > // Step 2: Address threat check > const threat = await fetch( > `${API_BASE}/addresses/${candidateAddress}?chain=${chain}`, > { headers } > ).then(r => r.json()); > > if (threat.overallRisk >= 80) { > return { action: 'REJECT', reasons: ['Address threat risk critical'] }; > } > if (threat.overallRisk >= 50) { > decision.action = 'REVIEW'; > decision.reasons.push(`Threat risk elevated (${threat.overallRisk})`); > } > > // Step 3: Market + liquidity (skip for pure vault/RWA ratings if not pool-listed) > if (assetType === 'token') { > const { pools } = await fetch( > `${API_BASE}/tokens/${candidateAddress}/pools?chain=${chain}`, > { headers } > ).then(r => r.json()); > > const bestPool = pools?.[0]; > if (!bestPool || bestPool.reserve < 50_000 || bestPool.lockedLiquidityPercent < 50) { > decision.action = 'REVIEW'; > decision.reasons.push('Thin or unlocked liquidity'); > } > } > > // Step 4: Graded rating for vaults, stablecoins, RWAs > if (assetType === 'vault' || assetType === 'rwa') { > const path = assetType === 'vault' ? 'v3/vaults' : 'v3/rwa'; > const rating = await fetch( > `${API_BASE}/${path}/${candidateAddress}?chain=${chain}`, > { headers } > ).then(r => r.json()); > > // composite.score: 0-100, higher = more risk > if (rating.composite.score >= 70) { > decision.action = 'REVIEW'; > decision.reasons.push(`Low graded rating: ${rating.composite.grade} (score ${rating.composite.score})`); > } > } > > if (assetType === 'stable') { > const peg = await fetch( > `${API_BASE}/rwa/${candidateAddress}?chain=${chain}&hours=24`, > { headers } > ).then(r => r.json()); > > if (peg.snapshot.tier === 'critical' || peg.snapshot.tier === 'warning') { > decision.action = 'REVIEW'; > decision.reasons.push(`Depeg tier: ${peg.snapshot.tier}`); > } > } > > return decision; > } > > // Example: evaluate WBTC as a token listing candidate > const result = await runDueDiligence( > '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599', > 'eth', > 'token' > ); > console.log(result); > ``` *** ## Example Addresses for Testing | Address | Chain | Asset type | | - | - | - | | `0x0deFfd509197aAD5207d2A55862835b467E8128F` | eth | ERC-4626 vault | | `0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48` | eth | Stablecoin (USDC) | | `0xdAC17F958D2ee523a2206206994597C13D831ec7` | eth | Stablecoin (USDT) | | `0x6B175474E89094C44Da98b954EedeAC495271d0F` | eth | Stablecoin (DAI) | | `0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599` | eth | Token (WBTC) | *** ## API Quick Reference | Endpoint | Use Case | | - | - | | `GET /contracts/{contractAddress}?chain={chain}&deployer_risk=true` | Contract + deployer risk scan | | `GET /addresses/{address}?chain={chain}` | Address threat assessment | | `GET /tokens/{tokenAddress}/pools?chain={chain}` | Token market and liquidity breakdown | | `GET /v3/vaults/{address}?chain={chain}` | Graded vault rating (composite grade/score) | | `GET /v3/rwa/{address}?chain={chain}` | Graded RWA rating (composite grade/score) | | `GET /rwa/{address}?chain={chain}&hours={n}` | Stablecoin/pegged token depeg detail | **Authentication:** ```text theme={null} Header: x-api-key: YOUR_API_KEY Base URL: https://api.webacy.com ``` *** ## Ready to Ship? 1. **Get your API key**: Takes 2 minutes 2. **Run the workflow against the example addresses**: Confirm each step returns the fields your policy needs 3. **Wire the decision function into your listing or allocation pipeline**: Fail closed on missing or stale data ## Next Steps > [card] [Ongoing Risk Monitoring](/monitor/ongoing-risk-monitoring) > > Keep watching an asset after you've allocated to it > [card] [Contract Risk API](/api-reference/contract-risk/get-a-real-time-analysis-for-a-given-contract-address) > > Full reference for the contract and deployer risk scan > [card] [Vault Risk (V3) API](/api-reference/vault-risk-v3/get-vault-risk-detail-v3) > > Full reference for the graded vault rating > [card] [Depeg Monitor API](/api-reference/depeg-monitor/get-depeg-risk-detail-for-a-pegged-token) > > Full reference for stablecoin and RWA depeg detail # Vault Risk Integration Guide Source: https://docs.webacy.com/digital-assets/vault-risk Integrate Webacy vault risk ratings for ERC-4626 vaults with composite letter grades, per-category contributors, and continuous monitoring on nine chains. Webacy rates the risk of ERC-4626 vaults so you can screen, list, and monitor DeFi vaults with confidence. Every vault is scored against a versioned risk framework that spans seven categories — from smart-contract quality to counterparty and hack/exploit history — and rolls up into a single composite grade you can act on. This page is the starting point. It orients you to what the vault risk surface gives you and where to go to integrate. ## What you get > [card] Composite letter grade > > A single `A+`–`F` grade (plus a 0–100 score and star rating) summarizing overall vault risk. > [card] Per-category contributors > > See exactly which of the seven risk categories drove the grade, each with its own score and weight. > [card] Criteria taxonomy > > A dense `pass` / `warn` / `fail` breakdown across the framework's individual criteria. > [card] Coverage disclosure > > Every response tells you how many criteria are live versus planned — no hidden gaps. The seven categories are `smart_contract`, `operational_governance`, `asset_collateral`, `market_liquidity`, `counterparty`, `hack_exploit_history`, and `chain_infrastructure`. The V3 vault risk surface covers nine chains: `eth`, `arb`, `base`, `opt`, `pol`, `bsc`, `avax`, `gnosis`, `sol`. The composite grade uses the [standard 11-band letter scale](/api-reference/vault-risk-v3/framework-methodology#letter-grade-mapping): `A+` (lowest risk) through `F` (highest), with no `E` grade. > [!NOTE] > > Want vault risk coverage on a chain that's not listed? [Contact the team](mailto:info@webacy.com) — we're actively expanding chain coverage. *** ## What V3 returns The V3 vault surface (`/v3/vaults/{address}`) returns a composite letter grade, per-category contributors, the full `pass` / `warn` / `fail` criteria taxonomy, and coverage disclosure. The framework is versioned and pinnable via `framework_version` and `grading_scheme`. The underlying `risk` envelope is preserved verbatim on every V3 response, so if you already consume the standard Webacy `risk` format you can adopt V3 incrementally — read the new fields when you're ready, ignore them until then. > [!WARNING] > > **Score polarity: higher means worse.** V3 numeric scores (`composite.score`, category scores, contributor scores) run 0–100 where **0 is the lowest risk and 100 is the highest** — the same direction as the `risk.score` envelope. The letter grade keeps the conventional mapping (`A+` is best, `F` is worst), so a low numeric score earns a high letter grade. If you build dashboards, make sure higher numbers sort and color as *worse*. See the [polarity warning](/api-reference/vault-risk-v3/v3-overview#score-polarity) for the worked example. *** ## Quickstart Fetch the full V3 risk decomposition for a single vault. You need a Webacy API key ([sign up here](https://developers.webacy.co/billing)) and the vault's contract address and chain. ```bash cURL theme={null} curl -X GET "https://api.webacy.com/v3/vaults/0x0deFfd509197aAD5207d2A55862835b467E8128F?chain=eth&framework_version=v1&grading_scheme=v2" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} const res = await fetch( 'https://api.webacy.com/v3/vaults/0x0deFfd509197aAD5207d2A55862835b467E8128F?chain=eth&framework_version=v1&grading_scheme=v2', { headers: { 'x-api-key': process.env.WEBACY_API_KEY } } ); const vault = await res.json(); console.log(`Grade: ${vault.composite.grade}`); // e.g. "C-" console.log(`Score: ${vault.composite.score}`); // 0–100, higher = worse console.log(`Clamped by upstream: ${vault.composite.clamped_by_upstream}`); ``` ```python Python theme={null} import requests res = requests.get( "https://api.webacy.com/v3/vaults/0x0deFfd509197aAD5207d2A55862835b467E8128F", params={"chain": "eth", "framework_version": "v1", "grading_scheme": "v2"}, headers={"x-api-key": "YOUR_API_KEY"}, ) vault = res.json() print(vault["composite"]["grade"], vault["composite"]["score"]) ``` > [!TIP] > > Pin `framework_version` and `grading_scheme` from your very first call. Both default, but pinning guarantees reproducible scoring when a new framework or scheme version ships — see [Pinning the framework](/api-reference/vault-risk-v3/framework-methodology#pinning-the-framework). The framework taxonomy itself is available from a **public** endpoint (no API key required): `GET /v3/framework` returns the full category and criteria list, so your client never drifts from the live framework. *** ## Where to go next > [card] [Vault Risk V3 Overview](/api-reference/vault-risk-v3/v3-overview) > > The V3 contract: versioning, polarity, upstream floor, and categories. > [card] [Vault Detail (V3)](/api-reference/vault-risk-v3/get-vault-risk-detail-v3) > > Full request/response reference for `GET /v3/vaults/{address}`. > [card] [Framework Methodology](/api-reference/vault-risk-v3/framework-methodology) > > How composite scores are derived and why the framework is API-driven. > [card] [Framework Taxonomy](/api-reference/vault-risk-v3/get-framework) > > The public endpoint returning the canonical category and criteria list. > [card] [Screen and Monitor Vault Risk](/digital-assets/vault-risk-screening) > > Step-by-step integration guide for screening and continuous monitoring. > [card] [Vault Risk Intelligence](/vault-risk-intelligence) > > The data and signals available — verdicts, withdrawal risk, history, depeg. > [card] [Vault Incidents](/vault-incidents) > > A curated timeline of vault exploits, depegs, and governance failures. # Screen and Monitor Vault Risk Source: https://docs.webacy.com/digital-assets/vault-risk-screening Screen ERC-4626 vaults before listing and monitor governance, liquidity, and code risk continuously across six EVM chains with sub-500ms verdicts. In October 2023, a Yearn vault suffered an \$11.6M exploit due to a misconfigured withdrawal mechanism that went undetected for days. The vault's code was upgradeable, the admin key was an EOA, and there was no timelock. All of these were detectable signals. This guide shows you how to screen vaults before listing and monitor them continuously across 6 EVM chains. ## Why Vault Risk Screening Matters > [card] Compliance > > Automated listing verdicts help you meet due diligence requirements for DeFi integrations > [card] Risk Management > > Catch governance risks, liquidity traps, and code vulnerabilities before your users deposit > [card] User Protection > > Surface vault health data so users can make informed decisions about their capital **Why teams choose Webacy for vault screening:** * **7 risk categories, 41 tags** — Covers structure, governance, liquidity, code quality, asset risk, performance, and protocol risk * **Listing verdicts** — `safe_to_list`, `caution`, `review_required`, `do_not_list` — actionable decisions, not just numbers * **Sub-500ms responses** — Screen vaults in real-time without blocking your UI * **6 EVM chains** — ETH, ARB, BASE, OPT, POL, BSC from a single API *** ## Prerequisites Before implementing vault screening, ensure you have: * A Webacy API key ([sign up here](https://developers.webacy.co/billing)) * Basic familiarity with REST APIs or the [Webacy SDK](/sdk/installation) * Your vault listing or portfolio management flow identified for integration points *** ## Screen a Vault Before Listing Before surfacing a vault to users, check its risk rating and listing verdict. ```bash cURL theme={null} curl -X GET "https://api.webacy.com/vaults/0x0deFfd509197aAD5207d2A55862835b467E8128F?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} const response = await fetch( 'https://api.webacy.com/vaults/0x0deFfd509197aAD5207d2A55862835b467E8128F?chain=eth', { headers: { 'x-api-key': process.env.WEBACY_API_KEY } } ); const vault = await response.json(); console.log(`Risk Rating: ${vault.riskScore}/100`); console.log(`Tier: ${vault.tier}`); console.log(`Listing Verdict: ${vault.listingVerdict}`); ``` ```python Python theme={null} import requests response = requests.get( "https://api.webacy.com/vaults/0x0deFfd509197aAD5207d2A55862835b467E8128F", params={"chain": "eth"}, headers={"x-api-key": "YOUR_API_KEY"} ) vault = response.json() ``` **Key response fields:** | Field | Description | Action | | - | - | - | | `riskScore` | 0-100 composite rating | Set your threshold (e.g., >50 = review) | | `tier` | `low` / `medium` / `high` / `critical` | Quick categorization | | `listingVerdict` | `safe_to_list` / `caution` / `review_required` / `do_not_list` | Direct listing decision | | `withdrawalRisk` | `null` / `constrained` / `delayed` / `illiquid` / `locked` / `blocked` | User exit condition | | `risk.issues[]` | Array of risk tags with severity | Understand what's driving the rating | ### Listing Verdict Decision Logic | Verdict | Action | | - | - | | `safe_to_list` | Auto-approve for listing | | `caution` | List with a risk warning badge | | `review_required` | Queue for manual review before listing | | `do_not_list` | Block from listing — has blocking risk tags or rating >= 75 | *** ## Monitor High-Risk Vaults Once vaults are listed, monitor them continuously for changes. ```bash cURL theme={null} # Get all vaults needing attention, sorted by risk curl -X GET "https://api.webacy.com/vaults?attentionNeeded=true&sort=score_desc&pageSize=50" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} const response = await fetch( 'https://api.webacy.com/vaults?attentionNeeded=true&sort=score_desc&pageSize=50', { headers: { 'x-api-key': process.env.WEBACY_API_KEY } } ); const { data } = await response.json(); for (const vault of data) { if (vault.tier === 'critical') { console.log(`ALERT: ${vault.name} is now critical (${vault.riskScore}/100)`); } } ``` ```python Python theme={null} response = requests.get( "https://api.webacy.com/vaults", params={"attentionNeeded": "true", "sort": "score_desc", "pageSize": 50}, headers={"x-api-key": "YOUR_API_KEY"} ) vaults = response.json()["data"] ``` **Useful filters for monitoring:** | Filter | Example | Use Case | | - | - | - | | `tier=critical` | Only critical vaults | Alert pipeline | | `attentionNeeded=true` | Vaults with state changes | Daily monitoring | | `riskFlags=vault-redemption-closed` | Specific risk condition | Targeted alerts | | `chain=eth&minTvl=1000000` | Chain + TVL threshold | Portfolio-relevant vaults | *** ## Build a Vault Risk Dashboard Fetch a paginated list of vaults with risk data for a dashboard view. ```bash cURL theme={null} # USDC vaults on Ethereum, sorted by TVL curl -X GET "https://api.webacy.com/vaults?chain=eth&underlying=USDC&sort=tvl_desc&pageSize=25" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} async function fetchVaultDashboard(chain: string, page = 1) { const params = new URLSearchParams({ chain, sort: 'tvl_desc', pageSize: '25', page: String(page), }); const response = await fetch( `https://api.webacy.com/vaults?${params}`, { headers: { 'x-api-key': process.env.WEBACY_API_KEY } } ); return response.json(); } const dashboard = await fetchVaultDashboard('eth'); console.log(`Total vaults: ${dashboard.total}`); for (const vault of dashboard.data) { console.log(`${vault.name} | TVL: $${vault.tvl} | Risk: ${vault.riskScore} | ${vault.tier}`); } ``` ```python Python theme={null} params = { "chain": "eth", "underlying": "USDC", "sort": "tvl_desc", "pageSize": 25, } response = requests.get( "https://api.webacy.com/vaults", params=params, headers={"x-api-key": "YOUR_API_KEY"} ) dashboard = response.json() ``` *** ## Complete Integration Workflow Here's how vault screening fits into a typical platform. ### Vault Listing Flow ```mermaid theme={null} flowchart TD A[New Vault Discovered] --> B{Fetch Risk Rating} B --> C{Listing Verdict?} C -->|safe_to_list| D[Auto-List Vault] C -->|caution| E[List with Risk Badge] C -->|review_required| F[Queue for Manual Review] C -->|do_not_list| G[Block from Listing] D --> H[Add to Monitoring] E --> H F -->|Approved| H H --> I{Daily Check} I -->|Tier Changed| J[Alert Team] I -->|Still OK| I ``` ### Implementation Example > [accordion] Full TypeScript Implementation > > ```typescript theme={null} > const API_BASE = 'https://api.webacy.com'; > const API_KEY = process.env.WEBACY_API_KEY; > > const headers = { 'x-api-key': API_KEY }; > > // Screen a vault before listing > async function screenVault(address: string, chain: string) { > const res = await fetch( > `${API_BASE}/vaults/${address}?chain=${chain}`, > { headers } > ); > const vault = await res.json(); > > return { > address, > chain, > name: vault.name, > riskScore: vault.riskScore, > tier: vault.tier, > verdict: vault.listingVerdict, > withdrawalRisk: vault.withdrawalRisk, > tags: vault.risk?.issues?.flatMap(i => i.tags?.map(t => t.key)) ?? [], > }; > } > > // Decide listing action based on verdict > function decideListing(vault: Awaited>) { > switch (vault.verdict) { > case 'safe_to_list': > return { action: 'LIST', badge: null }; > case 'caution': > return { action: 'LIST', badge: 'risk-warning' }; > case 'review_required': > return { action: 'REVIEW', badge: 'pending-review' }; > case 'do_not_list': > return { action: 'BLOCK', badge: null, reason: vault.tags.join(', ') }; > } > } > > // Monitor all listed vaults > async function monitorVaults() { > const res = await fetch( > `${API_BASE}/vaults?attentionNeeded=true&sort=score_desc&pageSize=100`, > { headers } > ); > const { data } = await res.json(); > > const alerts = data.filter(v => v.tier === 'critical' || v.tier === 'high'); > > for (const vault of alerts) { > console.log( > `[${vault.tier.toUpperCase()}] ${vault.name} — ` + > `Rating: ${vault.riskScore}/100, ` + > `Verdict: ${vault.listingVerdict}` > ); > } > > return alerts; > } > > // Example usage > const result = await screenVault( > '0x0deFfd509197aAD5207d2A55862835b467E8128F', > 'eth' > ); > const decision = decideListing(result); > console.log(`${result.name}: ${decision.action}`); > ``` *** ## API Quick Reference | Endpoint | Use Case | Response Time | | - | - | - | | `GET /vaults` | List all vaults with risk data | \~300ms | | `GET /vaults/{address}?chain={chain}` | Full vault risk detail | \~500ms | **Authentication:** ```text theme={null} Header: x-api-key: YOUR_API_KEY Base URL: https://api.webacy.com Supported chains: eth, arb, base, opt, pol, bsc ``` *** ## Next Steps > [card] [Vault Detail (V3)](/api-reference/vault-risk-v3/get-vault-risk-detail-v3) > > Full endpoint reference with all query parameters > [card] [Framework Methodology](/api-reference/vault-risk-v3/framework-methodology) > > How vault risk grades are computed — categories, weights, and the upstream floor > [card] [Stablecoin Depeg Monitoring](/monitor/stablecoin-depeg-monitoring) > > Monitor the stablecoins that underlie your vaults > [card] [Risk Tags Reference](/glossary/threats-and-labels) > > Complete list of all risk tags and what they mean # On-Chain Dollar Rate Source: https://docs.webacy.com/dollar-rate How Webacy's daily USDC, USDT and composite dollar rates are built: which vaults are eligible, how they are weighted, and how the rate by grade works. The On-Chain Dollar Rate is what depositors actually earned lending USDC and USDT in DeFi vaults over the last 90 days, net of fees and excluding reward programs. Webacy publishes it daily as a USDC rate, a USDT rate, a composite of the two, and the same rate by Webacy grade. You can see it on the [Yield page in DD](https://dapp.webacy.com/yield). > [!NOTE] > > The dollar rate is an indicative index for information only. It is not a regulated benchmark and is not meant for contractual use. This page describes methodology version `dollar-rate-v0.1.2`. Every published day records the version it was computed with, and the full history has been computed under this version. ## What's in it A vault is in scope when its single underlying token is canonical USDC or USDT, matched by contract address on each chain, never by ticker: * **USDC:** native Circle USDC on Ethereum, Base, Arbitrum, Optimism, Polygon and Avalanche. Bridged USDC.e is a different token and is not included. * **USDT:** the USDT each chain's DeFi uses. That is native USDT on Ethereum and Avalanche, and the Tether-endorsed bridged token on Arbitrum (USDT0), Optimism and Polygon. Synthetic or yield-bearing dollars (USDe, sUSDe) and other fiat-backed dollars (USDS, PYUSD) are not part of the rate. ## Eligibility Each in-scope vault is checked every day against these rules, in this order. A vault that fails a rule is counted under the first rule it fails, which is what the "How the rate is built" breakdown on the Yield page shows. | Rule | Shown as | | :- | :- | | **Not an RWA fund.** Funds that hold T-bills or CLOs (Centrifuge) earn an off-chain fixed-income yield, not a DeFi lending rate. | RWA fund | | **Not a trader-counterparty vault.** A vault that takes the other side of perpetual-futures traders (for example the Ostium Liquidity Pool Vault) earns trading profit and loss, not a lending rate. Its yield can swing from deeply negative to very high month to month. | Counterparty LP vault | | **TVL is not a known data error.** On the rare days a vault's recorded TVL is known to be wrong, the vault is left out rather than weighted by a wrong number. | TVL data error | | **Deposits are open.** A vault whose deposits are closed, paused or at their cap is left out, because a new depositor can't earn its rate. A vault whose deposit status is unknown stays in. | Deposits closed, paused or capped | | **At least 90 days of history.** The vault needs a 90-day realized yield from Webacy's own on-chain share-price reads. Newer vaults are left out. | Under 90 days of history | | **Some realized growth.** A vault whose share price didn't move at all over 90 days (exactly 0.00% realized) is left out. It is idle, or frozen at its last mark after its collateral failed, and a frozen mark isn't a lending yield. | No yield | | **A plausible yield.** The realized 90-day yield must be between −95% and +50%. Anything outside that range is treated as a data error. A real loss inside the range counts and pulls the rate down. | Yield outside plausible bounds | | **TVL of at least \$1M.** A vault with no TVL figure is left out too. | TVL under \$1.00M, No TVL | A vault listed twice on the same day is counted once. ## The measure Each vault contributes its realized 90-day yield, read from its own share price on-chain: ```text theme={null} realized 90d = (share price today / share price 90 days ago) ^ (365 / 90) − 1 ``` A share price is net of the vault's fees, and reward programs such as Merkl campaigns are not in it, so the rate is what a depositor earned from the vault itself. See [Vault Yield & Fees](/vault-yield-and-fees#standardized-apy) for how share prices are read for each protocol. ## Weighting * **TVL-weighted, with a 25% cap.** Within the USDC rate and within the USDT rate, each vault is weighted by its TVL, but no vault can carry more than 25% of the rate. The excess weight of a capped vault is spread across the others in proportion to their TVL. In the USDT rate the largest vaults are often held at the cap, so the rate reflects the market as a whole rather than one dominant vault. * **At least 5 vaults.** With fewer than 5 eligible vaults, no rate is published for that asset that day. * **Composite.** The USDC and USDT rates are blended by their eligible TVL, so the composite always lies between the two. On the Yield page, each vault's **weight** is its share of its USDC or USDT rate after the cap. Multiplying each weight by the vault's realized 90-day yield and summing gives back the published rate. ## Rate by grade The same capped rate is also computed within each Webacy grade (A to F), using that day's vault grade. A grade with too few vaults shows its count and TVL but no rate. Days before March 25, 2026 have no rate by grade, because grades are never applied backwards from today. ## History and restatement * **Daily:** the rate is computed once a day. The rate summary reports the latest value, the change over 30 days and a year, and the average, high and low over the last 365 days. * **Backfilled history:** days before October 23, 2026 are reconstructed from on-chain share prices and total assets, with USDC and USDT valued at \$1. Deposit status isn't known for those days, so every otherwise eligible vault is included. Vaults that had already closed before the history was built are not included. * **Versioned:** every published value records its methodology version. A past day only changes when the methodology changes, and then it is recomputed under the new version. ## Known limitations * **Concentration:** a few large vaults hold most USDT deposits. The 25% cap keeps any one vault from setting the rate, so the rate is not a plain TVL average. * **Survivorship:** backfilled days include only vaults that still existed when the history was built. * **Deposit status:** backfilled days don't know whether deposits were open, so they can include vaults a new depositor couldn't have entered. # Entity Types Source: https://docs.webacy.com/entity-types Reference for Webacy entity types including wallets, transactions, tokens, stablecoins, smart contracts, and vaults, each with its own risk model and signals. Blockchain risk is not one-size-fits-all. A wallet, stablecoin, smart contract, vault, and transaction each present fundamentally different risks and require different evaluation methodologies. Rather than applying a single scoring model to every blockchain object, Webacy first identifies the type of entity being analyzed before selecting the appropriate detection engines, risk factors, and scoring methodologies. This ensures that every entity is evaluated within the correct context. Many entity types are also divided into specialized subtypes, each with their own characteristics and risk considerations. As the blockchain ecosystem evolves, Webacy continuously expands support for new entity classes and refines existing methodologies. ## Wallets Wallets represent individuals, organizations, protocols, exchanges, smart contracts, and other blockchain participants. Depending on the wallet type, Webacy may evaluate factors such as behavioral history, fund flows, counterparty exposure, sanctions, historical activity, concentration, transaction patterns, and known associations. Examples include: * Externally Owned Accounts (EOAs) * Exchange wallets * Treasury wallets * Multisigs * Protocol-owned wallets * Custodial wallets * Smart contract wallets ## Transactions Every transaction represents a unique event onchain with its own context and potential risk. Webacy analyzes transaction intent, asset movement, contract interactions, simulation results, counterparties, execution patterns, and other contextual signals to identify security, financial, operational, and compliance risks. Examples include: * Transfers * Swaps * Bridge transactions * Contract interactions * Approvals * Mint and burn operations * Governance actions ## Tokens & Digital Assets Digital assets vary significantly in structure, purpose, and risk profile. Different token categories introduce different considerations around liquidity, concentration, governance, issuance, holder behavior, and protocol dependencies. Examples include: * Utility tokens * Governance tokens * Meme coins * Wrapped assets * Yield-bearing assets * Liquid staking tokens (LSTs) * Liquid restaking tokens (LRTs) ## Stablecoins Stablecoins require specialized financial and operational analysis beyond traditional token evaluation. Depending on the stabilization mechanism, Webacy evaluates reserve composition, redemption mechanics, liquidity, peg stability, concentration, collateral quality, protocol dependencies, and market behavior. Examples include: * Fiat-backed * Crypto-backed * Algorithmic * Synthetic * Yield-bearing * Hybrid collateral models ## Vaults Vaults introduce risks associated with strategy execution, protocol integrations, liquidity, and asset management. Webacy evaluates vault construction, underlying positions, leverage, protocol dependencies, TVL changes, historical performance, and operational characteristics. Examples include: * Yield vaults * Lending vaults * Liquidity provider vaults * Delta-neutral strategies * Leveraged vaults * Treasury vaults ## Real World Assets (RWAs) Real World Assets encompass a wide range of tokenized financial products, each with unique legal, operational, and financial characteristics. Risk factors vary depending on collateral structure, issuer obligations, redemption mechanisms, underlying assets, and jurisdiction. Examples include: * Gold-backed assets * Treasury-backed assets * Money market funds * Private credit * Corporate debt * Real estate * Commodities * Tokenized deposits ## Smart Contracts Smart contracts are evaluated independently from the assets they manage. Webacy analyzes contract architecture, permissions, upgradeability, ownership, privileged functions, audit history, bytecode, dependencies, exploit patterns, and operational risks. Through the acquisition of [Trugard](https://trugard.io/), Webacy operates a real-time smart contract risk analysis engine that can detect risk and malicious capabilities at code-level. Examples include: * ERC-20 contracts * Vault contracts * Lending protocols * DEX contracts * Bridge contracts * Governance contracts * Token factories ## Domains Blockchain naming systems provide human-readable identities that can represent individuals, organizations, protocols, or infrastructure. Webacy evaluates ownership history, associated wallets, linked assets, reputation, and other contextual signals. Examples include: * ENS * Unstoppable Domains * Basenames * SNS * Other blockchain naming services ## URLs Webacy evaluates URLs associated with blockchain applications, wallets, and infrastructure to identify potential security and operational risks. Analysis may include domain reputation, phishing detection, hosting characteristics, historical observations, and associations with known blockchain entities. Examples include: * dApp websites * Wallet connection endpoints * RPC endpoints * API endpoints * Documentation sites * Governance portals ## Evolving with the Ecosystem The blockchain ecosystem continues to introduce new asset classes, protocols, and financial primitives. As these innovations emerge, Webacy expands its supported entity types, introduces new subcategories, and refines its methodologies to ensure every entity is evaluated using the most appropriate risk model. Entity classification is the first step in the Webacy Risk Framework, ensuring that every analysis begins with the correct context before any risk scores or ratings are calculated. ## What's Next > [card] [Risk Factors](/risk-factors) > > Every Webacy risk score is built from hundreds of independent signals that together provide a comprehensive view of onchain risk. # Errors Source: https://docs.webacy.com/errors Reference for Webacy API errors, including HTTP status codes, standardized error response fields, and troubleshooting steps for common failure cases. Every Webacy API response includes an appropriate HTTP status code. When an error occurs, the API returns a structured JSON response describing what happened and, where possible, how to resolve it. Applications should always check the HTTP status code before processing the response body. ## Common HTTP Status Codes | Status | Meaning | | - | - | | **200 OK** | Request completed successfully. | | **400 Bad Request** | The request was malformed or contains invalid parameters. | | **401 Unauthorized** | Authentication failed or the API key is invalid. | | **402 Payment Required** | Payment is required before the request can be served. Endpoints that support keyless [x402 payments](/x402-payments) return this with a `payment-required` challenge when there is no prepaid balance. Requests authenticated with an API key can also receive a `402` when the account has an outstanding subscription balance. | | **403 Forbidden** | The authenticated account does not have permission to access the requested resource. This means your API key does not have access to the endpoint you are trying to call. Some endpoints require a higher plan tier. See [Endpoint Access by Plan](/rate-limits#endpoint-access-by-plan). | | **404 Not Found** | The requested resource or endpoint does not exist. | | **409 Conflict** | The request conflicts with the current state of the resource. | | **422 Unprocessable Entity** | The request was valid but could not be processed (for example, an unsupported blockchain entity or invalid address format). | | **429 Too Many Requests** | Your application has exceeded its rate limit or monthly usage allocation. | | **500 Internal Server Error** | An unexpected server error occurred. | | **503 Service Unavailable** | The service is temporarily unavailable or undergoing maintenance. | ## Handling Errors Applications should be designed to handle errors gracefully. We recommend: * Validate user input before sending requests. * Retry temporary failures such as `429` and `503` using exponential backoff. * Do not retry authentication (`401`) or malformed request (`400`) errors without first correcting the request. * Log error responses for troubleshooting and monitoring. * Display meaningful error messages to end users when appropriate. ## Support If you receive unexpected errors or believe an issue is not documented, email the Webacy team at [info@webacy.com](mailto:info@webacy.com). Include the request ID, endpoint, timestamp, and full error response so we can investigate the issue more quickly. ## Reporting a security issue To report a suspected security vulnerability in the Webacy API, SDKs, or dApp, email [info@webacy.com](mailto:info@webacy.com) with the subject line `Security report`. Include: * A description of the vulnerability and its potential impact. * Steps to reproduce, including any proof-of-concept requests or payloads. * Affected endpoint, SDK version, or URL. * The date and time you observed the issue, in UTC. Do not include real user data, private keys, or third-party credentials in the report. Please give us a reasonable window to investigate and respond before disclosing the issue publicly. # API Considerations Source: https://docs.webacy.com/essentials/considerations Learn how Webacy API caching, scan latency, error handling, and best practices work so you integrate blockchain risk analysis reliably at scale. ## Overview The Webacy API is designed for high performance and accuracy. Understanding these considerations will help you get the most out of your integration. ## Speed & Latency > [!NOTE] > > Initial scans may take up to **3 seconds** while our Risk Engine analyzes the address. Subsequent requests for the same address return much faster. ### How It Works 1. **First Request** - Full analysis runs, may take 1-3 seconds 2. **Subsequent Requests** - Returns cached results instantly 3. **Background Refresh** - System automatically re-analyzes addresses over time ### Optimization Tips * Cache results on your end for frequently queried addresses * Use webhooks for real-time updates instead of polling * Batch your initial queries during off-peak hours if possible ## Pre-Loading For high-traffic applications, we offer custom pre-loading of specific token and address lists. > [!TIP] > > Pre-loading eliminates cold-start latency by ensuring addresses are already analyzed before your users query them. ### Request Pre-Loading Contact our team at [info@webacy.com](mailto:info@webacy.com) to set up pre-loading for: * Token contract addresses you frequently analyze * Watchlists of addresses your users interact with * New token launches you want to monitor ## Failures & Retries When an endpoint fails, the address is automatically queued for retry analysis. ### Handling Failures ```javascript theme={null} async function getAddressRisk(address, chain, retries = 3) { for (let i = 0; i < retries; i++) { try { const response = await fetch( `https://api.webacy.com/addresses/${address}?chain=${chain}`, { headers: { 'x-api-key': 'YOUR_API_KEY' } } ); if (response.ok) { return await response.json(); } // Wait before retry (exponential backoff) await new Promise(r => setTimeout(r, 1000 * Math.pow(2, i))); } catch (error) { if (i === retries - 1) throw error; } } } ``` > [!WARNING] > > If you hit a failure, retry the request. Our system queues failed addresses for background processing, so a retry often succeeds. ## Data Freshness The API balances speed and accuracy through intelligent caching. ### Cache Behavior | Scenario | Behavior | | - | - | | First request | May return cached data for speed | | Subsequent requests | Triggers background refresh | | Maximum cache age | **24 hours** | ### Forcing Fresh Data For critical operations, you can request fresh analysis: ```bash theme={null} # Use refreshCache parameter where available curl -X GET "https://api.webacy.com/addresses/0x...?chain=eth&refreshCache=true" \ -H "x-api-key: YOUR_API_KEY" ``` > [!NOTE] > > Our data is regularly updated and never retains a cache longer than 24 hours. For most use cases, cached data is sufficiently current. ## Data Availability & Retention Some analyses depend on historical blockchain data from upstream providers with limited retention windows. ### Early Holder Analysis | Chain | Coverage | | - | - | | Solana (`sol`) | Tokens launched within the last **12 months** | | BSC (`bsc`) | Tokens deployed within the last **3 months** | | Other supported chains | No retention limit | When a token falls outside the coverage window, the [Holder Analysis](/api-reference/holder-analysis/get-detailed-early-holder-analysis-for-a-token) endpoint returns HTTP 200 with `data_availability: "unsupported_token_age"` and a human-readable `data_availability_message` instead of computed first-buyer and sniper metrics. > [!NOTE] > > Tokens analyzed before the retention cutoff continue to return their stored results — the limit only applies to tokens being analyzed for the first time. ## Best Practices Summary 1. **Expect initial latency** - First scans take longer, plan your UX accordingly 2. **Implement retries** - Use exponential backoff for failed requests 3. **Cache strategically** - Store results for frequently queried addresses 4. **Request pre-loading** - For high-traffic use cases, contact us for pre-loading 5. **Trust the cache** - 24-hour cache is sufficient for most risk assessments ## Need Help? Our team is continuously improving these endpoints. If you have feedback or need custom solutions, contact us at [info@webacy.com](mailto:info@webacy.com). # Webhook Alerts: real-time depeg and risk event delivery Source: https://docs.webacy.com/essentials/webhooks Subscribe to Webacy webhooks for DEPEG_TIER_CHANGE stablecoin and RWA alerts with HMAC-signed delivery, tier and chain filters, and automatic retries. ## Overview Webacy Webhooks push risk events to your endpoint in real time. Instead of polling our API, you receive a signed HTTP `POST` the moment something happens. | Pull Model (API) | Push Model (Webhooks) | | - | - | | You poll for updates | We notify you instantly | | Higher latency | Sub-second delivery | | More API calls | Efficient, event-driven | | Good for on-demand queries | Ideal for monitoring & alerts | ## Common use cases Webhooks fit any workflow that needs to react the moment a token's risk changes. Pick the filters that match your job and you only receive the events you care about. | Use case | What you build | Filters to set | | - | - | - | | Treasury / desk alerting | Slack or PagerDuty alert when a held stablecoin starts to depeg | `tiers: ["warning", "critical"]`, `tokens: [your holdings]` | | Automated de-risking / hedging | A trading system that unwinds or hedges exposure when risk escalates | `tiers: ["critical"]`, `minDeviationPct` | | Compliance & monitoring dashboards | A live risk board that refreshes on every tier change | none (receive all events) | | Portfolio / fund monitoring | A per-chain watch on the assets you manage | `chains`, `tokens` | | Incident response / audit trail | A log of every transition, replayable via `GET /webhooks/deliveries` | `eventTypes: ["DEPEG_TIER_CHANGE"]` | For a full build-along, see the [Webhook integration tutorial](/essentials/webhooks-tutorial). The [Example workflow](#example-workflow) below wires one of these use cases end to end. ## Available events ### DEPEG\_TIER\_CHANGE Fires when a stablecoin or RWA token's **depeg risk tier** changes (for example `ok → warning` or `warning → critical`). Tiers follow the [Depeg Monitor ratings](/api-reference/depeg-monitor): `ok`, `watch`, `warning`, and `critical`, plus `premium` for tokens trading above peg. > [accordion] Example delivered payload > > ```json theme={null} > { > "event": { > "event_type": "DEPEG_TIER_CHANGE", > "event_id": "1a0d2b92-7142-44de-8a7c-7faa57c96df3", > "timestamp": "2026-06-19T18:01:30.702Z", > "data": { > "token_address": "0xdac17f958d2ee523a2206206994597c13d831ec7", > "chain": "eth", > "symbol": "USDT", > "old_tier": "ok", > "new_tier": "warning", > "risk_score": 65.0, > "deviation_pct": 2.5, > "price_usd": "0.975", > "peg_usd": "1.000" > } > }, > "signature": "cb5b82afcc3e18a064057adbd47718ee719fd1658765cbe407a7e84770b8afd7", > "delivered_at": "2026-06-19T18:01:30.702Z" > } > ``` ## Subscribe (self-serve) Webhook subscriptions are managed with your standard API key (the `x-api-key` header). Create a subscription, pick your filters, and we start delivering. ```bash theme={null} curl -X POST https://api.webacy.com/webhooks/subscriptions \ -H "x-api-key: $WEBACY_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "webhookUrl": "https://yourapp.com/webhooks/webacy", "eventTypes": ["DEPEG_TIER_CHANGE"], "filters": { "tiers": ["warning", "critical"], "chains": ["eth", "polygon"], "minDeviationPct": 1.0 } }' ``` The `201` response returns the subscription, including a **`secret_key`** used to verify signatures: ```json theme={null} { "id": "42", "webhook_url": "https://yourapp.com/webhooks/webacy", "event_types": ["DEPEG_TIER_CHANGE"], "filters": { "tiers": ["warning", "critical"], "chains": ["eth", "polygon"], "minDeviationPct": 1.0 }, "secret_key": "store-this-now-it-is-never-shown-again", "is_active": true, "created_at": "2026-06-19T18:00:00.000Z" } ``` > [!WARNING] > > The `secret_key` is returned **only** on creation (and on `rotate-secret`). Store it securely — it is never shown again. **Filters** (all optional, ANDed together): | Field | Meaning | | - | - | | `tiers` | Only notify when the new tier is one of `ok` / `watch` / `warning` / `critical` / `premium` | | `chains` | Only notify for these chains (e.g. `eth`, `polygon`) | | `tokens` | Only notify for these token contract addresses (case-insensitive) | | `minDeviationPct` | Only notify when deviation from peg (percent) is at least this value | See the [API reference](/api-reference/introduction) for the full subscription and delivery endpoints (`GET/PATCH/DELETE /webhooks/subscriptions/{id}`, `POST /webhooks/subscriptions/{id}/test`, `rotate-secret`, and `GET /webhooks/deliveries`). ## What you receive Each delivery is an HTTP `POST` to your `webhookUrl` with this body: ```json theme={null} { "event": { ... }, "signature": "", "delivered_at": "" } ``` and these headers: | Header | Value | | - | - | | `X-Event-Type` | `DEPEG_TIER_CHANGE` | | `X-Webhook-Signature` | HMAC-SHA256 hex digest of the `event` object | | `X-Event-ID` | Unique event id (for idempotency) | ## Verify the signature The signature is `HMAC-SHA256` of the **JSON-serialized `event` object** (compact, no spaces), keyed by your subscription's `secret_key`, hex-encoded. It is sent both as `X-Webhook-Signature` and as `signature` in the body. Always verify before trusting a payload. > [!WARNING] > > Hash the `event` object exactly as received — don't re-order keys or reformat numbers before serializing, or the digest won't match. ```javascript Node.js theme={null} const crypto = require("crypto"); // secret = the subscription's secret_key (from creation/rotate-secret) function isValid(body, secret) { // reject missing/malformed signatures before any buffer work if (typeof body?.signature !== "string" || !/^[a-f0-9]{64}$/i.test(body.signature)) { return false; } const expected = crypto .createHmac("sha256", secret) .update(JSON.stringify(body.event)) // compact JSON of the event object .digest("hex"); // decode as hex (32-byte digests), not UTF-8; timingSafeEqual needs equal lengths const expectedBuf = Buffer.from(expected, "hex"); const providedBuf = Buffer.from(body.signature, "hex"); return expectedBuf.length === providedBuf.length && crypto.timingSafeEqual(expectedBuf, providedBuf); } // Express example app.post("/webhooks/webacy", express.json(), (req, res) => { if (!isValid(req.body, process.env.WEBACY_WEBHOOK_SECRET)) { return res.status(401).end(); } // ...handle req.body.event... res.status(200).end(); // any 2xx acknowledges and stops retries }); ``` ```python Python theme={null} import hmac, hashlib, json def is_valid(body: dict, secret: str) -> bool: expected = hmac.new( secret.encode(), # compact JSON of the event object; ensure_ascii=False matches our serializer json.dumps(body["event"], separators=(",", ":"), ensure_ascii=False).encode(), hashlib.sha256, ).hexdigest() return hmac.compare_digest(expected, body["signature"]) # Flask example @app.post("/webhooks/webacy") def webacy_webhook(): body = request.get_json() if not is_valid(body, os.environ["WEBACY_WEBHOOK_SECRET"]): return "", 401 # ...handle body["event"]... return "", 200 # any 2xx acknowledges and stops retries ``` > [!TIP] > > Test your integration without waiting for a real event: `POST /webhooks/subscriptions/{id}/test` delivers a synthetic `DEPEG_TIER_CHANGE` to your endpoint. ## Example workflow A worked end-to-end scenario: **auto-hedge when a holding hits `critical`**. It ties together the subscription, signature check, and your reaction logic. **1. Subscribe to critical tier changes** Create a subscription scoped to the tokens you hold and the `critical` tier, so you're only paged on the events that require action. Save the `secret_key` from the response. ```bash theme={null} curl -X POST https://api.webacy.com/webhooks/subscriptions \ -H "x-api-key: $WEBACY_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "webhookUrl": "https://yourapp.com/webhooks/webacy", "eventTypes": ["DEPEG_TIER_CHANGE"], "filters": { "tiers": ["critical"], "tokens": ["0xdac17f958d2ee523a2206206994597c13d831ec7"] } }' ``` **2. Verify, then act on the event** In your receiver, verify the signature (see [Verify the signature](#verify-the-signature)), then branch on `new_tier`. Return any `2xx` to acknowledge so the delivery isn't retried. ```javascript theme={null} app.post("/webhooks/webacy", express.json(), (req, res) => { if (!isValid(req.body, process.env.WEBACY_WEBHOOK_SECRET)) { return res.status(401).end(); } const { data } = req.body.event; if (data.new_tier === "critical") { // 3. Trigger your de-risking / hedging action hedgeExposure(data.token_address, data.chain); } res.status(200).end(); // ack; any 2xx stops retries }); ``` **3. Dry-run before going live** Fire a synthetic delivery so you can confirm the full path — signature check plus your hedging logic — without waiting for a real depeg: ```bash theme={null} curl -X POST https://api.webacy.com/webhooks/subscriptions/{id}/test \ -H "x-api-key: $WEBACY_API_KEY" ``` ## Delivery & retries * Respond with any **2xx** to acknowledge. A non-2xx response or timeout is retried with backoff, up to **5 attempts**. * Inspect delivery history with `GET /webhooks/deliveries` (filter by `status` / `eventType`, paginated). Statuses include `pending`, `success`, `failed`, and `max_retries_exceeded`. * Re-send a failed delivery with `POST /webhooks/deliveries/{id}/retry` (rate-limited to once per delivery per 5 minutes). * `webhookUrl` must be a public **HTTPS** endpoint; private/loopback hosts are rejected. ## Additional event types (in development) The following Solana real-time events are **not yet generally available** — contact us if your use case needs them: * `TOKEN_LAUNCH_ANALYSIS` — risk analysis at token launch * `TOKEN_TRANSACTION` — per-transaction buy/sell alerts on monitored tokens * `HOLDER_ANALYSIS_UPDATE` — holder-distribution snapshots at post-launch checkpoints ## Related resources > [card] [Webhook integration tutorial](/essentials/webhooks-tutorial) > > Stand up a receiver, verify signatures, and subscribe — step by step > [card] [Depeg Monitor API](/api-reference/depeg-monitor) > > The tiers and risk ratings that drive `DEPEG_TIER_CHANGE` events > [card] [Stablecoin depeg monitoring](/monitor/stablecoin-depeg-monitoring) > > Use-case guide for tracking stablecoin and RWA peg health > [card] [Trading bot risk engine](/agentic/trading-bot-risk-engine) > > Wire real-time risk signals into automated trading decisions ## Getting access `DEPEG_TIER_CHANGE` webhooks work with your existing API key. Don't have one yet? Sign up at [developers.webacy.co](https://developers.webacy.co/). For help sizing volume, email [info@webacy.com](mailto:info@webacy.com). # Webhook Alerts integration tutorial Source: https://docs.webacy.com/essentials/webhooks-tutorial Follow this end-to-end Webacy webhooks tutorial to stand up a signed DEPEG_TIER_CHANGE receiver, verify HMAC signatures, and subscribe by tier or chain. A hands-on walkthrough to receive real-time depeg alerts. By the end you'll have a running endpoint that receives signed `DEPEG_TIER_CHANGE` events and verifies them. For the full API and event reference, see [Webhooks](/essentials/webhooks). ## What you'll build This is the foundation for any real-time depeg workflow — treasury alerting, automated de-risking, or a live compliance dashboard. You'll build a small HTTP server that: 1. Receives webhook POSTs from Webacy, 2. Verifies the `X-Webhook-Signature` (so you only trust real events), 3. Reacts to the tier change. **1. Get your API key** You use your standard Webacy API key (`x-api-key`). If you don't have one, contact [info@webacy.com](mailto:info@webacy.com). No webhook-specific setup is needed. **2. Build a receiver that verifies signatures** Each delivery is signed with HMAC-SHA256 over the JSON-serialized `event` object, keyed by your subscription's `secret_key`, and sent in the `X-Webhook-Signature` header. Always verify before trusting a payload. ```javascript Node.js (Express) theme={null} const express = require("express"); const crypto = require("crypto"); const app = express(); const SECRET = process.env.WEBACY_WEBHOOK_SECRET; // the secret_key from step 3 function isValid(body) { const expected = crypto .createHmac("sha256", SECRET) .update(JSON.stringify(body.event)) // compact JSON of the event object .digest("hex"); return crypto.timingSafeEqual( Buffer.from(expected), Buffer.from(body.signature), ); } app.post("/webhooks/webacy", express.json(), (req, res) => { if (!isValid(req.body)) return res.status(401).end(); const { data } = req.body.event; console.log( `${data.symbol} on ${data.chain}: ${data.old_tier} -> ${data.new_tier} (${data.deviation_pct}% off peg)`, ); // ...trigger your alerting / hedging logic here... res.status(200).end(); // any 2xx acknowledges; non-2xx triggers retries }); app.listen(3000); ``` ```python Python (Flask) theme={null} import os, hmac, hashlib, json from flask import Flask, request app = Flask(__name__) SECRET = os.environ["WEBACY_WEBHOOK_SECRET"] # the secret_key from step 3 def is_valid(body: dict) -> bool: expected = hmac.new( SECRET.encode(), json.dumps(body["event"], separators=(",", ":"), ensure_ascii=False).encode(), hashlib.sha256, ).hexdigest() return hmac.compare_digest(expected, body["signature"]) @app.post("/webhooks/webacy") def webacy_webhook(): body = request.get_json() if not is_valid(body): return "", 401 d = body["event"]["data"] print(f"{d['symbol']} on {d['chain']}: {d['old_tier']} -> {d['new_tier']} ({d['deviation_pct']}% off peg)") # ...trigger your alerting / hedging logic here... return "", 200 # any 2xx acknowledges; non-2xx triggers retries ``` Deploy this to a public **HTTPS** URL (private/loopback hosts are rejected). For local testing, a tunnel like ngrok or a [webhook.site](https://webhook.site) bin works. **3. Create a subscription** Point a subscription at your URL and pick filters. Save the `secret_key` from the response — it's only returned once. ```bash theme={null} curl -X POST https://api.webacy.com/webhooks/subscriptions \ -H "x-api-key: $WEBACY_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "webhookUrl": "https://your-app.com/webhooks/webacy", "eventTypes": ["DEPEG_TIER_CHANGE"], "filters": { "tiers": ["warning", "critical"], "minDeviationPct": 1.0 } }' ``` Response (note `id` and `secret_key`): ```json theme={null} { "id": "42", "webhook_url": "https://your-app.com/webhooks/webacy", "event_types": ["DEPEG_TIER_CHANGE"], "filters": { "tiers": ["warning", "critical"], "minDeviationPct": 1.0 }, "secret_key": "store-this-now", "is_active": true, "created_at": "2026-06-22T18:00:00.000Z" } ``` Set `WEBACY_WEBHOOK_SECRET` in your receiver to that `secret_key`. **4. Send a test event** Trigger a synthetic delivery so you don't have to wait for a real tier change: ```bash theme={null} curl -X POST https://api.webacy.com/webhooks/subscriptions/42/test \ -H "x-api-key: $WEBACY_API_KEY" ``` Your endpoint should receive a `DEPEG_TIER_CHANGE` POST and log it. If the signature check passes, you're done — that's the same path real events take. **5. Go live** * **Filters**: tune `tiers`, `chains`, `tokens`, `minDeviationPct` to only get the alerts you care about. * **Retries**: failed deliveries retry up to 5 times with backoff. Inspect history with `GET /webhooks/deliveries` and re-send with `POST /webhooks/deliveries/{id}/retry`. * **Secret rotation**: rotate with `POST /webhooks/subscriptions/{id}/rotate-secret`. The previous secret stays valid for 24h (sent as `X-Webhook-Previous-Signature`) so you can roll without downtime. ## The event you receive ```json theme={null} { "event": { "event_type": "DEPEG_TIER_CHANGE", "event_id": "1a0d2b92-7142-44de-8a7c-7faa57c96df3", "timestamp": "2026-06-22T18:01:30.702Z", "data": { "token_address": "0xdac17f958d2ee523a2206206994597c13d831ec7", "chain": "eth", "symbol": "USDT", "old_tier": "ok", "new_tier": "warning", "risk_score": 42.5, "deviation_pct": 1.8, "price_usd": "0.982", "peg_usd": "1.000" } }, "signature": "", "delivered_at": "2026-06-22T18:01:30.702Z" } ``` Headers: `X-Event-Type: DEPEG_TIER_CHANGE`, `X-Webhook-Signature`, `X-Event-ID` (use for idempotency). > [!TIP] > > Stuck on signatures? The string you sign is the **compact JSON of the `event` object only** (not the full body, no extra whitespace). The Node and Python snippets above do exactly that. # Example Addresses Source: https://docs.webacy.com/example-addresses Test Webacy endpoints with curated example addresses for sanctioned wallets, risky contracts, and clean accounts to validate your integration logic. To help you get started quickly, we provide a small set of example addresses you can use to test our endpoints end-to-end. These examples are designed to showcase the kinds of signals you’ll see in real usage, including risk flags, behavioral indicators, and other intelligence and exposure. They’re especially helpful for validating integration logic, UI rendering, and decisioning workflows before you run screening on live user activity. ## What these examples are good for Use these addresses below to: * **Confirm your integration works** (request/response structure, latency, pagination, error handling) * **Validate risk outcomes** (flags, severity, labels, and explainability fields) * **Test decisioning logic** (block, warn, allow, review) * **Prototype dashboards** (monitoring views, alert feeds, triage workflows) ### Notes * These examples are provided for **testing and development** only. * Address risk is **contextual and time-sensitive**. Results may change as new on-chain activity occurs. * If you’d like a broader sample set (including “clean,” borderline, and mixed-risk examples), [reach out](mailto:info@webacy.com) and we can provide a curated testing bundle. ## Sanctioned Addresses These addresses are on sanctions lists and will return `is_sanctioned: true` from the `/addresses/sanctioned/{address}` endpoint. → [Go to endpoint](/api-reference/sanction-checks/check-if-wallet-address-is-sanctioned) | Address | Chain | Attribution | | - | - | - | | `0x098B716B8Aaf21512996dC57EB0615e2383E2f96` | ETH | Lazarus Group (North Korea) - Ronin Bridge heist | | `1295rkVyNfFpqZpXvKGhDqwhP1jZcNNDMV` | BTC | Suex - OFAC SDN List | | `19D8PHBjZH29uS1uPZ4m3sVyqqfF8UFG9o` | BTC | Sanctioned Address | ## Hacker Addresses These addresses are associated with known hacks and exploits. They return high-risk scores with tags like `hack`, `stealing_attack`, and `blacklist_doubt`. → [Go to endpoint](/api-reference/threat-risks/threat-considerations-for-an-address) | Address | Chain | Attribution | Risk Score | | - | - | - | - | | `0x3b09A3c9aDD7D0262e6E9724D7e823Cd767a0c74` | ETH | Bittensor Hack | 100 | | `0xd967113224c354600b3151e27aaba53e3034f372` | ETH | WazirX Malware / Spear Phishing | 100 | | `0x44f887cfbd667cb2042dd55ab1d8951c94bb0102` | ETH | Loopring Guardian 2FA Exploit | 10 | | `0x889b49ef0bf787c3ddc2950bfc7d1d439320004b` | ETH | Woo X Exploiter | 3.1 | ## DPRK (North Korea) Linked These addresses are associated with North Korean cyber operations and return the `dprk` tag. → [Go to endpoint](/api-reference/threat-risks/threat-considerations-for-an-address) | Address | Chain | Risk Score | Tags | | - | - | - | - | | `0x0fa09c3a328792253f8dee7116848723b72a6d2e` | ETH | 100 | dprk, hack, stealing\_attack | ## Address Poisoning These addresses are involved in address poisoning attacks. The `/addresses/{address}/poisoning` endpoint will return `poisoning_detected: true` for attackers. → [Go to endpoint](/api-reference/address-poisoning/detect-address-poisoning-for-a-specific-wallet-address) | Address | Chain | Type | Notes | | - | - | - | - | | `0x70c5698da7f86487837f59642b1ebe5682dfa3c7` | ETH | Attacker | Returns `poisoning_detected: true` with suspicious transactions | | `0xCF03Aa88AfDA357C837b9DDD38A678E3Ad7Cd5D7` | ETH | Victim | Address was targeted by a poisoning attempt | ## Phishing Addresses These addresses are associated with phishing campaigns and return the `phishing_activities` tag. → [Go to endpoint](/api-reference/threat-risks/threat-considerations-for-an-address) | Address | Chain | Attribution | Risk Score | | - | - | - | - | | `0x1aDf5DAc035AE7FEC116e8345e005FB88d542f53` | ETH | ScamSniffer reported phishing | 23 | | `0x5f90e59d0a03fd2f8c56b8cc896c5b42594eb3a0` | ETH | \$50M Address Poisoning Drain | 20.1 | ## Mixers These addresses are associated with mixing services and return tags like `associated_mixer` and `sanctioned`. → [Go to endpoint](/api-reference/threat-risks/threat-considerations-for-an-address) | Address | Chain | Attribution | Risk Score | | - | - | - | - | | `0x722122dF12D4e14e13Ac3b6895a86e84145b6967` | ETH | Tornado Cash Router | 10.1 | ## Pool Analysis Examples [Pool Analysis](/api-reference/pool-analysis/get-pool-ohlcv-data-with-risk-assessment) examples: → [Go to endpoint](/api-reference/pool-analysis/get-pool-ohlcv-data-with-risk-assessment) | Address | Chain | Pool | | - | - | - | | `V79vihUymP25ypDCRVmED106MvTI3AfPajSqWJ1M` | SOL | - | | `0x397ff1542f962076d0bfe58ea045ffa2d347aca0` | ETH | Sushiswap v2 | | `0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc` | ETH | Uniswap v2 | ## Token & Contract Examples Token and vault contract addresses used across the screening and monitoring guides. Screen a token contract by passing it to the [threat-risks endpoint](/api-reference/threat-risks/threat-considerations-for-an-address). → [Go to endpoint](/api-reference/threat-risks/threat-considerations-for-an-address) | Address | Chain | Token / Contract | Notes | | - | - | - | - | | `0xd1d2Eb1B1e90B638588728b4130137D262C87cae` | ETH | GALA (v2) | Current canonical GALA contract (token screening guide example) | | `0x15d4c048f83bd7e37d49ea4c83a07267ec4203da` | ETH | GALA (v1) | Deprecated — migrated to v2 | | `0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48` | ETH | USDC | Circle stablecoin | | `0xdAC17F958D2ee523a2206206994597C13D831ec7` | ETH | USDT | Tether stablecoin | | `0x6B175474E89094C44Da98b954EedeAC495271d0F` | ETH | DAI | Sky (MakerDAO) stablecoin | | `0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599` | ETH | WBTC | Wrapped Bitcoin | | `0x0deFfd509197aAD5207d2A55862835b467E8128F` | ETH | ERC-4626 vault | Vault-risk example used in the vault guides | ## Other Examples | Address | Chain | Type | | - | - | - | | `7gGRg15D2vGbeqwp5J5bQatAFVSrG6doNx2V3i8aVYEv` | SOL | Automated Trader Account | | `23JPm15PgYWV5uTnjADEVN8uSma2rdcULq3EGciTArzS` | SOL | Upbit Hack Related Wallet | | `0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045` | ETH | Vitalik Buterin (clean wallet for comparison) | # Fundamentals Source: https://docs.webacy.com/fundamentals Learn how the Webacy Risk Framework calculates onchain risk scores from data ingestion through entity typing, risk factor analysis, and rating generation. The Risk Framework is the foundation of how Webacy evaluates blockchain risk. It defines the scores, methodologies, entity types, and detection engines that power every API, alert, dashboard, policy decision, and rating across the platform. > [!NOTE] > > The blockchain ecosystem is constantly evolving, and so is the Webacy Risk Framework. As new asset types, attack vectors, regulatory expectations, and onchain behaviors emerge, we continuously update our methodologies, risk factors, and detection engines to reflect the latest understanding of risk. While the overall framework and evaluation process remain consistent, individual scoring models and risk signals may change over time as we improve the platform. This section explains how risk is calculated, what each score represents, and how Webacy combines security, financial, operational, and compliance intelligence into a single, real-time view of onchain risk. ## Risk Intelligence Pipeline The diagram below illustrates the high-level pipeline Webacy uses to transform raw blockchain data into actionable risk intelligence across our products and integrations. ```mermaid theme={null} flowchart TD A["1. Data Ingestion
Blockchain data + trusted third-party sources"] B["2. Entity Type Filtering
Apply entity-specific analysis
(wallet, transaction, token, stablecoin, vault, etc.)"] C["3. Risk Factor Analysis
Analyze 400+ security, financial,
operational, and compliance factors"] D["4. Risk Scores & Ratings
Generate a 0–100 composite score
and optional letter-grade rating"] E["Alerts & Monitoring"] F["Policy Decisions"] G["AI Agents"] H["Risk Intelligence APIs"] I["Other Products"] A --> B B --> C C --> D D --> E D --> F D --> G D --> H D --> I classDef wide min-width: 700px; class A,B,C,D wide; ``` The remainder of this section breaks down each component of the Risk Framework and the methodologies behind it. ## What's Next > [card] [Entity Types](/entity-types) > > Every entity type has its own risk profile. Learn how Webacy tailors its analysis to wallets, assets, transactions, protocols, and more. # Get an API Key Source: https://docs.webacy.com/get-an-api-key Create a Webacy Developer Portal account, generate an API key, and rotate or revoke keys using the interim workflow until self-service ships. To start using the Webacy DD APIs, you’ll need an API key associated with your account. Your API key authenticates requests to Webacy and determines which products, usage limits, and environments your account can access. **1. Create an account** Create an account on our [Developer Portal](https://developers.webacy.co/) or sign in to your existing account. > [!NOTE] > > The Developer Portal requires a work or organization email address to register. Personal addresses such as Gmail, Yahoo, or Outlook are rejected during sign-up with the error `Please use your organization's email address to register. Personal email addresses are not permitted.` If you do not have an organization email, contact [info@webacy.com](mailto:info@webacy.com) to request access. ![Screenshot 2026 07 30 At 4 43 06 PM](https://mintcdn.com/webacy/WOwccSluwNfjURJB/images/Screenshot-2026-07-30-at-4.43.06-PM.png?fit=max\&auto=format\&n=WOwccSluwNfjURJB\&q=85\&s=5d72c63efcfa4d10cd9e1adbe728cfcf) **2. Navigate to API Keys** Once you are signed in, open the developer dashboard and navigate to **API Keys**. ![Screenshot 2026 07 30 At 4 44 23 PM](https://mintcdn.com/webacy/WOwccSluwNfjURJB/images/Screenshot-2026-07-30-at-4.44.23-PM.png?fit=max\&auto=format\&n=WOwccSluwNfjURJB\&q=85\&s=9a8a2bce0acb05c2182a26e6639944c0) **3. Generate your API key** From the **API Keys** page: 1. Select **+ Generate API Key**. 2. Securely store the generated key. ![Screenshot 2026 07 30 At 4 47 49 PM](https://mintcdn.com/webacy/WOwccSluwNfjURJB/images/Screenshot-2026-07-30-at-4.47.49-PM.png?fit=max\&auto=format\&n=WOwccSluwNfjURJB\&q=85\&s=8f59d8ca9610face3f83ec1854eca079) **4. Start Testing!** > [!WARNING] > > **Keep Your Key Secure!** > > Treat your API key like an important password. > > Do not: > > * expose it in browser-side code > * commit it to a public repository > * include it in screenshots, logs, or support messages > * share the same production key across unrelated applications > > If your key is exposed, anyone can use your API key as you. You will be responsible for all usage costs, limits, and impact caused by the exposed API key. > [!TIP] > > **Use Separate Keys for Each Environment** > > We recommend creating different keys for: > > * local development > * staging > * production > * separate applications or internal teams > > This makes it easier to monitor usage, rotate compromised credentials, and revoke access without interrupting every integration. ## Rotate or revoke your key Self-service rotation and revocation are not yet available in the Developer Portal (see the coming-soon list below). Until they ship, use the following interim workflow. **To rotate a key:** 1. In the Developer Portal, open **API Keys** and select **+ Generate API Key** to create a new key. 2. Update every application, environment, and stored secret to use the new key. 3. Stop sending the old key. Requests with the old key continue to succeed until Webacy revokes it, so cut all traffic over before requesting revocation. **To revoke a key, including any key you believe is compromised:** 1. Complete the rotation steps above so live traffic is on the new key. 2. Email [info@webacy.com](mailto:info@webacy.com) or use the [contact form](https://dapp.webacy.com/contact) with the key ID (never the full secret) and request revocation. Webacy revokes the key on your behalf. > [!WARNING] > > If a key is exposed, treat it as compromised. Rotate first so your integration keeps working, then request revocation immediately. The old key remains valid until Webacy revokes it. > [card] 🚧 Under Construction 🚧 > > Our Developer Portal is currently under construction.  > > The following features are coming soon: > > * Rotate API Key > * Revoke / Delete API Key > * Create Multiple API Keys > * Team Management  > * RBAC > > Want additional features? [Contact Us](https://dapp.webacy.com/contact). ## What's Next > [card] [Authentication](/authentication) > > Learn how to authenticate your API requests # Getting Started Source: https://docs.webacy.com/getting-started Start building with Webacy: create an API key, authenticate requests, choose the right entity endpoint, and set up webhooks for real-time risk monitoring. Everything you need to start building with the Webacy blockchain risk intelligence platform. Welcome to the Build section of the Webacy documentation. Whether you're integrating wallet screening into an exchange, monitoring stablecoins in real time, building automated compliance workflows, or enabling AI agents to make risk-aware decisions, this guide will help you get up and running quickly. Webacy is designed to be flexible. The same intelligence platform can be accessed through REST APIs, webhooks, SDKs, and our MCP server, allowing you to integrate blockchain risk intelligence in the way that best fits your application. ## Before You Begin To start building with Webacy, you'll need: * A Webacy Developer [account](https://developers.webacy.co/) * An [API key](/get-an-api-key) * A basic understanding of the [entities](/entity-types) you want to analyze (wallets, transactions, assets, smart contracts, and more) If you're new to the Webacy platform, we recommend reviewing the **Risk Framework** first to understand how risk scores, ratings, and intelligence are generated. > [!NOTE] > > [DD.xyz](http://DD.xyz) is a separate platform from our [Developer Portal](https://developers.webacy.co/). > > [DD.xyz](http://DD.xyz) is an app that serves as a user-friendly interface, as well as a sandbox for our risk intelligence capabilities. > > The Developer Portal is where you will create an account, provision an API key, upgrade your tier, and manage your usage. ## Typical Integration Flow Most integrations follow the same general process: 1. Create or retrieve an API key. 2. Authenticate your requests. 3. Call the appropriate API for the entity you want to analyze. 4. Interpret the returned risk scores, ratings, and intelligence. 5. Optionally configure monitoring and webhooks to receive real-time updates. 6. Build automated policies or workflows using Webacy's intelligence. Whether you're analyzing a single wallet or continuously monitoring thousands of digital assets, the underlying workflow remains the same. ## Need Help Choosing an API? Webacy supports a wide range of blockchain entities and use cases. | If you want to... | Start with... | | - | - | | Screen blockchain wallets | Wallet Screening | | Monitor blockchain transactions | Transaction Monitoring | | Analyze smart contracts | Contract Analysis | | Evaluate tokens or markets | Trading Intelligence | | Monitor Stablecoins, vaults, and RWAs | Asset Integrity or Monitoring | | Build compliance workflows | Compliance & AML | | Detect Address Poisoning | Address Poisoning | > [!TIP] > > Still not sure where to start? > > Get in touch with the team for a demo, discussion, or guidance! ## What's Next > [card] [Get an API Key](/get-an-api-key) > > One key to rule them all! # Address Poisoning Source: https://docs.webacy.com/glossary/address-poisoning Learn how address poisoning attacks use look-alike wallet addresses and dust transactions to trick you into sending crypto to scam wallets. ## Overview **Address poisoning** is a social engineering attack where attackers send small transactions from addresses that look similar to ones you've previously interacted with. The goal is to trick you into copying the wrong address when making future transfers. > [!WARNING] > > Address poisoning has caused millions in losses. Always verify the full address, not just the first and last few characters. ## How It Works 1. **Monitoring**: Attacker watches your transaction history 2. **Address Generation**: Creates address with similar start/end characters 3. **Poisoning**: Sends tiny transaction (dust) to your wallet 4. **Deception**: Fake address appears in your transaction history 5. **Theft**: Victim copies poisoned address for next transfer ## Example Attack Your regular recipient: ```text theme={null} 0x1234...abcd ``` Poisoned address (looks similar): ```text theme={null} 0x1234...abce ``` The attacker generates an address matching the first 4 and last 4 characters, hoping you'll copy from history without verifying the full address. ## Detection Indicators | Tag | Severity | Description | | - | - | - | | `address_poisoning` | High | Address involved in poisoning attacks | ## Why It's Effective * **Transaction history UI**: Most wallets show truncated addresses * **Copy habits**: Users often copy from recent transactions * **Similar appearance**: Human eyes struggle with hex comparison * **Low cost**: Generating similar addresses is computationally cheap ## Vulnerable Scenarios ### High Risk * Copying addresses from transaction history * Using auto-complete in wallet apps * Sending large transfers without verification ### Lower Risk * Using saved address book entries * Scanning QR codes directly * Verifying full addresses character by character ## API Example ```bash theme={null} # Check if an address has been involved in poisoning curl -X GET "https://api.webacy.com/addresses/0x123.../poisoning?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` Response example: ```json theme={null} { "poisoning_detected": true, "status": "success", "summary": { "total_suspicious": 1, "high_risk_count": 1 }, "suspicious_transactions": [ { "from": "0x1234567890abcdef1234567890abcdef12345678", "to": "0x2e5df068f6cF3A1A3e0A70951c685021CB2954C0", "tx_hash": "0x79e7b0a45a73b86fe51882d2553355e15bda7bebb6c3e222c09d8fd2f43aa076", "similar_to": "0x1234567890abcdef1234567890abcdef12345679", "similarity": 0.95, "levenshtein": 2, "suspicion_score": 0.85, "token_name": "USDT", "value": "0" } ] } ``` ## Protection Strategies 1. **Verify full addresses** - Check every character, not just start/end 2. **Use address books** - Save verified addresses in your wallet 3. **Double-check large transfers** - Extra verification for significant amounts 4. **Ignore dust transactions** - Don't interact with unexpected small deposits 5. **Use QR codes** - When available, scan rather than copy/paste 6. **Enable address validation** - Some wallets can warn about similar addresses ## Wallet Best Practices ```javascript theme={null} // Never trust truncated addresses const isSameAddress = (addr1, addr2) => { // Always compare full addresses, case-insensitive return addr1.toLowerCase() === addr2.toLowerCase(); }; // Bad: Only checking first/last characters const badCheck = addr.slice(0,6) === saved.slice(0,6); // DON'T DO THIS ``` # Definitions Source: https://docs.webacy.com/glossary/definitions Plain-language definitions of key blockchain, DeFi, and crypto risk terms used across the Webacy documentation, from address clustering to wash trading. ### Address A **blockchain address** is a unique identifier that represents a destination for sending or receiving digital assets on a blockchain network. *** ### Address Clustering **Address clustering** is a blockchain analysis technique used to group multiple wallet addresses that are likely controlled by the same user or entity based on transaction behavior. *** ### Algorithmic Stablecoin An **algorithmic stablecoin** maintains its price stability through automated supply adjustments rather than backing by reserves of fiat currency or other assets. *** ### APY (Annual Percentage Yield) **Annual Percentage Yield (APY)** is the annualized rate of return on a deposit or investment, accounting for compound interest. In DeFi, APY is commonly used to express the yield earned by depositing assets into lending protocols, liquidity pools, or vaults. *** ### AML (Anti-Money Laundering) **Anti-Money Laundering (AML)** refers to regulatory frameworks and procedures designed to prevent the use of financial systems for illicit activities such as money laundering or terrorist financing. *** ### Behavioral Risk Signals **Behavioral risk signals** are patterns in blockchain activity that may indicate suspicious or high-risk behavior. These signals can include unusual transaction patterns, rapid fund movements across multiple addresses, interactions with known illicit services, or coordinated activity across wallets. *** ### Block A **block** is a group of validated transactions that is added to the blockchain ledger and cryptographically linked to the previous block. *** ### Blockchain A **blockchain** is a distributed digital ledger that records transactions across a network of computers, ensuring transparency, immutability, and shared verification. *** ### Blockchain Explorer A **blockchain explorer** is a tool that allows users to view blockchain data including transactions, wallet balances, blocks, and network activity. *** ### Blockchain Forensics **Blockchain forensics** is the practice of analyzing blockchain transaction data to trace funds, identify suspicious activity, and investigate potential financial crimes. *** ### Bridge A **blockchain bridge** enables digital assets and data to move between different blockchain networks. *** ### Centralized Exchange (CEX) A **centralized exchange** is a platform that facilitates the trading of digital assets and is operated by a centralized entity that manages custody, order books, and transactions. *** ### Collateral **Collateral** is an asset pledged by a borrower to secure a loan. In DeFi lending, borrowers deposit tokens as collateral to borrow other assets. If the collateral value drops below a required threshold, it can be liquidated to repay the loan. *** ### Consensus Mechanism A **consensus mechanism** is the method by which blockchain networks validate transactions and agree on the current state of the ledger. *** ### Contamination Risk A measure of exposure to a compromised, illicit, or structurally weak asset, address, or protocol. **Contamination risk** is propagated into an otherwise sound position through direct or indirect connections. *** ### Cross-Chain Risk **Cross-chain risk** refers to potential threats or vulnerabilities that arise when digital assets move between different blockchain networks. These risks may include bridge exploits, liquidity fragmentation, asset wrapping risks, and difficulty tracking the origin or destination of funds across multiple chains. *** ### Custodial Wallet A **custodial wallet** is a wallet where a third party, such as an exchange or financial institution, controls the private keys and manages assets on behalf of users. *** ### DeFi (Decentralized Finance) **Decentralized finance (DeFi)** refers to financial services built on blockchain networks that operate without centralized intermediaries such as banks or brokers. *** ### Depeg / Depegging A **depeg** occurs when a pegged asset (such as a stablecoin) loses its intended price stability and trades significantly above or below its reference value. Depegs can be caused by liquidity shocks, reserve concerns, oracle failures, or structural flaws in the asset's design. *** ### Digital Asset A **digital asset** is any asset issued and stored digitally on a blockchain or distributed ledger, including cryptocurrencies, tokens, and tokenized financial instruments. *** ### ERC-4626 **ERC-4626** is a token standard for tokenized vaults on EVM-compatible blockchains. It defines a standard interface for deposit, withdrawal, and share accounting, making it easier to build and integrate yield-bearing vaults across DeFi protocols. *** ### Gas Fee A **gas fee** is the cost paid to network validators or miners to process and confirm a transaction on a blockchain. *** ### Governance Token A **governance token** gives holders the ability to participate in decision-making for a protocol, such as voting on upgrades or policy changes. *** ### Honeypot A **honeypot** is a malicious smart contract that allows users to deposit funds but prevents them from withdrawing them. *** ### KYC (Know Your Customer) **Know Your Customer (KYC)** refers to the process financial institutions use to verify the identity of their customers as part of regulatory compliance. *** ### Liquidation **Liquidation** is the forced sale of a borrower's collateral when its value falls below the required threshold in a lending protocol. Liquidation protects lenders from losses but can result in significant capital loss for borrowers, especially during rapid market downturns or cascading liquidation events. *** ### Layer 1 (L1) A **Layer 1 blockchain** is the base network that processes and validates transactions directly, such as Bitcoin or Ethereum. *** ### Layer 2 (L2) A **Layer 2 solution** is a scaling technology built on top of a Layer 1 blockchain to increase transaction throughput and reduce fees. *** ### Liquidity **Liquidity** refers to how easily an asset can be bought or sold in a market without significantly affecting its price. *** ### Looping / Looping Risk **Looping** is a DeFi strategy where a user borrows an asset, re-deposits it as collateral, and borrows again — repeating the cycle to amplify yield. This creates leveraged exposure and increases the risk of liquidation cascades if the collateral value drops. *** ### Liquidity Pool A **liquidity pool** is a pool of digital assets locked in a smart contract to facilitate decentralized trading, lending, or other financial activities. *** ### Liquidity Risk Monitoring **Liquidity risk monitoring** is the ongoing analysis of the availability and stability of liquidity for a digital asset across trading venues, pools, and markets. Monitoring liquidity helps identify conditions such as sudden liquidity withdrawals, concentration risks, or abnormal trading activity that may impact price stability. *** ### MEV (Maximal Extractable Value) **Maximal Extractable Value (MEV)** refers to profits that block producers can generate by reordering, inserting, or censoring transactions before they are finalized on the blockchain. *** ### Miner A **miner** is a participant in a proof-of-work blockchain who uses computational power to validate transactions and create new blocks. *** ### Mixer (Tumbler) A **crypto mixer** is a service that attempts to obscure the origin and destination of digital assets by combining transactions from multiple users. *** ### Multi-Signature Wallet (Multisig) A **multisignature wallet** requires multiple private keys to authorize a transaction, improving security and governance over funds. *** ### Node A **node** is a computer connected to a blockchain network that maintains a copy of the ledger and helps validate and relay transactions. *** ### Off-Chain **Off-chain** refers to activities or transactions that occur outside the blockchain but may interact with it. *** ### On-Chain **On-chain** refers to transactions and data that are recorded directly on the blockchain ledger. *** ### Oracle A **blockchain oracle** provides external data to smart contracts so they can interact with information outside the blockchain. *** ### Private Key A **private key** is a secret cryptographic key that grants control over a blockchain address and the assets associated with it. *** ### Peg / Price Peg A **price peg** is the target value that a pegged asset is designed to maintain, typically \$1.00 for USD-denominated stablecoins. The peg is maintained through various mechanisms including reserves, algorithmic supply adjustments, or arbitrage incentives. *** ### Proof of Reserves **Proof of Reserves (PoR)** is a verification method used by crypto platforms to demonstrate that customer assets are backed by sufficient reserves. *** ### Proof of Stake (PoS) **Proof of Stake** is a consensus mechanism where validators secure the network by locking tokens as collateral and participating in transaction validation. *** ### Proof of Work (PoW) **Proof of Work** is a consensus mechanism where miners solve complex cryptographic puzzles to validate transactions and secure the network. *** ### Public Key A **public key** is a cryptographic key derived from a private key that can be shared publicly to receive digital assets. *** ### Rug Pull A **rug pull** occurs when developers abandon a project and withdraw liquidity or funds, leaving investors with worthless tokens. *** ### Risk Intelligence **Risk intelligence** refers to the collection, analysis, and interpretation of blockchain data to identify potential security, financial, or compliance risks associated with digital assets, transactions, smart contracts, or wallet activity. *** ### Self-Custody **Self-custody** refers to managing one’s own private keys and digital assets without relying on a third-party custodian. *** ### Smart Contract A **smart contract** is software deployed on a blockchain that automatically executes predefined actions when certain conditions are met. *** ### Timelock A **timelock** is a smart contract mechanism that enforces a delay between when an administrative action is proposed and when it can be executed. Timelocks give users time to review and react to governance changes, reducing the risk of malicious upgrades or sudden parameter changes. A 7-day timelock is commonly used in conservative governance setups. *** ### Stablecoin A **stablecoin** is a digital asset designed to maintain a stable value, typically by being pegged to a fiat currency such as the US dollar. *** ### Stablecoin Depeg Risk **Stablecoin depeg risk** refers to the possibility that a stablecoin loses its intended price stability relative to its reference asset, typically a fiat currency such as the US dollar. Depegs may occur due to liquidity shocks, reserve concerns, market stress, or structural vulnerabilities in the asset’s design. *** ### Token A **token** is a digital asset issued on a blockchain that can represent currency, utility, ownership rights, or access to services. *** ### Tokenization **Tokenization** is the process of representing real-world or digital assets as tokens on a blockchain. *** ### Token Risk Analysis **Token risk analysis** is the evaluation of a digital asset’s technical, financial, and behavioral characteristics to identify potential risks. This may include analysis of smart contract code, liquidity conditions, holder concentration, governance controls, and transaction activity. *** ### Total Value Locked (TVL) **Total Value Locked (TVL)** represents the total USD value of assets deposited in a DeFi protocol, vault, or liquidity pool. TVL is a key indicator of protocol adoption and trust. In vault risk assessment, low TVL (under \$50k) indicates higher risk due to less battle-testing and easier price manipulation. *** ### Utilization Rate **Utilization rate** is the percentage of a lending pool's total deposits that are currently borrowed. High utilization (above 95%) means most capital is lent out and depositors may not be able to withdraw. In vault risk assessment, high utilization is a key liquidity signal. *** ### Transaction A **transaction** is a transfer of digital assets or data recorded on a blockchain. *** ### Transaction Simulation **Transaction simulation** is the process of analyzing a blockchain transaction before it is executed to predict its outcome. Simulation can reveal potential risks such as malicious contract behavior, unexpected token transfers, excessive fees, or failed transactions. *** ### Validator A **validator** is a participant in a proof-of-stake blockchain responsible for confirming transactions and maintaining the network. *** ### Wallet A **wallet** is software or hardware used to store cryptographic keys that allow users to manage digital assets on a blockchain. *** ### Wallet Screening **Wallet screening** is the process of evaluating a blockchain address to determine whether it may be associated with illicit activity, sanctioned entities, fraud, or other high-risk behavior based on transaction history and known risk indicators. # Digital Signature Module Source: https://docs.webacy.com/glossary/digital-signature-module Learn how the Digital Signature Module detects signature replay attacks, forgery, and unauthorized access vulnerabilities in smart contracts. ## Overview The Digital Signature Module analyzes how contracts handle cryptographic signatures, detecting vulnerabilities that could allow signature replay attacks, forgery, or unauthorized access. ## What Are Digital Signatures? Digital signatures in blockchain provide: * **Authentication**: Proof that a message came from a specific address * **Integrity**: Assurance the message hasn't been altered * **Non-repudiation**: Signer cannot deny signing ```solidity theme={null} // Basic signature verification function verify( bytes32 messageHash, bytes memory signature, address expectedSigner ) public pure returns (bool) { return recoverSigner(messageHash, signature) == expectedSigner; } ``` ## Common Vulnerabilities ### Signature Replay Attack Using the same signature multiple times. ```solidity theme={null} // VULNERABLE: No replay protection function claim(uint256 amount, bytes memory signature) public { bytes32 hash = keccak256(abi.encodePacked(msg.sender, amount)); require(verify(hash, signature, signer), "Invalid signature"); _mint(msg.sender, amount); // Can be called multiple times! } ``` **Attack:** User claims rewards repeatedly with the same signature. *** ### Cross-Chain Replay Signature valid on multiple chains. ```solidity theme={null} // VULNERABLE: No chain ID in signature function execute(address to, uint256 value, bytes memory signature) public { bytes32 hash = keccak256(abi.encodePacked(to, value)); require(verify(hash, signature, owner), "Invalid signature"); payable(to).transfer(value); } ``` **Attack:** Signature from mainnet replayed on testnet or L2. *** ### Missing Nonce No mechanism to invalidate old signatures. ```solidity theme={null} // VULNERABLE: Signatures never expire function withdraw(uint256 amount, bytes memory signature) public { bytes32 hash = keccak256(abi.encodePacked(msg.sender, amount)); require(verify(hash, signature, admin), "Invalid"); // No nonce - signature is valid forever _transfer(address(this), msg.sender, amount); } ``` *** ### Signature Malleability ECDSA signatures can be modified while remaining valid. ```solidity theme={null} // VULNERABLE: No malleability check function verifySignature(bytes32 hash, uint8 v, bytes32 r, bytes32 s) public pure returns (address) { return ecrecover(hash, v, r, s); // Malleable! } ``` ## Safe Patterns ### Nonce-Based Replay Protection ```solidity theme={null} // SAFE: Nonce prevents replay mapping(address => uint256) public nonces; function claim(uint256 amount, uint256 nonce, bytes memory signature) public { require(nonce == nonces[msg.sender], "Invalid nonce"); bytes32 hash = keccak256(abi.encodePacked( msg.sender, amount, nonce, block.chainid, // Chain-specific address(this) // Contract-specific )); require(verify(hash, signature, signer), "Invalid signature"); nonces[msg.sender]++; // Increment nonce _mint(msg.sender, amount); } ``` ### EIP-712 Typed Data ```solidity theme={null} // SAFE: Structured, typed signing bytes32 public constant CLAIM_TYPEHASH = keccak256("Claim(address recipient,uint256 amount,uint256 nonce)"); function claim(uint256 amount, uint256 nonce, bytes memory signature) public { bytes32 structHash = keccak256(abi.encode( CLAIM_TYPEHASH, msg.sender, amount, nonce )); bytes32 hash = _hashTypedDataV4(structHash); // Includes domain separator address signer = ECDSA.recover(hash, signature); require(signer == authorizedSigner, "Invalid signature"); require(nonce == nonces[msg.sender]++, "Invalid nonce"); _mint(msg.sender, amount); } ``` ### OpenZeppelin ECDSA ```solidity theme={null} // SAFE: Using audited library import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; using ECDSA for bytes32; function verify(bytes32 hash, bytes memory signature) public view returns (bool) { // Handles malleability, returns address(0) on failure return hash.toEthSignedMessageHash().recover(signature) == trustedSigner; } ``` ## Detection Tags | Tag | Severity | Description | | - | - | - | | `signature_replay` | High | No replay protection detected | | `missing_chainid` | Medium | Cross-chain replay possible | | `missing_nonce` | High | Signatures never invalidated | | `signature_malleability` | Medium | Raw ecrecover without checks | | `weak_signature_scheme` | Medium | Non-standard signature verification | ## API Response Example ```json theme={null} { "issues": [ { "tag": "signature_replay", "severity": "high", "description": "Signature can be reused - no nonce or invalidation", "location": "claim(uint256,bytes)" }, { "tag": "missing_chainid", "severity": "medium", "description": "Signature hash does not include chain ID", "location": "execute(address,uint256,bytes)" } ] } ``` ## Best Practices * [ ] Include nonce in all signed messages * [ ] Include `block.chainid` to prevent cross-chain replay * [ ] Include contract address to prevent cross-contract replay * [ ] Use EIP-712 for structured, typed signing * [ ] Use OpenZeppelin's ECDSA library * [ ] Mark used signatures/nonces as consumed * [ ] Consider signature expiration timestamps # Drainers Source: https://docs.webacy.com/glossary/drainers Learn how wallet drainer contracts steal crypto through phishing sites, malicious token approvals, and signature exploits, and how to stay safe. ## Overview A **drainer** is a malicious smart contract or script designed to automatically steal assets from connected wallets. Drainers are commonly deployed through phishing sites that trick users into signing malicious transactions. > [!WARNING] > > Drainer attacks have caused hundreds of millions in losses. Never sign transactions on unfamiliar websites or approve unlimited token allowances. ## How Drainers Work 1. **Phishing Site**: Victim visits a fake website mimicking a legitimate project 2. **Wallet Connection**: Site requests wallet connection (appears normal) 3. **Malicious Approval**: User signs a transaction granting unlimited token approvals 4. **Asset Theft**: Drainer contract transfers all approved assets to attacker 5. **Speed**: Entire process can happen in seconds ## Types of Drainer Attacks ### Approval-Based Drainers * Request ERC-20 token approvals * Can drain all approved tokens at any time * Most common type ### NFT Drainers * Target NFT collections * Often use `setApprovalForAll` function * Can steal entire collections in one transaction ### Permit-Based Drainers * Use EIP-2612 permit signatures * No on-chain approval transaction required * Harder to detect before execution ### Native Token Drainers * Trick users into signing ETH transfers * Often disguised as minting or claiming functions ## Detection Indicators | Tag | Severity | Description | | - | - | - | | `drainer` | High | Address associated with known drainer activity | | `minter-drainer` | High | Token minter involved in drainer operations | | `owner-drainer` | High | Token owner is a known drainer | | `minter-fundflow-drainer` | High | Minter fund flow linked to drainers | | `owner-fundflow-drainer` | High | Owner fund flow linked to drainers | ## Common Drainer Tactics * **Fake airdrops**: "Claim your free tokens" phishing * **Fake mints**: Impersonating popular NFT drops * **Compromised Discord/Twitter**: Links posted from hacked accounts * **SEO poisoning**: Fake sites ranking for popular project searches * **Typosquatting**: Domains similar to legitimate projects ## API Example ```bash theme={null} curl -X GET "https://api.webacy.com/addresses/0x123...?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` Response indicating drainer activity: ```json theme={null} { "overallRisk": 95.0, "issues": [ { "tag": "drainer", "severity": "high", "description": "Address related to drainer activity that automates draining assets" } ] } ``` ## Protection Strategies 1. **Verify URLs** - Always check you're on the official website 2. **Review approvals** - Use our [Approval Risks](/api-reference/riskdd#wallet-risks) endpoint 3. **Limit approvals** - Only approve exact amounts needed 4. **Revoke old approvals** - Regularly audit and revoke unused approvals 5. **Use hardware wallets** - Provides extra signing verification step 6. **Check before signing** - Read transaction details carefully # Fake Tokens Source: https://docs.webacy.com/glossary/fake-tokens Spot fake tokens and impersonator scams that copy legitimate project names and symbols on DEXs, and learn how to verify contract addresses safely. ## Overview **Fake tokens** are malicious tokens designed to impersonate legitimate projects. Scammers create tokens with similar names, symbols, or branding to trick users into buying worthless counterfeits. > [!WARNING] > > Always verify the exact contract address of a token before trading. Similar names and symbols are easy to copy. ## How Fake Tokens Work 1. **Target Selection**: Scammer identifies a popular or trending token 2. **Impersonation**: Creates a new token with identical or similar name/symbol 3. **Distribution**: Fake token appears in wallets or DEX searches 4. **Deception**: Users mistake it for the real token and buy 5. **Exit**: Scammer sells or rugs, leaving victims with worthless tokens ## Types of Fake Tokens ### Name Squatting * Exact or near-exact name copying * Same symbol as legitimate token * Different contract address (the key difference) ### Airdrop Scams * Unsolicited tokens appear in your wallet * Designed to lure you to malicious websites * Often have enticing names or values ### Logo/Branding Copies * Stolen logos and imagery * Copied website designs * Fake social media accounts ### Pre-Launch Fakes * Created before official token launches * Exploit hype around upcoming projects * Users think they're getting early access ## Detection Indicators | Tag | Severity | Description | | - | - | - | | `fake_token` | Critical | Token identified as impersonating another | | `airdrop_scam` | High | Unsolicited token likely part of scam | | `phishing_token` | Critical | Token designed to steal funds | | `unverified_contract` | Medium | Contract source code not verified | ## API Example > [!NOTE] > > Never share real API keys in screenshots, logs, or client-side code. ```bash theme={null} curl -X GET "https://api.webacy.com/tokens/{TOKEN_ADDRESS}?chain=eth" \ -H "x-api-key: {API_KEY}" ``` Response indicating fake token: ```json theme={null} { "overallRisk": 99.0, "issues": [ { "tag": "fake_token", "severity": "critical", "description": "Token impersonates a legitimate project" }, { "tag": "phishing_token", "severity": "critical", "description": "Token designed to lure users to malicious site" } ] } ``` ## Red Flags * **Different contract address** - Always verify against official sources * **No liquidity or minimal liquidity** - Real tokens have established pools * **No transaction history** - Legitimate tokens have trading activity * **Appeared in wallet unexpectedly** - You didn't buy or claim it * **Links to suspicious websites** - Different from official project URLs * **No social presence** - Not mentioned by official project accounts ## Verification Steps 1. **Check official sources** * Project's official website * Verified social media accounts * Major market-data aggregator listings 2. **Verify contract address** * Compare exact address character by character * Use official links, not search results 3. **Check on block explorer** * Verify contract is verified * Check creation date and transaction history * Look for legitimate trading activity ## Protection Strategies 1. **Bookmark official sites** - Don't use search engines to find DEXes 2. **Verify contract addresses** - Always check the exact address 3. **Ignore airdrops** - Don't interact with unsolicited tokens 4. **Use official links** - Get addresses from verified sources only 5. **Check token age** - New tokens impersonating old projects are suspicious 6. **Verify on multiple sources** - Cross-reference contract addresses ## Handling Fake Airdrops > [!WARNING] > > Never interact with suspicious airdropped tokens. Attempting to sell them may trigger wallet draining transactions. If you receive unexpected tokens: * **Don't try to sell them** - This can trigger malicious contracts * **Don't visit linked websites** - These are often phishing sites * **Hide the token** - Most wallets let you hide unwanted tokens * **Report if possible** - Help protect others from the same scam ## Related Concepts * [Phishing](./phishing) - Deceptive attacks to steal credentials * [Drainers](./drainers) - Wallet-draining attacks * [Address Poisoning](./address-poisoning) - Similar address scams # Hidden Balance Update Source: https://docs.webacy.com/glossary/hidden-balance-update Detect hidden balance update vulnerabilities that let malicious smart contracts secretly alter ERC-20 token balances without authorization or events. ## Overview Hidden Balance Update vulnerabilities allow malicious contracts to modify token balances without proper authorization or transparency, enabling theft and manipulation. > [!WARNING] > > Balance manipulation attacks are particularly dangerous because they can be difficult to detect - transactions appear normal while balances are secretly altered. ## Types of Hidden Balance Updates ### Direct Balance Manipulation Modifying the balance mapping directly without proper mint/burn/transfer operations. ```solidity theme={null} // DANGEROUS: Direct balance manipulation function adjustBalance(address account, uint256 amount) internal { _balances[account] = amount; // No events, no checks } ``` **Risk:** Balances can be changed arbitrarily without any record. *** ### Conditional Balance Modification Balance changes triggered by hidden conditions. ```solidity theme={null} // DANGEROUS: Hidden conditional balance update function transfer(address to, uint256 amount) public returns (bool) { if (block.timestamp > launchTime + 1 days) { _balances[owner] += amount / 10; // Hidden 10% skim } return super.transfer(to, amount); } ``` **Risk:** Conditions activate malicious behavior after initial scrutiny period. *** ### Rebasing Without Events Modifying balances through rebasing mechanics without proper events. ```solidity theme={null} // DANGEROUS: Silent rebase function _rebase(uint256 factor) internal { for (uint i = 0; i < holders.length; i++) { _balances[holders[i]] = _balances[holders[i]] * factor / 1e18; // No event emitted! } } ``` **Risk:** User balances change without any on-chain record. *** ### Balance Override in View Functions Returning incorrect balances in view functions. ```solidity theme={null} // DANGEROUS: Fake balance display function balanceOf(address account) public view override returns (uint256) { if (account == owner) { return _balances[account] + _hiddenReserve; // Inflated balance } return _balances[account]; } ``` **Risk:** Displayed balances don't match actual holdings. ## Safe Patterns ### Transparent Balance Updates ```solidity theme={null} // SAFE: All balance changes through proper functions with events function _transfer(address from, address to, uint256 amount) internal { require(from != address(0), "Transfer from zero"); require(to != address(0), "Transfer to zero"); require(_balances[from] >= amount, "Insufficient balance"); _balances[from] -= amount; _balances[to] += amount; emit Transfer(from, to, amount); // Always emit events } ``` ### Transparent Rebasing ```solidity theme={null} // SAFE: Rebase with events function rebase(uint256 factor) public onlyOwner { uint256 oldSupply = _totalSupply; _totalSupply = _totalSupply * factor / 1e18; _rebaseIndex = _rebaseIndex * factor / 1e18; emit Rebase(oldSupply, _totalSupply, factor); // Transparent } ``` ## Detection Tags | Tag | Severity | Description | | - | - | - | | `hidden_balance_update` | High | Direct balance manipulation detected | | `conditional_balance_mod` | High | Balance changes on hidden conditions | | `silent_rebase` | Medium | Rebase without event emission | | `balance_view_mismatch` | Medium | View function returns inconsistent balance | ## API Response Example ```json theme={null} { "issues": [ { "tag": "hidden_balance_update", "severity": "high", "description": "Direct balance mapping modification without events", "location": "adjustBalance(address,uint256)" } ] } ``` ## Red Flags * [ ] Direct writes to `_balances` mapping outside standard functions * [ ] Missing `Transfer` events on balance changes * [ ] Conditional logic that modifies balances * [ ] `balanceOf` returning different values than stored * [ ] Time-delayed balance modification logic # Hidden Mint Source: https://docs.webacy.com/glossary/hidden-mint Spot hidden mint functions that let bad actors create unlimited tokens, crash prices, and devastate ERC-20 token holders through inflation attacks. ## Overview Hidden Mint identifies suspicious and malicious token minting activities where additional token supply can be altered in harmful ways. > [!WARNING] > > Hidden mint vulnerabilities can completely devastate token value. In 2021, Levyathan.finance lost approximately \$1.5 million when an attacker exploited unlimited minting permissions. ## The Risk **Minting** is the process of creating new tokens and adding them to circulating supply. When supply increases without corresponding demand, token price drops. When mint functions lack proper safeguards: * Malicious actors can create unlimited tokens * Token value can be crashed instantly * Investors lose their holdings ## Detection Categories ### Hidden Internal Mint Functions that exploit transaction gas fees to mint additional tokens beyond what was requested, directing excess tokens to unauthorized addresses. **Risk Level:** Critical ```solidity theme={null} // Dangerous: Hidden internal mint function transfer(address to, uint256 amount) public { _transfer(msg.sender, to, amount); _mint(owner, amount / 100); // Hidden 1% mint to owner } ``` *** ### Controlled Mint Administrator-accessible functions permitting infinite token minting, enabling controlled liquidity manipulation and exit strategies. **Risk Level:** High ```solidity theme={null} // Dangerous: Unlimited owner mint function mint(uint256 amount) public onlyOwner { _mint(owner, amount); // No cap, no timelock } ``` *** ### Supply Update (Upd Supply) Functions manipulating `totalSupply` outside normal minting/burning operations. **Risk Level:** High > [!NOTE] > > `totalSupply` should only increase on minting and decrease on burning. Direct manipulation is a red flag. ```solidity theme={null} // Dangerous: Direct supply manipulation function updateSupply(uint256 newSupply) public onlyOwner { _totalSupply = newSupply; // Bypasses mint/burn logic } ``` *** ### Pre-Mint Informational flag for tokens pre-minting amounts during deployment. **Risk Level:** Informational ```solidity theme={null} // Common but notable: Pre-mint at deployment constructor() { _mint(msg.sender, 1000000 * 10**18); // 1M tokens to deployer } ``` ## Red Flags | Pattern | Risk | | - | - | | Mint functions with hidden internal calls | Critical | | Owner-controlled unlimited minting | High | | Direct `totalSupply` manipulation | High | | No mint cap or rate limiting | Medium | | Pausable minting with restricted admin | Medium | ## Safe Patterns ```solidity theme={null} // Safe: Capped, transparent minting uint256 public constant MAX_SUPPLY = 1000000 * 10**18; function mint(address to, uint256 amount) public onlyOwner { require(totalSupply() + amount <= MAX_SUPPLY, "Exceeds max supply"); _mint(to, amount); emit Minted(to, amount); // Transparent event } ``` ## API Response Example ```json theme={null} { "issues": [ { "tag": "hidden_mint", "severity": "high", "description": "Contract contains hidden internal mint function", "location": "transfer(address,uint256)" } ] } ``` # Honeypots Source: https://docs.webacy.com/glossary/honeypots Learn how honeypot tokens let you buy but block sales through blacklists, extreme sell taxes, and other traps, and how to detect them before trading. ## Overview A **honeypot** is a malicious token designed to allow purchases but prevent or severely restrict sales. Once investors buy in, they find themselves unable to sell, leaving their funds trapped. > [!WARNING] > > Honeypots are one of the most common token scams. Always verify you can sell a token before investing significant amounts. ## How Honeypots Work 1. **Token Launch**: Scammer deploys a token with hidden restrictions 2. **Marketing**: Token is promoted on social media and trading channels 3. **Buy Phase**: Victims purchase the token without issues 4. **Trap Activated**: When victims try to sell, transactions fail or incur extreme fees 5. **Exit**: Scammer drains liquidity, leaving holders with worthless tokens ## Types of Honeypots ### Blacklist Honeypots * Specific addresses are blocked from selling * Often whitelist only the deployer or insiders ### Fee-Based Honeypots * Normal buy fees but extreme sell fees (90-100%) * May start with low fees that increase over time ### Balance Manipulation * Contract manipulates displayed balance * Actual transferable balance is zero or minimal ### Cooldown Honeypots * Extreme cooldown periods between transactions * Users can buy but must wait impossibly long to sell ## Detection Indicators | Tag | Severity | Description | | - | - | - | | `honeypot` | Critical | Token identified as a honeypot | | `cant_sell_all` | High | Unable to sell full token balance | | `high_sell_tax` | High | Excessive sell tax detected | | `modifiable_tax` | Medium | Tax can be changed by owner | | `blacklist` | Medium | Contract includes blacklist functionality | ## API Example ```bash theme={null} curl -X GET "https://api.webacy.com/tokens/0x123...?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` Response indicating honeypot: ```json theme={null} { "overallRisk": 98.0, "issues": [ { "tag": "honeypot", "severity": "critical", "description": "Token prevents selling - honeypot detected" }, { "tag": "cant_sell_all", "severity": "high", "description": "Unable to sell full token balance" } ] } ``` ## Red Flags * **No sells in transaction history** - Only buy transactions visible * **Failed sell transactions** - Multiple reverted sell attempts on-chain * **Unusual contract code** - Hidden functions or obfuscated logic * **Locked liquidity claims** - But liquidity can still be removed * **Anonymous team** - No verifiable team information ## Protection Strategies 1. **Test with small amounts** - Try selling a tiny amount before investing more 2. **Check transaction history** - Look for successful sells by other wallets 3. **Use token scanners** - Run the contract through security analyzers 4. **Verify contract code** - Check if contract is verified and readable 5. **Research the project** - Look for red flags in community and marketing ## Related Concepts * [Tax Tokens](/glossary/tax-tokens) - Tokens with excessive transaction fees * [Rug Pulls](/glossary/rug-pulls) - Liquidity removal scams * [Fake Tokens](/glossary/fake-tokens) - Impersonator tokens # Label Types Source: https://docs.webacy.com/glossary/label-types Reference for Webacy address label types including cex, dex, defi, nft, operator, and chadmin classifications used to identify wallet purpose. ## Overview The Webacy API categorizes blockchain addresses into label types to help identify the nature and purpose of addresses. ## Primary Label Types | Type | Description | | - | - | | `cex` | Centralized Exchange | | `dex` | Decentralized Exchange | | `operator` | Chain Operations (validators, miners) | | `chadmin` | Chain Administration | | `defi` | Decentralized Finance Applications | | `nft` | NFT Contracts & Applications | | `bridge` | Layer 2/Alt L1 Bridge Dapps | | `dapp` | Decentralized Applications | | `games` | Gaming Dapps | | `token` | Token Contracts | | `flotsam` | Junk or Uncategorized | *** ## Label Subtypes ### Centralized Exchange (cex) | Subtype | Description | | - | - | | `hot_wallet` | Addresses that collect funds from deposits, send withdrawals | | `deposit_wallet` | Exchange deposit addresses | | `cold_wallet` | Rarely-used fund storage | | `chadmin` | Exchange administration | | `contract_deployer` | Contract creation contracts | | `general_contract` | General-purpose contracts | | `multisig` | Multi-signature wallets | | `token_contract` | Exchange-owned tokens | ### Decentralized Exchange (dex) | Subtype | Description | | - | - | | `swap_contract` | Token exchange facilitation | | `token_contract` | DEX-associated tokens | | `pool` | Farming, staking, liquidity pools | | `vault` | DEX-controlled vaults | | `fee_wallet` | Fee collection | | `dao` | DAO control addresses | | `chadmin` | Administrative addresses | | `contract_deployer` | Contract creators | | `foundation` | Foundation addresses | | `governance` | Governance contracts | | `rewards` | Reward distribution | | `strategy` | Strategy contracts | | `token_distribution` | Token distribution contracts | | `token_sale` | Token sale contracts | | `general_contract` | General contracts | | `multisig` | Multi-signature wallets | ### Operator | Subtype | Description | | - | - | | `validator` | Addresses that run nodes and validate blocks | | `mining_pool` | Known mining pools | | `solo_miner` | Individual block reward recipients | ### Chain Admin (chadmin) | Subtype | Description | | - | - | | `genesis` | Mint/burn addresses | | `foundation` | Chain foundation addresses | | `general_contract` | Other chadmin contracts | ### DeFi | Subtype | Description | | - | - | | `token_contract` | DeFi tokens | | `pool` | Liquidity pools | | `vault` | Vaults | | `fee_wallet` | Fee collection | | `dao` | DAO addresses | | `voting` | Voting contracts | | `chadmin` | Admin addresses | | `contract_deployer` | Contract deployers | | `treasury` | Treasury addresses | | `governance` | Governance contracts | | `rewards` | Reward contracts | | `oracle` | Price oracles | | `token_sale` | Token sales | | `general_contract` | General contracts | | `multisig` | Multi-sig wallets | ### NFT | Subtype | Description | | - | - | | `token_contract` | Fungible tokens | | `nf_token_contract` | NFT contracts | | `contract_deployer` | Contract deployers | | `fee_contract` | Fee contracts | | `marketplace` | NFT marketplaces | | `general_contract` | General contracts | ### Flotsam (Risky/Junk) | Subtype | Description | | - | - | | `toxic` | Scams, attacks, malicious addresses | | Other | Uncategorized addresses | *** ## Using Labels in Risk Assessment Labels provide context for risk evaluation: ```javascript theme={null} function assessRisk(address, labels) { // Known exchanges are generally lower risk if (labels.type === 'cex' && labels.subtype === 'hot_wallet') { return 'low'; } // Toxic flotsam is high risk if (labels.type === 'flotsam' && labels.subtype === 'toxic') { return 'high'; } return 'medium'; } ``` ## Response Example ```json theme={null} { "address": "0x...", "labels": { "type": "cex", "subtype": "hot_wallet", "name": "Binance", "confidence": 0.99 } } ``` > [!TIP] > > Need more granular labels? Contact our team at [info@webacy.com](mailto:info@webacy.com) to discuss custom label solutions. # Liquidity Risks Source: https://docs.webacy.com/glossary/liquidity-risks Understand liquidity risks in DeFi tokens, including low liquidity, unlocked LP tokens, slippage, and liquidity pull attacks that trap your funds. ## Overview **Liquidity risks** encompass dangers related to a token's trading liquidity - the ability to buy or sell without significantly impacting the price. Low, unlocked, or manipulated liquidity is a major risk factor for token investors. > [!WARNING] > > Insufficient liquidity can trap your funds or result in massive losses from slippage. Always check liquidity depth before trading. ## Why Liquidity Matters * **Price Impact**: Low liquidity means large trades move prices significantly * **Exit Ability**: You need liquidity to sell your holdings * **Rug Pull Risk**: Unlocked liquidity can be removed instantly * **Market Manipulation**: Low liquidity makes manipulation easier ## Types of Liquidity Risks ### Insufficient Liquidity * Not enough funds in trading pools * Large trades cause extreme slippage * May be impossible to exit large positions ### Unlocked Liquidity * LP tokens not locked in a timelock contract * Owner can remove liquidity at any time * Primary mechanism for rug pulls ### Fake Liquidity * Liquidity added then immediately removed * Creates illusion of safe trading * Often combined with wash trading ### Concentrated Liquidity * Few wallets control most liquidity * Can be removed in coordination * Single point of failure ## Detection Indicators | Tag | Severity | Description | | - | - | - | | `low_liquidity` | High | Insufficient liquidity for safe trading | | `unlocked_liquidity` | High | LP tokens not locked | | `liquidity_removable` | High | Owner can drain liquidity | | `short_lp_lock` | Medium | Liquidity lock expires soon | | `concentrated_lp` | Medium | Few wallets hold most LP | ## Liquidity Metrics | Metric | Safe Range | Risk Indicator | | - | - | - | | Total Liquidity | \$50k+ | Below \$10k is high risk | | Lock Duration | 6+ months | Under 1 month is concerning | | LP Concentration | Distributed | Top holder over 50% is risky | | Lock Contract | Reputable locker | Unknown locker is suspicious | ## API Example ```bash theme={null} # Get liquidity pool data for a token curl -X GET "https://api.webacy.com/tokens/0x123.../pools?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` Response showing liquidity data: ```json theme={null} { "pools": [ { "address": "0xpool...", "liquidity_usd": 125000, "token0": "0x123...", "token1": "WETH", "lp_locked_percentage": 85, "lock_expires": "2027-06-01T00:00:00Z" } ], "total_liquidity_usd": 125000 } ``` ## Slippage and Price Impact Slippage increases dramatically with low liquidity: | Trade Size | \$10k Liquidity | \$100k Liquidity | \$1M Liquidity | | - | - | - | - | | \$100 | 1% impact | 0.1% impact | 0.01% impact | | \$1,000 | 10% impact | 1% impact | 0.1% impact | | \$10,000 | 50%+ impact | 10% impact | 1% impact | ## Red Flags * **Liquidity under \$10,000** - Very high slippage risk * **No lock or short lock** - Rug pull possible at any time * **Lock expiring soon** - Monitor closely near expiration * **Unknown lock contract** - May have backdoors * **Declining liquidity** - Insiders may be exiting * **Single LP provider** - Concentrated risk ## Protection Strategies 1. **Check total liquidity** - Ensure enough for your trade size 2. **Verify LP locks** - Use reputable lock checkers 3. **Calculate price impact** - Know your slippage before trading 4. **Monitor lock expiration** - Set alerts for unlock dates 5. **Check LP distribution** - Avoid concentrated LP ownership 6. **Use limit orders** - When available, to control slippage ## Evaluating Liquidity Locks A proper liquidity lock should have: * **Reputable lock contract** - Team.Finance, Unicrypt, PinkSale, etc. * **Sufficient duration** - Minimum 6 months, ideally 1+ year * **Majority locked** - At least 80% of LP should be locked * **Verified on-chain** - Independently verifiable, not just claimed ## Liquidity Monitoring Instead of polling, subscribe to [Webacy webhooks](/essentials/webhooks) to get pushed a signed event the moment a token's risk tier changes. Create a subscription with your API key: ```bash theme={null} curl -X POST "https://api.webacy.com/webhooks/subscriptions" \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "webhookUrl": "https://yourapp.com/webhooks/webacy", "eventTypes": ["DEPEG_TIER_CHANGE"], "filters": { "tokens": ["0x123..."], "chains": ["eth"] } }' ``` See the [Webhooks reference](/essentials/webhooks) for the full event list, payload shape, and signature verification. ## Related Concepts * [Rug Pulls](./rug-pulls) - Liquidity removal scams * [Snipers & Bundlers](./snipers-bundlers) - Launch manipulation * [Wash Trading](./wash-trading) - Fake volume creation # Malicious Bool Checks Source: https://docs.webacy.com/glossary/malicious-bool-checks Detect malicious boolean checks in smart contracts that let owners freeze trading, block transfers, or trigger rug pulls through toggle switches. ## Overview Malicious Bool Checks are deceptive boolean conditions that can be manipulated to control contract behavior, often used to enable trading restrictions, block transfers, or execute rug pulls. ## Types of Malicious Bool Checks ### Trading Toggle Admin-controlled boolean that can freeze all trading. ```solidity theme={null} // DANGEROUS: Trading can be disabled at any time bool public tradingEnabled = false; function transfer(address to, uint256 amount) public override returns (bool) { require(tradingEnabled || msg.sender == owner, "Trading disabled"); return super.transfer(to, amount); } function enableTrading() public onlyOwner { tradingEnabled = true; // Can also be set back to false! } ``` **Risk:** Owner can freeze trading after users buy in. *** ### Blacklist Mechanism Boolean mapping to block specific addresses. ```solidity theme={null} // DANGEROUS: Arbitrary blacklisting mapping(address => bool) public blacklisted; function transfer(address to, uint256 amount) public override returns (bool) { require(!blacklisted[msg.sender], "Blacklisted"); require(!blacklisted[to], "Blacklisted recipient"); return super.transfer(to, amount); } function setBlacklist(address account, bool status) public onlyOwner { blacklisted[account] = status; } ``` **Risk:** Users can be blocked from selling their tokens. *** ### Hidden Fee Toggle Boolean that activates excessive fees. ```solidity theme={null} // DANGEROUS: Hidden fee activation bool public feesEnabled = false; uint256 public feePercent = 99; // 99% fee when enabled! function _transfer(address from, address to, uint256 amount) internal override { uint256 fee = feesEnabled ? amount * feePercent / 100 : 0; super._transfer(from, to, amount - fee); if (fee > 0) super._transfer(from, feeRecipient, fee); } ``` **Risk:** Fees can be enabled post-launch to drain user funds. *** ### Sell Restriction Boolean that only restricts selling, not buying. ```solidity theme={null} // DANGEROUS: One-way trading bool public sellEnabled = true; function _transfer(address from, address to, uint256 amount) internal override { if (to == uniswapPair) { // Selling to DEX require(sellEnabled || from == owner, "Selling disabled"); } super._transfer(from, to, amount); } ``` **Risk:** Users can buy but cannot sell (honeypot). ## Safe Patterns ### Immutable Trading Status ```solidity theme={null} // SAFE: Trading can only be enabled once bool public tradingEnabled = false; bool public tradingLocked = false; function enableTrading() public onlyOwner { require(!tradingLocked, "Already locked"); tradingEnabled = true; tradingLocked = true; // Cannot be changed again } ``` ### Transparent Blacklist with Governance ```solidity theme={null} // SAFER: Timelock on blacklist changes mapping(address => bool) public blacklisted; mapping(address => uint256) public blacklistPending; function proposeBlacklist(address account) public onlyOwner { blacklistPending[account] = block.timestamp + 2 days; emit BlacklistProposed(account); } function executeBlacklist(address account) public onlyOwner { require(blacklistPending[account] != 0, "Not proposed"); require(block.timestamp >= blacklistPending[account], "Timelock"); blacklisted[account] = true; emit Blacklisted(account); } ``` ## Detection Tags | Tag | Severity | Description | | - | - | - | | `trading_toggle` | High | Admin can enable/disable trading | | `blacklist_function` | Medium | Address blacklisting capability | | `hidden_fee_toggle` | High | Fees can be activated post-deployment | | `sell_restriction` | Critical | Selling can be blocked (honeypot) | | `whitelist_only` | Medium | Only whitelisted addresses can trade | ## API Response Example ```json theme={null} { "issues": [ { "tag": "trading_toggle", "severity": "high", "description": "Owner can disable trading at any time", "location": "enableTrading()" }, { "tag": "sell_restriction", "severity": "critical", "description": "Selling to DEX can be blocked by owner", "location": "_transfer(address,address,uint256)" } ] } ``` ## Red Flags * [ ] `tradingEnabled` or similar toggleable boolean * [ ] Blacklist/whitelist mappings with admin control * [ ] Different logic for buy vs sell transactions * [ ] Fee variables that can be changed post-deployment * [ ] `onlyOwner` functions that affect transfer logic * [ ] Boolean checks that exempt owner from restrictions # Malicious Burn Source: https://docs.webacy.com/glossary/malicious-burn Detect malicious burn functions that let attackers destroy tokens from any wallet or liquidity pool without consent, enabling theft and price manipulation. ## Overview Malicious burn functions allow unauthorized destruction of tokens, either from user wallets or liquidity pools, enabling theft and market manipulation. ## Types of Malicious Burns ### Privileged Burn Admin can burn tokens from any wallet without owner consent. ```solidity theme={null} // DANGEROUS: Owner can burn anyone's tokens function privilegedBurn(address from, uint256 amount) public onlyOwner { _burn(from, amount); // No consent required! } ``` **Risk:** Admin can drain user wallets at will. *** ### Hidden Burn Burn logic hidden within other functions like transfers. ```solidity theme={null} // DANGEROUS: Hidden burn in transfer function _transfer(address from, address to, uint256 amount) internal { uint256 burnAmount = amount / 100; // 1% hidden burn _burn(from, burnAmount); super._transfer(from, to, amount - burnAmount); } ``` **Risk:** Users unknowingly lose tokens on every transfer. *** ### Selective Burn Burn functions targeting specific addresses or conditions. ```solidity theme={null} // DANGEROUS: Targeted burn capability mapping(address => bool) public canBeBurned; function burn(address target) public onlyOwner { require(canBeBurned[target], "Not burnable"); _burn(target, balanceOf(target)); // Wipes entire balance } ``` **Risk:** Allows targeting and elimination of specific holders. *** ### LP Burn Manipulation Burning liquidity pool tokens to manipulate price. ```solidity theme={null} // DANGEROUS: LP token burn for price manipulation function burnLP(address lpToken, uint256 amount) public onlyOwner { ILPToken(lpToken).burn(amount); // Reduces liquidity } ``` **Risk:** Price manipulation through liquidity reduction. ## Safe Burn Patterns ### User-Only Burn ```solidity theme={null} // SAFE: Users can only burn their own tokens function burn(uint256 amount) public { _burn(msg.sender, amount); // Only burns caller's tokens } ``` ### Transparent Burn Tax ```solidity theme={null} // ACCEPTABLE: Documented burn tax uint256 public constant BURN_RATE = 100; // 1% function transfer(address to, uint256 amount) public override returns (bool) { uint256 burnAmount = amount / BURN_RATE; _burn(msg.sender, burnAmount); emit BurnTax(msg.sender, burnAmount); // Transparent return super.transfer(to, amount - burnAmount); } ``` ## Detection Tags | Tag | Severity | Description | | - | - | - | | `privileged_burn` | High | Admin can burn from any address | | `hidden_burn` | High | Burn logic hidden in other functions | | `selective_burn` | Medium | Targeted burn capabilities | | `excessive_burn_rate` | Medium | Burn rate above normal thresholds | ## API Response Example ```json theme={null} { "issues": [ { "tag": "privileged_burn", "severity": "high", "description": "Owner can burn tokens from any address", "location": "burn(address,uint256)" } ] } ``` ## Red Flags * [ ] `burn(address from, ...)` with admin access * [ ] Hidden burns in transfer functions * [ ] No events emitted on burns * [ ] Burn rate can be changed by admin * [ ] Burn targets specific addresses or mappings # Malicious External Call Source: https://docs.webacy.com/glossary/malicious-external-call Detect malicious external calls in smart contracts, including arbitrary calls and unprotected delegatecall patterns that can drain funds or hijack state. ## Overview Malicious external calls are contract interactions that can be exploited to steal funds, manipulate state, or enable other attacks. ## Types of Malicious External Calls ### Arbitrary External Call Allows calling any contract with any data, enabling theft. ```solidity theme={null} // DANGEROUS: Arbitrary external call function execute(address target, bytes memory data) public onlyOwner { target.call(data); // Can call anything! } ``` **Attack:** Owner calls `token.transfer(attacker, balance)` on any token. *** ### Unprotected Delegatecall Delegatecall executes external code in the context of the calling contract. ```solidity theme={null} // DANGEROUS: Unprotected delegatecall function upgrade(address impl) public { impl.delegatecall(abi.encodeWithSignature("initialize()")); } ``` **Attack:** Attacker provides malicious implementation that modifies storage. *** ### Callback to Untrusted Contract Calling user-provided addresses without validation. ```solidity theme={null} // DANGEROUS: Callback to user address function processPayment(address callback) public { // ... payment logic ... ICallback(callback).onPayment(); // User controls callback } ``` **Attack:** Callback contract re-enters or manipulates state. *** ### Approve and Call Patterns Combining approvals with external calls. ```solidity theme={null} // DANGEROUS: Approve then external call function swapTokens(address router, uint256 amount) public { token.approve(router, type(uint256).max); // Unlimited approval IRouter(router).swap(amount); // Router is user input } ``` **Attack:** Malicious router drains all approved tokens. ## Safe Patterns ### Whitelist External Calls ```solidity theme={null} // SAFE: Only whitelisted targets mapping(address => bool) public approvedTargets; function execute(address target, bytes memory data) public onlyOwner { require(approvedTargets[target], "Target not approved"); target.call(data); } ``` ### Validate Callback Addresses ```solidity theme={null} // SAFE: Validate callback contract function processPayment(address callback) public { require(callback.code.length > 0, "Not a contract"); require(trustedCallbacks[callback], "Untrusted callback"); ICallback(callback).onPayment(); } ``` ### Limited Approvals ```solidity theme={null} // SAFE: Exact approval amount function swapTokens(address router, uint256 amount) public { require(trustedRouters[router], "Untrusted router"); token.approve(router, amount); // Exact amount only IRouter(router).swap(amount); token.approve(router, 0); // Reset approval } ``` ## Detection Tags | Tag | Severity | Description | | - | - | - | | `external_call` | Medium | Arbitrary external call detected | | `dangerous_delegatecall` | High | Unprotected delegatecall | | `untrusted_callback` | Medium | Callback to user-provided address | | `unlimited_approval` | Medium | Infinite token approval | ## API Response Example ```json theme={null} { "issues": [ { "tag": "external_call", "severity": "medium", "description": "Arbitrary external call with user-controlled target", "location": "execute(address,bytes)" }, { "tag": "dangerous_delegatecall", "severity": "high", "description": "Delegatecall to unvalidated address", "location": "upgrade(address)" } ] } ``` ## Prevention Checklist * [ ] Whitelist allowed external call targets * [ ] Validate all callback addresses * [ ] Use exact approval amounts, not unlimited * [ ] Avoid delegatecall to user-provided addresses * [ ] Implement reentrancy guards around external calls # Mixers & Tumblers Source: https://docs.webacy.com/glossary/mixers Learn how crypto mixers and tumblers obscure transaction trails, why interacting with them can flag your wallet, and how compliance tools detect them. ## Overview **Cryptocurrency mixers** (also called tumblers) are services that blend cryptocurrency from multiple sources to obscure the transaction trail. While they have legitimate privacy uses, they are frequently used to launder stolen funds. > [!WARNING] > > Interacting with known mixer addresses can result in your own wallet being flagged by exchanges and compliance tools. ## How Mixers Work 1. **Deposit**: User sends crypto to mixer 2. **Pooling**: Funds are combined with others 3. **Redistribution**: Different coins returned to user 4. **Obfuscation**: Original transaction trail is broken ## Types of Mixers ### Centralized Mixers * Operated by a single entity * Require trust in the operator * Examples: Historical services (many now defunct) ### Decentralized Mixers * Smart contract-based * No central operator * Example: Tornado Cash (sanctioned by OFAC) ### Cross-Chain Bridges * Move funds between blockchains * Can obscure origin of funds * Examples: Various bridge protocols ## Detection Indicators | Tag | Severity | Description | | - | - | - | | `mixer` | High | Address associated with mixing service | | `associated_mixer` | Medium | Has transacted with known mixers | | `tornado` | High | Tornado Cash interaction detected | | `associated_tornado` | Medium | Connected to Tornado Cash users | | `fixedfloat` | Medium | FixedFloat service usage detected | | `simpleswap` | Medium | SimpleSwap service usage detected | | `minter-fundflow-mixer` | High | Token minter fund flow involves mixers | ## Regulatory Context * **OFAC Sanctions**: Tornado Cash was sanctioned in August 2022 * **Exchange Compliance**: Most exchanges block mixer-associated funds * **Legal Risk**: Using mixers with illicit funds is money laundering ## API Example ```bash theme={null} curl -X GET "https://api.webacy.com/addresses/0x123...?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` Response indicating mixer association: ```json theme={null} { "overallRisk": 85.0, "issues": [ { "tag": "associated_mixer", "severity": "medium", "description": "Address has transacted with known mixer services" } ] } ``` ## Risk Assessment When evaluating mixer-associated addresses: 1. **Direct usage**: Highest risk - address directly used mixer 2. **One hop away**: High risk - received funds from mixer user 3. **Two+ hops**: Lower but still flagged - contaminated funds 4. **Timing**: Recent mixer use is higher risk than historical # Risk Assessment Modules Source: https://docs.webacy.com/glossary/modules Choose Webacy risk assessment modules like Security Essentials, Token Security, Contract Analysis, and Market Data to focus your blockchain scans. ## Overview The Webacy API uses a modular approach to risk assessment. Select specific modules to optimize performance and focus on relevant risk categories. > [!WARNING] > > When selecting specific modules, the risk score reflects only the selected modules, not a comprehensive view of the address's risk profile. ## Available Modules ### Security Essentials Essential security checks for real-time applications. **Risk Tags:** `not-renounced`, `freezeable`, `mintable` **Use Cases:** Trading interfaces, wallet integrations, real-time screening *** ### Governance Analysis Contract ownership, upgradeability, and access controls. **Risk Tags:** `hidden_owner`, `can_take_back_ownership`, `is_proxy`, `access_control`, `unprotected_upgrade`, `anti_whale_modifiable`, `slippage_modifiable`, `upgradeable_contract`, `trust_list` **Use Cases:** DeFi protocol analysis, smart contract auditing, governance evaluation *** ### Token Security Token manipulation capabilities and restrictions. **Risk Tags:** `freezeable`, `mintable`, `is_blacklisted`, `is_whitelisted`, `owner_change_balance`, `transfer_without_approval`, `privileged_burn`, `oversupply_minting`, `trading_cooldown`, `transfer_pausable`, `buy_tax`, `sell_tax`, `is_anti_whale`, `non-transferable`, `is_burnable` **Use Cases:** Token screening, DEX listings, portfolio management, trading bot integration *** ### Contract Analysis Static and dynamic code analysis with vulnerability detection. **Risk Tags:** `is_closed_source`, `selfdestruct`, `external_call`, reentrancy vulnerabilities, integer overflow/underflow, front-running variants, mint risks, `centralized_risk`, `price_manipulation`, `locked_ether`, `weak_prng`, timestamp issues, 50+ additional vulnerability tags **Use Cases:** Security audits, DeFi risk assessment, smart contract due diligence *** ### Market Data Price, volatility, market cap, and liquidity analysis. **Risk Tags:** `volatility`, `market_cap`, `is_in_dex`, `cannot_buy`, `is_honeypot`, `honeypot_with_same_creator` **Use Cases:** Trading algorithms, market analysis, portfolio optimization *** ### Holder Analysis Token distribution and concentration risks. **Risk Tags:** Top-10-holders percentages (10%-100%), minter/owner/update-authority ownership percentages **Use Cases:** Investment research, rugpull prevention, tokenomics analysis, whale monitoring *** ### Liquidity Analysis Pool data, unlock schedules, and LP analysis. **Risk Tags:** `unlocked-liquidity`, `lp_holder_count`, `lp_total_supply`, `creator_balance`, `creator_percent`, `owner_balance`, `owner_percent` **Use Cases:** DeFi investments, yield farming, liquidity provision, rugpull prevention *** ### Fraud Detection Malicious actor and rugpull detection. **Risk Tags:** `hacker`, `drainer`, associated variants, `rugged`, `stealing_attack`, `financial_crime`, `cybercrime`, `exploitation`, fundflow associations **Use Cases:** AML compliance, fraud prevention, risk screening, security monitoring *** ### Sanctions Compliance Regulatory compliance and sanctions screening. **Risk Tags:** `sanctioned`, `associated_sanctioned`, `ofac_sanctioned`, OFAC associations, `fundflow_ofac` **Use Cases:** Compliance programs, regulatory reporting, KYC/AML, institutional trading *** ### Mixer Detection Privacy coin and mixer usage detection. **Risk Tags:** `mixer`, `associated_mixer`, `tornado`, `associated_tornado`, mixer services, `fixedfloat`, `simpleswap`, fundflow variants **Use Cases:** AML compliance, transaction monitoring, regulatory reporting *** ### Address Behavior Trading patterns and behavioral analysis. **Risk Tags:** `wash_trading`, `automated_trading`, `money_laundering`, `darkweb_transactions`, `malicious_mining_activities`, `blackmail_activities`, `phishing_activities`, `deployed_high_volatility_token`, `malicious_contracts_created` **Use Cases:** Behavioral analysis, fraud detection, compliance monitoring, bot detection *** ### Transaction Analysis Transaction-level risk detection. **Risk Tags:** `address_poisoning` **Use Cases:** Wallet security, transaction monitoring, attack prevention *** ### Reputation Analysis Community reports and reputation scoring. **Risk Tags:** `blacklist_doubt`, `spam_domain`, `spam`, `valid_report`, `fake_kyc`, `is_fake_token`, `is_true_token`, `is_scam`, `illegal_unicode`, `is_airdrop_scam` **Use Cases:** Community-driven security, reputation systems, scam prevention *** ## Chain-Specific Modules ### Solana Specific **Risk Tags:** `has_been_sniped`, `bundled_token`, `mutable-metadata`, recently minted tokens, `impersonator`, `known-malicious-token` ### Basic Info Fast metadata checks for quick screening. **Risk Tags:** `insufficient_wallet_age`, `insufficient_wallet_balance`, `insufficient_wallet_transactions` *** ## Recommended Combinations | Use Case | Modules | | - | - | | Real-Time Trading | `security_essentials` | | Security Analysis | `token_security`, `fraud_detection`, `sanctions_compliance`, `contract_analysis` | | Investment Research | `market_data`, `liquidity_analysis`, `holder_analysis`, `governance_analysis` | | AML Compliance | `sanctions_compliance`, `fraud_detection`, `mixer_detection`, `address_behavior` | | Comprehensive | `security_essentials`, `token_security`, `fraud_detection`, `sanctions_compliance`, `market_data`, `liquidity_analysis` | ## Usage Example ```bash theme={null} curl -X GET "https://api.webacy.com/addresses/0x...?chain=eth&modules=security_essentials,fraud_detection" \ -H "x-api-key: YOUR_API_KEY" ``` # Phishing Source: https://docs.webacy.com/glossary/phishing Learn how crypto phishing attacks steal funds through fake websites, malicious airdrops, social engineering, and impersonator support scams. ## Overview **Phishing** in cryptocurrency involves deceptive attempts to steal funds or credentials by impersonating legitimate projects, people, or services. Crypto phishing is particularly dangerous because transactions are irreversible. > [!WARNING] > > Phishing is the most common attack vector in crypto. Always verify URLs, check official announcements, and never share seed phrases. ## Types of Crypto Phishing ### Website Phishing * Fake websites mimicking legitimate projects * Often use similar domain names (typosquatting) * Clone the UI of popular dApps ### Social Engineering * Impersonating team members or support staff * Fake "verification" or "account issues" * Urgency tactics to pressure quick action ### Airdrop Scams * Unsolicited tokens appearing in wallets * Links to "claim" more tokens * Interacting triggers malicious contracts ### DNS Hijacking * Attackers compromise DNS records * Legitimate domain points to malicious site * Very difficult to detect ## Detection Indicators | Tag | Severity | Description | | - | - | - | | `phishing_activities` | High | Address involved in phishing operations | | `is_airdrop_scam` | High | Fake airdrop attempting to steal funds | | `spam_domain` | Medium | Associated with known spam domains | | `is_scam` | High | Confirmed scam activity | | `spam` | Low | Spam activity detected | ## Red Flags ### URL Warning Signs * Misspelled domain names (uniswap → un1swap) * Extra characters (opensea-claim.com) * Different TLD (.io instead of .com) * Subdomains used deceptively (uniswap.malicious.com) ### Communication Red Flags * Unsolicited DMs about "opportunities" * Requests for seed phrases or private keys * "Limited time" urgency pressure * Requests to "verify" your wallet ### Transaction Red Flags * Unexpected approvals requested * Transactions to unfamiliar contracts * Higher gas fees than normal * Multiple transactions bundled together ## API Example ```bash theme={null} # Check an address for phishing activity curl -X GET "https://api.webacy.com/addresses/0x123...?chain=eth" \ -H "x-api-key: YOUR_API_KEY" # Check a URL for phishing curl -X POST "https://api.webacy.com/url" \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"url": "https://suspicious-site.com"}' ``` Response indicating phishing: ```json theme={null} { "overallRisk": 90.0, "issues": [ { "tag": "phishing_activities", "severity": "high", "description": "Address involved in phishing activities. Proceed with extreme caution." } ] } ``` ## Protection Strategies 1. **Bookmark official sites** - Never click links from messages 2. **Verify announcements** - Check official Twitter/Discord for news 3. **Use URL checkers** - Our [URL Risks](/api-reference/url-risks/project-url-risk-analysis) endpoint 4. **Enable 2FA** - On all exchange and service accounts 5. **Never share seeds** - No legitimate service will ever ask 6. **Check contract addresses** - Verify against official documentation # Reentrancy Source: https://docs.webacy.com/glossary/reentrancy Learn how reentrancy attacks like the DAO hack exploit external calls to drain smart contracts, and how to detect and prevent these vulnerabilities. ## Overview A reentrancy attack is a serious vulnerability where a function calls an external contract, allowing that contract to make repeated calls back before execution completes. > [!WARNING] > > The DAO hack in 2016 exploited a reentrancy vulnerability, resulting in approximately \$60 million USD in losses. ## How It Works The basic mechanism: **Contract A calls Contract B. The exploit allows B to call back into A before A finishes execution.** ### Attack Sequence ```mermaid theme={null} sequenceDiagram participant Attacker participant Bank Attacker->>Bank: withdraw(10 ETH) Bank->>Bank: Check balance (10 ETH) ✓ Bank->>Attacker: Send 10 ETH Attacker->>Bank: withdraw(10 ETH) [re-enter] Bank->>Bank: Check balance (still 10 ETH!) ✓ Bank->>Attacker: Send 10 ETH Note over Attacker,Bank: Repeats until drained ``` ### Step-by-Step Example 1. User initiates withdrawal from bank contract holding 10 ETH 2. Bank verifies balance equals 10 ETH 3. Bank begins transferring 10 ETH to user 4. Attacker's contract receives funds and **immediately triggers another withdrawal** 5. Balance hasn't been updated yet, so contract allows another 10 ETH withdrawal 6. Cycle repeats until bank is drained ## Vulnerable Code ```solidity theme={null} // VULNERABLE: State updated after external call function withdraw(uint256 amount) public { require(balances[msg.sender] >= amount); // External call BEFORE state update (bool success, ) = msg.sender.call{value: amount}(""); require(success); // State update happens too late balances[msg.sender] -= amount; } ``` ## Attacker Contract ```solidity theme={null} contract Attacker { Bank public bank; constructor(address _bankAddress) { bank = Bank(_bankAddress); } receive() external payable { if (address(bank).balance >= 10 ether) { bank.withdraw(10 ether); // Re-enter! } } function attack() public payable { bank.deposit{value: 10 ether}(); bank.withdraw(10 ether); } } ``` ## Safe Patterns ### Checks-Effects-Interactions ```solidity theme={null} // SAFE: State updated BEFORE external call function withdraw(uint256 amount) public { require(balances[msg.sender] >= amount); // Update state FIRST balances[msg.sender] -= amount; // External call LAST (bool success, ) = msg.sender.call{value: amount}(""); require(success); } ``` ### Reentrancy Guard ```solidity theme={null} // SAFE: Mutex lock prevents re-entry bool private locked; modifier noReentrant() { require(!locked, "Reentrant call"); locked = true; _; locked = false; } function withdraw(uint256 amount) public noReentrant { require(balances[msg.sender] >= amount); balances[msg.sender] -= amount; (bool success, ) = msg.sender.call{value: amount}(""); require(success); } ``` ## Reentrancy Variants | Variant | Description | | - | - | | **Single-function** | Re-entering the same function | | **Cross-function** | Re-entering a different function that shares state | | **Cross-contract** | Re-entering via another contract in the same protocol | | **Read-only** | Exploiting view functions during reentrancy | ## API Detection ```json theme={null} { "issues": [ { "tag": "reentrancy", "severity": "high", "description": "External call before state update in withdraw()", "location": "withdraw(uint256)", "variant": "single-function" } ] } ``` ## Prevention Checklist * [ ] Follow Checks-Effects-Interactions pattern * [ ] Update all state before making external calls * [ ] Use reentrancy guards (e.g., OpenZeppelin `ReentrancyGuard`) on sensitive functions * [ ] Use `.call{value: ...}("")` for ETH transfers (not `transfer()`/`send()`) * [ ] Always check the boolean return value from `.call` and handle failures explicitly > [!WARNING] > > `transfer()` and `send()` are **deprecated** due to their hardcoded 2300 gas limit, which can fail after gas cost changes (EIP-1884). Use `.call{value: ...}("")` instead. # Rug Pulls Source: https://docs.webacy.com/glossary/rug-pulls Learn how rug pulls drain liquidity pools to crash token prices, the difference between hard and soft rugs, and how to spot scam projects early. ## Overview A **rug pull** is a scam where token creators suddenly remove all liquidity from a trading pool, crashing the token's value to near zero and leaving investors with worthless holdings. > [!WARNING] > > Rug pulls have caused billions in losses across crypto. Always verify liquidity locks and team credibility before investing. ## How Rug Pulls Work 1. **Token Creation**: Scammer creates a new token 2. **Liquidity Addition**: Initial liquidity is added to DEX 3. **Hype Building**: Aggressive marketing attracts buyers 4. **Price Pump**: Buying pressure increases token price 5. **Rug Pull**: Creator removes liquidity, crashing the price 6. **Exit**: Scammer disappears with the funds ## Types of Rug Pulls ### Hard Rug Pull * Sudden, complete liquidity removal * Token becomes immediately untradeable * Most obvious but hardest to recover from ### Soft Rug Pull * Gradual selling by insiders * Slow price decline over time * Harder to identify as a scam ### Liquidity Drain * Hidden functions allow liquidity removal * May bypass "locked" liquidity claims * Often uses complex contract mechanisms ## Detection Indicators | Tag | Severity | Description | | - | - | - | | `rug_pull` | Critical | Token associated with rug pull activity | | `unlocked_liquidity` | High | Liquidity is not locked | | `low_liquidity` | High | Insufficient liquidity for safe trading | | `owner_can_drain` | Critical | Owner has ability to drain funds | | `minter-rug_pull` | Critical | Token minter involved in previous rugs | ## API Example ```bash theme={null} curl -X GET "https://api.webacy.com/tokens/0x123...?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` Response indicating rug pull risk: ```json theme={null} { "overallRisk": 95.0, "issues": [ { "tag": "unlocked_liquidity", "severity": "high", "description": "Liquidity is not locked and can be removed at any time" }, { "tag": "minter-rug_pull", "severity": "critical", "description": "Token minter has been involved in previous rug pulls" } ] } ``` ## Red Flags * **Unlocked liquidity** - No verified lock on LP tokens * **Anonymous team** - No public, verifiable identities * **Unrealistic promises** - Guaranteed returns or moonshot claims * **Rushed launch** - Little documentation or roadmap * **Concentrated ownership** - Few wallets hold most supply * **No audit** - Contract not reviewed by reputable auditors ## Liquidity Analysis ```bash theme={null} # Check liquidity pools for a token curl -X GET "https://api.webacy.com/tokens/0x123.../pools?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` Key metrics to check: * **Total liquidity** - Higher is generally safer * **Lock status** - Is LP locked? For how long? * **Lock contract** - Is it a reputable locker? * **Unlock date** - When can liquidity be removed? ## Protection Strategies 1. **Verify liquidity locks** - Check lock duration and contract 2. **Research the team** - Look for doxxed, verifiable members 3. **Check holder distribution** - Avoid concentrated ownership 4. **Start small** - Never invest more than you can afford to lose 5. **Use Risk DD** - Scan tokens before investing 6. **Monitor for changes** - Set up alerts for liquidity movements ## Related Concepts * [Honeypots](/glossary/honeypots) - Tokens that prevent selling * [Liquidity Risks](/glossary/liquidity-risks) - Understanding liquidity dangers * [Snipers & Bundlers](/glossary/snipers-bundlers) - Launch manipulation # Snipers & Bundlers Source: https://docs.webacy.com/glossary/snipers-bundlers Learn how snipers and bundlers manipulate token launches by front-running liquidity adds, dumping on retail buyers, and inflating early holder counts. ## Overview **Snipers** and **bundlers** are traders who use automated tools to gain unfair advantages during token launches. They acquire large positions before regular users can participate, often leading to price manipulation and losses for retail traders. > [!WARNING] > > Tokens with high sniper or bundler activity at launch often experience rapid price dumps. Check holder analysis before investing in newly launched tokens. ## Snipers ### What They Do * Monitor mempool for new token deployments * Execute buy transactions in the same block as liquidity addition * Pay high gas fees to front-run other buyers * Acquire tokens at the lowest possible price ### How They Operate 1. **Detection**: Bot monitors for `addLiquidity` transactions 2. **Front-running**: Submit buy with higher gas fee 3. **Acquisition**: Get tokens before price moves up 4. **Exit**: Sell into retail buying pressure ### Impact * Regular buyers pay higher prices * Snipers dump on later entrants * Creates immediate sell pressure ## Bundlers ### What They Do * Bundle multiple transactions into a single block * Often use private mempools (e.g., Flashbots) * Coordinate token launch + immediate purchases * Can control significant supply from block 0 ### How They Operate 1. **Preparation**: Create multiple wallets 2. **Bundling**: Package launch + buys together 3. **Execution**: All transactions in one block 4. **Distribution**: Spread holdings across wallets ### Impact * Supply concentration from first block * Artificial holder count inflation * Coordinated dump capability ## Detection Indicators | Tag | Severity | Description | | - | - | - | | `has_been_sniped` | Medium | Token was sniped at launch | | `bundled_token` | High | Token launch was bundled | ### Holder Analysis Tags | Tag | Description | | - | - | | Sniper percentage | % of supply held by identified snipers | | Bundler percentage | % of supply from bundled transactions | | Block 0 holders | Wallets that bought in the launch block | ## API Example ```bash theme={null} # Get holder analysis for a token curl -X GET "https://api.webacy.com/holder-analysis/So111...?chain=sol" \ -H "x-api-key: YOUR_API_KEY" ``` > [!NOTE] > > Early holder analysis covers Solana tokens launched within the last 12 months and BSC tokens deployed within the last 3 months (data provider retention). Older tokens return `data_availability: "unsupported_token_age"`; previously analyzed tokens continue to return stored results. Response example: ```json theme={null} { "totalHolders": 1250, "analysis": { "sniperPercentageHolding": 35.5, "bundlerPercentageHolding": 22.3, "top10HoldersPercentage": 68.2, "block0Holders": 8, "block0Percentage": 45.0 }, "flags": [ { "tag": "has_been_sniped", "severity": "medium" }, { "tag": "bundled_token", "severity": "high" } ] } ``` ## Red Flags at Launch | Indicator | Risk Level | | - | - | | >30% sniper holdings | High | | >20% bundler holdings | High | | >50% in block 0 | Critical | | Fewer than 10 unique block 0 wallets | Suspicious | | Rapid holder count increase then plateau | Manipulation | ## Protection Strategies 1. **Wait before buying** - Let initial volatility settle 2. **Check holder analysis** - Use our [Holder Analysis](/api-reference/holder-analysis/get-detailed-early-holder-analysis-for-a-token) endpoint 3. **Monitor distribution changes** - Healthy tokens show gradual distribution 4. **Verify team holdings** - Transparent teams disclose their wallets 5. **Watch for coordinated sells** - Snipers often dump together ## Legitimate vs Malicious Not all early buyers are malicious: **Legitimate Early Buyers:** * Team/investor allocations (disclosed) * Presale participants * Community members with advance notice **Malicious Actors:** * Undisclosed insider wallets * MEV bots with no project relationship * Coordinated dump groups # Tax Tokens Source: https://docs.webacy.com/glossary/tax-tokens Learn how tax tokens use buy, sell, and transfer fees, when transaction taxes are legitimate, and how malicious owners exploit hidden fee mechanisms. ## Overview **Tax tokens** implement transaction fees (taxes) on buys, sells, or transfers. While some taxes are legitimate (funding development, marketing, or liquidity), malicious tokens use extreme or hidden taxes to steal from traders. > [!WARNING] > > Always check a token's buy and sell taxes before trading. Taxes can be modified at any time by malicious owners. ## How Tax Tokens Work 1. **Tax Implementation**: Contract includes fee logic on transfers 2. **Fee Collection**: Percentage taken on each buy/sell/transfer 3. **Distribution**: Fees go to designated wallets or contracts 4. **Legitimate Use**: Fund development, marketing, burns, reflections 5. **Malicious Use**: Drain trader funds through excessive fees ## Types of Token Taxes ### Buy Tax * Fee charged when purchasing the token * Typically ranges from 0-10% for legitimate tokens * Malicious tokens may have hidden or extreme buy taxes ### Sell Tax * Fee charged when selling the token * Often higher than buy tax in legitimate tokens * Extreme sell taxes can trap funds (soft honeypot) ### Transfer Tax * Fee on wallet-to-wallet transfers * Can prevent normal token movement * Often used to trap funds ### Dynamic Tax * Tax rates that change based on conditions * Can start low and increase dramatically * Often used in "stealth" scams ## Detection Indicators | Tag | Severity | Description | | - | - | - | | `high_buy_tax` | High | Buy tax exceeds normal range | | `high_sell_tax` | High | Sell tax exceeds normal range | | `modifiable_tax` | Medium | Owner can change tax rates | | `hidden_tax` | Critical | Undisclosed fees in contract | | `tax_can_exceed_threshold` | High | Tax can be set extremely high | ## Tax Thresholds | Tax Range | Risk Level | Notes | | - | - | - | | 0-5% | Low | Standard range for most tokens | | 5-10% | Medium | Higher but can be legitimate | | 10-20% | High | Unusual, verify project legitimacy | | 20%+ | Critical | Likely scam or soft honeypot | ## API Example ```bash theme={null} curl -X GET "https://api.webacy.com/tokens/0x123...?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` Response showing tax risks: ```json theme={null} { "overallRisk": 75.0, "issues": [ { "tag": "high_sell_tax", "severity": "high", "description": "Sell tax of 25% detected" }, { "tag": "modifiable_tax", "severity": "medium", "description": "Owner can modify tax rates" } ] } ``` ## Red Flags * **Asymmetric taxes** - Low buy tax, high sell tax (soft honeypot) * **Modifiable taxes** - Owner can change rates after launch * **Hidden taxes** - Fees not mentioned in documentation * **Increasing taxes** - Rates go up over time * **Transfer taxes** - Unusual for legitimate tokens * **Complex fee structures** - Multiple or stacking fees ## Tax Manipulation Tactics ### Bait and Switch * Launch with 0% tax to attract buyers * Increase taxes after significant volume * Trap existing holders with high sell fees ### Stealth Increase * Gradual tax increases over time * Each increase seems small * Cumulative effect traps funds ### Conditional Taxes * Different rates for different wallets * Insiders exempt from taxes * Regular users pay full fees ## Protection Strategies 1. **Check current taxes** - Verify buy and sell rates before trading 2. **Review tax modifiability** - Can owner change rates? 3. **Monitor for changes** - Watch for tax updates post-purchase 4. **Read the contract** - Look for hidden fee mechanisms 5. **Start small** - Test with small amounts first 6. **Set slippage carefully** - Account for taxes in slippage settings ## Calculating Actual Costs When trading tax tokens: ```text theme={null} Actual received = Amount × (1 - buy_tax) × (1 - sell_tax) Example: 10% buy tax, 15% sell tax $100 purchase → $90 after buy tax $90 sell → $76.50 after sell tax Total loss: $23.50 (23.5%) ``` ## Related Concepts * [Honeypots](/glossary/honeypots) - Tokens that prevent selling entirely * [Rug Pulls](/glossary/rug-pulls) - Complete liquidity removal * [Hidden Balance Update](/glossary/hidden-balance-update) - Manipulated balances # Threats and Labels Source: https://docs.webacy.com/glossary/threats-and-labels Overview of Webacy threat categories and risk labels covering rugpulls, honeypots, reentrancy, drainers, and other smart contract security issues. ## Overview The Webacy API categorizes smart contract threats into six primary categories, ranging from noteworthy characteristics to serious safety concerns. ## Threat Categories ### 1. Rugpull Abandoned projects or intentionally deceptive smart contracts designed to enable theft of funds. **Key Mechanisms:** | Type | Description | | - | - | | **Drain** | Contracts that steal assets from hot wallets through reentrancy vulnerabilities | | **Honeypot** | Contracts that promise asset transfers but execute rugpulls once funds accumulate | **Associated Risk Tags:** * Reentrancy variants (1, 3, 4) * Unchecked low-level calls * Looped calls (DoS potential) *** ### 2. Asset Value Attack Manipulation tactics that cause sudden price changes for existing token holders. **Attack Types:** | Type | Description | | - | - | | **Supply manipulation** | Hidden minting functions or absent multi-signature controls | | **Price manipulation** | Flash loan attacks affecting asset valuations | **Associated Risk Tags:** * Reentrancy variants * Unchecked calls * Faulty calculations * Uninitialized variables * Hidden mint functions *** ### 3. Third-Party Dependency Vulnerabilities from off-chain data feeds (oracles, pricing information) that aren't properly decentralized. **Risks:** * Artificial buy/sell conditions * Price oracle manipulation * Single points of failure *** ### 4. Code Mutability Upgradeable contracts that may introduce behavioral changes over time. **Concerns:** * Proxy patterns allowing logic replacement * Admin-controlled upgrades * Lack of timelock mechanisms *** ### 5. Backdoor Administrative functions that can be misused to bypass security measures. **Examples:** * Hidden owner functions * Pausable transfers * Blacklist/whitelist manipulation * Emergency withdrawal functions *** ### 6. Combined Risks Complex vulnerabilities combining multiple categories: * Low-level calls with shadowed implementations * Unauthorized administrator access * Nested proxy patterns ## Using Threat Categories When evaluating risk, consider: 1. **Severity** - Rugpull and Asset Value Attack are highest severity 2. **Likelihood** - Code Mutability and Backdoor are common but not always malicious 3. **Context** - Third-Party Dependency risk varies by oracle quality ```javascript theme={null} function categorizeRisk(issues) { const critical = issues.filter(i => ['drain', 'honeypot', 'hidden_mint'].includes(i.tag) ); const high = issues.filter(i => ['reentrancy', 'unchecked_call', 'backdoor'].includes(i.tag) ); return { critical, high }; } ``` # Unchecked Low Level Calls Source: https://docs.webacy.com/glossary/unchecked-calls Detect unchecked low-level call vulnerabilities in Solidity where ignored return values cause silent failures, lost funds, and corrupted contract state. ## Overview Unchecked low-level calls occur when Solidity's low-level functions (`call`, `delegatecall`, `staticcall`) are used without properly verifying their return values. > [!WARNING] > > Failed low-level calls return `false` instead of reverting. If not checked, transactions appear successful while silently failing. ## The Risk Low-level calls in Solidity don't automatically revert on failure. If the return value isn't checked: * Funds can be "sent" but never arrive * State changes occur based on failed operations * Users lose assets without error messages ## Vulnerable Patterns ### Unchecked Call ```solidity theme={null} // VULNERABLE: Return value ignored function withdraw(uint256 amount) public { balances[msg.sender] -= amount; payable(msg.sender).call{value: amount}(""); // Silent failure! } ``` ### Unchecked Delegatecall ```solidity theme={null} // VULNERABLE: Delegatecall without check function upgrade(address impl) public onlyOwner { impl.delegatecall(abi.encodeWithSignature("initialize()")); } ``` ### Unchecked Transfer ```solidity theme={null} // VULNERABLE: ERC20 transfer without check function distribute(address token, address[] memory recipients) public { for (uint i = 0; i < recipients.length; i++) { IERC20(token).transfer(recipients[i], 100); // May fail silently } } ``` ## Safe Patterns ### Check Return Value ```solidity theme={null} // SAFE: Explicit check function withdraw(uint256 amount) public { balances[msg.sender] -= amount; (bool success, ) = payable(msg.sender).call{value: amount}(""); require(success, "Transfer failed"); } ``` ### Use SafeERC20 ```solidity theme={null} // SAFE: SafeERC20 library import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; using SafeERC20 for IERC20; function distribute(address token, address[] memory recipients) public { for (uint i = 0; i < recipients.length; i++) { IERC20(token).safeTransfer(recipients[i], 100); // Reverts on failure } } ``` ### Use Transfer/Send (Limited) ```solidity theme={null} // SAFE: transfer() reverts on failure (but limited gas) function withdraw(uint256 amount) public { balances[msg.sender] -= amount; payable(msg.sender).transfer(amount); // Reverts if fails } ``` ## Detection Tags | Tag | Description | | - | - | | `unchecked_call` | `call()` return value not verified | | `unchecked_delegatecall` | `delegatecall()` return value not verified | | `unchecked_send` | `send()` return value not verified | | `unchecked_transfer` | ERC20 `transfer()` return not verified | ## API Response Example ```json theme={null} { "issues": [ { "tag": "unchecked_call", "severity": "high", "description": "Low-level call without return value check", "location": "withdraw(uint256):L45" } ] } ``` ## Why Low-Level Calls? Despite risks, low-level calls are sometimes necessary: | Method | Gas Forwarded | Reverts on Failure | | - | - | - | | `transfer()` | 2300 | Yes | | `send()` | 2300 | No (returns bool) | | `call()` | All available | No (returns bool) | > [!NOTE] > > `transfer()` and `send()` forward only 2300 gas, which may not be enough for receiving contracts with complex fallback functions. # Wash Trading Source: https://docs.webacy.com/glossary/wash-trading Learn how wash trading inflates crypto token volume using coordinated wallets, why it signals manipulation, and how Webacy detects wash trade patterns. ## Overview **Wash trading** is a form of market manipulation where an entity simultaneously buys and sells the same asset to create artificial trading volume. This deceptive practice makes tokens appear more liquid and actively traded than they actually are. > [!WARNING] > > Wash trading is illegal in regulated markets and a major red flag in crypto. Projects engaging in wash trading often collapse once the artificial volume stops. ## How It Works 1. **Setup**: Trader controls multiple wallets 2. **Execution**: Buys token from one wallet, sells from another 3. **Appearance**: Creates fake volume and price movements 4. **Deception**: Attracts legitimate traders who see "activity" ## Detection Indicators The Webacy API identifies wash trading through pattern analysis: | Tag | Severity | Description | | - | - | - | | `wash_trading` | High | Address has engaged in wash trading patterns | | `automated_trading` | Medium | Bot-like trading behavior detected | ## Common Patterns ### Volume Inflation * Sudden spikes in volume with no corresponding news * Volume/market cap ratios far above industry norms * Trading activity concentrated among few wallets ### Price Manipulation * Prices held artificially stable despite low real liquidity * Coordinated buy/sell walls * Circular transaction patterns ## Why It Matters * **Fake liquidity**: Real traders may not be able to exit positions * **Price discovery failure**: True market value is obscured * **Pump and dump setup**: Often precedes major sell-offs * **Regulatory risk**: Increasingly targeted by enforcement ## API Example ```bash theme={null} curl -X GET "https://api.webacy.com/addresses/0x123...?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` Response indicating wash trading: ```json theme={null} { "overallRisk": 78.5, "issues": [ { "tag": "wash_trading", "severity": "high", "description": "Address has engaged in wash trading" } ] } ``` ## Protection Strategies 1. **Check holder analysis** - Use the [Holder Analysis](/api-reference/holder-analysis/get-detailed-early-holder-analysis-for-a-token) endpoint to identify concentration 2. **Verify volume sources** - Cross-reference volume across multiple DEXs 3. **Look for organic growth** - Legitimate projects show gradual, sustainable growth 4. **Monitor transaction patterns** - Circular transactions are a red flag # Stablecoin Graveyard: Defunct and Depegged Tokens Source: https://docs.webacy.com/graveyard Registry of defunct, depegged, and discontinued stablecoins, excluded from live metrics but kept for historical research and depeg pattern recognition. The Graveyard is a registry of defunct, depegged, and discontinued stablecoins. These tokens are excluded from the main overview to avoid skewing risk metrics, but remain accessible for historical research and pattern recognition. # What gets added A token enters the Graveyard when it meets one or more of these criteria: * **Circulating supply = \$0** — the issuer has wound down the contract or all tokens have been burned. * **Persistent depeg** — the token has traded significantly below its peg for an extended period with no recovery path. * **Issuer discontinued** — the issuer has publicly deprecated the token (e.g. BUSD after Paxos stopped minting). * **Protocol collapse** — the backing mechanism failed catastrophically (e.g. Terra/UST, Iron Finance). # Failure types | **Type** | **Description** | **Examples** | | :- | :- | :- | | algo\_collapse | Algorithmic mechanism broke — death spiral or bank run depleted reserves. | UST, ESD, Iron Finance | | depeg | Persistent price break without full recovery, often with remaining supply. | MIM (partial), BEAN | | discontinued | Issuer voluntarily ceased minting; tokens still circulate at reduced liquidity. | BUSD, HUSD | | exploit | Smart contract exploit drained backing or minted unbacked tokens. | Various bridge tokens | | regulatory | Regulatory action forced shutdown or redemption freeze. | Various | # Column definitions | **Column** | **Description** | | :- | :- | | **Peak / Cause / Year** | Peak market cap when the token was alive, the failure type label, and the year it failed. | | **Supply** | \$0 / dead = contract wound down. Otherwise shows remaining circulating supply. | | **Current Price** | Last oracle price. 'Stale oracle' = trading stopped; the displayed price is frozen at last trade, not live. | | **Original Peg** | The peg the token was designed to track (usually \$1.00). | | **Loss** | Percentage loss from peg: (peg − price) / peg × 100. Dead tokens show '—'. | # Can tokens leave the Graveyard? Rarely. A token is reinstated to the main overview only if: the peg is fully restored with genuine market liquidity, the original protocol resumes operation (not a rebranded successor), and the supply returns to a meaningful level. In practice, once a token enters the Graveyard it stays — the data serves as a permanent historical record. # Why keep tracking dead tokens? * Historical price data from failed tokens trains and validates the depeg risk model. * The warning signs (liquidity erosion, supply velocity, pool imbalance) appear in Graveyard tokens days to weeks before collapse — the same signals PCS monitors today. * These historical failures are a reminder of the stakes of stablecoin risk monitoring. # Hedera Support Source: https://docs.webacy.com/hedera Explore Hedera blockchain risk analysis with Token Service (HTS) checks, admin key detection, custom fees, and account status monitoring via Webacy. ## Overview The Webacy API provides risk assessment for the Hedera blockchain ecosystem. Analyze Hedera accounts, tokens, and transactions for security threats, malicious activity, and risk factors. > [!NOTE] > > Hedera support includes native Hedera Token Service (HTS) analysis with admin key detection, custom fee analysis, and account status monitoring. ## Supported Endpoints ### Address Risk Analysis Analyze any Hedera account for security threats and risk factors. Sanction checks are included in the response. ```bash theme={null} GET /addresses/{address}?chain=hedera ``` ### Transaction Risk Analysis Analyze a specific Hedera transaction for risk indicators. ```bash theme={null} GET /transactions/{txHash}?chain=hedera ``` ### Holder Analysis Analyze token holder distribution and detect suspicious activity for HTS tokens. ```bash theme={null} GET /holder-analysis/{address}?chain=hedera ``` ## Address Formats Hedera supports two address formats: | Type | Format | Example | | - | - | - | | Native | `0.0.X` (shard.realm.num) | `0.0.731861` | | EVM Long-Zero | 0x + 24 zeros + hex | `0x00000000000000000000000000000000000b2ad5` | Both formats are accepted across all Hedera endpoints. > [!WARNING] > > For holder analysis, use the native HTS token ID format (`0.0.X`), for example `0.0.731861`. ## Transaction ID Formats Hedera transaction IDs use a unique format with the payer account and timestamp: | Format | Example | | - | - | | `-` separator | `0.0.3229-1769183809-123000647` | | `@` separator | `0.0.3229@1769183809.123000647` | | Transaction hash | Base64-encoded hash | All three formats are accepted by the transactions endpoint. ## Example Requests ### Address Risk Analysis ```bash theme={null} curl -X GET "https://api.webacy.com/addresses/0.0.731861?chain=hedera" \ -H "x-api-key: YOUR_API_KEY" ``` ### Transaction Risk Analysis ```bash theme={null} curl -X GET "https://api.webacy.com/transactions/0.0.3229-1769183809-123000647?chain=hedera" \ -H "x-api-key: YOUR_API_KEY" ``` ### Holder Analysis ```bash theme={null} curl -X GET "https://api.webacy.com/holder-analysis/0.0.731861?chain=hedera" \ -H "x-api-key: YOUR_API_KEY" ``` ## Hedera-Specific Risk Tags ### Token Risk Tags These risk tags analyze HTS token admin keys, fees, and state: | Tag | Severity | Description | | - | - | - | | `hedera-token-has-freeze` | Critical | Token has an active freeze key. Issuer can freeze any holder's balance. | | `hedera-token-has-wipe` | Critical | Token has an active wipe key. Issuer can wipe tokens from any account. | | `hedera-token-pausable` | Critical | Token has an active pause key. Issuer can pause all token operations. | | `hedera-token-currently-paused` | Critical | Token is currently paused. No transfers or operations are possible. | | `hedera-token-excessive-fees` | Critical | Custom fee percentage exceeds 25%. Strong honeypot indicator. | | `hedera-token-high-fees` | High | Custom fee percentage exceeds 10%. May indicate a fee-based trap. | | `hedera-token-has-supply-key` | Medium | Token has an active supply key with no max supply cap. Issuer can mint unlimited tokens. | | `hedera-token-modifiable-fees` | Medium | Token fees can be changed by the issuer via fee schedule key. | | `hedera-token-keys-renounced` | Positive | All admin keys have been renounced. Token is fully decentralized. | ### Account Risk Tags | Tag | Severity | Description | | - | - | - | | `hedera-account-deleted` | High | Account has been deleted from the network. | | `hedera-account-expired` | High | Account has expired due to insufficient HBAR for rent. | | `hedera-account-expiring-soon` | Low | Account expiry timestamp is approaching. | ## Additional Risk Tags Standard risk tags also apply to Hedera addresses: * `sanctioned` - Address appears on sanction lists (OFAC, OpenSanctions) * `insufficient_wallet_age` - Account is very new * `insufficient_wallet_balance` - Low account balance * `insufficient_wallet_transactions` - Limited transaction history * Holder concentration tags (top holders owning significant percentages) ## Example Responses ### Transaction Risk Response ```json theme={null} [ { "partyRisk": { "high": 1, "count": 2, "issues": [ { "tags": [ { "key": "hedera-account-expired", "name": "Account Expired", "type": "hedera_account_status_risk", "severity": 8, "description": "This Hedera account has expired due to insufficient HBAR for rent." } ], "score": 8, "riskScore": "High Risk" } ], "medium": 0, "details": { "address_info": { "balance": 370969324948, "sanctioned": false, "ofac_sanctioned": false, "transaction_count": 0, "hedera_account_expired": true } }, "overallRisk": 63.24, "address": "0.0.3229" }, "counterpartyRisk": { "high": 0, "count": 1, "overallRisk": 0, "address": "0.0.801" }, "assetRisk": { "address": "HBAR" }, "txData": { "transaction_id": "0.0.3229-1769183809-123000647", "consensus_timestamp": "1769183819.484953000", "type": "CRYPTOTRANSFER", "result": "SUCCESS", "fee_charged": 94133, "scheduled": false, "transfers": [ { "account": "0.0.801", "amount": 90309 }, { "account": "0.0.3229", "amount": -94134 } ], "token_transfers": [], "nft_transfers": [] } } ] ``` ### Holder Analysis Response ```json theme={null} { "token_address": "0.0.731861", "metadata": { "name": "SAUCE", "symbol": "SAUCE" }, "first_buyers_analysis": { "initially_acquired_percentage": 2.29, "buyers_analyzed_count": 48, "unique_buyers": 48, "buyers_still_holding": 37, "dev_holdings_percentage": 0.7 }, "top_10_holders_analysis": { "totalHoldersCount": 33050, "topHolders": [ { "ownerAddress": "0.0.1460199", "percentage": 15.24 }, { "ownerAddress": "0.0.3951117", "percentage": 14.88 }, { "ownerAddress": "0.0.1461945", "percentage": 12.52 } ], "top_5_concentration": 68.94, "top_10_concentration": 73.61, "top_20_concentration": 79.49 }, "token_keys": { "admin_key_present": true, "freeze_key_present": false, "wipe_key_present": false, "pause_key_present": false, "supply_key_present": true, "kyc_key_present": false, "fee_schedule_key_present": false }, "custom_fees": [], "pause_status": "UNPAUSED", "is_deleted": false } ``` ## Holder Analysis Details Hedera holder analysis includes features specific to the Hedera Token Service: * **Token admin keys analysis** - Checks for admin, freeze, wipe, pause, supply, KYC, and fee schedule keys * **Custom fee schedules** - Detects fixed fees, fractional fees, and royalty fees on tokens * **Pause status** - Whether the token is currently paused (`PAUSED`, `UNPAUSED`, or `NOT_APPLICABLE`) * **No MEV/sniper detection** - Hedera has deterministic transaction ordering, so sniper and bundling analysis is excluded ## Best Practices 1. **Check token admin keys** - Tokens with active freeze, wipe, or pause keys carry higher risk. Look for `hedera-token-keys-renounced` as a positive signal. 2. **Watch for custom fees** - High or excessive custom fees (>10%) are a common honeypot pattern on Hedera. 3. **Use native format for tokens** - Use the `0.0.X` HTS token ID format for holder analysis rather than EVM addresses. 4. **Account status matters** - Check for deleted or expired accounts before transacting. 5. **No MEV on Hedera** - Unlike EVM chains, Hedera has deterministic transaction ordering, so sniper/bundler detection is not applicable. ## What's Next > [card] [Data Freshness](/data-freshness) > > Learn how Webacy continuously updates risk intelligence as blockchain conditions change in real time. # Historical Analysis Source: https://docs.webacy.com/historical-analysis How Webacy mines historical onchain data on exploits, depegs, freezes, and governance failures to train risk detection and surface recurring attack patterns. While real-time monitoring is essential for identifying emerging risks, historical analysis provides the context needed to understand **why** those risks occur and **how** they evolve over time. The Webacy Risk Framework continuously learns from historical blockchain events, enabling new threats to be evaluated against years of observed market behavior, protocol failures, malicious activity, and operational incidents. Every major event contributes to improving the framework's methodologies, risk factors, and detection engines. ## Learning From the Blockchain Blockchain is one of the few financial systems where nearly every action is permanently recorded. This historical transparency allows Webacy to study how risks develop over time, from the earliest warning signs through the final outcome, and identify patterns that can be incorporated into future analyses. Rather than treating incidents as isolated events, Webacy continuously expands its knowledge base to recognize similar behaviors across new assets, protocols, and market conditions. ## Address Freeze Intelligence One example of this historical intelligence is Webacy's [**Address Freeze Tracker**](https://dapp.webacy.com/rwa?tab=freeze). Many centralized issuers maintain the ability to freeze assets in response to fraud, sanctions, theft, legal orders, or compliance actions. Webacy continuously monitors these events to understand how and when freezes occur, which entities are affected, and how these patterns evolve across issuers and ecosystems. Beyond simply recording freeze events, this historical dataset helps identify recurring behaviors, improve compliance intelligence, and strengthen future risk assessments. ## The Graveyard The Webacy [**Asset Graveyard**](https://dapp.webacy.com/rwa?tab=graveyard) documents digital assets that have failed due to exploits, depegs, insolvencies, governance failures, liquidity crises, fraud, abandonment, or other catastrophic events. For each asset, Webacy captures both the outcome and the sequence of events that led to it. By studying these historical failures, the Risk Framework continuously improves its ability to identify similar structural weaknesses before they develop into larger incidents. ## Continuous Learning Historical analysis is an active part of the Webacy Risk Framework. Every significant blockchain event, from exploits and depegs to governance failures and compliance actions, is analyzed to identify patterns that strengthen future risk detection. As the ecosystem evolves, these insights continuously improve our risk factors, detection engines, and scoring methodologies, making the platform smarter with every event it observes. ## What's Next > [card] [Engines](/wallet-screening) > > Discover the core intelligence engines that transform blockchain data into actionable risk intelligence. # Holder Concentration Index (HCI) Methodology Source: https://docs.webacy.com/holder-concentration How Webacy measures, classifies, and uses on-chain holder concentration data for stablecoins and RWA tokens to assess structural depeg and centralization risk. On-chain concentration data for our stablecoin universe. # What is it? The **Holder Concentration Index (HCI)** measures how much of a token's supply (total supply, as the holder data source reports it) is held by a small group of wallets. When a handful of addresses control most of the supply, you face amplified depeg risk if those holders sell simultaneously. For each token, you get data across two cohorts: | Cohort | What it captures | | :- | :- | | **Top 10** | Share concentration among the 10 largest non-contract, non-exchange wallets | | **Top 30** | Broader view of whale concentration (when available) | Each cohort gives you these fields, each with one fixed meaning: * **`index`** — excess concentration (0–1): for `source: holders`, the share of supply the top-N **organic** holders hold, minus the share they would hold if supply were spread evenly (N ÷ holder count), floored at 0; for `source: aggregate`, the same calculation on the raw top-N share (no per-holder data, so contracts cannot be excluded). Organic means exchange, bridge and pool wallets and every contract holder (staking vaults, lending markets, bridges) are excluded. Nothing is subtracted when a token has N holders or fewer, so a single-holder token reads 1. * **`topSharePct`** — the share of supply held by those organic top-N holders, in percent (0–100). Always the organic share; `0` when every top-N holder is a protocol contract, `null` when `source` is `aggregate`. For widely held tokens it reads close to `index × 100`; the two differ when the even-spread baseline is material (tokens with few holders). * **`rawTopSharePct`** — the share of supply held by the top-N holders with every holder counted (protocol contracts, exchanges and bridges included), in percent. Compare with `topSharePct` to see how much of the top-N is protocol inventory: crvUSD reads ≈ 0.1% organic against ≈ 78% raw. `null` on snapshots produced before the pipeline published it, except older cohorts whose legacy share was the raw one (see the note below). * **`source`** — `holders` when the cohort was computed from the fetched per-holder list (up to 50 holders), `aggregate` when it fell back to the data source's top-N totals (no per-holder data, so `topSharePct` is `null` and `index` is computed from the raw share). `null` on snapshots that predate the field. * **`riskBand`** — categorical classification of `index` (see below). * **`note`** — present when the cohort needs a caveat. `all_top_n_are_protocol_contracts_organic_low` means every top-N holder is a protocol contract: `index` and `topSharePct` are 0 and `rawTopSharePct` carries the protocol-held share. When `top30` is `null`, `holderConcentration.top30NullReason` says why: `organic_cohort_not_larger_than_top10` (at most 10 of the 50 largest holders are organic — the organic top-30 would be the same wallets as the organic top-10, and organic holders 11–30 sit below the fetched list), `fewer_than_30_holders_fetched`, or `no_top30_aggregate`. > [!NOTE] > > **Field meanings changed once.** Before the pipeline published `rawTopSharePct`, `topSharePct` carried the *raw* share whenever `note` was set or the cohort came from aggregate totals, so a token moving between cases (crvUSD, 78% → 0.1% on 2026-09-30) changed the field's meaning under the same name. `topSharePct` is now always organic; the raw share lives in `rawTopSharePct` once the pipeline publishes it. The API resolves the older rows to the same contract — all-contracts cohorts to `topSharePct` 0, aggregate-sourced cohorts to `topSharePct` `null`, each with the legacy value in `rawTopSharePct` — on the list and on `GET /rwa/hci/history` alike, so the series reads with one meaning; other older points have `rawTopSharePct` / `top10RawTopPct` `null`. # Risk Bands `riskBand` is derived from the `index` field: | Band | `index` range | Interpretation | | :- | :- | :- | | `low` | \< 0.2 | Broadly distributed — whale exit unlikely to move the market | | `medium` | 0.2 – 0.4 | Moderate concentration — worth watching for large transfers | | `high` | 0.4 – 0.6 | Concentrated — a few exits could cause meaningful price impact | | `extreme` | ≥ 0.6 | Highly concentrated — single-whale sell events pose significant depeg risk | You'll find the derivation thresholds in every API response as `meta.riskBandThresholds`, so you can verify classification without consulting external docs. > [!NOTE] > > **HCI and depeg risk are complementary signals.** A token can have a low Depeg Monitor score (price is stable today) but an `extreme` HCI (a handful of holders control most of the supply). The HCI surfaces latent structural risk that depeg price metrics miss until it materializes. # How HCI Affects the Risk Rating HCI feeds directly into the **Structural risk component** of the [Risk Rating](/safety-grade). The Risk Rating reads the top-10 `index` (`hci_10`) — the same number `riskBand` is derived from, and present on `source: aggregate` cohorts too — and deducts points from the structural score: | Condition | top-10 `index` | Deduction | | :- | :- | :- | | Extreme concentration | ≥ 0.50 | −15 pts | | High concentration | 0.30 – 0.50 | −10 pts | | Medium concentration | 0.10 – 0.30 | −5 pts | | Low concentration | \< 0.10 | 0 | > [!NOTE] > > HCI deductions are **exempt for the `fiat_reserve` and `rwa` peg mechanisms**: their holders redeem at par or NAV with the issuer, so there is no exit-dump amplification risk. The exception is RWA tokens curated as non-redeemable (private-credit, bond or lending-market positions), whose holders exit into the market — they keep the deduction. Crypto-collateral, delta-neutral and algorithmic tokens face real cascade risk from concentrated exits. A token with no HCI data (`index` missing) is **not** penalised — the Risk Rating record marks the gap (`hci_data_missing`) instead of scoring it. Note the different cut-offs: the API's `riskBand` uses 0.2 / 0.4 / 0.6 on `index`, while the Risk Rating deduction uses 0.10 / 0.30 / 0.50 on the same `index`. A token can therefore sit in the `low` API band (`index` 0.15) and still carry a −5 structural deduction. # Filters and Sorting | Parameter | Type | Description | | :- | :- | :- | | `chain` | string | Filter to a single chain. Holder data covers `eth`, `arb`, `base`, `opt`, `pol` and `bsc`; other supported chains return an empty list, and unrecognized values return 400. | | `riskBand` | enum | Return only tokens whose **top-10** band matches (`low` / `medium` / `high` / `extreme`). Case-sensitive. | | `minTop10Index` | number (0–1) | Minimum top-10 HCI index. E.g. `0.4` returns tokens in the `high` and `extreme` top-10 bands only. | | `sort` | enum | `top10Index` (default) · `top30Index` · `holderCount` · `symbol` · `chain` | | `order` | enum | `desc` (default) · `asc` | | `page` / `pageSize` | integer | Default page size 50, max 500. | ### `byRiskBand` counts `meta.byRiskBand` counts top-10 bands **before** the `riskBand` filter, but after `chain` and `minTop10Index`. With no `chain` / `minTop10Index`, that's the full ecosystem breakdown (how many tokens are `extreme` right now?) even while you view a filtered subset. `meta.totalUnfiltered` is the record count at the same point. # Common Use Cases | Goal | Parameters | | :- | :- | | Tokens with highest concentration risk | `sort=top10Index&order=desc` | | Extreme-band tokens on Ethereum only | `chain=eth&riskBand=extreme` | | Tokens with high+ top-10 concentration index | `minTop10Index=0.4` | | Sort alphabetically for a token picker | `sort=symbol&order=asc` | | Ecosystem risk snapshot (band distribution) | Any request — read `meta.byRiskBand` | # Webacy API reference for AI coding agents Source: https://docs.webacy.com/integrations/agent-reference Self-contained Webacy API reference for AI coding agents like Claude Code, Cursor, and Copilot, with endpoints, parameters, and ready-to-paste examples. This page is a dense, self-contained reference designed for AI coding agents (Claude Code, Cursor, GitHub Copilot, etc.). Copy this into your `CLAUDE.md`, `.cursorrules`, or agent system prompt so the AI can generate correct Webacy API integration code without additional lookups. ## Setup ### Claude Code Add to your project's `CLAUDE.md`: ```markdown theme={null} ## Webacy API See the full agent reference at: https://docs.webacy.com/integrations/agent-reference ``` Or paste the content of this page directly into `CLAUDE.md` for offline access. ### Cursor Add to your `.cursorrules` file: ```text theme={null} When working with the Webacy API, refer to: https://docs.webacy.com/integrations/agent-reference ``` Or add `https://docs.webacy.com` as a doc source in Cursor Settings > Features > Docs. ### Other Agents Include this page's content in any system prompt, context window, or retrieval source your agent uses. *** ## Authentication & Base URL ```text theme={null} Base URL: https://api.webacy.com Auth Header: x-api-key: YOUR_API_KEY ``` Requests authenticated with an API key must include the `x-api-key` header. Get a key at [developers.webacy.co](https://developers.webacy.co/). Alternatively, supported endpoints can be called keylessly by paying per request with [x402](/x402-payments) (USDC on Base), which is well suited to autonomous agents that pay as they go. ```bash theme={null} curl -X GET "https://api.webacy.com/addresses/{address}?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` *** ## Endpoint Reference ### Risk DD Endpoints | Method | Path | Description | Chains | | - | - | - | - | | `GET` | `/addresses/{address}` | Threat risks for any address (wallet, token, or contract) | `eth` `pol` `opt` `arb` `base` `bsc` `sol` `sei` `sui` `stellar` `hedera` `btc` | | `GET` | `/contracts/{contractAddress}` | Real-time smart contract risk analysis | `eth` `pol` `opt` `arb` `base` `bsc` | | `GET` | `/contracts/{contractAddress}/code-analysis` | Detailed contract code analysis | `eth` `pol` `opt` `arb` `base` `bsc` | | `GET` | `/source-code/{contractAddress}` | Contract source code retrieval | `eth` `pol` `opt` `arb` `base` `bsc` | | `GET` | `/tokens/{tokenAddress}` | Comprehensive token risk analysis | `eth` `base` `bsc` `pol` `opt` `arb` `sol` `sei` `sui` `btc` | | `GET` | `/holder-analysis/{address}` | Token holder distribution and sniper detection | `eth` `pol` `opt` `arb` `base` `bsc` `sol` `stellar` `sui` `hedera` | | `POST` | `/url` | Analyze a URL for phishing/malware risks | All (not chain-specific) | | `GET` | `/transactions/{txHash}` | Risk details for a completed transaction | `eth` `base` `bsc` `pol` `opt` `sol` `arb` `stellar` `hedera` | | `GET` | `/addresses/sanctioned/{walletAddress}` | Check address against OFAC sanction lists | `eth` `pol` `opt` `arb` `base` `bsc` `sol` `sei` `sui` `stellar` `btc` | | `GET` | `/addresses/{address}/poisoning` | Detect address poisoning attacks | `eth` `pol` `opt` `arb` `base` `bsc` | | `GET` | `/addresses/{address}/approvals` | Analyze token approval risks | `eth` `pol` `opt` `arb` `base` `bsc` | | `GET` | `/contracts/taxes/{tokenAddress}` | Get buy/sell tax percentages for a token | All chains | | `GET` | `/contracts/tokens/recommendations` | Get recommended high-quality tokens | All (optional chain filter) | | `GET` | `/contracts/tokens/by-risk-level` | Get tokens filtered by risk level (low/high) | All (optional chain filter) | | `GET` | `/contracts/symbol/{symbol}` | Look up token risk data by ticker symbol | All (optional chain filter) | | `POST` | `/addresses/multisender` | Batch detect multisender/disperser contracts | All chains | | `POST` | `/batch/transactions` | Batch analyze up to 500 transactions | All chains | | `GET` | `/audits/{address}` | Get smart contract audit data | All chains | | `GET` | `/mica-report/{symbol}` | Get MiCA compliance report for a token | Not chain-specific | ### Trading DD Endpoints | Method | Path | Description | Chains | | - | - | - | - | | `GET` | `/trading-lite/{address}` | Lightweight trading risk assessment | `sol` | | `GET` | `/tokens/{tokenAddress}/pools` | Get liquidity pools for a token | `eth` `base` `bsc` `pol` `opt` `arb` `sol` `sei` `sui` `btc` | | `GET` | `/tokens/pools/{poolAddress}` | Get specific pool data | `eth` `base` `bsc` `pol` `opt` `arb` `sol` `sei` `sui` `btc` | | `GET` | `/tokens/trending` | Get trending tokens | `eth` `base` `bsc` `pol` `opt` `arb` `sol` `sei` `sui` `btc` | | `GET` | `/tokens/pools/trending` | Get trending liquidity pools | `eth` `base` `bsc` `pol` `opt` `arb` `sol` `sei` `sui` `btc` | | `POST` | `/scan/{fromAddress}/transactions` | Simulate and scan a transaction before signing | `eth` `pol` `opt` `arb` `base` `bsc` | | `POST` | `/scan/{fromAddress}/eip712` | Scan EIP-712 typed data signing requests | `eth` | ### Utility Endpoints | Method | Path | Description | | - | - | - | | `GET` | `/usage` | Get API usage for a date range | | `GET` | `/usage/current` | Get current billing period usage | | `GET` | `/usage/max-rps` | Get max requests per second | *** ## Chain Reference | Blockchain | Identifier | Address Format | | - | - | - | | Ethereum | `eth` | `0x...` (42 chars) | | Polygon | `pol` | `0x...` (42 chars) | | Optimism | `opt` | `0x...` (42 chars) | | Arbitrum | `arb` | `0x...` (42 chars) | | Base | `base` | `0x...` (42 chars) | | BSC | `bsc` | `0x...` (42 chars) | | Solana | `sol` | Base58 (32-44 chars) | | Sei | `sei` | `sei1...` or `0x...` | | Sui | `sui` | `0x...` (66 chars) | | Stellar | `stellar` | `G...` (56 chars) or `CODE:ISSUER` for tokens | | Hedera | `hedera` | `0.0.X` (native) or `0x...` (EVM) | | Bitcoin | `btc` | `bc1...`, `1...`, or `3...` | Default chain when omitted: `eth`. *** ## Response Shapes ### Address Risk (`GET /addresses/{address}`) ```json theme={null} { "count": 1, "medium": 0, "high": 0, "overallRisk": 25.99, "issues": [ { "key": "risk_tag_key", "name": "Risk Tag Name", "description": "Description of the risk", "severity": "low" } ], "isContract": false, "analyzed_at": "2026-07-07T03:06:06.986Z" } ``` * `overallRisk`: 0-100 score (higher = riskier) * `count`: Total number of risk issues found * `medium` / `high`: Count of medium/high severity issues * `analyzed_at`: ISO 8601 timestamp of the analysis. This endpoint has no `stale` flag — use `analyzed_at` as the freshness signal. Treat missing or errored data as unknown, never safe. > [!NOTE] > > Additional fields may be present including `addressType`, `details`, `context`, `deployer`, `holder_analysis`, and others. The fields shown above are the core risk assessment fields. ### Token Risk (`GET /tokens/{tokenAddress}`) ```json theme={null} { "metrics": { "current_price": 1.25, "market_cap": 500000000, "total_volume": 1000000, "date": "2025-01-15" }, "risk": { "count": 2, "medium": 1, "high": 0, "overallRisk": 42.5, "issues": [], "isContract": true }, "metadata": { "name": "Token Name", "symbol": "TKN", "contract_address": "0x...", "chain": "eth", "decimals": 18, "categories": ["defi"] } } ``` > [!NOTE] > > Access the risk score via `data.risk.overallRisk`. Risk data is nested under the `risk` key, not at the top level. ### Holder Analysis (`GET /holder-analysis/{address}`) ```json theme={null} { "token_address": "0x...", "total_holders_count": 1500, "first_buyers_analysis": { }, "top_10_holders_analysis": { }, "sniper_analysis": { }, "activity_patterns": { }, "metadata": { } } ``` > [!NOTE] > > Sub-objects vary by chain. For example, `sniper_analysis` is excluded for Hedera, and `activity_patterns` is EVM-only. ### Transaction Scan (`POST /scan/{fromAddress}/transactions`) Request body: ```json theme={null} { "to": "0xContractAddress", "data": "0xCalldata", "value": "1000000000000000000", "chain": "eth" } ``` Response: ```json theme={null} { "public_key_id": "...", "descriptor": "...", "block": 12345678, "simulation": { }, "timestamp": "2025-01-15T10:30:00Z", "chain": "eth" } ``` > [!NOTE] > > The `simulation` object is opaque and varies by transaction type. ### Sanction Check (`GET /addresses/sanctioned/{walletAddress}`) ```json theme={null} { "address": "0x...", "is_sanctioned": false, "sanctions_status": "clean" } ``` `sanctions_status` is `sanctioned`, `clean`, or `unknown`. Treat only `clean` as a clear result. If the value is `unknown`, require manual review because authoritative screening did not complete. ### URL Risk (`POST /url`) Request body: ```json theme={null} { "url": "https://example.com" } ``` Response: ```json theme={null} { "riskLevel": "low", "description": "URL is whitelisted as safe", "message": "..." } ``` > [!NOTE] > > `riskLevel` values: `"high"`, `"medium"`, `"low"`, `"unknown"`. *** ## Common Workflows ### Wallet Risk Screening Screen a wallet address before allowing a deposit, withdrawal, or interaction. ```javascript theme={null} const response = await fetch( `https://api.webacy.com/addresses/${walletAddress}?chain=eth`, { headers: { "x-api-key": API_KEY } } ); const data = await response.json(); if (data.overallRisk > 70) { console.log("HIGH RISK — block or flag for review"); } else if (data.overallRisk > 40) { console.log("MEDIUM RISK — enhanced monitoring"); } else { console.log("LOW RISK — proceed"); } ``` ### Token Due Diligence Evaluate a token before listing or trading. ```javascript theme={null} // 1. Token risk analysis const tokenRisk = await fetch( `https://api.webacy.com/tokens/${tokenAddress}?chain=eth`, { headers: { "x-api-key": API_KEY } } ).then(r => r.json()); // 2. Holder concentration check const holders = await fetch( `https://api.webacy.com/holder-analysis/${tokenAddress}?chain=eth`, { headers: { "x-api-key": API_KEY } } ).then(r => r.json()); // 3. Contract security check const contract = await fetch( `https://api.webacy.com/contracts/${tokenAddress}?chain=eth`, { headers: { "x-api-key": API_KEY } } ).then(r => r.json()); ``` ### RWA Due Diligence Diligence a tokenized real-world asset (stablecoin, tokenized treasury, money-market or private-credit fund). One call returns a per-criterion structural scorecard plus an A+→F grade. ```javascript theme={null} // 1. Structural scorecard + composite grade (audits, mint cap, multisig, timelock, // collateral stability, holder concentration, liquidity depth) const grade = await fetch( `https://api.webacy.com/v3/rwa/${tokenAddress}?chain=eth`, { headers: { "x-api-key": API_KEY } } ).then(r => r.json()); // 2. Depeg detail + liquidity + on-chain NAV fields const depeg = await fetch( `https://api.webacy.com/rwa/${tokenAddress}?chain=eth&hours=168`, { headers: { "x-api-key": API_KEY } } ).then(r => r.json()); // 3. Supply / mint-burn velocity and holder concentration const supply = await fetch( `https://api.webacy.com/rwa/supply/${tokenSymbol}`, // e.g. "USDY" { headers: { "x-api-key": API_KEY } } ).then(r => r.json()); const holders = await fetch( `https://api.webacy.com/rwa/hci?chain=eth`, { headers: { "x-api-key": API_KEY } } ).then(r => r.json()); ``` For the full worked example (every DD dimension, coverage states, and how to request coverage), see the [RWA Diligence Walkthrough](/integrations/rwa-diligence-guide). ### Pre-Trade Risk Check Fast risk assessment before executing a trade (optimized for Solana trading bots). ```javascript theme={null} // Quick risk check const risk = await fetch( `https://api.webacy.com/trading-lite/${tokenAddress}?chain=sol`, { headers: { "x-api-key": API_KEY } } ).then(r => r.json()); if (risk.overallRisk > 70) return; // Skip risky tokens // Check liquidity const pools = await fetch( `https://api.webacy.com/tokens/${tokenAddress}/pools?chain=sol`, { headers: { "x-api-key": API_KEY } } ).then(r => r.json()); ``` ### Compliance Screening Check addresses against sanctions lists for regulatory compliance. ```javascript theme={null} // Sanction check const sanction = await fetch( `https://api.webacy.com/addresses/sanctioned/${walletAddress}?chain=eth`, { headers: { "x-api-key": API_KEY } } ).then(r => r.json()); if (sanction.is_sanctioned) { console.log("SANCTIONED — do not process"); return; } if (sanction.sanctions_status !== "clean") { console.log("Screening unavailable — require manual review"); return; } // Full threat analysis for additional compliance context const threats = await fetch( `https://api.webacy.com/addresses/${walletAddress}?chain=eth`, { headers: { "x-api-key": API_KEY } } ).then(r => r.json()); ``` ### Transaction Simulation Simulate a transaction to preview risks before the user signs. ```javascript theme={null} const simulation = await fetch( `https://api.webacy.com/scan/${fromAddress}/transactions`, { method: "POST", headers: { "x-api-key": API_KEY, "Content-Type": "application/json" }, body: JSON.stringify({ to: contractAddress, data: calldata, value: "0", chain: "eth" }) } ).then(r => r.json()); ``` *** ## Error Handling | Status Code | Meaning | Action | | - | - | - | | `200` | Success | Parse response body | | `400` | Bad request (invalid params) | Check address format and chain parameter | | `401` | Unauthorized | Check `x-api-key` header | | `402` | Payment required (keyless x402) | Pay per request or send a valid `x-credit-token`. See [x402 Payments](/x402-payments) | | `403` | Forbidden | API key lacks permissions for this endpoint | | `404` | Not found | Address/transaction not found on specified chain | | `429` | Rate limit exceeded | Back off and retry with exponential delay | | `500` | Server error | Retry after a short delay | Error response format: ```json theme={null} { "message": "Error description" } ``` *** ## Query Parameters Common parameters across endpoints: | Parameter | Type | Description | | - | - | - | | `chain` | string | Blockchain identifier (e.g., `eth`, `sol`). Defaults to `eth` | | `show_low_risk` | boolean | Include low-risk issues in response. Default: `true` | | `hide_trust_flags` | boolean | Hide trust-related flags from response | | `modules` | string\[] | Comma-separated risk modules to execute (e.g., `token_security,fraud_detection`) | Available risk modules: `source_code_analysis`, `governance_analysis`, `token_security`, `contract_analysis`, `market_data`, `holder_analysis`, `liquidity_analysis`, `fraud_detection`, `sanctions_compliance`, `mixer_detection`, `address_behavior`, `transaction_analysis`, `reputation_analysis`, `solana_specific`, `evm_specific`, `ton_specific`, `sui_specific`, `basic_info`, `security_essentials`, `fund_flow_screening`, `developer_migration`. *** ## Rules for AI Agents ### ALWAYS * Include the `x-api-key` header on every request * Include the `chain` query parameter — do not rely on the default * Store API keys in environment variables, never hardcoded * Validate address format matches the target chain before calling * Handle rate limiting with exponential backoff ### NEVER * Expose API keys in client-side code, logs, or version control * Use the development URL (`api-development.webacy.com`) in production code * Assume all endpoints support all chains — check the endpoint reference table * Ignore the `overallRisk` score — always check it before proceeding ### ASK FIRST * Before choosing between Risk DD and Trading DD endpoints, ask what the use case is * Before selecting specific `modules`, ask if the user wants full analysis or filtered results * Before implementing retry logic, ask about the user's rate limit tier # Build with AI Source: https://docs.webacy.com/integrations/build-with-ai Build with Webacy using AI tools: llms.txt files, OpenAPI spec, Cursor docs source, Claude Code CLAUDE.md context, and per-page Open in Claude shortcuts. Webacy documentation is designed to be AI-native. Whether you're building autonomous agents, using AI coding assistants, or feeding context into LLMs, there are multiple ways to access Webacy's API documentation programmatically. ## Complete Documentation for LLMs Webacy publishes a plain-text version of the entire documentation site, optimized for LLM consumption and RAG systems. | File | Description | | - | - | | [`llms.txt`](https://docs.webacy.com/llms.txt) | Lightweight index of all pages with titles and descriptions | | [`llms-full.txt`](https://docs.webacy.com/llms-full.txt) | Full text of every documentation page in a single file | Use `llms-full.txt` to: * Build RAG pipelines that answer questions about Webacy's API * Seed AI agents with complete API knowledge * Create custom chatbots for your team's integration workflow ```bash theme={null} # Download the full docs for your RAG system curl -o webacy-docs.txt https://docs.webacy.com/llms-full.txt ``` ## Per-Page AI Access Every documentation page has built-in AI options. Click the contextual menu on any page to: * **Copy** the page content as markdown * **Open in Claude** to discuss the page with Claude * **Open in ChatGPT** to discuss the page with ChatGPT * **Open in Cursor** to use the page as context in Cursor You can also append `.md` to any page URL to get the raw markdown content. For example: ```text theme={null} https://docs.webacy.com/api-reference/introduction.md ``` ## OpenAPI Specification The full OpenAPI 3.0 spec is published at: ```text theme={null} https://docs.webacy.com/openapi.json ``` Feed this to AI tools for automatic code generation, SDK creation, or API client scaffolding: ```bash theme={null} # Generate a TypeScript client with an AI coding assistant # Provide the spec as context: curl -o webacy-openapi.json https://docs.webacy.com/openapi.json ``` ## Cursor Integration Add Webacy docs as a documentation source in Cursor for inline context while coding. **Step 1:** Open Cursor Settings > Features > Docs **Step 2:** Click "Add new doc" and enter: ```text theme={null} https://docs.webacy.com ``` **Step 3:** Use `@Docs` in Cursor chat to reference Webacy documentation: ```text theme={null} @Docs How do I check if a wallet is sanctioned using the Webacy API? ``` You can also add the [Agent Reference](/integrations/agent-reference) page directly to your project's `.cursorrules` file for persistent context. ## Claude Code / CLAUDE.md For projects using [Claude Code](https://docs.anthropic.com/en/docs/claude-code), add the Agent Reference to your `CLAUDE.md` file so Claude always has Webacy API context: ```bash theme={null} # Download the agent reference and append to your CLAUDE.md echo "\n## Webacy API Reference\nSee: https://docs.webacy.com/integrations/agent-reference\n" >> CLAUDE.md ``` Or copy the content from the [Agent Reference](/integrations/agent-reference) page directly into your `CLAUDE.md` for offline access. ## MCP Server For the deepest AI integration, connect your AI coding assistant directly to Webacy's API using the Model Context Protocol (MCP). This lets tools like Claude Code and Cursor query live blockchain risk data without leaving your editor. > [card] [MCP Server Setup](/integrations/mcp-server) > > Connect Claude Code or Cursor to Webacy's live risk analysis tools ## Ready-Made Agent Skills For a drop-in way to add Webacy to any AI agent, use the open-source `webacy-skills` package. It ships a Claude Skill plus a portable `AGENTS.md` (for Codex, Cursor, and other clients) with per-client connection configs, and its tool list auto-syncs from the live MCP server. > [card] [webacy-skills on GitHub](https://github.com/Webacy-Prod/webacy-skills) > > Claude Skill + portable AGENTS.md with connection configs for Claude Code, Claude Desktop, Cursor, and Codex ## AI Search The documentation site includes built-in AI-powered search. Use the search bar on any page to ask natural language questions about the API, and get AI-generated answers grounded in the documentation. ## Quick Reference | Method | Best For | | - | - | | [llms-full.txt](https://docs.webacy.com/llms-full.txt) | RAG systems, bulk ingestion, agent training | | [Agent Reference](/integrations/agent-reference) | AI coding assistants, CLAUDE.md, .cursorrules | | [webacy-skills](https://github.com/Webacy-Prod/webacy-skills) | Drop-in Claude Skill + AGENTS.md for any AI agent | | [MCP Server](/integrations/mcp-server) | Live data queries from your editor | | [OpenAPI spec](https://docs.webacy.com/openapi.json) | Code generation, SDK scaffolding | | Per-page AI buttons | Ad-hoc questions about specific pages | | AI Search | Quick natural language lookups | # Webacy MCP Server for AI Coding Agents Source: https://docs.webacy.com/integrations/mcp-server Connect Claude Code, Cursor, or Codex CLI to the Webacy MCP server to query blockchain risk data on addresses and tokens from your editor. The Webacy API exposes an [MCP (Model Context Protocol)](https://modelcontextprotocol.io/) server that lets AI coding assistants like Claude Code, Cursor, and Codex CLI query blockchain risk data directly from your development environment. Instead of switching to a browser or writing API calls manually, you can ask your AI assistant questions like *"Analyze the risk of 0x742d..."* and get real-time results inline. ## Prerequisites * An API key from [developers.webacy.co](https://developers.webacy.co/) > [!WARNING] > > Keep your API key secret. Never commit it to version control. > [!TIP] > > Prefer a ready-made skill? See the [webacy-skills](https://github.com/Webacy-Prod/webacy-skills) > repo for a Claude Skill and a portable agent guide (`AGENTS.md`) with connection > configs for Claude Code, Claude Desktop, Cursor, and Codex. ## Installation ### Claude Code Add the Webacy MCP server using the CLI: ```bash theme={null} claude mcp add webacy-mcp --transport http https://api.webacy.com/mcp --header "x-api-key: YOUR_API_KEY" ``` Or add it manually to your `.claude/mcp.json` file: ```json theme={null} { "mcpServers": { "webacy-mcp": { "type": "http", "url": "https://api.webacy.com/mcp", "headers": { "x-api-key": "YOUR_API_KEY" } } } } ``` ### Cursor Open Cursor Settings and navigate to **MCP Servers**. Click **Add Server** and configure: ```json theme={null} { "mcpServers": { "webacy-mcp": { "url": "https://api.webacy.com/mcp", "headers": { "x-api-key": "YOUR_API_KEY" } } } } ``` ### Codex CLI Codex CLI reads MCP server config from `~/.codex/config.toml`. Add the Webacy server there: ```toml theme={null} [mcp_servers.webacy-mcp] url = "https://api.webacy.com/mcp" http_headers = { "x-api-key" = "YOUR_API_KEY" } ``` ### Other MCP Clients Any MCP client that supports HTTP Streamable transport can connect to the Webacy MCP server. Use the following configuration: | Setting | Value | | - | - | | **URL** | `https://api.webacy.com/mcp` | | **Transport** | HTTP Streamable | | **Auth Header** | `x-api-key: YOUR_API_KEY` | ## Available Tools The MCP server exposes seven tools for blockchain risk analysis: three address/token tools plus four vault and RWA tools. > [!NOTE] > > There is no `get_rwa_grades` tool. To list RWA / pegged tokens with risk data, use `list_rwa_tokens`. ### Choosing the right tool Several tools accept a token address, so pick by what you are analyzing. **Stablecoins, RWAs, and pegged tokens should use `get_rwa_token_risk`** — it adds both depeg / peg-stability and structural-health analysis (collateral quality, governance, liquidity depth) that `get_token_risk` does not. AI assistants configured with this server are given the same guidance, so a prompt like *"analyze PYUSD on Ethereum"* routes to the RWA tool automatically. | If you want to analyze… | Use | | - | - | | A stablecoin, RWA, or pegged token (USDC, USDT, PYUSD, DAI, USDe, tokenized treasuries/funds like BUIDL, gold like PAXG) | `get_rwa_token_risk` (browse with `list_rwa_tokens`) | | Any other token contract (security flags, market data) | `get_token_risk` | | An ERC-4626 vault | `get_vault_risk` (browse with `list_vaults`) | | A wallet or contract address (general security profile) | `get_address_risk` | | A token's holder distribution / concentration | `get_holder_analysis` | ### `get_address_risk` Analyze the risk profile of a blockchain address (wallet or contract). Returns risk score, risk factors, and detailed security analysis. | Parameter | Type | Required | Description | | - | - | - | - | | `address` | string | Yes | The blockchain address to analyze | | `chain` | string | Yes | Blockchain network (e.g. `eth`, `sol`, `base`) | | `detailed_response` | boolean | No | Include detailed risk factor breakdowns | | `show_low_risk` | boolean | No | Include low-risk factors in the response | | `modules` | string\[] | No | Specific risk analysis modules to run | ### `get_token_risk` Analyze the risk profile of a general token contract. Returns token security flags, market data, and economic risk indicators. For stablecoins, RWAs, or other pegged tokens (e.g. USDC, USDT, PYUSD, DAI), prefer [`get_rwa_token_risk`](#get_rwa_token_risk), which adds depeg / peg-stability and structural-health analysis. | Parameter | Type | Required | Description | | - | - | - | - | | `address` | string | Yes | The token contract address to analyze | | `chain` | string | Yes | Blockchain network (e.g. `eth`, `sol`, `base`) | | `metrics_date` | string | No | Date for historical metrics (DD-MM-YYYY format) | | `modules` | string\[] | No | Specific risk analysis modules to run | ### `get_holder_analysis` Analyze the holder distribution and concentration of a token. Returns top holders, holder counts, and distribution metrics. | Parameter | Type | Required | Description | | - | - | - | - | | `address` | string | Yes | The token contract address to analyze | | `chain` | string | No | Blockchain network (defaults to `sol`) | | `disable_refetch` | boolean | No | Skip re-fetching data and use existing data only | | `refresh_cache` | boolean | No | Force refresh cached holder data | ### `get_vault_risk` Get detailed risk analysis for an ERC-4626 vault. Returns risk score, risk tier, risk decomposition across 7 categories (structure, governance, liquidity, code quality, asset, performance, protocol), looping data, Morpho markets, and Webacy findings. Each response also carries the Webacy A+→F composite `grade` (see [Composite grade](#composite-grade)). | Parameter | Type | Required | Description | | - | - | - | - | | `address` | string | Yes | The vault contract address (e.g. `0x1234...`) | | `chain` | string | Yes | Blockchain network: `eth`, `arb`, `base`, `opt`, `pol`, `bsc`, `avax`, `gnosis`, `sol` | ### `list_vaults` List ERC-4626 vaults with risk scores, filtering, and sorting. Returns paginated vault items with ecosystem aggregates (tier counts, TVL, highest risk, largest TVL). Each item carries the Webacy A+→F composite `grade` (see [Composite grade](#composite-grade)), or `null` when the vault could not be graded. | Parameter | Type | Required | Description | | - | - | - | - | | `chain` | string | No | Filter by chain: `eth`, `arb`, `base`, `opt`, `pol`, `bsc`, `avax`, `gnosis`, `sol` | | `tier` | string | No | Filter by risk tier: `low`, `medium`, `high`, `critical`, `unknown` | | `protocol` | string | No | Filter by protocol: `morpho`, `aave`, `compound`, `euler`, `spark`, `fluid`, `beefy`, `yearn`, `lagoon`, `centrifuge`, `gauntlet` | | `underlying` | string | No | Filter by underlying asset symbol (e.g. `USDC`) | | `min_tvl` | number | No | Minimum TVL in USD | | `min_score` | number | No | Minimum risk score (0–100) | | `max_score` | number | No | Maximum risk score (0–100) | | `q` | string | No | Search by symbol, name, or address | | `sort` | string | No | Sort: `score_desc`, `score_asc`, `tvl_desc`, `tvl_asc`, `apy_desc`, `looping_desc`, `utilization_desc`, `utilization_asc`, `name_asc`, `lockup_asc`, `protocol_asc` | | `page` | number | No | Page number (1-indexed, default 1) | | `page_size` | number | No | Items per page (max 50, default 20). Lower than other lists because each item is graded with a full composite fetch. | ### `get_rwa_token_risk` Depeg and structural-health risk analysis for a stablecoin, RWA, or pegged token — e.g. USDC, USDT, PYUSD, DAI, USDe, tokenized treasuries or money-market funds (BUIDL), or commodity tokens (PAXG). Prefer this over `get_token_risk` whenever the asset is pegged. Returns the depeg risk score, depeg snapshot, score decomposition, depeg history, and risk tier, plus the structural composite grade, weighted category scores, and coverage metadata. | Parameter | Type | Required | Description | | - | - | - | - | | `address` | string | Yes | The token contract address | | `chain` | string | No | Blockchain network (required if the address exists on multiple chains) | | `hours` | number | No | Hours of depeg history to return (default 24, max 168) | ### `list_rwa_tokens` List RWA and pegged tokens (stablecoins) with depeg and structural risk data. Returns paginated items with ecosystem aggregates (tier counts, denomination breakdown). Each item carries the Webacy A+→F composite `grade` (see [Composite grade](#composite-grade)), or `null` when the token is not in the graded dataset. | Parameter | Type | Required | Description | | - | - | - | - | | `chain` | string | No | Filter by blockchain network | | `denomination` | string | No | Filter by denomination code (e.g. `USD`, `EUR`, `XAU`) | | `tier` | string | No | Filter by risk tier: `critical`, `warning`, `watch`, `ok`, `premium` | | `tags` | string\[] | No | Filter by token labels: `standard`, `yield`, `rwa`, `gold`, `bridged`, `vault` | | `min_score` | number | No | Minimum risk score (0–100) | | `max_score` | number | No | Maximum risk score (0–100) | | `min_mcap` | number | No | Minimum market cap in USD | | `liquidity` | string | No | Filter by liquidity tier: `high`, `medium`, `low`, `very_low` | | `q` | string | No | Search by symbol, name, or address | | `sort` | string | No | Sort field: `score`, `symbol`, `chain`, `tier`, `abs_dev_clean`, `market_cap_usd`, `ts` | | `order` | string | No | Sort order: `asc`, `desc` | | `page` | number | No | Page number (1-indexed, default 1) | | `page_size` | number | No | Items per page (max 100, default 20) | > [!NOTE] > > **Vault and RWA tools cover different chains than the address/token tools.** `get_vault_risk` and `list_vaults` support 9 chains (`eth`, `arb`, `base`, `opt`, `pol`, `bsc`, `avax`, `gnosis`, `sol`). The address/token tools use the chain list below. ## Composite grade The RWA and vault tools (`get_rwa_token_risk`, `list_rwa_tokens`, `get_vault_risk`, `list_vaults`) return a Webacy **composite grade** — the same A+→F rating shown on [dd.xyz](https://dd.xyz). It is the v3 composite (risk-polarity: a lower score earns a better grade), so a token or vault grades identically across the detail and list tools. ```json theme={null} { "grade": { "letter": "A-", "score": 12, "stars": 5 } } ``` Where `letter` is the A+ (lowest risk) → F (highest risk) band, `score` is 0–100 (higher = worse), and `stars` is 1–5 derived from the letter band. The grade is **best-effort and nullable**: `grade` is `null` when the asset is not in the graded dataset or the grade could not be computed, and its absence never fails the underlying risk response. The generic `get_token_risk` and `get_address_risk` tools do not return a composite grade — it applies to stablecoins/RWAs and vaults only. ## Hard-gating and pre-execution use > [!WARNING] > > REST is the primary integration path for hard-gate and pre-execution decisioning. The MCP server is a convenience wrapper over a subset of the REST surface. Treat missing, stale, or errored data as **unknown — never as safe**, and check the relevant freshness field before using a result in a decisioning path. See the [API introduction](/api-reference/introduction#hard-gating-and-fail-behavior) for the full fail-behavior guidance. ## Supported Chains The `chain` parameter accepts: `eth`, `sol`, `arb`, `pol`, `opt`, `base`, `bsc`, `sui`, `stellar`, `btc`, `sei`, `hedera`. > [!TIP] > > See [Supported Blockchains](/supported-blockchains) for full details on each chain. ## Example Usage Once configured, you can query Webacy risk data directly from your AI assistant: ```text theme={null} You: Analyze the risk of 0x742d35Cc6634C0532925a3b844Bc454e4438f44e on Ethereum Claude: I'll check the risk profile using the Webacy MCP tools... The address has an overall risk score of 25.99/100 (low risk). No high-severity issues were found. The address is an EOA (not a contract). ``` Because USDC is a stablecoin, an assistant analyzing it reaches for the RWA tool, which covers both peg stability and structural health: ```text theme={null} You: Analyze the risk of USDC on Ethereum (0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48) Claude: This is a stablecoin, so I'll use get_rwa_token_risk for depeg and structural analysis... USDC is holding its $1.00 peg (deviation < 0.1%), risk tier "ok", with a structural composite grade of A. ``` The same routing applies to any pegged asset by name — a stablecoin like PYUSD goes to the RWA tool, not the generic token tool: ```text theme={null} You: Analyze PYUSD on Ethereum Claude: PYUSD is a stablecoin, so I'll use get_rwa_token_risk... PYUSD is holding its $1.00 peg, risk tier "ok", structural composite grade A-. ``` You can also analyze generic token contracts and holder distributions: ```text theme={null} You: What's the contract security risk for this token: 0x... on Ethereum? You: Show me the holder analysis for this Solana token: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v ``` ## Next Steps > [card] [API Reference](/api-reference/introduction) > > Explore all available endpoints > [card] [SDK](/sdk/introduction) > > Use the TypeScript SDK for programmatic access > [card] [Risk Levels](/essentials/risk-levels) > > Understand how to interpret risk scores > [card] [RWA Diligence Walkthrough](/integrations/rwa-diligence-guide) > > Extract a full DD picture for a real-world asset, end to end # Introduction Source: https://docs.webacy.com/introduction Build with Webacy's real-time onchain risk intelligence for wallets, tokens, stablecoins, smart contracts, and vaults across all major supported blockchains. ## Welcome to Webacy ✨ Webacy is a blockchain risk intelligence platform that helps developers, institutions, and AI systems understand and respond to onchain risk in **real time**. Integrate risk scores, monitoring, risk intelligence, and automated decision making into your applications through APIs, webhooks, MCP, and SDKs. Whether you're implementing AML and risk control workflows for compliance, screening assets before listing them, monitoring stablecoins and vaults, evaluating wallets and transactions, building automated policy engines, or enabling AI agents to make risk-aware decisions, Webacy provides the intelligence layer behind every onchain decision. If you are not a developer and an API is not for you, users can evaluate blockchain risk on our responsive web dashboard: [DD.xyz](https://dapp.webacy.com/). For more information on our company, solutions, and more, visit [Webacy.com](https://www.webacy.com/). To read articles and news, visit our [blog](https://www.webacy.com/blog). ## What's Next > [card] [Risk Framework](/fundamentals) > > Read the Risk Framework to understand how Webacy evaluates blockchain risk. # Methodology Overview Source: https://docs.webacy.com/methodology-overview Webacy assesses risk across digital assets and the systems in which they operate. Our methodology combines on-chain activity with off-chain evidence to evaluate how an asset or structure could fail, expose users to loss, or become difficult to exit. This section explains the principles behind our rating framework. Individual methodology pages describe how those principles apply to [stablecoins](/stablecoin), markets (coming soon), [vaults](/vault), curators (coming soon), and protocols (coming soon). ## A framework based on probability of loss Our framework centers on **probability of loss**: the likelihood that a user’s exposure to an asset or structure results in financial loss. Loss can arise through several paths, including a failure to redeem, a loss of backing, a smart contract exploit, insufficient liquidity, or a failure in a critical dependency. The relevant paths depend on what is being assessed. We evaluate the conditions that make these outcomes more or less likely, the protections available, and the connections between sources of risk. A rating summarizes this assessment into a comparable view of risk. It should not be interpreted as a precise percentage probability unless explicitly stated. > [!NOTE] > > Our rating methodology based on probability of loss is separate from our risk scores for wallets, transactions, smart contracts, and other onchain asset types. ## On-chain and off-chain assessment **On-chain risk is assessed in real time**, using observable blockchain activity and conditions. This includes the behavior of smart contracts, transactions, liquidity, asset concentrations, and dependencies. **Off-chain risk is assessed as close to real time as available information allows.** This includes issuer disclosures, reserve reporting, legal arrangements, governance, and operational controls. Update frequency depends on when sources publish information and when that information can be verified. These perspectives are evaluated together. Strong off-chain backing can coexist with on-chain vulnerabilities, while sound technical infrastructure can still depend on weak financial or operational arrangements. ## From risk factors to ratings Our methodology organizes evidence into three levels: * **Risk types:** Broad dimensions of risk relevant to the asset or structure. * **Risk categories:** Specific areas of assessment within each risk type. * **Risk factors:** Individual conditions or indicators used to evaluate each category. Risk factors inform category assessments, which contribute to the broader risk types and overall rating. Each asset-specific methodology defines the relevant categories and how they contribute to the assessment. Supporting records provide context and evidence. They are informational and do not independently contribute to the rating. We publish the structure and scope of our assessments while keeping proprietary scoring rules, thresholds, and detailed factor logic private. ## How our approach differs Traditional credit ratings, such as those from S\&P Global Ratings and Moody’s, primarily address creditworthiness and the risk associated with financial obligations. Digital asset rating providers such as Particula extend assessment to tokenized assets using both on-chain and off-chain information. Webacy’s methodology focuses on the paths to financial loss across digital assets and their operating environments. It connects asset-level risk with the markets, vaults, curators, protocols, and dependencies through which users gain exposure. Continuous on-chain assessment allows that view to evolve as observable conditions change. # Monitor Vaults, Stablecoins, and RWAs on a Cadence Source: https://docs.webacy.com/monitor/ongoing-risk-monitoring Monitor allocated vaults, stablecoins, and RWAs: poll graded ratings, track depeg deviation and operational signals, and alert on threshold breaches. A vault you have allocated to does not hold still. Between reviews a curator can deallocate, utilization can spike, liquidity can thin out, and a stablecoin you hold can drift off its peg. A one-time allocation check catches none of it. What catches it is a monitor that polls each position on a cadence, compares the numbers against your thresholds, and alerts the moment they move. This guide shows you how to build that monitor for the vaults, stablecoins, and RWAs you have already allocated to. ## Why Continuous Monitoring Matters > [card] Curator Actions > > Catch deallocations, timelock changes, and curator behavior the moment they happen, not at your next review cycle > [card] Depeg Detection > > Track peg deviation and liquidity depth on every stablecoin and RWA in your portfolio, continuously > [card] Live Rating in Your UI > > Surface a graded, always-current rating to your users instead of a stale one-time score **Why teams choose Webacy for ongoing monitoring:** * **Graded rating plus operational detail**: the v3 endpoints give you a letter grade; the v1 vault endpoint gives you curator, utilization, and liquidity so you know *why* the grade moved * **Depeg-specific signals**: peg deviation, per-DEX liquidity depth, and score deltas built for stablecoins and RWAs * **Fail-closed by design**: missing or stale data is treated as unknown, never as safe * **One API for the whole book**: vaults, stablecoins, and RWA vaults from a single base URL *** ## Prerequisites Before implementing ongoing monitoring, ensure you have: * A Webacy API key ([sign up here](https://developers.webacy.co/billing)) * Basic familiarity with REST APIs or the [Webacy SDK](/sdk/installation) * The vaults, stablecoins, and RWA positions you currently hold identified, with their chain and contract address *** ## Monitor Vaults on a Cadence Two calls, two jobs. Call `/v3/vaults` for the graded letter rating you show to users. Call `/vaults` (v1) for the operational detail that explains *why*: curator, utilization, liquidity, TVL flight, and an exit recommendation. > [!WARNING] > > **Score polarity: higher means worse.** `composite.score` and every `categories.*.score` on the v3 response run 0-100, where **0 is the lowest risk and 100 is the highest**: `A+` maps to a score near 0, `F` maps to a score near 100. If you sort or color a dashboard by this score, higher must render as *worse*, not better. ```bash cURL theme={null} # Graded rating (v3) curl -X GET "https://api.webacy.com/v3/vaults/0x0deFfd509197aAD5207d2A55862835b467E8128F?chain=eth" \ -H "x-api-key: YOUR_API_KEY" # Operational detail (v1) curl -X GET "https://api.webacy.com/vaults/0x0deFfd509197aAD5207d2A55862835b467E8128F?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} const headers = { 'x-api-key': process.env.WEBACY_API_KEY! }; const [gradedRes, opsRes] = await Promise.all([ fetch('https://api.webacy.com/v3/vaults/0x0deFfd509197aAD5207d2A55862835b467E8128F?chain=eth', { headers }), fetch('https://api.webacy.com/vaults/0x0deFfd509197aAD5207d2A55862835b467E8128F?chain=eth', { headers }), ]); const graded = await gradedRes.json(); const ops = await opsRes.json(); console.log(`Grade: ${graded.composite.grade} (score ${graded.composite.score}/100, higher = worse)`); console.log(`Curator: ${ops.morpho?.curator}`); console.log(`Utilization: ${ops.metadata.utilization_rate}`); console.log(`Exit recommended: ${ops.exit_recommendation}`); ``` ```python Python theme={null} import requests headers = {"x-api-key": "YOUR_API_KEY"} base = "https://api.webacy.com" address, chain = "0x0deFfd509197aAD5207d2A55862835b467E8128F", "eth" graded = requests.get(f"{base}/v3/vaults/{address}", params={"chain": chain}, headers=headers).json() ops = requests.get(f"{base}/vaults/{address}", params={"chain": chain}, headers=headers).json() print(graded["composite"]["grade"], graded["composite"]["score"]) print(ops["morpho"]["curator"], ops["metadata"]["utilization_rate"]) ``` **Which field answers which question:** | Question | Field | Source | | - | - | - | | What's the current letter grade? | `composite.grade`, `composite.stars` | `/v3/vaults` | | How risky, numerically? | `composite.score` (0-100, higher = worse) | `/v3/vaults` | | Which category is driving the grade? | `categories.*.score`, `categories.*.criteria` | `/v3/vaults` | | How complete is the scoring? | `coverage.total_criteria`, `coverage.live_criteria`, `coverage.framework_version` | `/v3/vaults` | | Who curates this vault? | `morpho.curator` | `/vaults` (v1) | | How much can I withdraw right now? | `morpho.liquidity_usd` | `/vaults` (v1) | | Is the vault over-utilized? | `metadata.utilization_rate` | `/vaults` (v1) | | Is capital fleeing the vault? | `metadata.tvl_flight_1w`, `metadata.tvl_usd` | `/vaults` (v1) | | Would Webacy list this vault today? | `metadata.listing_verdict` | `/vaults` (v1) | | Should I exit this position? | `exit_recommendation`, `attention_needed` | `/vaults` (v1) | | Is the vault exposed to LSTs? | `metadata.lst_collateral_pct`, `metadata.lst_collateral_symbols`, `lst_collateral_markets` | `/vaults` (v1) | | Is this response current? | `stale` | `/vaults` (v1) | *** ## Monitor Stablecoins and RWAs for Depeg Every stablecoin and RWA in your book can drift off its peg between allocation checks. Poll `/rwa/{address}` for peg deviation, per-DEX liquidity depth, and short-term score deltas. ```bash cURL theme={null} curl -X GET "https://api.webacy.com/rwa/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48?chain=eth&hours=24" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} const res = await fetch( 'https://api.webacy.com/rwa/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48?chain=eth&hours=24', { headers: { 'x-api-key': process.env.WEBACY_API_KEY } } ); const detail = await res.json(); console.log(`Price: $${detail.snapshot.price}, peg: $${detail.snapshot.peg_value}`); console.log(`Deviation: ${detail.snapshot.dev_clean} (abs: ${detail.snapshot.abs_dev_clean})`); console.log(`Tier: ${detail.snapshot.tier}, score: ${detail.snapshot.score}`); console.log(`24h score delta: ${detail.token.score_delta_24h}`); for (const market of detail.token.markets ?? []) { console.log(`${market.dex} ${market.pair}: $${market.liquidity_usd} liquidity`); } ``` ```python Python theme={null} response = requests.get( "https://api.webacy.com/rwa/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", params={"chain": "eth", "hours": 24}, headers={"x-api-key": "YOUR_API_KEY"} ) detail = response.json() print(detail["snapshot"]["dev_clean"], detail["snapshot"]["tier"]) ``` **Key response fields:** | Field | Description | Action | | - | - | - | | `snapshot.price` / `snapshot.peg_value` | Current price vs. expected peg | Compute live deviation | | `snapshot.dev_clean` / `snapshot.abs_dev_clean` | Cleaned peg deviation | Alert when it exceeds your threshold | | `snapshot.tier` | `ok` / `watch` / `warning` / `critical` / `premium` | Quick categorization | | `snapshot.score` | Depeg risk score | Track trend over your poll history | | `token.markets[].liquidity_usd` | Liquidity depth per DEX pool | Confirm you can actually exit at size | | `token.score_delta_24h` / `token.score_delta_7d` | Short-term score movement | Catch acceleration before it hits `critical` | > [!TIP] > > **Try it now**: Call `/rwa/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48?chain=eth` for USDC. In steady state `dev_clean` sits near zero and `tier` reads `ok`. Use this as your baseline before wiring up alerts on assets you actually hold. *** ## Monitor RWA Vaults If a position is an RWA-backed vault rather than a plain token, rate it with the RWA graded endpoint: same composite shape as vault v3, same polarity. ```bash cURL theme={null} curl -X GET "https://api.webacy.com/v3/rwa/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} const res = await fetch( 'https://api.webacy.com/v3/rwa/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48?chain=eth', { headers: { 'x-api-key': process.env.WEBACY_API_KEY } } ); const rwa = await res.json(); console.log(`Grade: ${rwa.composite.grade} (${rwa.composite.stars} stars)`); console.log(`Score: ${rwa.composite.score}/100 (higher = worse)`); console.log(`Coverage: ${rwa.coverage.live_criteria}/${rwa.coverage.total_criteria} criteria live`); ``` ```python Python theme={null} response = requests.get( "https://api.webacy.com/v3/rwa/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", params={"chain": "eth"}, headers={"x-api-key": "YOUR_API_KEY"} ) rwa = response.json() print(rwa["composite"]["grade"], rwa["composite"]["score"]) ``` **Key response fields:** | Field | Description | | - | - | | `composite.grade` / `composite.stars` | Letter grade and star rating | | `composite.score` | 0-100, higher = worse | | `categories.*.score` / `categories.*.criteria` | Per-category breakdown driving the grade | | `coverage.framework_version`, `coverage.total_criteria`, `coverage.live_criteria` | How complete the scoring is | `chain` is required on both `/v3/vaults/{address}` and `/v3/rwa/{address}`; always pass it explicitly. *** ## Set Up Alerting Alert on state changes, not just raw levels: a vault sliding from `B+` to `C` matters more than a vault that's been `C` for a month. **Recommended thresholds:** | Signal | Trigger | Source | | - | - | - | | Grade band crossed | `composite.grade` moves into a worse band (e.g. `B` → `C` or worse) | `/v3/vaults`, `/v3/rwa` | | Depeg tier crossed | `snapshot.tier` moves to `watch`, `warning`, or `critical` | `/rwa/{address}` | | Score accelerating | `token.score_delta_24h` or `token.score_delta_7d` exceeds your limit | `/rwa/{address}` | | Liquidity drying up | `tvl_flight_1w` exceeds your outflow limit, or `morpho.liquidity_usd` drops below your exit size | `/vaults` (v1) | | Curator or exit signal | `exit_recommendation` or `attention_needed` flips `true` | `/vaults` (v1) | **Poll cadence**: every 5-15 minutes for depeg-sensitive positions, hourly for vault and RWA grades, which don't move as fast as peg deviation. Never poll less often than once a day for anything you'd need to exit in a hurry. **Fail-closed**: a missing endpoint, a `4xx`/`5xx`, or a `stale: true` response is not a clean bill of health. Treat it as unknown risk and alert accordingly. See [Hard-gating and fail behavior](/api-reference/introduction#hard-gating-and-fail-behavior). > [!WARNING] > > **Freshness caveat**: the v3 detail endpoints (`/v3/vaults/{address}`, `/v3/rwa/{address}`) do not return a top-level `stale` flag or `generated_at`. Use `metadata.last_scored_at` on the response, or fall back to a grades-list endpoint for a `stale` flag. The v1 `/vaults/{address}` and `/rwa/{address}` endpoints do carry `stale` directly, so check it on every poll. > [!NOTE] > > Prefer push over polling where you can. For stablecoin and RWA depeg you can subscribe to `DEPEG_TIER_CHANGE` webhooks and get notified the moment a tier changes, instead of polling on a timer. See [Webhooks](/essentials/webhooks) to set them up, then keep polling as a backstop for the vault and RWA grades. ```typescript theme={null} interface AlertConfig { scoreDeltaLimit: number; // e.g. 15 tvlFlightLimit: number; // e.g. -0.10 (10% outflow in 1w) worseGrades: string[]; // grades that should trigger an alert, e.g. ["C", "C-", "D", "F"] } function checkAlerts( graded: { composite: { grade: string }; metadata: { last_scored_at: string } }, ops: { metadata: { tvl_flight_1w: number }; exit_recommendation: boolean; attention_needed: boolean; stale: boolean }, depeg: { snapshot: { tier: string }; token: { score_delta_24h: number }; stale: boolean }, config: AlertConfig ) { const alerts: string[] = []; // Fail-closed: stale or missing data is never treated as safe if (ops.stale || depeg.stale) { alerts.push('DATA STALE, treat position as unknown risk'); return alerts; } if (config.worseGrades.includes(graded.composite.grade)) { alerts.push(`Grade degraded to ${graded.composite.grade}`); } if (['watch', 'warning', 'critical'].includes(depeg.snapshot.tier)) { alerts.push(`Depeg tier: ${depeg.snapshot.tier}`); } if (Math.abs(depeg.token.score_delta_24h) >= config.scoreDeltaLimit) { alerts.push(`24h score delta: ${depeg.token.score_delta_24h}`); } if (ops.metadata.tvl_flight_1w <= config.tvlFlightLimit) { alerts.push(`TVL flight (1w): ${ops.metadata.tvl_flight_1w}`); } if (ops.exit_recommendation || ops.attention_needed) { alerts.push('Exit recommendation or attention flag raised'); } return alerts; } ``` *** ## Implement a Live Rating in Your UI Surface the graded rating you're polling directly to your users: call `/v3/vaults/{address}` or `/v3/rwa/{address}`, read `composite.grade`, `composite.stars`, and `categories.*`, and render a badge. No need to build your own scoring model. For the full walkthrough, pulling the fields into a view model, rendering the badge (React and HTML), showing the category breakdown, and handling freshness and failures, see the dedicated guide: > [card] [Implement a Risk Rating in Your UI](/apps/implement-a-rating) > > Call the v3 endpoint, pull the grade, stars, score, and category breakdown, and render a badge, with React and HTML examples *** ## Monitor Risk-Adjusted Yield Yield is part of monitoring, not separate from it. For vaults, the v1 detail endpoint returns the net yield directly: read `morpho.avg_net_apy` (and `avg_net_apy_ex_rewards`, which strips reward incentives) alongside the risk signals you are already polling, so a falling grade next to a climbing APY is easy to spot. A high APY on its own is not a good position. An APY that spikes well above its recent average is usually a stress signal (an exploit, an oracle failure, or a liquidation cascade), not an opportunity. Webacy's Yield Scores capture exactly this: raw APY weighted by the safety score of the pool's riskiest constituent token, with spike detection that falls back to the 30-day mean when a pool's APY jumps. Order yield-bearing positions by the safety-weighted rank score rather than raw APY — and read it as an ordering, not a return: it is not a risk-adjusted yield. For the full methodology, see the [Yield Scores](/yield-scores) page. *** ## Complete Monitoring Workflow ```mermaid theme={null} flowchart TD A[Scheduled poll] --> B[Fetch vault v3 + v1 for each vault] A --> C[Fetch /rwa depeg detail for each stablecoin/RWA] A --> D[Fetch /v3/rwa for each RWA vault] B --> E{Compare vs thresholds} C --> E D --> E E -->|Threshold breached| F[Emit alert] E -->|Grade/tier changed| G[Update UI badge] E -->|No change| H[No-op, log and continue] ``` > [accordion] Full TypeScript Implementation > > ```typescript theme={null} > const API_BASE = 'https://api.webacy.com'; > const headers = { 'x-api-key': process.env.WEBACY_API_KEY! }; > > interface Position { > type: 'vault' | 'rwa_token' | 'rwa_vault'; > address: string; > chain: string; > } > > async function fetchVaultGraded(address: string, chain: string) { > const res = await fetch(`${API_BASE}/v3/vaults/${address}?chain=${chain}`, { headers }); > return res.json(); > } > > async function fetchVaultOps(address: string, chain: string) { > const res = await fetch(`${API_BASE}/vaults/${address}?chain=${chain}`, { headers }); > return res.json(); > } > > async function fetchDepegDetail(address: string, chain: string, hours = 24) { > const res = await fetch(`${API_BASE}/rwa/${address}?chain=${chain}&hours=${hours}`, { headers }); > return res.json(); > } > > async function fetchRwaVaultGraded(address: string, chain: string) { > const res = await fetch(`${API_BASE}/v3/rwa/${address}?chain=${chain}`, { headers }); > return res.json(); > } > > const WORSE_GRADES = ['C', 'C-', 'D', 'F']; > const SCORE_DELTA_LIMIT = 15; > const TVL_FLIGHT_LIMIT = -0.1; > > async function monitorBook(positions: Position[]) { > const alerts: { position: Position; messages: string[] }[] = []; > > for (const position of positions) { > const messages: string[] = []; > > if (position.type === 'vault') { > const [graded, ops] = await Promise.all([ > fetchVaultGraded(position.address, position.chain), > fetchVaultOps(position.address, position.chain), > ]); > > // Fail-closed: stale or missing data is unknown risk, never safe > if (ops.stale) { > messages.push('Operational data is stale, treat as unknown risk'); > } else { > if (WORSE_GRADES.includes(graded.composite.grade)) { > messages.push(`Grade: ${graded.composite.grade} (score ${graded.composite.score}/100)`); > } > if (ops.metadata.tvl_flight_1w <= TVL_FLIGHT_LIMIT) { > messages.push(`TVL flight (1w): ${ops.metadata.tvl_flight_1w}`); > } > if (ops.exit_recommendation || ops.attention_needed) { > messages.push(`Curator flag, exit_recommendation: ${ops.exit_recommendation}, attention_needed: ${ops.attention_needed}`); > } > } > } > > if (position.type === 'rwa_token') { > const depeg = await fetchDepegDetail(position.address, position.chain); > > if (depeg.stale) { > messages.push('Depeg data is stale, treat as unknown risk'); > } else { > if (['watch', 'warning', 'critical'].includes(depeg.snapshot.tier)) { > messages.push(`Depeg tier: ${depeg.snapshot.tier} (dev ${depeg.snapshot.dev_clean})`); > } > if (Math.abs(depeg.token.score_delta_24h) >= SCORE_DELTA_LIMIT) { > messages.push(`24h score delta: ${depeg.token.score_delta_24h}`); > } > } > } > > if (position.type === 'rwa_vault') { > const rwaGraded = await fetchRwaVaultGraded(position.address, position.chain); > if (WORSE_GRADES.includes(rwaGraded.composite.grade)) { > messages.push(`RWA vault grade: ${rwaGraded.composite.grade} (score ${rwaGraded.composite.score}/100)`); > } > } > > if (messages.length > 0) { > alerts.push({ position, messages }); > } > } > > return alerts; > } > > // Example: monitor an allocated book > const alerts = await monitorBook([ > { type: 'vault', address: '0x0deFfd509197aAD5207d2A55862835b467E8128F', chain: 'eth' }, > { type: 'rwa_token', address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', chain: 'eth' }, > { type: 'rwa_token', address: '0xdAC17F958D2ee523a2206206994597C13D831ec7', chain: 'eth' }, > ]); > > for (const { position, messages } of alerts) { > console.log(`[ALERT] ${position.type} ${position.address} (${position.chain})`); > messages.forEach((m) => console.log(` - ${m}`)); > } > ``` *** ## Example Addresses for Testing | Address | Type | Chain | | - | - | - | | `0x0deFfd509197aAD5207d2A55862835b467E8128F` | ERC-4626 vault | eth | | `0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48` | USDC | eth | | `0xdAC17F958D2ee523a2206206994597C13D831ec7` | USDT | eth | | `0x6B175474E89094C44Da98b954EedeAC495271d0F` | DAI | eth | *** ## API Quick Reference | Endpoint | Use Case | | - | - | | `GET /v3/vaults/{address}?chain={chain}` | Graded vault rating (letter grade, stars, categories) | | `GET /vaults/{address}?chain={chain}` | Operational vault detail (curator, utilization, liquidity, TVL flight, exit recommendation) | | `GET /rwa/{address}?chain={chain}&hours={n}` | Stablecoin / RWA depeg snapshot, liquidity depth, score deltas | | `GET /v3/rwa/{address}?chain={chain}` | Graded RWA vault rating | **Authentication:** ```text theme={null} Header: x-api-key: YOUR_API_KEY Base URL: https://api.webacy.com ``` *** ## Ready to Ship? 1. **Identify your book**: list every vault, stablecoin, and RWA position you currently hold, with chain and address 2. **Wire up the poll**: call the graded and operational endpoints on your chosen cadence and run them through `checkAlerts()` 3. **Go live**: ship the badge in your UI and route alerts to your team ## Next Steps > [card] [New Asset Due Diligence](/digital-assets/new-asset-due-diligence) > > Screen a vault, stablecoin, or RWA before you allocate to it > [card] [Alerting with Webhooks](/essentials/webhooks) > > Subscribe to DEPEG\_TIER\_CHANGE events instead of polling on a timer > [card] [Monitor Stablecoin Depeg Risk](/monitor/stablecoin-depeg-monitoring) > > The full depeg monitoring workflow across 600+ pegged tokens > [card] [Yield Scores](/yield-scores) > > How raw APY gets discounted by issuer risk # Monitor Stablecoin Depeg Risk Source: https://docs.webacy.com/monitor/stablecoin-depeg-monitoring Build real-time stablecoin depeg alerts and portfolio monitoring across 600+ pegged tokens with risk ratings refreshed about every 20 minutes on seven EVM chains and Solana. In March 2023, USDC depegged to \$0.87 after Silicon Valley Bank collapsed — \$3.3B of Circle's reserves were locked. Treasuries holding USDC lost millions in hours. The depeg was detectable within minutes through on-chain price deviation and liquidity signals. This guide shows you how to monitor 600+ pegged tokens across 7 EVM chains and Solana, with risk ratings refreshed about every 20 minutes. ## Why Depeg Monitoring Matters > [card] Portfolio Protection > > Detect depeg risk before it becomes a loss — minutes matter when a stablecoin breaks its peg > [card] Early Warning > > Get ahead of the market with rating updates about every 20 minutes across price deviation, liquidity, and volatility > [card] Compliance > > Document stablecoin risk for regulatory reporting and treasury management policies **Why teams choose Webacy for depeg monitoring:** * **600+ pegged tokens** — Stablecoins, RWAs, gold-backed, and yield-bearing tokens * **Frequent updates** — Ratings refresh on a \~20-minute cadence from a multi-factor model; missing signals are skipped and weights renormalized * **Multi-factor model** — Price deviation (31%), persistence at 50bp (14%) and 100bp (11%), liquidity depth (10%), CEX cross-rate (6%), volatility burst (5%), cross-chain spread (5%), plus leading supply-spike and redemption-velocity signals (5% each) * **7 EVM chains + Solana** — ETH, ARB, BASE, BSC, POL, OPT, AVAX, and Solana from a single API. Coverage is deepest on ETH, BSC, ARB, BASE, POL, and OPT; Avalanche and Solana carry a smaller token set *** ## Prerequisites Before implementing depeg monitoring, ensure you have: * A Webacy API key ([sign up here](https://developers.webacy.co/billing)) * Basic familiarity with REST APIs or the [Webacy SDK](/sdk/installation) * Your treasury, portfolio, or exchange workflow identified for integration points *** ## Screen Stablecoins by Risk Tier Get an overview of all stablecoins with their current depeg risk rating. ```bash cURL theme={null} # High-cap stablecoins sorted by risk curl -X GET "https://api.webacy.com/rwa?sort=score&order=desc&minMcap=1000000000&pageSize=25" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} const response = await fetch( 'https://api.webacy.com/rwa?sort=score&order=desc&minMcap=1000000000&pageSize=25', { headers: { 'x-api-key': process.env.WEBACY_API_KEY } } ); const { items } = await response.json(); for (const token of items) { console.log(`${token.symbol} | Rating: ${token.score}/100 | Tier: ${token.tier}`); } ``` ```python Python theme={null} import requests response = requests.get( "https://api.webacy.com/rwa", params={"sort": "score", "order": "desc", "minMcap": 1000000000, "pageSize": 25}, headers={"x-api-key": "YOUR_API_KEY"} ) tokens = response.json()["items"] ``` **Risk tier interpretation:** | Tier | Rating | What It Means | Action | | - | - | - | - | | `critical` | >= 70 | Severe depeg risk | Immediate attention — consider reducing exposure | | `warning` | 50-69 | Elevated risk | Close monitoring, prepare contingency | | `watch` | 25-49 | Early stress signals | Track trends, increase monitoring frequency | | `ok` | under 25 | Normal conditions | Routine monitoring | | `premium` | N/A | Trading above peg | Positive deviation — monitor for reversal | *** ## Monitor a Specific Token Get the full depeg snapshot for a token, including historical time series. ```bash cURL theme={null} # USDC on Ethereum with 7-day history curl -X GET "https://api.webacy.com/rwa/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48?chain=eth&hours=168" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} const response = await fetch( 'https://api.webacy.com/rwa/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48?chain=eth&hours=168', { headers: { 'x-api-key': process.env.WEBACY_API_KEY } } ); const detail = await response.json(); console.log(`${detail.token.symbol} — Rating: ${detail.snapshot.score}/100`); console.log(`Price: $${detail.snapshot.price_usd}`); console.log(`Tier: ${detail.snapshot.tier}`); console.log(`Depeg events (7d): ${detail.depegEvents?.length ?? 0}`); ``` ```python Python theme={null} response = requests.get( "https://api.webacy.com/rwa/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", params={"chain": "eth", "hours": 168}, headers={"x-api-key": "YOUR_API_KEY"} ) detail = response.json() ``` **Key response fields:** The token-detail response nests fields under `token` (static metadata) and `snapshot` (the latest reading): | Field | Description | Action | | - | - | - | | `snapshot.score` | 0-100 composite depeg rating | Set alert thresholds | | `snapshot.tier` | `ok` / `watch` / `warning` / `critical` / `premium` | Quick categorization | | `snapshot.price_usd` | Current token price | Track deviation from \$1.00 | | `snapshot.reference_price` | Consensus reference price used for the deviation | Cross-check the peg gap | | `risk.issues[]` | Array of risk tags with severity | Understand what's driving the rating | | `depegEvents` | Historical depeg event records | Assess track record | | `history` | Rating time series over the requested period | Spot trends | *** ## Build a Stablecoin Risk Dashboard Filter and aggregate stablecoin risk across your portfolio. ```bash cURL theme={null} # All stablecoins on Ethereum, sorted by risk curl -X GET "https://api.webacy.com/rwa?chain=eth&sort=score&order=desc&pageSize=50" \ -H "x-api-key: YOUR_API_KEY" # Only tokens in stress (watch tier or worse) curl -X GET "https://api.webacy.com/rwa?tier=warning&sort=score&order=desc" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} async function fetchStablecoinDashboard(chain?: string) { const params = new URLSearchParams({ sort: 'score', order: 'desc', pageSize: '50', }); if (chain) params.set('chain', chain); const response = await fetch( `https://api.webacy.com/rwa?${params}`, { headers: { 'x-api-key': process.env.WEBACY_API_KEY } } ); return response.json(); } const dashboard = await fetchStablecoinDashboard('eth'); // Group by tier for a summary view const byTier = { critical: [], warning: [], watch: [], ok: [], premium: [] }; for (const token of dashboard.items) { byTier[token.tier]?.push(token); } console.log(`Critical: ${byTier.critical.length}`); console.log(`Warning: ${byTier.warning.length}`); console.log(`Watch: ${byTier.watch.length}`); console.log(`OK: ${byTier.ok.length}`); ``` ```python Python theme={null} params = { "chain": "eth", "sort": "score", "order": "desc", "pageSize": 50, } response = requests.get( "https://api.webacy.com/rwa", params=params, headers={"x-api-key": "YOUR_API_KEY"} ) dashboard = response.json() ``` *** ## Complete Integration Workflow Here's how depeg monitoring fits into a typical treasury or exchange. ### Monitoring Flow ```mermaid theme={null} flowchart TD A[Fetch Stablecoin List] --> B{Check Each Token} B --> C{Tier?} C -->|critical| D[Immediate Alert] C -->|warning| E[Escalate to Risk Team] C -->|watch| F[Increase Monitoring] C -->|ok| G[Log and Continue] D --> H{Action Required} H -->|Reduce Exposure| I[Rebalance Portfolio] H -->|Investigate| J[Fetch Token Detail + History] F --> K[Check Again in 20 Minutes] G --> K ``` ### Implementation Example > [accordion] Full TypeScript Implementation > > ```typescript theme={null} > const API_BASE = 'https://api.webacy.com'; > const API_KEY = process.env.WEBACY_API_KEY; > > const headers = { 'x-api-key': API_KEY }; > > // Fetch all stablecoins with risk data > async function fetchStablecoins(chain?: string) { > const params = new URLSearchParams({ > sort: 'score', > order: 'desc', > pageSize: '100', > }); > if (chain) params.set('chain', chain); > > const res = await fetch(`${API_BASE}/rwa?${params}`, { headers }); > const { items } = await res.json(); > return items; > } > > // Get detailed risk for a specific token > async function getTokenDetail(address: string, chain: string, hours = 168) { > const res = await fetch( > `${API_BASE}/rwa/${address}?chain=${chain}&hours=${hours}`, > { headers } > ); > return res.json(); > } > > // Classify tokens by risk tier > function classifyRisk(tokens: any[]) { > const alerts = { critical: [], warning: [], watch: [] }; > > for (const token of tokens) { > if (token.tier === 'critical') alerts.critical.push(token); > else if (token.tier === 'warning') alerts.warning.push(token); > else if (token.tier === 'watch') alerts.watch.push(token); > } > > return alerts; > } > > // Monitor a portfolio of stablecoins > async function monitorPortfolio(holdings: { address: string; chain: string }[]) { > const results = []; > > for (const { address, chain } of holdings) { > const detail = await getTokenDetail(address, chain); > results.push({ > symbol: detail.token.symbol, > chain, > riskScore: detail.snapshot.score, > tier: detail.snapshot.tier, > price: detail.snapshot.price_usd, > }); > } > > // Sort by risk (highest first) > results.sort((a, b) => b.riskScore - a.riskScore); > > for (const token of results) { > const icon = token.tier === 'critical' ? '!!' : > token.tier === 'warning' ? '!' : '-'; > console.log( > `[${icon}] ${token.symbol} (${token.chain}) — ` + > `Rating: ${token.riskScore}/100, Price: $${token.price}` > ); > } > > return results; > } > > // Example: monitor a treasury portfolio > await monitorPortfolio([ > { address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', chain: 'eth' }, // USDC > { address: '0xdAC17F958D2ee523a2206206994597C13D831ec7', chain: 'eth' }, // USDT > { address: '0x6B175474E89094C44Da98b954EedeAC495271d0F', chain: 'eth' }, // DAI > ]); > ``` *** ## API Quick Reference | Endpoint | Use Case | Response Time | | - | - | - | | `GET /rwa` | List all pegged tokens with depeg risk | \~300ms | | `GET /rwa/{address}?chain={chain}` | Full depeg detail with time series | \~500ms | **Authentication:** ```text theme={null} Header: x-api-key: YOUR_API_KEY Base URL: https://api.webacy.com Supported chains: eth, arb, base, bsc, pol, opt, avax, solana ``` *** ## Next Steps > [card] [Depeg Monitor API](/api-reference/depeg-monitor) > > Full endpoint reference with all query parameters > [card] [Vault Risk Screening](/digital-assets/vault-risk-screening) > > Screen and monitor the vaults that hold your stablecoins > [card] [Exchange Wallet Screening](/wallets/exchange-wallet-screening) > > Screen deposits and withdrawals for compliance > [card] [Risk Tags Reference](/glossary/threats-and-labels) > > Complete list of all risk tags and what they mean # Peg Canary Score (PCS) Source: https://docs.webacy.com/pcs Peg Canary Score (PCS) is a forward-looking stablecoin stress indicator that surfaces pre-depeg conditions 6–48 hours before price breaks. Peg Canary Score is a **forward-looking stress indicator**, not a depeg confirmation. The live risk score detects an *active* depeg; Peg Canary Score catches the structural and market conditions that typically *precede* one — often 6–48h before price breaks. # Peg Canary System vs the Live Risk Score | **Dimension** | **Live Risk Score** | **PCS Score** | | :- | :- | :- | | **What it detects** | Active depeg — price is already moving | Pre-depeg stress — conditions building before price breaks | | **Update frequency** | Every \~20 minutes | Every 6 hours | | **Primary inputs** | Price, slippage, persistence, oracle, supply spike | Supply flows, pool balance, liquidity erosion, whale concentration, blacklist events, yield anomaly | | **Lead time** | Confirms an event in progress | Warns 6–48h before price breaks in historical incidents | | **When to act on it** | Exit / reduce NOW | Review position, increase monitoring, prepare contingencies | | **Score range** | 0–100 (higher = active risk) | 0–100 (higher = pre-stress) | | **Tier labels** | ok / watch / warning / critical | CALM / WATCH / ALERT / DANGER | # Threat Bands ![Screenshot 2026 04 13 At 11 09 13 AM](https://mintcdn.com/webacy/nHZ00OBCBxHAq-vy/images/Screenshot-2026-04-13-at-11.09.13-AM.png?fit=max\&auto=format\&n=nHZ00OBCBxHAq-vy\&q=85\&s=260ea909ef15b5553b25d14dc096c70c) # The 11 Pre-Depeg Signals Each signal is normalized to 0–1 before weighting. Missing signals are skipped and all remaining weights are renormalized to sum to 1.0, so data gaps never inflate the score. | **Signal** | **Weight** | **What It Measures** | **Max Threshold** | | :- | :- | :- | :- | | `supply_velocity` | **17%** | Recent mint pressure — minted\_24h as a % of total\_supply. A sudden supply surge is the leading pre-depeg signal: issuers mint aggressively to meet redemptions, or attackers exploit uncapped minters. | ≥10% of supply minted in 24h → 1.0 | | `liquidity_erosion` | **12%** | % drop in liquidity vs the 7-day average. Pool depth quietly shrinks before a depeg as LPs detect risk and exit early. A 50%+ drop in depth signals impending slippage collapse. | ≥50% liquidity drop → 1.0 | | `pool_balance_drift` | **11%** | DEX pool imbalance — how far the stablecoin's share has drifted from 50%. A balanced Curve/Uniswap pool sits at \~50%. Heavy one-sided selling pushes the ratio toward 80–90% before price breaks. | 100% or 0% pool share → 1.0 | | `price_confidence` | **10%** | Inverted price source confidence. Low confidence = fewer reliable price sources feeding the market. Single-source pricing is a fragility indicator. | low → 0.7 · fallback → 0.9 · single\_source → 0.4 | | `cross_source_divergence` | **10%** | Spread across multiple price data sources. Divergence above 5% means market participants are seeing different prices — a precursor to arbitrage breakdown. | >10% spread → 1.0 (5%→0, 10%→1.0) | | `whale_concentration` | **7%** | Top-10 holder % of total supply. Concentrated holders can trigger a bank-run cascade — when whales exit, redemption pressure overwhelms liquidity and price breaks. | \<20% = 0.0 · 50% = 0.5 · ≥80% = 1.0 | | `blacklist_activity` | **8%** | Freeze/blacklist events on this token contract in the last 7 days. Issuers typically freeze large addresses during active investigations or after detecting suspicious behavior — a leading compliance signal. | 5+ events in 7d → 1.0 (1 event → 0.3) | | `mint_burn_flow` | **8%** | Bank-run gauge from the supply flows tracker (±100). Negative = unusual redemption pressure. When burning significantly outpaces minting, the market is voting to exit. | -100 (max burn pressure) → 1.0 (≥0 = 0.0) | | `mint_role_centralization` | **8%** | Single EOA holding MINTER\_ROLE — the structural vulnerability exploited in the USR March 2026 incident (\~\$80M minted from \~\$200K collateral by one compromised key). An uncapped single-key minter is a systemic risk regardless of current price. | critical (single EOA) → 1.0 · warning (2 minters) → 0.5 | | `tvl_supply_divergence` | **5%** | On-chain supply materially exceeds reference per-chain circulating supply. Tokens created on-chain but not reflected in circulating data = potential unbacked minting or bridge mint accounting error. | ≥20% on-chain excess → 1.0 | | `yield_anomaly` | **4%** | APY spike above the 30-day rolling average. A sudden APY jump (issuers boost yield to retain depositors during stress) is a counter-intuitive but historically reliable pre-depeg signal. | 3x baseline APY → 1.0 | # Reading PCS in the API Response Each token entry you get from `/rwa/peg-canary` carries the score plus two signal fields — and you should not read them on the same scale: | **Field** | **Scale** | **Use it for** | | :- | :- | :- | | `drivers[]` | `normalized` is always **0–1** (alongside `weight`, `contribution`, and the raw input as `raw`) | Severity bars, cross-signal comparison, anything you show to users | | `sub_signals` | **Mixed per-key scales** — diagnostic telemetry | Debugging and data QA — don't render these directly | You get nine keys in `sub_signals`, in three groups: * **Driver-backed, 0–1**: `supply_velocity`, `mint_burn_flow`, `cross_source_divergence`, and `blacklist_activity` carry the same normalized value you find in `drivers[]`. * **Raw pipeline inputs, per-key units**: `pool_balance_drift` is the pool share ratio, `liquidity_erosion` is the % change in liquidity vs the 7-day average (it can be negative), `yield_anomaly` is the current APY, and `whale_concentration` is the top-10 supply percentage. * **Always `null`**: `price_confidence` is a source-confidence label (`high` / `medium` / `low` / `fallback`) upstream, so the numeric payload carries it as `null` — read its normalized 0–1 value from `drivers[]` instead. Expect any key to be `null` when its input was unavailable. `mint_role_centralization` and `tvl_supply_divergence` never appear in `sub_signals` — you can only read them through `drivers[]`. > [!WARNING] > > Never render `sub_signals` values on a 0–100 severity scale. A raw `liquidity_erosion` of `3.55` (a 3.55% liquidity change) scaled ×100 draws a full-width red bar on a token whose PCS reads `1/100 · CALM`. For anything visual or comparative, use `drivers[].normalized`. # Case Study: USR March 2026 > [!NOTE] > > The `mint_role_centralization` signal was added directly in response to the [Resolv incident](https://www.webacy.com/blog/usr-depeg-why-structural-health-is-the-mandatory-standard-for-institutional-defi). An attacker who gained access to the single EOA holding MINTER\_ROLE minted \~\$80M USR from \~\$200K of collateral in one transaction — the off-chain service was the only constraint, and there was no on-chain cap. PCS would have flagged this vault with a **DANGER** pre-stress score based on the `mint_role_centralization` signal alone, before any price impact. This is also why the Risk Rating structural risk component includes a **mint\_cap\_status** adjustment: an uncapped minter adds +10 pts to structural risk regardless of current PCS readings. # Pricing Source: https://docs.webacy.com/pricing Compare Webacy API developer plans for wallet lookups, risk screening, fund flow tracing, simulation, and entity detection. Webacy uses a usage-based model to provide predictable, scalable access to our risk intelligence infrastructure. Rather than charging a flat rate per endpoint, every API request draws on your plan's monthly usage allocation according to the complexity of the analysis performed. This allows developers to access a wide range of capabilities while only paying for the level of intelligence and processing they use. Examples include: * Basic wallet lookups and metadata retrieval drawing the least from your allocation * Risk screening and transaction analysis drawing a moderate amount * Advanced fund flow tracing, simulation, entity detection, and historical analysis drawing the most Because different endpoints require different levels of computation, storage, and data aggregation, usage varies by endpoint. Your current consumption is available in the [Developer Portal](https://developers.webacy.co/) and through the usage API. Some endpoints offer optional, deeper analysis that is priced as its own request when you ask for it. For example, adding `fund_flow_exposure=true` to a [wallet screening](/screen-a-wallet-for-risk) request bills every `200` response at the fund-flow rate rather than the standard wallet screening rate — including the `pending` responses you poll while the trace runs. A `202` (the wallet's own analysis still running) is not billed. The `X-Webacy-CU` response header tells you what each request drew from your allocation. ## Pay-Per-Request with x402 If you would rather not manage an API key or a plan, you can pay per request in USDC on Base with [x402 Payments](/x402-payments). The price varies by endpoint for the same reasons consumption does, and there is no subscription. ## Developer Plans All developer plans include: * API access * Documentation and SDKs * A monthly usage allocation * Access to supported chains * Standard support * Defined rate limits As your usage grows, higher tiers provide: * Larger monthly allocations * Higher API rate limits * Priority support * Additional chain coverage * Access to advanced intelligence endpoints > [!TIP] > > Log in to our [Developer Portal](https://developers.webacy.co/) to view available plans. ## Enterprise & Custom Pricing Pricing may vary based on factors including: * Supported blockchain networks * Monthly request volume * Endpoint mix and workload profile * Data retention requirements * Dedicated infrastructure needs * Service-level agreements (SLAs) For organizations processing large volumes of on-chain activity, building AI-powered workflows, monitoring institutional portfolios, or requiring custom deployments, we offer tailored enterprise packages. ## Contact Us Interested in pricing, usage estimates, or enterprise access? [Contact the Webacy team](https://dapp.webacy.com/contact) to discuss your use case, expected volume, supported chains, and infrastructure requirements. We'll help determine the most appropriate plan and provide a custom quote based on your needs. # Rate Limits Source: https://docs.webacy.com/rate-limits Webacy API rate limits by plan tier: Demo allows 500 requests per month at 1 rps with burst 2, plus 429 handling and endpoint access rules. ## Understanding Rate Limits Rate limits define the maximum number of requests your application can make during a given period of time. If a limit is exceeded, the API will temporarily reject additional requests until your quota resets. To build reliable integrations, we recommend: * Batching requests where appropriate * Using webhooks instead of polling when possible * Caching responses that do not require real-time updates * Implementing retries with exponential backoff If you outgrow a tier or need higher rate limits, you can upgrade to the next tier, or get in touch with our team. ## Demo API Key Rate Limits When you create an API Key in the [Developer Portal](https://developers.webacy.co/), it is assigned to the Demo Plan (Free). The following are the rate limits allocated to a Demo Tier API Key: * 500 requests per month * 1 request per second * Burst capacity: 2 requests The Demo Plan Rate Limits are restrictive on purpose, and will not support a production environment. You can upgrade your plan to higher tiers in the Developer Portal. ## Endpoint Access by Plan Not every endpoint is available on every plan. Higher tiers include access to advanced intelligence endpoints, as described on the [Pricing](/pricing) page. If your API key's plan does not include an endpoint, the API returns a `403 Forbidden` response. See [Errors](/errors) for the full status code reference. To check which endpoints your plan includes, log in to the [Developer Portal](https://developers.webacy.co/) or contact [info@webacy.com](mailto:info@webacy.com). > [!NOTE] > > **Need higher limits?** Production and enterprise tiers offer significantly increased rate limits. Contact us at [info@webacy.com](mailto:info@webacy.com) to upgrade your plan. ## Handling Rate Limits When you exceed the rate limit, the API returns a `429 Too Many Requests` response: ```json theme={null} { "message": "Rate limit exceeded" } ``` ## Best Practices > [!TIP] > > Implement exponential backoff when you receive a 429 response. * **Cache responses** - Avoid redundant API calls for the same data * **Batch requests** - Use batch endpoints where available * **Monitor usage** - Use the [API Usage](/api-reference/api-usage/get-api-usage-for-specified-dates) endpoint to track consumption * **Implement queuing** - Queue requests during high-traffic periods ## Scaling your Integration When your integration is production-ready and you need higher limits: 1. **Developer Portal** - Upgrade at [developers.webacy.co](https://developers.webacy.co/) 2. **Account Manager** - Contact your account manager for enterprise plans 3. **Support** - Email [info@webacy.com](mailto:info@webacy.com) As your application grows, Webacy is designed to scale with it. Whether you're screening thousands of wallets, monitoring large portfolios, or processing millions of blockchain events, higher request limits and enterprise usage plans are available. If your expected traffic exceeds your current allocation, contact the Webacy team to discuss a plan that fits your deployment. # Risk Factors Source: https://docs.webacy.com/risk-factors Reference for the hundreds of independent risk factors Webacy combines into every score, spanning security, financial, operational, and compliance signals. A **risk factor** is an individual characteristic, behavior, or observation that contributes to Webacy's overall assessment of an entity. Rather than relying on a single indicator, Webacy evaluates hundreds of proprietary risk factors spanning security, financial integrity, operational resilience, governance, compliance, and behavioral analysis. Some risk factors are simple binary observations, while others are the result of complex analytics performed across blockchain history, market data, and relationships between entities. Together, these factors provide the foundation for every risk score, rating, alert, and policy decision generated by the platform. The exact weighting, implementation, and methodologies behind many of these risk factors are proprietary and continuously refined as new threats and asset classes emerge. ## Risk Factor Categories Webacy's risk factors can be organized into several broad categories. > [tab] Security Risk > > Security risk factors identify vulnerabilities, malicious behavior, exploit patterns, and characteristics that could place users or assets at risk. > > Examples include: > > * Malicious contract functionality > * Freezeability > * Blacklisting capabilities > * Unlimited mint permissions > * Proxy upgradeability > * Address poisoning exposure > * Exploit associations > * Transaction simulation results > [tab] Financial Risk > > Financial risk factors evaluate the health, sustainability, and economic characteristics of digital assets and protocols. > > Examples include: > > * Holder concentration > * Liquidity concentration > * Redemption constraints > * Reserve composition > * Collateral quality > * Asset backing > * Yield sustainability > * Market dependency > [tab] Governance Risk > > Governance risk measures the level of control, centralization, and operational authority exercised over an asset or protocol. > > Examples include: > > * Admin privileges > * Upgrade authority > * Emergency pause controls > * Governance participation > * Voting concentration > * Multisig structure > * Key person dependencies > [tab] Operational Risk > > Operational risk factors assess how resilient an asset or protocol is during normal operation and periods of stress. > > Examples include: > > * Oracle dependencies > * Infrastructure concentration > * Protocol integrations > * Treasury management > * Smart contract dependencies > * Historical operational incidents > [tab] Compliance Risk > > Compliance-related factors identify exposure to sanctioned entities, illicit activity, regulatory concerns, and known high-risk actors. > > Examples include: > > * OFAC sanctions exposure > * DPRK associations > * Money laundering indicators > * High-risk counterparties > * Mixer interactions > * Jurisdictional considerations > [tab] Behavioral & Network Risk > > Many risks cannot be identified by looking at an entity in isolation. > > Webacy analyzes historical behavior and relationships across the blockchain to identify patterns that emerge over time. > > Examples include: > > * Issuer reputation > * Counterparty risk > * Wallet clustering > * Historical transaction behavior > * Connected entity analysis > * Fund flow relationships > * Known ecosystem associations ## Beyond Individual Risk Factors Many risk factors are not inherently "good" or "bad." Instead, they provide additional context that helps explain an entity's overall risk profile. For example, a vault may receive financial risk signals related to redemption mechanics, governance signals related to administrative controls, and operational signals related to underlying protocol dependencies. Together, these independent observations create a more complete picture than any single factor could provide on its own. ## Beyond Risk Categories The categories presented are intended to help explain the Webacy Risk Framework, not to define rigid boundaries. Many risk factors naturally span multiple dimensions of risk. For example, a governance issue may also introduce operational risk, while an issuer's reputation may influence both financial and compliance assessments. As the blockchain ecosystem evolves, new products, use cases, and regulatory requirements will continue to shape how these signals are interpreted. The strength of the Webacy Risk Framework lies not in assigning every factor to a single category, but in combining signals from across the ecosystem to provide a more complete and contextual view of risk. ## A Continuously Evolving Framework Webacy currently evaluates **400+ proprietary risk factors**, with new signals regularly added as the blockchain ecosystem evolves. Emerging asset classes, protocol designs, attack vectors, and regulatory requirements continually introduce new considerations, and our framework evolves alongside them. Risk factors are the building blocks of the Webacy Risk Framework, enabling explainable, transparent, and adaptable risk intelligence across every supported blockchain entity. ## What's Next > [card] [Risk Scores and Ratings](/risk-scores-and-ratings) > > Webacy provides both numerical risk scores for automation and letter-grade ratings for quick interpretation. # Risk Scores and Ratings Source: https://docs.webacy.com/risk-scores-and-ratings Compare Webacy 0-100 numerical risk scores and A+ to F letter-grade ratings, and learn when to use each for automated policies or human-facing interpretation. Every Webacy analysis produces one or more **risk scores** that quantify the relative risk of an entity. Depending on the entity type, these scores may also be translated into a standardized **letter-grade rating**, making complex blockchain risk easier to interpret at a glance. While the methodology used to calculate each score varies by entity type, every score follows the same fundamental principles and is designed to provide consistent, explainable, and actionable risk intelligence across the platform. ## Risk Scores Risk scores are numerical values that represent the relative risk of an entity on a scale from **0 to 100**. Every score is generated by combining hundreds of individual risk factors through entity-specific weighting and scoring methodologies. Depending on the entity, these methodologies may incorporate real-time monitoring, structural analysis, historical behavior, financial metrics, governance characteristics, and compliance signals before producing a final composite score. Unlike binary pass/fail systems, a numerical score provides greater precision for monitoring changes over time, comparing entities, and building automated policies. Across Webacy, **higher scores always indicate higher risk**. 0 100 Risk scores are intended to be machine-readable and are commonly used by policy engines, APIs, automated workflows, alert thresholds, AI agents, historical monitoring, and more. ## overallRisk and riskScore Address responses return both a numeric `overallRisk` and a string `riskScore` label. `overallRisk` is a rolled-up 0–100 aggregate across every issue detected on the address, and `riskScore` is the human-readable classification of that number. | `overallRisk` range | `riskScore` label | | - | - | | 0–23 | Low Risk | | 23.1–50 | Medium Risk | | 50.1–100 | High Risk | `overallRisk` is not manually set. It aggregates the individual `issues[].score` values, which in turn are weighted from the tag-level `severity` values on each finding. See [Severity Levels](/severity-levels) for how per-tag severity feeds into the rolled-up score. ## Letter Grade Ratings For supported entity types, Webacy converts numerical risk scores into standardized letter-grade ratings. Ratings provide a concise summary of overall risk without requiring users to interpret individual numerical values. | Rating | General interpretation | | - | - | | A+ to A- | Low observed risk | | B | Moderate risk | | C | Elevated risk | | D | High risk | | F | Severe or unacceptable | The exact mapping between scores and ratings depends on the entity type and the methodologies used to evaluate that asset. ## Explainable by Design Every Webacy score is designed to be explainable. Rather than acting as a "black box," scores are backed by the underlying risk factors, detection engines, and supporting intelligence that contributed to the final result. This enables developers, analysts, institutions, and AI systems to understand not only **what** the score is, but **why** it was assigned. ## Scores Evolve Blockchain risk is dynamic. As new information becomes available, risk scores may change to reflect new blockchain activity, protocol upgrades, governance changes, market conditions, emerging threats, or newly discovered relationships between entities. For this reason, Webacy scores should be viewed as **continuous assessments rather than permanent labels**. ## What's Next > [card] [Severity Levels](/severity-levels) > > Learn how Webacy groups scores into standardized severity levels for alerts, monitoring, and automated decision making. # Risk Rating Source: https://docs.webacy.com/safety-grade How Webacy maps a stablecoin's 0–100 risk score to an A+ to F letter grade on the standard 11-band scale — lower risk earns a better grade. A stablecoin's **Risk Rating** is a single letter grade from **A+** (lowest risk) to **F** (highest risk), mapped directly from the token's 0–100 risk score on Webacy's standard 11-band scale — the same scale used across every Webacy grade surface. It is a risk rating: lower risk earns a better grade, while the underlying risk score runs higher = worse. | Grade | Risk score | Grade | Risk score | | :- | :- | :- | :- | | A+ | 0–5 | C+ | 47–56 | | A | 6–12 | C | 57–66 | | A- | 13–20 | C- | 67–77 | | B+ | 21–28 | D | 78–88 | | B | 29–37 | F | 89–100 | | B- | 38–46 | | | The band cutoffs encode severity, so a riskier token can never grade better than a safer one — the grade maps straight from the risk score with no separate overrides on top. Bands are tighter at the safe end and widen as risk rises. # What Drives the Risk Score A stablecoin's risk score combines three dimensions (weights sum to 100%). Each contributes risk points — higher means riskier. **Peg Risk (40%)** Live depeg risk score. A healthy stablecoin (risk score 0) contributes 0 risk pts; a fully depegged token (risk score 100) contributes the full 40 pts. `40 × (risk_score / 100)` **Pre-Depeg Stress (30%)** Peg Canary Score (PCS) pre-depeg stress. CALM conditions contribute \~0 pts; DANGER contributes up to \~30 pts. If PCS data is unavailable, this weight is redistributed to the other two dimensions. `30 × (pcs_score / 100)` **Structural Risk (30%)** Composite of peg mechanism, governance type, token type, holder concentration (HCI), mint cap status, and Webacy contract risk. Captures inherent design risk independent of current price behaviour. `30 × (structural_risk / 100)` > [!NOTE] > > Risk Score = Peg Risk + Pre-Depeg Stress + Structural Risk contributions. Capped 0–100, higher = more risk. Good structure doesn't save a token that's actively depegging — strong design plus a crashing price still produces a D or F, because peg risk dominates the score. For the full real-time depeg risk methodology — the 16 signals behind the live risk score — see [Scoring Methodology](/scoring-methodology). For structural risk on stablecoins and RWA tokens, see [RWA Risk (v3)](/api-reference/rwa-v3). # Structural Risk Breakdown How risky is the token's design, independent of current price? Formula: \ `0.65 × mechanism_risk + 0.35 × governance_risk + adjustments` — 0 = lowest structural risk, 100 = highest. ### Peg Mechanism Risk (65% weight within structural) | **Mechanism** | **Risk** | **Examples** | **Why** | | :- | :- | :- | :- | | `fiat_reserve` | **0** | USDC, USDT, PYUSD | Cash or T-bills backing — redeemable 1:1 at any time with the issuer. | | `rwa` | **18** | BUIDL, mTBILL, USDY, OUSG | Real-world assets with regular attestations. Slightly less liquid than pure cash. | | `commodity` | **28** | PAXG, XAUT | Gold-backed with audited reserves. Price floats vs USD but asset is real. | | `crypto_collateral` | **45** | DAI, LUSD, crvUSD | Overcollateralised but exposed to collateral price volatility. | | `delta_neutral` | **60** | USDe | Funding-rate hedged. Works in normal markets; funding flips during stress. | | `algo` | **85** | UST, FRAX (partial) | Algorithmic / unbacked. Death-spiral risk profile. UST is the defining case. | ### Governance Risk (35% weight within structural) | **Governance Type** | **Risk** | **Why** | | :- | :- | :- | | `cefi` | **20** | Regulated centralised issuer (Circle, Tether). Compliance audits, AML/KYC, legal accountability. | | `defi` | **30** | On-chain governance — no single point of failure. Smart contract auditability partially offsets key-person risk. | | `cefi_dependent` | **35** | DeFi protocol with CeFi collateral dependency. Decentralised at the protocol layer but inherits the issuer's trust assumptions. | ### Structural Adjustments (additive risk) | **Adjustment** | **Condition** | **Points** | | :- | :- | :- | | **Token type — algo** | token\_type == algo | **+10 pts** | | **Token type — synthetic** | token\_type == synthetic | **+5 pts** | | **Token type — yield** | token\_type == yield | **−3 pts** | | **Token type — rwa** | token\_type == rwa | **−2 pts** | | **HCI — Extreme concentration** | top-10 holder-concentration `index` ≥ 0.50 (see [HCI](/holder-concentration)) | **−15 pts** | | **HCI — High concentration** | top-10 `index` 0.30–0.50 | **−10 pts** | | **HCI — Medium concentration** | top-10 `index` 0.10–0.30 | **−5 pts** | | **Mint cap — two\_step\_uncapped** | Off-chain completion pattern with no on-chain cap (USR pattern) | **+12 pts** | | **Mint cap — uncapped** | Authorised minter with no cap detected | **+10 pts** | | **Webacy contract — high risk** | Webacy contract score ≥ 75 | **+15 pts** | | **Webacy contract — moderate** | Webacy contract score 50–74 | **+10 pts** | | **Webacy contract — low risk** | Webacy contract score 25–49 | **+5 pts** | > [!NOTE] > > HCI (Holder Concentration Index) deductions are **exempt for `fiat_reserve` and `rwa` tokens**: USDC holders redeem at \$1 with the issuer and tokenized T-bill fund shares redeem at NAV — there is no exit-dump amplification risk. RWA tokens curated as non-redeemable (private-credit, bond or lending-market positions) keep the deduction. Crypto-collateral, delta-neutral, and algo tokens face real cascade risk from concentrated exits. Missing HCI data is never penalised; the record carries `hci_data_missing` instead. # Depeg Monitor Scoring Methodology and Signals Source: https://docs.webacy.com/scoring-methodology The full depeg risk scoring methodology — 16 weighted signals, tiers, and false-positive guards behind each stablecoin's 0–100 score. Every tracked stablecoin gets a **0–100 risk score every 20 minutes** (0 = pegged, 100 = critical depeg). It is a weighted composite of 16 normalized signals. Guards reduce the influence of thin or uncorroborated data on the score and tier. Higher always means riskier. # The Final Outputs | Output | What it Means | | - | - | | **Score (0–100)** | Overall depeg risk — weighted composite of all signals, adjusted for token type. | | **Tier** | ok / watch / warning / critical — bucketed from each cycle's score, after the false-positive guards below. | | **premium** | Special tier: token trading 2%+ above peg with no risk signal present (strong demand badge). | | **State Flags** | 6 binary crisis labels surfaced alongside the score: liquidity\_crisis, oracle\_dislocation, cross\_chain\_fragmentation, supply\_spike\_alert, chain\_supply\_imbalance, death\_spiral\_candidate. | | **Recommendation (vault overlay)** | EXIT / REDUCE / MONITOR / WATCH — actionable signal fed into vault risk scoring when this stablecoin appears as vault collateral or underlying. | | **depeg\_sub\_score** | A separate 0–100 sub-score fed into the vault composite at 5% weight. Measures capital loss risk from peg deviation + persistence, distinct from real-time market stress. | # Risk Tiers > [!NOTE] > > The tier is set from each 20-minute score; it is not smoothed across ticks. Noise is handled by the false-positive guards and data-gap rules below. | **Tier** | **Score Range** | **What It Means** | | :- | :- | :- | | **Critical** | 70 – 100 | Severe and active depeg risk. Immediate attention required. Vault positions backed by this token should consider exit. | | **Warning** | 50 – 69 | Active depeg developing. Monitor closely; multiple signals elevated. Escalation likely if unresolved. | | **Watch** | 25 – 49 | Early stress signals present. Track trend across next several ticks. Not yet a confirmed depeg. | | **OK** | 0 – 24 | Normal peg conditions. Low risk. Token is liquid, stable, and on-peg across tracked chains. | | **Premium** | — | Special: token is trading 2%+ above peg with no risk signal (strong demand). Not a risk indicator. | # Signal Weights (the Building Blocks) Each signal is normalized to 0–1 before weighting. When a signal has no data for a given token, it is skipped and all remaining weights are renormalized to sum to 1.0 — so a missing signal never drags the score down on its own. A missing price feed is different: see Alerting and Data Gaps below. The **16 core signals** below sum to 1.0. **Reserve Attestation Staleness** (\~4%) is a *conditional* 17th signal, scored only for tokens with a published attestation source; when it applies it is added and the full set renormalizes back to 1.0. ### **Price & Peg Deviation** | **Signal** | **Weight** | **What It Measures** | **Max threshold** | | :- | :- | :- | :- | | **Price Deviation (5m)** | **31%** | Distance from peg using 5-minute VWAP. The single dominant signal — peg is the product's promise. | 5% deviation → score 1.0 (USD stables). Yield/RWA types have wider tolerance bands. | | **CEX Price Deviation** | **6%** | CEX cross-rate price deviation from peg. Active only for CEX-listed tokens (USDT, USDC, DAI, FDUSD); skipped and renormalized for DEX-only tokens. Provides an independent centralized-venue confirmation of peg stress. | 5% deviation → score 1.0 | | **Max Drawdown (5m)** | **1%** | Worst single-tick price drop in the last 5 minutes. | 2% drop in 5 min → 1.0 | ### **Persistence (Duration Off-Peg)** | **Signal** | **Weight** | **What It Measures** | **Max threshold** | | :- | :- | :- | :- | | **Persistence (50bp, 60m)** | **14%** | Minutes spent >0.5% off-peg in the last 60 minutes. A brief spike is noise; 30+ minutes is a pattern. | 60 min continuously at 50bp → 1.0 | | **Persistence (100bp, 60m)** | **11%** | Minutes spent >1% off-peg in the last 60 minutes. A stiffer threshold for confirmed deviation. | 60 min continuously at 100bp → 1.0 | ### **Liquidity & Market Depth** | **Signal** | **Weight** | **What It Measures** | **Max threshold** | | :- | :- | :- | :- | | **Liquidity Depth** | **10%** | DEX pool depth / ±2% order-book depth — the real cost of exiting. Thin depth raises risk even before price deviates. (Replaced the earlier \$100k-slippage proxy.) | thin depth → 1.0 | | **Liquidity Decay** | **2%** | Decline in available liquidity vs the 24h baseline. A slowly draining pool is a leading depeg indicator. | 100% decay → 1.0 | | **Liquidity Available (\$100k)** | **1%** | Binary: can we route a \$100k swap at all? False = illiquid enough to be dangerous. | False → 1.0 | | **Volume Anomaly** | **1%** | Z-score of 5m and 60m volume vs recent baseline. Penalizes both volume collapse (panic absence of liquidity) and volume spikes (coordinated selling / front-running of a known depeg). | z \< −4 (collapse) → 1.0 · z > 4 (spike) → up to 0.5 | ### **Cross-Chain & Supply** | **Signal** | **Weight** | **What It Measures** | **Max threshold** | | :- | :- | :- | :- | | **Chain Spread (5m)** | **5%** | Price dispersion across all chains where the token trades. A 1%+ spread means cross-chain arbitrage has broken down — a leading signal for bridge stress or isolated depeg. | 1% spread → 1.0 | | **Supply Spike** | **5%** | Anomalous minting — either >10% in 1 hour (rolling) or >5% in a single block. The single-block threshold catches exploit-style emergency mints before price moves. | >10% in 1h OR >5% in 1 block → 1.0 | | **Redemption Velocity** | **5%** | Concentrated redemption drain — burns (Transfer to 0x0) accelerating vs baseline. A leading run signal: capital exiting fast is visible on-chain before the price gives way (the msUSD / USR pattern). | anomalous burn velocity → 1.0 | ### **Reserve Attestation** | **Signal** | **Weight** | **What It Measures** | **Max threshold** | | :- | :- | :- | :- | | **Reserve Attestation Staleness** | **\~4%** | How recently the issuer published a third-party reserve attestation or proof-of-reserves. Sourced from data/reserve\_attestations.json. | 0 for attestations ≤30 days old; linear ramp to 1.0 at 180+ days. Only scored for tokens with a known attestation source. | ### **Volatility & Oracle** | **Signal** | **Weight** | **What It Measures** | **Max threshold** | | :- | :- | :- | :- | | **Volatility Burst** | **5%** | Sudden price volatility spike vs recent baseline. 5× baseline volatility means the market is in crisis mode, even if price hasn't moved much yet. | 5× baseline → 1.0 | | **Oracle Deviation** | **1%** | Gap between the on-chain oracle feed price and DEX VWAP. A widening gap means oracle is stale or DEX is moving without oracle awareness. | 200 bps gap → 1.0 | | **Oracle Staleness** | **1%** | Time since last oracle heartbeat update. Stale oracles are dangerous in lending markets — they enable overborrowing against inflated collateral. | ≥24h → 1.0 · ≥6h → 0.7 · ≥1h → 0.4 | | **Price Source Disagreement** | **1%** | Deviation across multiple price sources (DEX, oracle, reference market feed). Divergence suggests manipulation or data quality issues. | 10% deviation → 1.0 | > [!NOTE] > > **DEX/CEX disagreement adjustment:** When both DEX and CEX prices are available and disagree — DEX stressed but CEX calm — the DEX `price_deviation_5m` weight is reduced by 30%, since the stress is likely a DEX-specific liquidity issue rather than a real depeg. The `cex_only_stress` guard (see below) handles the reverse case: CEX stressed, DEX calm. # Scoring Guards & Modifiers Six post-computation guards adjust the final score to reduce false positives and prevent single-signal dominance. | **Guard** | **When it fires** | **Effect** | | :- | :- | :- | | **Persistence gate** | Current price deviation is \< 0.125% from peg (price\_deviation\_5m normalized \< 0.025) | Persistence signal weights capped at 30% of normal. Prevents 60 minutes of historical off-peg time from dominating the score when price has since fully recovered. | | **Corroboration gate** | pool\_balance\_drift, single\_source, or blacklist\_activity are active but no other signal has normalized value ≥ 0.10 | Weak signals capped at 40% of normal weight. Requires at least one independent corroborating signal before these signals contribute at full strength. corroboration\_gated flag surfaces in drivers. | | **Confluence escalation gate** | Score is in Warning tier (50–69) but fewer than 2 signals have normalized value ≥ 0.10 | Tier demoted from Warning → Watch. The numeric score is unchanged; only the tier label changes. confluence\_demotion flag surfaces in drivers. Critical tier (≥70) is exempt, and so is a corroborated far-from-peg depeg (`price_alert == real_depeg_far_from_peg`) — that alone is standalone evidence, so a single-signal Warning is not demoted. | | **supply\_spike\_gated** | Current snapshot shows a supply spike but supply\_spike\_prev is absent or false (i.e. first appearance — no prior snapshot also showed a spike) | supply\_spike signal weight capped at 20% of normal. Full weight restored when spike persists across 2+ consecutive snapshots (\~40 min at the 20-minute cadence). Prevents flash-loan-induced single-snapshot events from driving the score. | | **bridge\_flow\_spike** | bridge\_flow\_pct > 80% — supply spike is primarily explained by L2 bridge inflows rather than organic minting | supply\_spike signal weight reduced to 50% of normal. Prevents bridge activity on Arbitrum, Base, and other L2s from being misread as an exploit or organic demand shock. | | **cex\_only\_stress** | CEX price shows stress (>20 bp deviation) but DEX price is calm (within normal range) | Sentinel driver added to the alert list; score is not increased. CEX stress without DEX confirmation is flagged for investigation rather than scored — it may reflect a CEX-specific issue, a withdrawal freeze, or a pre-depeg signal requiring manual review. | > [!NOTE] > > When any guard fires, a meta-entry (`corroboration_gated`, `confluence_demotion`, `supply_spike_gated`, `bridge_flow_spike`, `cex_only_stress`) is appended to the `drivers` array so the dashboard and alert callers can surface why a tier was adjusted. When the tier is set to **premium** (trading 2%+ above peg with no risk signal), a `premium_override` meta-entry is appended the same way. It has `weight` 0 and `contribution` 0: it is a marker, not a scoring input, and adds nothing to the score. # Token Type Adjustments Different token types have fundamentally different expected behaviors. A yield-bearing token like sUSDe is designed to accrue value above \$1 — scoring it against a strict \$1 peg would produce constant false positives. The model adjusts the price deviation normalization curve per type. | **Type** | **Allowed Range** | **Max Deviation Threshold** | **Examples** | | :- | :- | :- | :- | | **Standard USD** | \$0.99 – \$1.01 | 5% deviation = max score | USDC, USDT, DAI, LUSD, crvUSD | | **Yield-bearing** | \$1.00 – \$1.35 (growing) | ±35% of expected yield-growth range | sUSDe, sfrxUSD, sDAI, USDS | | **RWA / Treasury** | \$1.00 – \$1.10 | ±10% of expected NAV | BUIDL, mTBILL, USDY, OUSG | | **Gold-pegged** | ±5% of XAU spot | 5% deviation from XAU = max score | PAXG, XAUT | | **FX-pegged** | ±10% of FX rate | 10% deviation from EUR/GBP/etc. = max | EURS, agEUR, EURT | # Alerting and Data Gaps **Tier-change alerts.** Webhook subscribers get an alert when a token's tier changes from the last tier we delivered for that token and chain. A token seen for the first time already above `ok` alerts too, so a token that appears in trouble is never silent. An escalation built on an untrusted price reading is suppressed; a recovery (a tier moving back toward `ok`) is still sent. **Price feed gaps.** When the price feed drops out, the deviation signal reads zero. If the token was already in watch, warning or critical, the last real score is carried forward instead of publishing a false all-clear. The carry stops after 6 hours, or immediately if the age of the last reading is unknown. > [!NOTE] > > Earlier versions of this page described a velocity boost (up to +15 points for a fast-rising score) and two-tick confirmation before a tier change. The production monitor applies neither. The tier comes from each 20-minute score; the guards on this page reduce the influence of thin or uncorroborated data on it. # Low Signal Coverage Guard When a score reaches ≥50 (Warning range) but fewer than 5 signals have data AND the price is currently at peg, the tier is automatically demoted from **warning** to **watch**. This prevents a thin-data token from entering a warning state on the strength of one or two signals alone. All 5+ active signals must agree before a warning is confirmed. # State Flags (Binary Crisis Indicators) These six flags are computed separately from the numeric score and surfaced alongside it in the API. They name specific crisis types that are active right now — a score of 72 tells you *how bad*; the flags tell you *what kind*. | **Flag** | **Trigger Condition** | **What It Means** | | :- | :- | :- | | `liquidity_crisis` | Slippage >150 bps OR cannot route \$100k OR (slippage >80 bps AND liquidity decay >40%) | The market is too thin to exit a meaningful position without significant price impact. Normal redemption is impaired. | | `oracle_dislocation` | Oracle deviation >200 bps OR feed stale >24h | The oracle feed has significantly diverged from on-chain DEX prices, or has stopped updating. Lending markets relying on this oracle are at risk of enabling under-collateralized borrowing. | | `cross_chain_fragmentation` | Chain spread >0.5% | The same token is trading at meaningfully different prices on different chains. Cross-chain arbitrage has broken down — typically signals bridge stress or isolated chain liquidity failure. | | `supply_spike_alert` | Supply minted >5% in 1h OR >2% in a single block | Anomalous on-chain minting detected. Single-block spikes are especially concerning as they match exploit-style emergency mints seen in Terra, IRON Finance, and similar. | | `chain_supply_imbalance` | On-chain supply on one chain exceeds reference per-chain circulating supply by ≥20% | The tracked on-chain supply does not match the official circulating supply data. A leading indicator of bridge exploits or unbacked minting. | | `death_spiral_candidate` | Adjusted price deviation >2% AND persistence >20 min AND (liquidity decay >30% OR slippage >100 bps OR liquidity unavailable) | Multi-signal stress confluence. Price is off-peg, it has been sustained, and exit liquidity is deteriorating simultaneously. This is the pattern seen in terminal depeg events. Requires immediate attention. Note: yield and RWA tokens apply type-adjusted deviation thresholds so expected trading premiums do not trigger this flag. | # How Depeg Risk Feeds into Vault Scoring The live depeg monitor output is merged into every vault's composite risk score via the depeg overlay module. It runs at pipeline time, applies the worst-case signal across all chains where the underlying token trades, and contributes to the vault composite at **5% weight**. ### **depeg\_sub\_score vs monitor score** The **monitor score** measures real-time market stress (all 16 signals: slippage, persistence, supply, oracle). The **depeg\_sub\_score** fed into the vault composite is narrower — it focuses on *capital loss risk* from peg deviation and persistence alone, plus a floor from the monitor score to catch liquidity collapse events even before price moves. ### **Vault Recommendation Actions** When a depeg is active, the overlay generates a recommendation for vault holders: * **EXIT** — critical tier + ≥30% peg deviation * **REDUCE** — critical + ≥5% deviation * **MONITOR** — critical/warning + any deviation * **WATCH** — warning tier OR score ≥50 | **depeg\_sub\_score Component** | **Contribution** | | :- | :- | | **Peg deviation score (graduated)** | Base: 0.1% dev → 5pts · 0.5% → 15pts · 1% → 30pts · 2% → 50pts · 3% → 65pts · 5%+ → 80–95pts | | **Persistence bonus** | +10 pts max after 120 minutes of continuous off-peg deviation | | **Monitor score floor** | max(peg\_score + bonus, monitor\_score × 15%) — ensures liquidity collapse is not ignored even when price hasn't moved yet | | **Supply spike boost** | +5 to +20 pts when minted\_24h\_pct >40% (large unexpected minting alongside any deviation is a danger signal) | | **Final cap** | 0–100 range; fed into vault composite at 5% weight | # API Response Fields The `/latest` endpoint returns a snapshot of every tracked token. Vault objects from `/vaults` include `monitor_tier` and per-composition `depeg_score`. | **Field** | **Type** | **Description** | | :- | :- | :- | | `score` | number (0–100) | Live composite risk score. Higher = riskier. | | `tier` | string | ok / watch / warning / critical / premium | | `abs_dev_clean` | number \| null | Absolute peg deviation (clean, outlier-stripped) | | `ts` | number | Snapshot timestamp (epoch ms) | | `symbol` | string | Token symbol (USDC, USDT, etc.) | | `chain` | string | Chain where this snapshot was taken | | `address` | string | Token contract address | | `monitor_tier` | string \| null | (Vault field) Live risk tier for the vault's underlying token — watch / warning / critical / null | | `depeg_score` | number \| null | (Vault composition field) Monitor score for each token in the vault's composition | # Signal Weight Hierarchy at a Glance ![Screenshot 2026 04 13 At 10 58 52 AM](https://mintcdn.com/webacy/nHZ00OBCBxHAq-vy/images/Screenshot-2026-04-13-at-10.58.52-AM.png?fit=max\&auto=format\&n=nHZ00OBCBxHAq-vy\&q=85\&s=a26c33c72a1d304481b77c996ac1a583) # Scoring Model & Methodology Source: https://docs.webacy.com/scoring-model-and-methodology How Webacy calculates depeg risk scores for each stablecoin — weighted signals, risk tiers, threshold logic, and the 0–100 scoring model behind every grade. How we calculate depeg risk scores for each token. For a quick reference of weights and tier thresholds, see "Scoring Methodology: Depeg Monitor - All Signals & Scores." # Risk Tiers Each token receives a score from 0-100 based on weighted risk signals. The score maps to a tier: ![Screenshot 2026 04 13 At 11 26 51 AM](https://mintcdn.com/webacy/nHZ00OBCBxHAq-vy/images/Screenshot-2026-04-13-at-11.26.51-AM.png?fit=max\&auto=format\&n=nHZ00OBCBxHAq-vy\&q=85\&s=f94746a4bea49ece0b1aa87a0fc6e003) # Feature Weights The final score is a weighted sum of normalized risk signals (each 0-1). The 16 core signals sum to **1.0 (100%)** (a conditional Reserve Attestation Staleness signal renormalizes in for tokens with a published attestation); when a signal has no data for a token it is skipped and the remaining weights are renormalized to 1.0, so missing data never produces a false low score. ![Screenshot 2026 04 13 At 11 27 14 AM](https://mintcdn.com/webacy/nHZ00OBCBxHAq-vy/images/Screenshot-2026-04-13-at-11.27.14-AM.png?fit=max\&auto=format\&n=nHZ00OBCBxHAq-vy\&q=85\&s=fbbf427d385e33191ebb0c7669ed8f8c) > [!NOTE] > > The image above is an earlier illustrative weight breakdown and predates the current 16-signal set (it still shows the retired Slippage signal). The authoritative weights are the signal table on the [Scoring Methodology](/scoring-methodology) page. # Velocity, momentum and hysteresis > [!NOTE] > > Earlier versions of this page described a momentum boost (up to +15 points when a score rises fast) and multi-tick confirmation before a tier change. The production monitor applies neither. The tier comes from each 20-minute score, and noise is handled by the false-positive guards and data-gap rules on the [Scoring Methodology](/scoring-methodology) page. # Token Type Adjustments Different token types have different expected behaviors. The model adjusts for this: ![Screenshot 2026 04 13 At 11 28 21 AM](https://mintcdn.com/webacy/nHZ00OBCBxHAq-vy/images/Screenshot-2026-04-13-at-11.28.21-AM.png?fit=max\&auto=format\&n=nHZ00OBCBxHAq-vy\&q=85\&s=f470b3700901cc1b3d4955463d75ffda) # Example Calculation **Token:** USDC on Ethereum **Price:** \$0.985 **Peg:** \$1.00 **Deviation:** 1.5% ![Screenshot 2026 04 13 At 11 28 45 AM](https://mintcdn.com/webacy/nHZ00OBCBxHAq-vy/images/Screenshot-2026-04-13-at-11.28.45-AM.png?fit=max\&auto=format\&n=nHZ00OBCBxHAq-vy\&q=85\&s=cb218ca2a70c7ad58984cac71e1ce692) # Screen a Wallet for Risk Source: https://docs.webacy.com/screen-a-wallet-for-risk Screen an onchain wallet with the Webacy API to check its risk score, transaction history, counterparty exposure, and contributing risk factors. Wallet screening is a common first step in onchain due diligence. Before interacting with an address, processing a transaction, onboarding a counterparty, or investigating activity, you can use Webacy to understand the risks associated with that wallet. This guide walks through a basic wallet screening workflow. ## What you'll learn By the end of this guide, you'll know how to: * Screen a wallet address * Interpret its overall risk score * Identify the risk factors contributing to that score * Review historical transaction activity * Understand exposure to risky counterparties * Trace where a wallet's funds came from * Use the results in an automated decision workflow **1. Get your API key** Follow [this guide](/get-an-api-key) to get an API key. Create or log in to your [Webacy Developer](https://developers.webacy.co/) account and generate an API key from your dashboard. Your API key authenticates requests to the Webacy API and determines the usage associated with your account. Keep your API key secure and never expose it in client-side code or public repositories. Once you have your key, you're ready to make your first request. **2. Submit a wallet for screening** Pass the wallet address you want to evaluate to the Webacy [wallet screening endpoint](/api-reference/threat-risks/threat-considerations-for-an-address). Webacy analyzes the address using its onchain activity, transaction history, counterparties, known entities, and proprietary risk intelligence. Try this example: ```bash cURL theme={null} # DPRK-linked wallet on Ethereum curl -X GET "https://api.webacy.com/addresses/0x0fa09c3a328792253f8dee7116848723b72a6d2e?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} const response = await fetch( 'https://api.webacy.com/addresses/0x0fa09c3a328792253f8dee7116848723b72a6d2e?chain=eth', { headers: { 'x-api-key': process.env.WEBACY_API_KEY } } ); const analysis = await response.json(); console.log(`Overall Risk: ${analysis.overallRisk}/100`); console.log(`High-severity flags: ${analysis.high}`); console.log(`Tags: ${analysis.issues.flatMap(i => i.tags.map(t => t.name)).join(', ')}`); ``` ```python Python theme={null} import requests response = requests.get( "https://api.webacy.com/addresses/0x0fa09c3a328792253f8dee7116848723b72a6d2e", params={"chain": "eth"}, headers={"x-api-key": "YOUR_API_KEY"} ) analysis = response.json() ``` > [!NOTE] > > You'll use the example wallet `0x0fa09c3a328792253f8dee7116848723b72a6d2e` on Ethereum. See [example addresses](/example-addresses) for more. Because risk changes continuously onchain, Webacy evaluates wallets against the latest available data rather than relying solely on a static historical assessment. > [!TIP] > > **Tip:** A wallet's risk profile can change at any time. An address that appears safe today may later interact with a sanctioned entity, exploit, scam, or other high-risk address. **3. Check the overall risk score** Start with the wallet's overall risk assessment. This provides a quick indication of whether Webacy has identified potentially concerning activity associated with the address. A lower-risk wallet may have few or no significant indicators, while an elevated assessment means one or more risk factors warrant additional attention. For the example above, below is an example response: ```json expandable theme={null} { "high": 2, "count": 2, "issues": [ { "tags": [ { "key": "DPRK", "name": "DPRK", "type": "addressRisk", "context": { "detected_at": "2026-08-11T15:35:11.620Z" }, "severity": 10, "description": "This address has been identified as having connections to North Korean (DPRK) entities or activities. DPRK-linked addresses are considered extremely high risk due to international sanctions and the regime's involvement in cybercrime, including cryptocurrency theft, ransomware operations, and illicit financing. Interaction with these addresses may violate sanctions regulations and expose users to significant legal and financial risks." }, { "key": "HACK", "name": "Hack Related", "type": "addressRisk", "context": { "detected_at": "2026-08-11T15:35:11.620Z" }, "severity": 10, "description": "This address is associated with a known hack or security incident." } ], "score": 100, "riskScore": "High Risk", "categories": { "fraudulent_malicious": { "key": "fraudulent_malicious", "name": "Fraudulent/Malicious", "tags": { "DPRK": true, "HACK": true }, "gradedDescription": { "low": "Properties of this transaction indicate the possibility of nefarious activity, but we have not detected anything that would constitute elevated risk", "high": "The smart contract/address in this transaction has been used in and is associated with confirmed fraud and malicious activity, or the asset is a known malicious token. Interacting with it may also cause your address to be marked as fraudulent.", "medium": "Elements of the smart contract in this transaction can be used a fraudulent and malicious fashion, or the address in this transaction has been involved in some risk activity." } } } } ], "medium": 0, "details": { "fund_flows": null, "marketData": { "market_cap": 0 }, "token_risk": {}, "address_info": { "dprk": true, "hack": true, "balance": 0.07983634986921333, "flagged": false, "sanctioned": false, "time_1st_tx": "2025-02-18T14:53:23.000Z", "time_verified": 1761344633930, "has_no_balance": false, "open_sanctions": false, "ofac_sanctioned": false, "automated_trading": false, "transaction_count": 60, "has_no_transactions": false, "usdt_banned": false, "usdc_banned": false, "eurc_banned": false, "busd_banned": false, "pyusd_banned": false, "usdp_banned": false }, "buy_sell_taxes": { "has_buy_tax": false, "has_sell_tax": false } }, "expiresAt": 1786548911638, "isContract": false, "addressType": "EOA", "analyzed_at": "2026-08-11T15:35:11.434Z", "overallRisk": 100 } ``` > [!NOTE] > > In this example, `overallRisk: 100` which means this address is HIGH RISK. The overall score is a useful starting point, but deeper due diligence should also consider the underlying signals contributing to it. **4. Review the risk factors** Next, inspect the individual risk factors identified for the wallet. Webacy evaluates hundreds of proprietary risk signals across areas such as: * Sanctions exposure * Known scams and malicious addresses * Hacks and exploits * Stolen funds * Suspicious transaction patterns * High-risk counterparties * Address poisoning * Indirect or multi-hop exposure * Other anomalous onchain behavior These signals provide context for **why** a wallet received its risk assessment. This allows you to distinguish between different types and severities of risk rather than treating every flagged wallet the same way. ```json theme={null} ... "issues": [ { "tags": [ { "key": "DPRK", ... }, { "key": "HACK", ... ], ... "details": { ... }, "token_risk": {}, "address_info": { "dprk": true, "hack": true, ... } ``` > [!NOTE] > > In this example, under `"issues"` and `"tags"` you will see risk factors associated with the address. This one has the risk factors `"DPRK"` and `"HACK"` associated with it, which provides insight into why the overall score is high. > > Additionally in the "details" and "address\_info" section, you can find a quick list of risk-associated factors in boolean format. For this example, you can see `"dprk": true` and `"hack": true`. **5. Trace where the funds came from (optional)** A wallet can carry no risk labels of its own and still be funded by a sanctioned entity, a hack, or a mixer. Add `fund_flow_exposure=true` to the same request and Webacy screens the wallet's **incoming** transfers up to two hops back for senders in its risk labels: sanctions, DPRK, hacks, scams and phishing, mixers, money laundering, FBI IC3 reports, address poisoning and analyst flags. Fund-flow exposure is opt-in and available on Ethereum, BSC, Arbitrum, Base and Polygon (`chain=eth`, `bsc`, `arb`, `base`, `pol`). On other chains the block comes back as `status: unavailable` with `reason: unsupported_chain`, at the standard wallet screening price. This step uses a different wallet from the one above. The DPRK wallet already scores 100, so any lift would be invisible; `0x811fb2a04ccc066bed2b944bdda22a15bb1e7439` looks almost clean on its own labels (one address-poisoning tag, `overallRisk` of 7) and only its funding history gives it away. ```bash cURL theme={null} curl -X GET "https://api.webacy.com/addresses/0x811fb2a04ccc066bed2b944bdda22a15bb1e7439?chain=eth&fund_flow_exposure=true" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} const url = 'https://api.webacy.com/addresses/0x811fb2a04ccc066bed2b944bdda22a15bb1e7439?chain=eth&fund_flow_exposure=true'; const headers = { 'x-api-key': process.env.WEBACY_API_KEY }; // A 202 means the wallet's own risk analysis is still running (no // fund_flow_exposure block yet); "pending" means the trace is. // Every poll is billed, so stop after about two minutes. let res = await fetch(url, { headers }); let analysis = await res.json(); for (let attempt = 0; attempt < 8; attempt++) { const analysisPending = res.status === 202; if (!analysisPending && analysis.fund_flow_exposure?.status !== 'pending') break; const wait = analysisPending ? Number(res.headers.get('retry-after') ?? 15) : analysis.fund_flow_exposure.retry_after_seconds ?? 15; await new Promise((resolve) => setTimeout(resolve, wait * 1000)); res = await fetch(url, { headers }); analysis = await res.json(); } const exposure = analysis.fund_flow_exposure; if (!exposure || exposure.status === 'pending' || exposure.status === 'unavailable') { console.log(`No exposure result: ${exposure?.reason ?? exposure?.status ?? `HTTP ${res.status}`}`); } else { console.log(`Status: ${exposure.status}, tier: ${exposure.tier ?? 'none'}`); for (const f of exposure.findings ?? []) { if (!f.scored) continue; console.log(`hop ${f.hop} ${f.category}: ${f.inflow_share_pct}% of ${f.token.symbol} inflow from ${f.counterparty_address}`); } } ``` The first call for a wallet starts the trace in the background and returns the normal risk response with the block in `pending`. Poll the same request after `retry_after_seconds`: ```json theme={null} "fund_flow_exposure": { "status": "pending", "retry_after_seconds": 15, "max_hops": 2 } ``` Once the trace completes, the block lists the flagged senders it found (the 20 most severe; `findings_truncated` tells you when there were more). If any finding scores and the wallet is not a verified or trusted address, it also picks up a `fund_flow_exposure` tag under `issues` and its overall score is raised to at least the medium or high range; `score_applied` tells you whether that happened. Below is the response for the example above, trimmed to three of its findings: ```json expandable theme={null} { "overallRisk": 44.721359549995796, "high": 0, "medium": 1, "count": 2, "issues": [ { "score": 4, "riskScore": "Medium Risk", "tags": [ { "key": "fund_flow_exposure", "name": "Received Funds from Flagged Address", "type": "addressRisk", "severity": 5, "reason": "2.08% of USDT inflow directly from an address flagged scam_phishing", "description": "This address received funds, directly or through one intermediary, from an address flagged for malicious activity.", "context": { "detected_at": "2026-10-07T19:34:11.308Z", "counterparty_address": "0xfb19ffd1ff9316b7f5bba076ef4b78e4bbedf4e1", "category": "scam_phishing", "hop": 1, "inflow_share_pct": 2.08 } }, { "key": "address_poisoning", ... } ], ... } ], ... "fund_flow_exposure": { "status": "complete", "tier": "medium", "findings": [ { "counterparty_address": "0xfb19ffd1ff9316b7f5bba076ef4b78e4bbedf4e1", "category": "scam_phishing", "labels": ["phishing_activities"], "hop": 1, "inflow_share_pct": 2.08, "token": { "address": "0xdac17f958d2ee523a2206206994597c13d831ec7", "symbol": "USDT", "recognised": true, "material": true }, "scored": true }, { "counterparty_address": "0x4e5b2e1dc63f6b91cb6cd759936495434c7e972f", "category": "mixers", "labels": ["mixer"], "hop": 2, "inflow_share_pct": 25.82, "token": { "address": "@native", "symbol": "ETH", "recognised": true, "material": true }, "via": ["0x3db0e86515057ff2e32a039992c574ba87dc747e"], "scored": true }, { "counterparty_address": "0xe9690ae2a2e863a569937572d2c66b31a68776fd", "category": "address_poisoning", "labels": ["address_poisoning"], "hop": 1, "inflow_share_pct": 38.26, "token": { "address": "@native", "symbol": "ETH", "recognised": true, "material": true }, "scored": false }, ... ], "findings_truncated": false, "inflow_truncated": false, "max_hops": 2, "computed_at": "2026-10-07T19:34:11.308Z", "score_applied": true } } ``` > [!NOTE] > > In this example the wallet received 2.08% of its USDT directly from an address flagged for phishing, and 25.82% of its ETH through an intermediary that was funded by a mixer. Both findings score, so the wallet is **medium** tier and `overallRisk` rose to 44.7. The address-poisoning senders are listed with `"scored": false` — they explain the inflow but never affect the score, because a poisoning attempt says nothing about the recipient. How to read the block: | Field | Meaning | | - | - | | `status` | `complete`: findings exist. `none`: traced, nothing found (check `inflow_truncated` before treating it as clean). `pending`: poll again after `retry_after_seconds`. `unavailable`: see `reason` (`unsupported_chain`, `disabled`, `not_cached`, `cache_unavailable`, `provider_unavailable`). | | `tier` | `high` when a direct sender accounts for at least 5% of the wallet's inflow of a token it is funded in, `medium` for any other scoring finding. Absent when nothing scored. | | `findings[]` | One entry per flagged sender, most severe first, at most 20 (`findings_truncated` is `true` when there were more). | | `hop`, `via` | `1`: the flagged address sent funds straight to the wallet. `2`: it funded one of the wallet's senders. `via` lists the intermediaries whose transfers count toward `inflow_share_pct` — for a scored finding, only the senders it funded materially; for an information-only finding, every path. | | `inflow_share_pct` | Share of the wallet's inflow of `token` that came from this sender, directly or through its intermediaries. | | `token.recognised`, `token.material` | Only recognised tokens (the chain's native coin, verified tokens and community-listed tokens) that the wallet is actually funded in — its most-received recognised token, or one it received at least five times — can score. Dust in an unknown token never moves the score. | | `scored` | Whether the finding counts toward `tier`. `false` means information only: under 1% of inflow, an unrecognised or immaterial token, an address-poisoning or analyst-flagged sender, or a sender that is a contract (routers, settlement and bridge contracts are not actors). | | `inflow_truncated` | The wallet, or one of its senders, has more history than the trace could read, so findings come from a partial sample. With `status: none` this means exposure could **not be ruled out** — treat it as not determined, not as clean. | | `score_applied` | Whether `tier` raised the wallet's score. `false` when no finding scored, or for verified and trusted addresses, which get the findings for information only. | A hop-2 finding scores only when the flagged address was also a material funder of the intermediary — at least 1% of the intermediary's inflow of a token the intermediary is funded in — so a wallet is not penalised because one of its senders once received dust from a mixer. Results are cached for 24 hours (2 hours when `inflow_truncated` is `true`). An `unavailable` outcome, or a `none` from a trace that could not read everything it needed, is kept for only about two minutes, so the next request re-traces. `refreshCache=true` refreshes the whole screening, not just the exposure — it may answer `202` while the wallet is re-analysed — and the exposure block keeps serving the last outcome while the fresh trace runs; a wallet is re-traced at most once every couple of minutes. > [!WARNING] > > Fund-flow exposure is priced as its own, higher-priced request. On a supported chain, every `200` response with `fund_flow_exposure=true` draws the fund-flow rate from your allocation — including each `pending` response you poll and an `unavailable` outcome — so wait the full `retry_after_seconds` between polls, cap how many times you poll, and back off when the block is `unavailable`. A `202` response (the wallet's own risk analysis is still being computed) is not billed. See [Pricing](/pricing). **6. Take action based on the result** Once you've evaluated the wallet, you can incorporate Webacy's risk intelligence into your own application or policy engine. The appropriate action depends on your use case, jurisdiction, risk tolerance, and internal policies. Webacy provides the underlying intelligence so your system can determine what happens next. > [!NOTE] > > In this example, you should block this wallet address from interaction with your platform, transaction, asset, or other activity. ## Continue monitoring A wallet screening represents the risk associated with an address at the time of analysis. For many applications, screening once is not enough. New transactions can introduce new counterparties, exposures, and risk factors at any time. For ongoing protection, combine wallet screening with Webacy's transaction monitoring and Wallet Watch capabilities to identify changes in risk as new activity occurs. ## Common use cases Wallet screening can be incorporated anywhere your application needs to make a decision about an onchain address, including: * **User onboarding** — evaluate wallets before allowing access or activity * **Deposits and withdrawals** — assess addresses before processing funds * **Compliance workflows** — identify sanctions and other high-risk exposure * **Investigations** — analyze suspicious wallets and related activity * **Trading platforms** — evaluate addresses interacting with your platform * **Treasury operations** — assess counterparties before sending funds * **AI agents** — evaluate wallet risk before executing an autonomous action # Screen a Token for Risk Source: https://docs.webacy.com/screen-token-for-risk Screen an onchain token with Webacy to review contract vulnerabilities, holder distribution, liquidity risks, and suspicious behavior before listing or trading. Token screening helps you understand the risks associated with an asset before listing it, trading it, accepting it as collateral, or integrating it into your application. This guide walks through the process from getting your API key to investigating the factors behind a token's risk assessment. ## What you'll learn By the end of this guide, you'll know how to: * Get your Webacy API key * Submit a token for screening * Interpret its overall risk assessment * Review smart contract risk * Analyze holders and token distribution * Evaluate liquidity and trading risks * Incorporate token risk into your application **1. Get your API key** Follow [this guide](/get-an-api-key) to get an API key. Create or log in to your [Webacy Developer](https://developers.webacy.co/) account and generate an API key from your dashboard. Your API key authenticates requests to the Webacy API and determines the usage associated with your account. Keep your API key secure and never expose it in client-side code or public repositories. Once you have your key, you're ready to make your first request. **2. Submit a token for screening** Pass the token's contract address to the appropriate Webacy endpoint. * [Full token risk](/api-reference/threat-risks/threat-considerations-for-an-address) overview * Token [smart contract analysis](/api-reference/contract-risk/get-a-real-time-analysis-for-a-given-contract-address) * Token [economics data](/api-reference/token-analysis/get-token-economic-history) * Token [pools (with risk)](/api-reference/token-analysis/get-token-pools-with-risk-assessment) * Token [trading analysis](/api-reference/trading-lite/get-simplified-token-analysis-with-security-indicators) * Token [early holder analysis (detailed)](/api-reference/holder-analysis/get-detailed-early-holder-analysis-for-a-token) - for new tokens only (created within 1 year) Webacy analyzes the token across multiple dimensions of risk, combining smart contract analysis with onchain activity, holder behavior, trading data, liquidity, known entities, and proprietary risk intelligence. This provides a broader assessment than looking at the token contract alone. > [!NOTE] > > You'll screen GALA's current contract (`0xd1d2Eb1B1e90B638588728b4130137D262C87cae`) on Ethereum. It's a verified listing that still carries a few moderate risk factors, which makes it a useful example. See [example addresses](/example-addresses) for more. > [!TIP] > > **Tip:** Token risk is dynamic. Changes in holders, liquidity, ownership, trading activity, or contract behavior can materially change the risk associated with an asset. **3. Check the overall risk assessment** Start with the token's overall risk assessment. This provides a quick indication of whether Webacy has identified characteristics or activity that may warrant further investigation. A token may appear risky for many different reasons. For example, the underlying contract could contain dangerous functionality, ownership may be highly concentrated, liquidity may be unstable, or wallets associated with the asset may exhibit suspicious behavior. Try [this endpoint](/api-reference/threat-risks/threat-considerations-for-an-address): ```bash cURL theme={null} # GALA token on Ethereum curl -X GET "https://api.webacy.com/addresses/0xd1d2Eb1B1e90B638588728b4130137D262C87cae?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} const response = await fetch( 'https://api.webacy.com/addresses/0xd1d2Eb1B1e90B638588728b4130137D262C87cae?chain=eth', { headers: { 'x-api-key': process.env.WEBACY_API_KEY } } ); const analysis = await response.json(); console.log(`Overall Risk: ${analysis.overallRisk}/100`); console.log(`High: ${analysis.high} | Medium: ${analysis.medium}`); console.log(`Flags: ${analysis.issues.flatMap(i => i.tags.map(t => t.name)).join(', ')}`); ``` ```python Python theme={null} import requests response = requests.get( "https://api.webacy.com/addresses/0xd1d2Eb1B1e90B638588728b4130137D262C87cae", params={"chain": "eth"}, headers={"x-api-key": "YOUR_API_KEY"} ) analysis = response.json() ``` The response from the example above is the following. > [!WARNING] > > This endpoint returns all of our available information about an address. > > For specific intelligence, call individual endpoints (listed in step 2 or step 4). ```json expandable theme={null} { "high": 0, "count": 6, "issues": [ { "tags": [ { "key": "verified_listing", "name": "Verified Listing", "type": "tokenRisk", "context": { "detected_at": "2026-08-18T02:22:15.424Z" }, "severity": 0, "description": "This asset represents an established project with proven authenticity or reputation, and has been verified as authentic. This does not necessarily mean the asset is free of risks or issues." }, { "key": "is_mintable", "name": "Mintable", "type": "tokenRisk", "context": { "detected_at": "2026-08-18T02:22:15.425Z", "owner_can_mint": "true" }, "severity": 5, "description": "Tokens can be created (minted) by the token authority, introducing inflationary risks or vulnerabilities if not properly controlled, potentially leading to dilution of value." }, { "key": "is_proxy", "name": "Proxy", "type": "tokenRisk", "context": { "is_proxy": true, "detected_at": "2026-08-18T02:22:15.425Z" }, "severity": 0.2, "description": "Proxy contracts enable upgradability, meaning the logic or implementation contract that a proxy points to can be changed. The primary risk lies with the owner, who holds the authority to upgrade the contract code." }, { "key": "low-lp-holder-count", "name": "Low LP Holder Count", "type": "tokenRisk", "context": { "detected_at": "2026-08-18T02:22:15.425Z" }, "severity": 3, "description": "The liquidity pool has fewer than 10 unique LP token holders, indicating low decentralization of liquidity provision and increased risk of liquidity manipulation." }, { "key": "lp-whale-concentration", "name": "LP Whale Concentration", "type": "tokenRisk", "context": { "detected_at": "2026-08-18T02:22:15.425Z" }, "severity": 4, "description": "A single LP holder controls more than 50% of the liquidity pool, creating significant risk of sudden liquidity withdrawal or price manipulation." }, { "key": "unlocked-liquidity", "name": "Unlocked Liquidity", "type": "tokenRisk", "context": { "detected_at": "2026-08-18T02:22:15.425Z" }, "severity": 2, "description": "Liquidity is unlocked and can be withdrawn by the owner, posing risks like rugpulls or sudden liquidity drains." } ], "score": 0.24, "riskScore": "Low Risk", "categories": { "contract_issues": { "key": "contract_issues", "name": "Contract Exploits", "tags": { "is_proxy": true }, "gradedDescription": { "low": "Our detectors have found issues with this smart contract that may pose certain risks, but none are definitively exploitable.", "high": "Our detectors have found, with high certainty, that this smart contract has exploitable logic that can result in a loss of funds or manipulation. This is a serious risk and you should avoid interacting with this contract.", "medium": "Our detectors have found some logic in this smart contract that can cause a loss of funds if exploited. There is no immediate evidence that this logic was maliciously placed, but be careful." } }, "governance_issues": { "key": "governance_issues", "name": "Contract Governance", "tags": { "is_mintable": true }, "description": "Suspect logic in the smart contract for this asset indicates elevated governance risk. This means that the owner or creator has the ability to change elements of the smart contract that may affect the nature of your ownership of the tokens. Token scams like rugpulls typically exhibit signs of governance issues." } } } ], "medium": 3, "details": { "fund_flows": { "risk": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false, "onchain_freeze": [] }, "flows": [ { "to": "0xd1d2Eb1B1e90B638588728b4130137D262C87cae", "from": "0x58edF78281334335EfFa23101bBe3371b6a36A51", "type": "transfer", "token": "0xd1d2Eb1B1e90B638588728b4130137D262C87cae", "amount": 24359.88449511, "txhash": "0x8d5887581a558909c64094dec09484ed3eb25eff7680ee07000685e03f9c9e8a", "risk_score": 0, "tokenSymbol": "GALA" }, { "to": "0xd1d2Eb1B1e90B638588728b4130137D262C87cae", "from": "0xf89d7b9c864f589bbF53a82105107622B35EaA40", "type": "transfer", "token": "0xd1d2Eb1B1e90B638588728b4130137D262C87cae", "amount": 1000, "txhash": "0xb3b793f50d4e0fb531f817f9910ee2fae0abd4396931b7e07143b7741568ef7b", "risk_score": 0, "tokenSymbol": "GALA" } ], "label": "Gala Games", "accounts": { "0x0000000000000000000000000000000000000000": { "type": "eoa", "label": "0x0000000000000000000000000000000000000000", "address": "0x0000000000000000000000000000000000000000", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0x003Ee93c95Ef296dF59cc9089cDfb9321bb3103D": { "type": "eoa", "label": "0x003Ee93c95Ef296dF59cc9089cDfb9321bb3103D", "address": "0x003Ee93c95Ef296dF59cc9089cDfb9321bb3103D", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0x10285d343a8A12FA5d11aF8eCaaA2A08C1693C43": { "type": "eoa", "label": "0x10285d343a8A12FA5d11aF8eCaaA2A08C1693C43", "address": "0x10285d343a8A12FA5d11aF8eCaaA2A08C1693C43", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0x1579B5f6582C7a04f5fFEec683C13008C4b0A520": { "type": "eoa", "label": "Bitkub", "address": "0x1579B5f6582C7a04f5fFEec683C13008C4b0A520", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0x19DAaA6d58cdE6BDe2FA11DEbcD1eDEFf4FbD15E": { "type": "eoa", "label": "0x19DAaA6d58cdE6BDe2FA11DEbcD1eDEFf4FbD15E", "address": "0x19DAaA6d58cdE6BDe2FA11DEbcD1eDEFf4FbD15E", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0x1A50E3cF3E16972Dc5DfBAc5B3E767DF33696fAc": { "type": "eoa", "label": "0x1A50E3cF3E16972Dc5DfBAc5B3E767DF33696fAc", "address": "0x1A50E3cF3E16972Dc5DfBAc5B3E767DF33696fAc", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0x216c49ccBA56f72585BC9c74620F00E310a38148": { "type": "eoa", "label": "0x216c49ccBA56f72585BC9c74620F00E310a38148", "address": "0x216c49ccBA56f72585BC9c74620F00E310a38148", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0x22E9dbeC4eB355f5b2960146F9CdF1D47B690ED7": { "type": "eoa", "label": "0x22E9dbeC4eB355f5b2960146F9CdF1D47B690ED7", "address": "0x22E9dbeC4eB355f5b2960146F9CdF1D47B690ED7", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0x2D894a2Cd0D500651b7d34Fa4c0a194b3173fEcA": { "type": "eoa", "label": "0x2D894a2Cd0D500651b7d34Fa4c0a194b3173fEcA", "address": "0x2D894a2Cd0D500651b7d34Fa4c0a194b3173fEcA", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0x2Db1D8CdF1Abe8C70b531a790CDf2FF38aecF652": { "type": "eoa", "label": "Newton", "address": "0x2Db1D8CdF1Abe8C70b531a790CDf2FF38aecF652", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0x2bE33D66c2E807dea0075c822B6b648f02e4f277": { "type": "eoa", "label": "0x2bE33D66c2E807dea0075c822B6b648f02e4f277", "address": "0x2bE33D66c2E807dea0075c822B6b648f02e4f277", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0x2e2657a2D4248cF7F20d064a6c5794119c5b534a": { "type": "eoa", "label": "0x2e2657a2D4248cF7F20d064a6c5794119c5b534a", "address": "0x2e2657a2D4248cF7F20d064a6c5794119c5b534a", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0x33902B4f78e9b885c351B26c0fe049865Ee0f011": { "type": "eoa", "label": "0x33902B4f78e9b885c351B26c0fe049865Ee0f011", "address": "0x33902B4f78e9b885c351B26c0fe049865Ee0f011", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0x51b88ac27d590cc3CD1b8E29fe22A782a83f5372": { "type": "eoa", "label": "0x51b88ac27d590cc3CD1b8E29fe22A782a83f5372", "address": "0x51b88ac27d590cc3CD1b8E29fe22A782a83f5372", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0x54C71C0CB91b333589733BbEbd78BC8f440fe519": { "type": "eoa", "label": "0x54C71C0CB91b333589733BbEbd78BC8f440fe519", "address": "0x54C71C0CB91b333589733BbEbd78BC8f440fe519", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0x58edF78281334335EfFa23101bBe3371b6a36A51": { "type": "eoa", "label": "KuCoin", "address": "0x58edF78281334335EfFa23101bBe3371b6a36A51", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0x5Bf972803dCdA525a4536ceF2Ac3102aa6c8684C": { "type": "eoa", "label": "0x5Bf972803dCdA525a4536ceF2Ac3102aa6c8684C", "address": "0x5Bf972803dCdA525a4536ceF2Ac3102aa6c8684C", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0x68bDc0c58365aD6F478997518356abCc6fC6ba54": { "type": "eoa", "label": "0x68bDc0c58365aD6F478997518356abCc6fC6ba54", "address": "0x68bDc0c58365aD6F478997518356abCc6fC6ba54", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0x6DaC65C840048cFDD2585B15fF791DE91C911C4D": { "type": "eoa", "label": "0x6DaC65C840048cFDD2585B15fF791DE91C911C4D", "address": "0x6DaC65C840048cFDD2585B15fF791DE91C911C4D", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0x6E2Ff00E3889645d31486A2345f835C98501392a": { "type": "eoa", "label": "0x6E2Ff00E3889645d31486A2345f835C98501392a", "address": "0x6E2Ff00E3889645d31486A2345f835C98501392a", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0x6d84476cF734cB715F7b58567A62cBc647109695": { "type": "eoa", "label": "0x6d84476cF734cB715F7b58567A62cBc647109695", "address": "0x6d84476cF734cB715F7b58567A62cBc647109695", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0x73f7AeF9E292E5102fa7b5059346441036980dC3": { "type": "eoa", "label": "0x73f7AeF9E292E5102fa7b5059346441036980dC3", "address": "0x73f7AeF9E292E5102fa7b5059346441036980dC3", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0x7EB6EE569d4E58Fa167aBD2CbFADB3EEd9695906": { "type": "eoa", "label": "0x7EB6EE569d4E58Fa167aBD2CbFADB3EEd9695906", "address": "0x7EB6EE569d4E58Fa167aBD2CbFADB3EEd9695906", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0x7f4187048CE76C19ABeB463C0884e3442736dD7D": { "type": "eoa", "label": "0x7f4187048CE76C19ABeB463C0884e3442736dD7D", "address": "0x7f4187048CE76C19ABeB463C0884e3442736dD7D", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0x8894E0a0c962CB723c1976a4421c95949bE2D4E3": { "type": "eoa", "label": "Binance", "address": "0x8894E0a0c962CB723c1976a4421c95949bE2D4E3", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0x8d4Ecc3b9dA8281F8c66B66a4E3305e944206201": { "type": "eoa", "label": "0x8d4Ecc3b9dA8281F8c66B66a4E3305e944206201", "address": "0x8d4Ecc3b9dA8281F8c66B66a4E3305e944206201", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0x8daD5Fc2f3dd4cF3F08431f891e1D35693d625ea": { "type": "eoa", "label": "0x8daD5Fc2f3dd4cF3F08431f891e1D35693d625ea", "address": "0x8daD5Fc2f3dd4cF3F08431f891e1D35693d625ea", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0x95B564F3B3BaE3f206aa418667bA000AFAFAcc8a": { "type": "eoa", "label": "Bitvavo", "address": "0x95B564F3B3BaE3f206aa418667bA000AFAFAcc8a", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0x9607A17Dab92Df4F25D48F48358bCe3bDA1e7084": { "type": "eoa", "label": "0x9607A17Dab92Df4F25D48F48358bCe3bDA1e7084", "address": "0x9607A17Dab92Df4F25D48F48358bCe3bDA1e7084", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0x9cE2e98b1faB8Be697ed0fb825972B817f7736B0": { "type": "eoa", "label": "0x9cE2e98b1faB8Be697ed0fb825972B817f7736B0", "address": "0x9cE2e98b1faB8Be697ed0fb825972B817f7736B0", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0xA9D1e08C7793af67e9d92fe308d5697FB81d3E43": { "type": "contract", "label": "Coinbase", "address": "0xA9D1e08C7793af67e9d92fe308d5697FB81d3E43", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0xBE1eaE5bf9b00510BAb7e81EC095674e4c21AE41": { "type": "eoa", "label": "0xBE1eaE5bf9b00510BAb7e81EC095674e4c21AE41", "address": "0xBE1eaE5bf9b00510BAb7e81EC095674e4c21AE41", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0xD4076AC28Dd0894D7e83b6562CD3C6812BA15fbC": { "type": "eoa", "label": "0xD4076AC28Dd0894D7e83b6562CD3C6812BA15fbC", "address": "0xD4076AC28Dd0894D7e83b6562CD3C6812BA15fbC", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0xE081596d6c52018e412C5e1249D82c1DA407A617": { "type": "eoa", "label": "0xE081596d6c52018e412C5e1249D82c1DA407A617", "address": "0xE081596d6c52018e412C5e1249D82c1DA407A617", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0xEFBEf24383e8A2FD7A96Bc0038da5ab84e1Ca76A": { "type": "eoa", "label": "0xEFBEf24383e8A2FD7A96Bc0038da5ab84e1Ca76A", "address": "0xEFBEf24383e8A2FD7A96Bc0038da5ab84e1Ca76A", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0xa180Fe01B906A1bE37BE6c534a3300785b20d947": { "type": "eoa", "label": "Binance", "address": "0xa180Fe01B906A1bE37BE6c534a3300785b20d947", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0xa3f45e619cE3AAe2Fa5f8244439a66B203b78bCc": { "type": "eoa", "label": "KuCoin", "address": "0xa3f45e619cE3AAe2Fa5f8244439a66B203b78bCc", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0xaaC8C9C72F4cD6464C6daB9E7CD32e11e987572d": { "type": "eoa", "label": "0xaaC8C9C72F4cD6464C6daB9E7CD32e11e987572d", "address": "0xaaC8C9C72F4cD6464C6daB9E7CD32e11e987572d", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0xbbEe783d73a6d26a00B79b29b60e2a9B70394ac9": { "type": "eoa", "label": "0xbbEe783d73a6d26a00B79b29b60e2a9B70394ac9", "address": "0xbbEe783d73a6d26a00B79b29b60e2a9B70394ac9", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0xbdDB01D0113401a07fFb18da356DE256386a9000": { "type": "eoa", "label": "0xbdDB01D0113401a07fFb18da356DE256386a9000", "address": "0xbdDB01D0113401a07fFb18da356DE256386a9000", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0xc1df55E033D3B9cb7b3C2f388c2a84055bd89e89": { "type": "eoa", "label": "0xc1df55E033D3B9cb7b3C2f388c2a84055bd89e89", "address": "0xc1df55E033D3B9cb7b3C2f388c2a84055bd89e89", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0xd114DDc8B30A56d0101AcCdFB794f987793b630F": { "type": "eoa", "label": "0xd114DDc8B30A56d0101AcCdFB794f987793b630F", "address": "0xd114DDc8B30A56d0101AcCdFB794f987793b630F", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0xd1d2Eb1B1e90B638588728b4130137D262C87cae": { "type": "contract", "label": "Gala Games", "address": "0xd1d2Eb1B1e90B638588728b4130137D262C87cae", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0xe22619F6D538DE6E0B6c1845174D45e90cBd3576": { "type": "eoa", "label": "0xe22619F6D538DE6E0B6c1845174D45e90cBd3576", "address": "0xe22619F6D538DE6E0B6c1845174D45e90cBd3576", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0xe2fc31F816A9b94326492132018C3aEcC4a93aE1": { "type": "eoa", "label": "Binance", "address": "0xe2fc31F816A9b94326492132018C3aEcC4a93aE1", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0xf34e3e855A5896846FbB4CE1A71B2e3B0E942156": { "type": "eoa", "label": "0xf34e3e855A5896846FbB4CE1A71B2e3B0E942156", "address": "0xf34e3e855A5896846FbB4CE1A71B2e3B0E942156", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0xf89d7b9c864f589bbF53a82105107622B35EaA40": { "type": "eoa", "label": "Bybit", "address": "0xf89d7b9c864f589bbF53a82105107622B35EaA40", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } } }, "fund_flow_risk": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "marketData": { "id": "gala", "ath": 0.824837, "atl": 0.00013475, "roi": null, "name": "GALA", "image": "https://assets.webacy.com/tokens/gala.png", "symbol": "gala", "low_24h": 0.00162178, "ath_date": "2021-11-25T17:03:48.000Z", "atl_date": "2020-12-28T00:46:48.000Z", "high_24h": 0.00166534, "market_cap": 80524722, "max_supply": 50000000000, "last_updated": "2026-08-17T18:57:20.000Z", "total_supply": 49462502781.07709, "total_volume": 10739030, "current_price": 0.00162791, "liquidityData": [ { "issues": [ { "key": "low-lp-holder-count", "severity": 3 }, { "key": "lp-whale-concentration", "severity": 4 }, { "key": "unlocked-liquidity", "severity": 0 } ], "dexName": "UniswapV4", "lpHolders": [ { "address": "0x6645be59bd0911c1b92bea8c77b969e50fcd6832", "balance": 71247326.20365676, "percent": 51.12384954954852, "isLocked": false, "isContract": false }, { "address": "0x6e0aba1c494c0cce528675458dd22d6116eca14c", "balance": 46002400.17048171, "percent": 33.00923572221192, "isLocked": false, "isContract": false }, { "address": "0x8b68fb9f8612a5c79ae1d348a0378ae6da758be8", "balance": 14273636.68026837, "percent": 10.24211423852007, "isLocked": false, "isContract": false }, { "address": "0x5b44393855c6590ef5dbba26a40b934542fe5eb0", "balance": 7374182.42964824, "percent": 5.291378823208547, "isLocked": false, "isContract": false }, { "address": "0xac378e038bb4f61644593fb352c88090651cf01f", "balance": 464663.80068365, "percent": 0.3334216665109473, "isLocked": false, "isContract": true }, { "address": "0x32594aea1f052362dda29b3554083b85ebcd2f11", "balance": 373759442.166248, "percent": 0, "isLocked": false, "isContract": true }, { "address": "0xc117be5224094784c40465cf328645ebbd1ed879", "balance": 372231416.6318742, "percent": 0, "isLocked": false, "isContract": false }, { "address": "0xa9bf32e48146084854ad4fad1b18df2aff51678d", "balance": 133048796.701348, "percent": 0, "isLocked": false, "isContract": true }, { "address": "0xb19b9a0e1bea434df5bcb0250edb9ec4f46031d7", "balance": 1045542006.425434, "percent": 0, "isLocked": false, "isContract": false } ], "pairAddress": "0x5e12553f2e402e9b12f6ce871c99d53d1b9caf32c47dc1f30798fdd91982edcb", "liquidityType": "UniV4", "lpHolderCount": 9, "totalLiquidity": 2455.823503582333, "lockedLiquidityPercent": 0 }, { "issues": [], "dexName": "UniswapV3", "lpHolders": [], "pairAddress": "0x465e56cd21ad47d4d4790f17de5e0458f20c3719", "liquidityType": "UniV3", "lpHolderCount": 9, "totalLiquidity": 1372.894712211089, "lockedLiquidityPercent": 0 }, { "issues": [], "dexName": "UniswapV3", "lpHolders": [], "pairAddress": "0xf1dd3569b7c82e93340d502e0f34a78fcb8e1597", "liquidityType": "UniV3", "lpHolderCount": 9, "totalLiquidity": 489.2951158269666, "lockedLiquidityPercent": 0 }, { "issues": [], "dexName": "UniswapV4", "lpHolders": [], "pairAddress": "0xd4742546ecfc825bd0ff679a27134b95008e167b9b4c2fe05a19941ec5233843", "liquidityType": "UniV4", "lpHolderCount": 9, "totalLiquidity": 53.754532181402, "lockedLiquidityPercent": 0 }, { "issues": [], "dexName": "UniswapV4", "lpHolders": [], "pairAddress": "0xb70d2aa6a5e1f834a8aa53a824d9f3022342c6b1f4925cd94c295154a284c4bd", "liquidityType": "UniV4", "lpHolderCount": 9, "totalLiquidity": 2.118965806424898, "lockedLiquidityPercent": 0 }, { "issues": [], "dexName": "UniswapV4", "lpHolders": [], "pairAddress": "0x8620e31fbe26446f95a25153a918610e477ec560083235a5f4a30d8612a50def", "liquidityType": "UniV4", "lpHolderCount": 9, "totalLiquidity": 0.547424047636, "lockedLiquidityPercent": 0 }, { "issues": [], "dexName": "UniswapV2", "lpHolders": [], "pairAddress": "0x72b1410df9d22d5a3416066663fcc36b460c579a", "liquidityType": "UniV2", "lpHolderCount": 9, "totalLiquidity": 0.00033994, "lockedLiquidityPercent": 0 }, { "lpMint": "0x970ca819696a9be175af69469c86bbe973edb402", "address": "0x970ca819696a9be175af69469c86bbe973edb402", "dexName": "uniswap_v3", "pairAddress": "0x970ca819696a9be175af69469c86bbe973edb402", "totalLiquidity": 8054.8035378073 }, { "lpMint": "0x0092234c96001d57d9641bef283f4f1ae3a728239f74727aef42e54c2a3ee6ab", "address": "0x0092234c96001d57d9641bef283f4f1ae3a728239f74727aef42e54c2a3ee6ab", "dexName": "uniswap-v4-ethereum", "pairAddress": "0x0092234c96001d57d9641bef283f4f1ae3a728239f74727aef42e54c2a3ee6ab", "totalLiquidity": 1721.9285 }, { "lpMint": "0x0f30e832eeb8ec653c58dfbb18441dea9ff84d7ce686df93e6916be71ccaa1ac", "address": "0x0f30e832eeb8ec653c58dfbb18441dea9ff84d7ce686df93e6916be71ccaa1ac", "dexName": "uniswap-v4-ethereum", "pairAddress": "0x0f30e832eeb8ec653c58dfbb18441dea9ff84d7ce686df93e6916be71ccaa1ac", "totalLiquidity": 1160.1937 }, { "lpMint": "0x7159255241c4b914d18ca195c36c56be51a7e55d17a3b3322d93f4fcacd67070", "address": "0x7159255241c4b914d18ca195c36c56be51a7e55d17a3b3322d93f4fcacd67070", "dexName": "uniswap-v4-ethereum", "pairAddress": "0x7159255241c4b914d18ca195c36c56be51a7e55d17a3b3322d93f4fcacd67070", "totalLiquidity": 733.0582 }, { "lpMint": "0x3445bd0f362a2ac93a376a97695421bc7eeb0030", "address": "0x3445bd0f362a2ac93a376a97695421bc7eeb0030", "dexName": "uniswap_v3", "pairAddress": "0x3445bd0f362a2ac93a376a97695421bc7eeb0030", "totalLiquidity": 697.4871 }, { "lpMint": "0x337f93194c7c2e5a48f87498c183e3af47df1f5f7fcd5444797aaf9ea6d4cd12", "address": "0x337f93194c7c2e5a48f87498c183e3af47df1f5f7fcd5444797aaf9ea6d4cd12", "dexName": "uniswap-v4-ethereum", "pairAddress": "0x337f93194c7c2e5a48f87498c183e3af47df1f5f7fcd5444797aaf9ea6d4cd12", "totalLiquidity": 123.7101 }, { "lpMint": "0x3e59f008a5087ebe09c4aaa67bfb034360b62a30ec1d9eb25a849e0c7ab5d9ba", "address": "0x3e59f008a5087ebe09c4aaa67bfb034360b62a30ec1d9eb25a849e0c7ab5d9ba", "dexName": "uniswap-v4-ethereum", "pairAddress": "0x3e59f008a5087ebe09c4aaa67bfb034360b62a30ec1d9eb25a849e0c7ab5d9ba", "totalLiquidity": 83.7664 }, { "lpMint": "0x20282d308fe6db80a42a6994677912b7e4b14c2a7a0f0ceb235928505650815d", "address": "0x20282d308fe6db80a42a6994677912b7e4b14c2a7a0f0ceb235928505650815d", "dexName": "uniswap-v4-ethereum", "pairAddress": "0x20282d308fe6db80a42a6994677912b7e4b14c2a7a0f0ceb235928505650815d", "totalLiquidity": 53.1348 }, { "lpMint": "0xc7c86cab9a973b4bfacdf9d8b205c8b5bfb6d45afb7e46109ef50785057722fd", "address": "0xc7c86cab9a973b4bfacdf9d8b205c8b5bfb6d45afb7e46109ef50785057722fd", "dexName": "uniswap-v4-ethereum", "pairAddress": "0xc7c86cab9a973b4bfacdf9d8b205c8b5bfb6d45afb7e46109ef50785057722fd", "totalLiquidity": 11.6878 }, { "lpMint": "0x5ef0e6cf92a9938b8cbcf360b134332ecd695d3d", "address": "0x5ef0e6cf92a9938b8cbcf360b134332ecd695d3d", "dexName": "uniswap_v3", "pairAddress": "0x5ef0e6cf92a9938b8cbcf360b134332ecd695d3d", "totalLiquidity": 4.7865196044 }, { "lpMint": "0x86b7a8bf03167ee42b983b383c9d0182fcc07841", "address": "0x86b7a8bf03167ee42b983b383c9d0182fcc07841", "dexName": "uniswap_v3", "pairAddress": "0x86b7a8bf03167ee42b983b383c9d0182fcc07841", "totalLiquidity": 1.5628415283 }, { "lpMint": "0x36a89d69f92b44ffb87fcc0944b93c7139f3073e", "address": "0x36a89d69f92b44ffb87fcc0944b93c7139f3073e", "dexName": "uniswap_v3", "pairAddress": "0x36a89d69f92b44ffb87fcc0944b93c7139f3073e", "totalLiquidity": 0.0002 }, { "lpMint": "0x0cd50e66b5b5d6cca82c225b2100aa02de6d6ee1", "address": "0x0cd50e66b5b5d6cca82c225b2100aa02de6d6ee1", "dexName": "uniswap_v3", "pairAddress": "0x0cd50e66b5b5d6cca82c225b2100aa02de6d6ee1", "totalLiquidity": 0.0001 }, { "lpMint": "0xfa1d9bf24f18cd72696ff416248edaea5c366b0c", "address": "0xfa1d9bf24f18cd72696ff416248edaea5c366b0c", "dexName": "uniswap_v3", "pairAddress": "0xfa1d9bf24f18cd72696ff416248edaea5c366b0c", "totalLiquidity": 3.296556912960001e-05 } ], "holderAnalysis": { "minter": "0xec78b484a28a73f4f1cff23b9cd31aa12c1d9b4e", "token_address": "0xd1d2eb1b1e90b638588728b4130137d262c87cae", "token_mint_tx": "0xf8cebc3f8dd03f2c042de55cb6faef2a942e35fedabed5195aad78b96516b49f", "sniper_analysis": { "sniper_count": 0, "sniper_addresses": [], "block_range_analysis": [], "median_time_since_mint": 0, "average_time_since_mint": 0, "sniper_confidence_score": 0, "sniper_total_percentage": 0, "time_since_mint_analysis": [ { "addresses": [], "buy_count": 0, "supply_percentage": 0, "time_range_seconds": 10 }, { "addresses": [], "buy_count": 0, "supply_percentage": 0, "time_range_seconds": 30 }, { "addresses": [], "buy_count": 0, "supply_percentage": 0, "time_range_seconds": 60 }, { "addresses": [], "buy_count": 0, "supply_percentage": 0, "time_range_seconds": 300 }, { "addresses": [], "buy_count": 0, "supply_percentage": 0, "time_range_seconds": 600 } ], "potential_frontrunning_detected": false }, "token_mint_time": "2023-05-15T20:56:23.000Z", "activity_patterns": { "recentBuyers": [], "activeTraders": [], "earlyAdopters": [], "longTermHolders": [], "suspiciousPatterns": { "unusualFlow": [], "sameTimeBuyers": [], "highFrequencyTraders": [] } }, "total_holders_count": 217360, "first_buyers_analysis": { "timestamp": "2026-08-14T17:21:49.330Z", "unique_buyers_count": 299, "bundled_buyers_count": 0, "all_bundled_addresses": [], "buyers_analyzed_count": 346, "dev_holdings_percentage": 0, "buyer_segmentation_limited": false, "buyers_still_holding_count": 33, "current_holding_percentage": 2.65, "snipers_still_holding_count": null, "buyers_transferred_out_count": 296, "current_percentage_per_buyer": [ { "address": "0x3727cfcbd85390bb11b3ff421878123adb866be8", "balance": 377284796.0149022, "is_bundler": false, "supply_percentage": 0.992714326 }, { "address": "0x0d0707963952f2fba59dd06f2b425ace40b492fe", "balance": 525515062.7290782, "is_bundler": false, "supply_percentage": 1.382738813 }, { "address": "0xf8cd17784f425120de2f0d65756d8a707c13d040", "balance": 70457123.07059012, "is_bundler": false, "supply_percentage": 0.185387262 }, { "address": "0x465e56cd21ad47d4d4790f17de5e0458f20c3719", "balance": 19902708.09547419, "is_bundler": false, "supply_percentage": 0.052368141 }, { "address": "0xf1dd3569b7c82e93340d502e0f34a78fcb8e1597", "balance": 757612.26294241, "is_bundler": false, "supply_percentage": 0.001993435 }, { "address": "0x72b1410df9d22d5a3416066663fcc36b460c579a", "balance": 0.27412392, "is_bundler": false, "supply_percentage": 1e-09 }, { "address": "0x1108f964b384f1dcda03658b24310ccbc48e226f", "balance": 3500, "is_bundler": false, "supply_percentage": 9.209e-06 }, { "address": "0xea9b8e54b9827668d9da677b6c56dee5215da091", "balance": 1, "is_bundler": false, "supply_percentage": 3e-09 }, { "address": "0x5f2b3a6c1d50a1c6eb3fe657f26a064db6ca7b7e", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x01b25b26a20f930aed9ddca4a3877ee1de24e6fa", "balance": 572.296, "is_bundler": false, "supply_percentage": 1.506e-06 }, { "address": "0x5078d5aaec2c695209accf1f96ea210a02cd03f6", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x61462e024289e72f1caf0e28bd6ef8b9ebc519ec", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0xfbd247b38c912a2799ae1c053175685ccfbe7c37", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0xba7b3124bd11c738e22c2ee61f46cb2108d2356b", "balance": 300, "is_bundler": false, "supply_percentage": 7.89e-07 }, { "address": "0x448b31944e7f6225c25d91e528c8a9e2b669fdcc", "balance": 2404.45277632, "is_bundler": false, "supply_percentage": 6.327e-06 }, { "address": "0xbb2331ebaee886c049b1fe17b6470fbb09c4bfc0", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x8cdd9e093ddfef72a79298f8bb5f8fc4751485ac", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x23901a57ff2fed01bfc8ca8bd187df9c7f2cad11", "balance": 1, "is_bundler": false, "supply_percentage": 3e-09 }, { "address": "0xf4249fbbd60bd6e4f82c46a2d815805a793eba63", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x525cbbe84715550cfc38bca71c4f4d15a4c00288", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0xd2abd11e364751979c2160c401a11c94e59ac627", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x00ee943eb41682d0521ca57d9dfede51b601c4b7", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0xd1175d84ef2bd3993e8ce6793c363a0061675690", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x5b8f446a79b884e03e2d99d3c48ee623d141b182", "balance": 0.86819395, "is_bundler": false, "supply_percentage": 2e-09 }, { "address": "0x75bc5781e8cf31c8413df2463e4c9c0e83a87264", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0xb89e08062734f4a576d6a7f184177040ae221e65", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x0aba4d70fa77f3dd7a7a680e1642e89cf9739a87", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x52fd271671530b8a1fdbf6b8eb0d8ddf62a31696", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0xd16c23ba1a47aa992273d17a9805e77ad069f050", "balance": 1370104.879877, "is_bundler": false, "supply_percentage": 0.003605029 }, { "address": "0x098cbdd8eb01b19d37539644821772e9bde12d55", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0xea80cbc86df841f0f1cb3ff77006d03f9dcff0aa", "balance": 0.8561374, "is_bundler": false, "supply_percentage": 2e-09 }, { "address": "0x12ab5196345e421306d317f168b368435b338282", "balance": 160.87001808, "is_bundler": false, "supply_percentage": 4.23e-07 }, { "address": "0xf0b9c328cc542a1d45392cd910033df6893e6a65", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x656ca5f97662570c5165503cc6f2b3817da5df1b", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0xb7eb49e101743d49d872a44355f10f43163fa64f", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x09fadbd76622b9e674166f06fad15e63b5aa76ef", "balance": 500, "is_bundler": false, "supply_percentage": 1.316e-06 }, { "address": "0x5486618894f04868287a6d1f2931eebc7ff5f3c4", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0xe04ed06676b3f62709f923ed01949bb54b241139", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x601b7a758c9b497f0c82aa80959ff112d714bdd6", "balance": 112361.42711779, "is_bundler": false, "supply_percentage": 0.000295646 }, { "address": "0x3a3acc75db3d74a5828aaf444543284e2403fa91", "balance": 1e-08, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x4565ed8a7d0c039afa8dbaa4d4dd3f9662acdfad", "balance": 0.89366909, "is_bundler": false, "supply_percentage": 2e-09 }, { "address": "0x9e87f37f27516d18096f48b68f6d448fcc4a7053", "balance": 1427854.14344932, "is_bundler": false, "supply_percentage": 0.00375698 }, { "address": "0xbff383e003f78662fe1b55a071cc69eaafeed526", "balance": 0.49920105, "is_bundler": false, "supply_percentage": 1e-09 }, { "address": "0x07bae765074790b76c791834ab873be27493c163", "balance": 2e-08, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x661f805ea266e0ba9c4b9d338c0d0b1d62d617c1", "balance": 374000, "is_bundler": false, "supply_percentage": 0.000984071 }, { "address": "0x4504dfa3861ec902226278c9cb7a777a01118574", "balance": 1e-08, "is_bundler": false, "supply_percentage": 0 }, { "address": "0xb6621cbf70e95d6c90be651c719534d08e7e42ca", "balance": 10991.59025755, "is_bundler": false, "supply_percentage": 2.8921e-05 }, { "address": "0xc36442b4a4522e871399cd717abdd847ab11fe88", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x418a983fdff31d5b4a2196d14604a01eb52dc5f6", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x7a250d5630b4cf539739df2c5dacb4c659f2488d", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x382c82d8429066d841666f7afb0f313980db52ed", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0xbfd6bcb4680cd6b3d851df6c48f913772116ab16", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x4ec8bb895019c3a32feafb61cda951fa8912b61e", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0xe08beb8c48e71fd08560db2fbaaa0701b187c7a7", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0xb0045844a5e5ec5ff2e2557512ff59658b4887da", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x493f461aead031cee2027f1b95370a692611acb9", "balance": 7.243e-05, "is_bundler": false, "supply_percentage": 0 }, { "address": "0xb20e0c41be769c81d4ba4ece3a497d97811790d8", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x1136b25047e142fa3018184793aec68fbb173ce4", "balance": 1e-08, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x329e0e39d814d4ee6b45afa660b8a2f5fb23c298", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x486db0323a35bbb0aa0a51e4c1d72279e443c210", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0xb17e9b9b8c5622eacb93aa344fd25b1e9df6cd02", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0xa910f92acdaf488fa6ef02174fb86208ad7722ba", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x3d88dd1dfbdf3cdd3be4333a7aa602f2066b8979", "balance": 28.83333332, "is_bundler": false, "supply_percentage": 7.6e-08 }, { "address": "0x3e496d1b1713defa3c7616e45380a554407b6518", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0xd6ac2d92d08639d74f1c6730b5bcdc8e81b80588", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x98407bbf6785b1626bf3e6a13d24c3d37a2b80c3", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0xb10b75af9f798a62eecaa0746b6739a743c1f1e8", "balance": 0.57549951, "is_bundler": false, "supply_percentage": 2e-09 }, { "address": "0x9e763061d6114534ef176209449a38a7ab725b71", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x1533e20c4a9acd54ba03f027f2ab7b28ceba7b97", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x1bf68a9d1eaee7826b3593c20a0ca93293cb489a", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x9e0e57de9cac0e9c489c080a0c07ff6e42ae12d1", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0xe60121fab19908b94494ede99a34be6610c2a66f", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x0b137c91842a2e94345f8c1404299d900dd508ed", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0xfd0000000100069ad1670066004306009b487ad7", "balance": 1.24e-06, "is_bundler": false, "supply_percentage": 0 }, { "address": "0xc37704a457b1ee87eb657cae584a34961e86acac", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x2d7c0af296954b980f5386303e4f90139e678539", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0xb42a59f226def7a4c7fa72f3408bd32d6c181d9e", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x74de5d4fcbf63e00296fd95d33236b9794016631", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0xa6e5abe89019e3e45d79d6909d0e4b930f7993a0", "balance": 449772.11216377, "is_bundler": false, "supply_percentage": 0.001183443 }, { "address": "0xfc1ce88c9e49033109df99c9f96534289485041a", "balance": 453334.89988848, "is_bundler": false, "supply_percentage": 0.001192818 }, { "address": "0x4bdce87c02b47020f8b700d1aab48fae799e71ec", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x8b437bb1bcc936a72d28efc360e93852a0aa71e3", "balance": 0.38686798, "is_bundler": false, "supply_percentage": 1e-09 }, { "address": "0xe93381fb4c4f14bda253907b18fad305d799241a", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0xeb6c4be4b92a52e969f4bf405025d997703d5383", "balance": 4000000, "is_bundler": false, "supply_percentage": 0.010524827 }, { "address": "0x00000000a991c429ee2ec6df19d40fe0c80088b8", "balance": 0.92633094, "is_bundler": false, "supply_percentage": 2e-09 }, { "address": "0xd4bdb7a07108f3c3d0d84c5f799fd42a582f9e3a", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x5f65f7b609678448494de4c87521cdf6cef1e932", "balance": 2564436.00031194, "is_bundler": false, "supply_percentage": 0.006747561 }, { "address": "0xb1dc395a592856f7b5a9ae53b98af8a64bdf6c85", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x035ae7d933dcbfe617ffba194a88af0c2867b90c", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0xd76912c98db183eb0660ca7ddbbf549c9943c49c", "balance": 3810142.97253107, "is_bundler": false, "supply_percentage": 0.010025274 }, { "address": "0x0f1c33908ce18b8a4bc8b97202df3e9f27ad4bf5", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0xbf6b5673441ff123d2bd37f1a16a21133730da63", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x277ccd4418ad84abff09bbd7d29402f1c880e5e8", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x000000000005af2ddc1a93a03e9b7014064d3b8d", "balance": 2e-08, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x1111111254eeb25477b68fb85ed929f73a960582", "balance": 1e-08, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x5ca08b72968227758594dc22877b51c20dc85fe2", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0xea21e34ceb28b7b668afa20ae9d048a46ee745fd", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x1341c56ca2a568977b632367aaff43027799892f", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x79a0e036bd1d0d924031cc569e99b447aeb14cdd", "balance": 0, "is_bundler": false, "supply_percentage": 0 }, { "address": "0x14e857d014d3ece7ee520065622ca97593e8fb8b", "balance": 89221.29190569, "is_bundler": false, "supply_percentage": 0.00023476 } ], "initially_acquired_percentage": 0.017284, "top_5_buyers_bought_percentage": 0.145849, "top_10_buyers_bought_percentage": 0.201369, "top_20_buyers_bought_percentage": 0.262097, "average_percentage_bundler_buyer": null, "snipers_still_holding_percentage": null, "bundled_buyers_still_holding_count": null, "bundled_current_holding_percentage": null, "snipers_current_holding_percentage": null, "distributed_to_distinct_addresses_count": 100, "transferred_out_from_initially_acquired_percentage": 0 }, "top_10_holders_analysis": { "decimals": 8, "topHolders": [ { "amount": "834762545882200000", "uiAmount": 8347625458.822001, "label_info": { "label_name": "Binance User", "label_type": "cex users", "label_subtype": "" }, "percentage": 21.964328, "ownerAddress": "0xf977814e90da44bfa03b6295a0616a897441acec" }, { "amount": "171648101544313118", "uiAmount": 1716481015.443131, "label_info": { "label_name": "BtcTurk 14", "label_type": "institution", "label_subtype": "" }, "percentage": 4.516416, "ownerAddress": "0x76ec5a0d3632b2133d9f1980903305b62678fbd3" }, { "amount": "142306352093639434", "uiAmount": 1423063520.936394, "label_info": { "label_name": "Bithumb 49", "label_type": "institution", "label_subtype": "" }, "percentage": 3.744374, "ownerAddress": "0x7d96d2488402ded8e8f66b3f251b68258fcd42c3" }, { "amount": "102567933223753366", "uiAmount": 1025679332.237534, "label_info": { "label_name": "eToro 4", "label_type": "institution", "label_subtype": "" }, "percentage": 2.698774, "ownerAddress": "0x77fb357f55bef5a70d30663955f8c9f35794df0e" }, { "amount": "96870895901291123", "uiAmount": 968708959.0129112, "label_info": { "label_name": "Bitkub User", "label_type": "cex users", "label_subtype": "" }, "percentage": 2.548873, "ownerAddress": "0x308672703961164e64332ba1ce19b85827502b4d" }, { "amount": "79811304722483796", "uiAmount": 798113047.2248379, "label_info": { "label_name": "Crypto.com 5", "label_type": "institution", "label_subtype": "" }, "percentage": 2.1, "ownerAddress": "0xcffad3200574698b78f32232aa9d63eabd290703" }, { "amount": "70165542838167935", "uiAmount": 701655428.3816794, "label_info": { "label_name": "Gnosis_safe: GnosisSafev1.3.0", "label_type": "contracts", "label_subtype": "" }, "percentage": 1.8462, "ownerAddress": "0x32c51e066d05d177a802b7c68859022c8cad38ef" }, { "amount": "67489103471530129", "uiAmount": 674891034.7153013, "label_info": { "label_name": "Bitstamp 60", "label_type": "institution", "label_subtype": "" }, "percentage": 1.775777, "ownerAddress": "0x7f604d597c15b2e2f60dc645844f68b1d781b752" }, { "amount": "67221780017831438", "uiAmount": 672217800.1783144, "label_info": { "label_name": "Crypto.com 26", "label_type": "institution", "label_subtype": "" }, "percentage": 1.768744, "ownerAddress": "0xa023f08c70a23abc7edfc5b6b5e171d78dfc947e" }, { "amount": "59649976700000000", "uiAmount": 596499767, "label_info": { "label_name": "Bitkub User", "label_type": "cex users", "label_subtype": "" }, "percentage": 1.569514, "ownerAddress": "0x326d9f47ba49bbaac279172634827483af70a601" } ], "totalSupply": "38005374377.58585191", "percentageHeldByTop5": 35.472765, "percentageHeldByTop10": 44.533, "percentageHeldByTop20": 55.657859, "rawEffectiveTotalSupply": "3800537437758585191" }, "dev_launched_tokens_in_24_hours": 0 }, "market_cap_rank": 288, "sparkline_in_7d": { "price": [ 0.001805726845775315, 0.001804987921861837, 0.001801616968381734, 0.00179411147305192, 0.001789661572521554, 0.001786818907276704, 0.001787251490027889, 0.00179499339291487, 0.001804870436740799, 0.001799196964329073, 0.001791731505028213, 0.001776619642320076, 0.001767620046253668, 0.001753287858954453, 0.001754733526460459, 0.001766494259007826, 0.001758516336232518, 0.001758549487954408, 0.001757130987612317, 0.001759872836248618, 0.001754342226114451, 0.001710659851326595, 0.001707243824373775, 0.001701475265536109, 0.00170130117468735, 0.001711771779308571, 0.001717890899206828, 0.001725431751188304, 0.001726775895060086, 0.00172716074235184, 0.001727330200474801, 0.001719780207182489, 0.001728971046524771, 0.001727527074486656, 0.001721989631405687, 0.001716604185820766, 0.001712938494011549, 0.00170673727656678, 0.001700988907323034, 0.001691760254161656, 0.001704940885299921, 0.001708173803590577, 0.001712376746968411, 0.001719676274992644, 0.001716181223722481, 0.001698214390461539, 0.001698970053835441, 0.001697189735162805, 0.001692775901115113, 0.00168137821783495, 0.001670590568632329, 0.001671237488839024, 0.00163926307152508, 0.001642086930736115, 0.001645882197178007, 0.001632296799537178, 0.001627832330945041, 0.001639049248716644, 0.001636803854594207, 0.001639129700236779, 0.001641034180844084, 0.001657010412319752, 0.001651321737794481, 0.001659851827503872, 0.001664562409085986, 0.00166776878484192, 0.001660409727534736, 0.001657896709566276, 0.001660262241139329, 0.00168621421301005, 0.00167565251584599, 0.001659876764771267, 0.001664712953293688, 0.00166775365186756, 0.00167438299439036, 0.001669532697727672, 0.001677982608774095, 0.001676507551939637, 0.001676805624395154, 0.001678592729654614, 0.001676558381403595, 0.001668082059791899, 0.001661528989160034, 0.001655690997394001, 0.001649635362514075, 0.001632280660937604, 0.001630054385774725, 0.001632511137236089, 0.001620824982188387, 0.001627233251141267, 0.001627574578201666, 0.001630084340244182, 0.001639950223236809, 0.001638056651989882, 0.001658379380913521, 0.001669975811487762, 0.001680536231032515, 0.001687009614319765, 0.001676486941147198, 0.001667595042583532, 0.001664105500570728, 0.001660067178001266, 0.001676384424665529, 0.001679843503898252, 0.001676940175010158, 0.001680829926074662, 0.001676532942362892, 0.001677636086565775, 0.001675015770267123, 0.001668263768788154, 0.001660884539204854, 0.00165999590866366, 0.001666403352050364, 0.001665293937840995, 0.001660726618966792, 0.001656467062662727, 0.001657406530576059, 0.001656160122718567, 0.001660779345797338, 0.001657019623562071, 0.001657470085876822, 0.001657178826238253, 0.001660425569487129, 0.001658863524660038, 0.001666744085138857, 0.001657667680028051, 0.00163801295006256, 0.001639959454055341, 0.001637968542974632, 0.001647761729159771, 0.001648857266332312, 0.001649601635184491, 0.001650585275096026, 0.001650054309270407, 0.00168673973315913, 0.001686450942096449, 0.001687567863032047, 0.001676090204632142, 0.001668744579199379, 0.001677393159584597, 0.001667105846671911, 0.001660215724191153, 0.001666784640721541, 0.001659609093303305, 0.00165073283588913, 0.001645531226295428, 0.001651385004724942, 0.001646606831411487, 0.001626786313712821, 0.001629343848402081, 0.001638793820910015, 0.001646347233534025, 0.001656320397305136, 0.001656958266164087, 0.00165628048907838, 0.001658981799008628, 0.001658793195677858, 0.001659387984704118, 0.001650886056949788, 0.001627421936112096, 0.001629940318855739, 0.001636200998079898, 0.001635780157555982, 0.001636291898308928, 0.001629255553389235, 0.001629001964009311, 0.001637398626671162, 0.001630772345089964 ] }, "price_change_24h": -2.2297091632144e-05, "circulating_supply": 49462502937.58659, "ath_change_percentage": -99.80264, "atl_change_percentage": 1108.10596, "market_cap_change_24h": -1065864.287062824, "ownershipDistribution": { "decimals": 8, "topHolders": [ { "amount": "834762545882200000", "uiAmount": 8347625458.822001, "label_info": { "label_name": "Binance User", "label_type": "cex users", "label_subtype": "" }, "percentage": 21.964328, "ownerAddress": "0xf977814e90da44bfa03b6295a0616a897441acec" }, { "amount": "171648101544313118", "uiAmount": 1716481015.443131, "label_info": { "label_name": "BtcTurk 14", "label_type": "institution", "label_subtype": "" }, "percentage": 4.516416, "ownerAddress": "0x76ec5a0d3632b2133d9f1980903305b62678fbd3" }, { "amount": "142306352093639434", "uiAmount": 1423063520.936394, "label_info": { "label_name": "Bithumb 49", "label_type": "institution", "label_subtype": "" }, "percentage": 3.744374, "ownerAddress": "0x7d96d2488402ded8e8f66b3f251b68258fcd42c3" }, { "amount": "102567933223753366", "uiAmount": 1025679332.237534, "label_info": { "label_name": "eToro 4", "label_type": "institution", "label_subtype": "" }, "percentage": 2.698774, "ownerAddress": "0x77fb357f55bef5a70d30663955f8c9f35794df0e" }, { "amount": "96870895901291123", "uiAmount": 968708959.0129112, "label_info": { "label_name": "Bitkub User", "label_type": "cex users", "label_subtype": "" }, "percentage": 2.548873, "ownerAddress": "0x308672703961164e64332ba1ce19b85827502b4d" }, { "amount": "79811304722483796", "uiAmount": 798113047.2248379, "label_info": { "label_name": "Crypto.com 5", "label_type": "institution", "label_subtype": "" }, "percentage": 2.1, "ownerAddress": "0xcffad3200574698b78f32232aa9d63eabd290703" }, { "amount": "70165542838167935", "uiAmount": 701655428.3816794, "label_info": { "label_name": "Gnosis_safe: GnosisSafev1.3.0", "label_type": "contracts", "label_subtype": "" }, "percentage": 1.8462, "ownerAddress": "0x32c51e066d05d177a802b7c68859022c8cad38ef" }, { "amount": "67489103471530129", "uiAmount": 674891034.7153013, "label_info": { "label_name": "Bitstamp 60", "label_type": "institution", "label_subtype": "" }, "percentage": 1.775777, "ownerAddress": "0x7f604d597c15b2e2f60dc645844f68b1d781b752" }, { "amount": "67221780017831438", "uiAmount": 672217800.1783144, "label_info": { "label_name": "Crypto.com 26", "label_type": "institution", "label_subtype": "" }, "percentage": 1.768744, "ownerAddress": "0xa023f08c70a23abc7edfc5b6b5e171d78dfc947e" }, { "amount": "59649976700000000", "uiAmount": 596499767, "label_info": { "label_name": "Bitkub User", "label_type": "cex users", "label_subtype": "" }, "percentage": 1.569514, "ownerAddress": "0x326d9f47ba49bbaac279172634827483af70a601" } ], "totalSupply": "38005374377.58585191", "percentageHeldByTop5": 35.472765, "percentageHeldByTop10": 44.533, "percentageHeldByTop20": 55.657859, "rawEffectiveTotalSupply": "3800537437758585191" }, "fully_diluted_valuation": 80524722, "price_change_percentage_24h": -1.2, "market_cap_change_percentage_24h": -1.30636, "market_cap_rank_with_rehypothecated": 407, "price_change_percentage_24h_in_currency": -1.2 }, "token_info": { "logo": "https://assets.webacy.com/tokens/gala.png", "name": "Gala", "links": { "github": [ "https://github.com/GalaChain/sdk" ], "twitter": "https://twitter.com/GoGalaGames", "website": "https://gala.com/", "telegram": "https://t.me/PoweredByGala" }, "symbol": "GALA", "decimals": 8, "description": "" }, "token_risk": { "decimals": 8, "expiresAt": 1789147896945, "renounced": null, "is_trusted": true, "token_logo": "https://assets.webacy.com/tokens/gala.png", "token_name": "GALA", "is_mintable": true, "token_symbol": "GALA", "access_control": { "interfaceType": "AccessControl", "activeRoleHolders": [] }, "token_standard": "ERC20", "illegal_unicode": false, "contract_address": "0xd1d2Eb1B1e90B638588728b4130137D262C87cae", "buy_tax_percentage": 0, "sell_tax_percentage": null }, "address_info": { "dprk": false, "hack": false, "balance": 0, "flagged": false, "sanctioned": false, "time_1st_tx": "2023-04-19T14:53:11.000Z", "time_verified": 1763125565588, "has_no_balance": true, "open_sanctions": false, "ofac_sanctioned": false, "transaction_count": 101, "has_no_transactions": false, "usdt_banned": false, "usdc_banned": false, "eurc_banned": false, "busd_banned": false, "pyusd_banned": false, "usdp_banned": false }, "buy_sell_taxes": { "has_buy_tax": false, "has_sell_tax": false } }, "deployer": { "risk": { "high": 0, "count": 1, "issues": [ { "tags": [ { "key": "address_poisoning", "name": "Address Poisoning", "type": "addressRisk", "context": { "detected_at": "2026-08-12T17:31:40.564Z" }, "severity": 1, "description": "This entity is involved in address poisoning attacks, where fake or misleading addresses are used to confuse users and potentially trick them into sending funds to the wrong destination. The presence of this tag does not imply malicious behavior by the address itself." } ], "score": 0.1, "riskScore": "Low Risk", "categories": { "fraudulent_malicious": { "key": "fraudulent_malicious", "name": "Fraudulent/Malicious", "tags": { "address_poisoning": true }, "gradedDescription": { "low": "Properties of this transaction indicate the possibility of nefarious activity, but we have not detected anything that would constitute elevated risk", "high": "The smart contract/address in this transaction has been used in and is associated with confirmed fraud and malicious activity, or the asset is a known malicious token. Interacting with it may also cause your address to be marked as fraudulent.", "medium": "Elements of the smart contract in this transaction can be used a fraudulent and malicious fashion, or the address in this transaction has been involved in some risk activity." } } } } ], "medium": 0, "details": { "fund_flows": { "risk": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false, "onchain_freeze": [] }, "flows": [ { "to": "0xdaE4249fA57610723B1f1B1c0379897aED4C9f26", "from": "0x7c195D981AbFdC3DDecd2ca0Fed0958430488e34", "type": "transfer", "token": "@native", "amount": 0.5, "txhash": "0x73e81e118098ae97c28e73c565e9ea1c48a48394a6a363e825e6fdf438513609", "risk_score": 0 }, { "to": "0xA9975DE8c43A012604D283520Aa1796F3c61b76c", "from": "0xdaE4249fA57610723B1f1B1c0379897aED4C9f26", "type": "transfer", "token": "@native", "amount": 0.1, "txhash": "0xcc5c07fb55acb76437a7a61381ff295b2ebfe089d086947455aa9f7b1ee1de70", "risk_score": 0 }, { "to": "0xA9975DE8c43A012604D283520Aa1796F3c61b76c", "from": "0xdaE4249fA57610723B1f1B1c0379897aED4C9f26", "type": "transfer", "token": "@native", "amount": 0.05, "txhash": "0x4aa84d4527d16d0a526836efd019c2019e0d1604a9b4671188864bc2a9551c92", "risk_score": 0 }, { "to": "0xdaE4249fA57610723B1f1B1c0379897aED4C9f26", "from": "0x32c51e066d05D177a802B7C68859022C8Cad38eF", "type": "transfer", "token": "@native", "amount": 2, "txhash": "0xf7fab32a6d5a29769147f18002126283a51697ec179903c73428d6a883ec920a", "risk_score": 0 } ], "label": "Gala Games", "accounts": { "0x32c51e066d05D177a802B7C68859022C8Cad38eF": { "type": "contract", "label": "Gala Games", "address": "0x32c51e066d05D177a802B7C68859022C8Cad38eF", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0x7c195D981AbFdC3DDecd2ca0Fed0958430488e34": { "type": "eoa", "label": "Coinbase", "address": "0x7c195D981AbFdC3DDecd2ca0Fed0958430488e34", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0xA9975DE8c43A012604D283520Aa1796F3c61b76c": { "type": "eoa", "label": "Gala Games", "address": "0xA9975DE8c43A012604D283520Aa1796F3c61b76c", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "0xdaE4249fA57610723B1f1B1c0379897aED4C9f26": { "type": "eoa", "label": "Gala Games", "address": "0xdaE4249fA57610723B1f1B1c0379897aED4C9f26", "risk_score": 0, "additional_labels": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } } }, "fund_flow_risk": { "ofac": false, "hacker": false, "mixers": false, "drainer": false, "fbi_ic3": false, "tornado": false } }, "marketData": { "market_cap": 0 }, "token_risk": {}, "address_info": { "dprk": false, "hack": false, "balance": 0.09999001481978405, "flagged": false, "sanctioned": false, "busd_banned": false, "eurc_banned": false, "time_1st_tx": "2023-04-19T14:42:11.000Z", "usdc_banned": false, "usdp_banned": false, "usdt_banned": false, "pyusd_banned": false, "time_verified": 1783433451224, "has_no_balance": false, "open_sanctions": false, "ofac_sanctioned": false, "automated_trading": false, "transaction_count": 16, "founding_addresses": [ "0x7c195d981abfdc3ddecd2ca0fed0958430488e34", "0x2b83937867e88dabd3c85ba805f19d4a941cb557", "0xd54e31903c6c4ee3e5dd62db1b48253002f6d5f7", "0x32c52da494ef97a7456dcf44ed6332cc8cad38ef", "0x32c576f1e0827bf05733350a8b27c9b5a98a38ef" ], "has_no_transactions": false }, "buy_sell_taxes": { "has_buy_tax": false, "has_sell_tax": false } }, "expiresAt": 1786642300571, "isContract": false, "addressType": "EOA", "analyzed_at": "2026-08-12T17:31:40.572Z", "overallRisk": 7.071067811865476 }, "address": "0xdae4249fa57610723b1f1b1c0379897aed4c9f26" }, "expiresAt": 1787106135458, "isContract": true, "addressType": "TOKEN", "analyzed_at": "2026-08-18T02:22:15.460Z", "overallRisk": 10.95445115010332, "tokenStandard": "ERC20" } ``` > [!NOTE] > > You screened GALA's verified contract (`0xd1d2Eb1B1e90B638588728b4130137D262C87cae`). Its `overallRisk` is about `11` (Low Risk), but it still surfaces several medium-severity factors worth reviewing before you list or integrate the token. The overall assessment gives you a starting point. The underlying signals explain **why** the risk exists. 👉 For a simplified view of Token analysis and security indicators, try [this endpoint](/api-reference/trading-lite/get-simplified-token-analysis-with-security-indicators). > [!WARNING] > > This simplified endpoint only functions for SOLANA addresses. **4. Review the risk factors** > [!NOTE] > > In the example above, the Risk Factors include `"is_mintable"` `"is_proxy"` `"low-lp-holder-count"` `"lp-whale-concentration"` and `"unlocked-liquidity"`. Additional endpoints you should try calling: * Token [smart contract analysis](/api-reference/contract-risk/get-a-real-time-analysis-for-a-given-contract-address) * Token [economics data](/api-reference/token-analysis/get-token-economic-history) * Token [pools (with risk)](/api-reference/token-analysis/get-token-pools-with-risk-assessment) * Token [trading analysis](/api-reference/trading-lite/get-simplified-token-analysis-with-security-indicators) * Token [early holder analysis (detailed)](/api-reference/holder-analysis/get-detailed-early-holder-analysis-for-a-token) - for new tokens only (created within 1 year) **A. Review the smart contract** Webacy analyzes contract code and behavior for characteristics that could introduce security or financial risk. Depending on the token, this may include signals related to: * Minting capabilities * Ownership and privileged roles * Upgradeability * Transfer restrictions * Blacklisting or freezing * Buy and sell taxes * Honeypot behavior * Proxy contracts * Dangerous permissions * Suspicious or malicious contract patterns Understanding these capabilities is especially important before listing, trading, or integrating an unfamiliar token. **B. Analyze the holders and distribution** Who owns a token can be just as important as how its contract works. Review the token's holder distribution to identify concentration and potentially risky holders. Questions to consider include: * How concentrated is the token supply? * How much is controlled by the largest holders? * Are major holders known entities? * Are any holders associated with malicious activity? * Are insiders or early holders still highly concentrated? * Could a small number of wallets materially impact the market? High concentration does not automatically mean an asset is unsafe, but it can introduce governance, liquidity, and market-manipulation risk. **C. Evaluate liquidity and trading activity** Next, examine the token's market structure. Liquidity conditions can determine whether users can reliably enter or exit a position and can expose risks that are not visible from the contract alone. Look for indicators such as: * Low or declining liquidity * Concentrated liquidity * Unusual trading activity * Large holder movements * Abnormal buy or sell behavior * Sudden changes in volume * Potential manipulation * Restrictions affecting the ability to sell These signals can help identify assets whose onchain market behavior does not match their apparent activity or valuation. **D. Investigate elevated risk signals** If Webacy identifies elevated risk, inspect the underlying signals rather than relying only on the overall assessment. For example, two tokens may receive elevated assessments for completely different reasons: **Token A → Dangerous Contract Permissions → Potential Technical Risk** **Token B → Concentrated Holders → Declining Liquidity → Potential Market Risk** Understanding the source of the risk allows your application or analysts to respond appropriately. **5. Take action based on the result** Once you've evaluated the token, you can incorporate Webacy's risk intelligence into your own application or policy engine. The appropriate action depends on your use case, jurisdiction, risk tolerance, and internal policies. Webacy provides the underlying intelligence so your system can determine what happens next. ## Continue monitoring Token screening should not always be treated as a one-time assessment. A token's risk profile can change as liquidity moves, holders accumulate or sell, privileged contract functions are exercised, malicious wallets become involved, or new security intelligence becomes available. For assets that your platform actively supports or holds, ongoing monitoring can help identify these changes as they occur. ## Common use cases Token screening can be incorporated into workflows such as: * **Token listings** — evaluate assets before adding them to an exchange or platform * **Trading applications** — screen assets before allowing users or agents to trade * **Treasury operations** — evaluate tokens before acquiring or holding them * **Collateral assessment** — identify risks before accepting an asset as collateral * **Due diligence** — investigate contract, holder, and market risks * **Portfolio monitoring** — continuously evaluate supported assets for changes in risk * **AI agents** — assess an asset before an autonomous system trades, transfers, or interacts with it # Supported Chains in the Webacy SDK Source: https://docs.webacy.com/sdk/chains Reference for the Chain enum and supported blockchain networks in the Webacy SDK, including EVM, Solana, Bitcoin, and address validation helpers. Use the `Chain` enum to specify which blockchain you want to analyze. The SDK provides type-safe chain identifiers for all supported networks. ## Chain Enum ```typescript theme={null} import { Chain } from '@webacy-xyz/sdk'; // Use in API calls const result = await client.addresses.analyze('0x...', { chain: Chain.ETH, }); ``` ## Supported Chains | Chain | Enum Value | API Value | Type | | - | - | - | - | | Ethereum | `Chain.ETH` | `eth` | EVM | | Solana | `Chain.SOL` | `sol` | Solana | | Base | `Chain.BASE` | `base` | EVM | | BNB Smart Chain | `Chain.BSC` | `bsc` | EVM | | Polygon | `Chain.POL` | `pol` | EVM | | Arbitrum | `Chain.ARB` | `arb` | EVM | | Optimism | `Chain.OPT` | `opt` | EVM | | Sui | `Chain.SUI` | `sui` | Sui | | Stellar | `Chain.STELLAR` | `stellar` | Stellar | | Bitcoin | `Chain.BTC` | `btc` | Bitcoin | | Sei | `Chain.SEI` | `sei` | Sei | | Hedera | `Chain.HEDERA` | `hedera` | Hedera | | Sepolia (Testnet) | `Chain.SEP` | `sep` | EVM | ## Default Chain Set a default chain to avoid specifying it on every request. > [!NOTE] > > **Prerequisites:** > > * SDK installed (`npm install @webacy-xyz/sdk`) > * API key available (from your Webacy dashboard) ```typescript theme={null} import { ThreatClient, Chain } from '@webacy-xyz/sdk'; const client = new ThreatClient({ apiKey: process.env.WEBACY_API_KEY, defaultChain: Chain.ETH, }); // No need to specify chain - uses ETH const result = await client.addresses.analyze('0x742d35Cc...'); // Override for a specific request const solResult = await client.addresses.analyze('So1ana...', { chain: Chain.SOL, }); ``` ## Chain Compatibility The SDK provides utilities to check chain compatibility: ```typescript theme={null} import { Chain, isEvmChain, getChainCompatibility, ChainCompatibility } from '@webacy-xyz/sdk'; // Check if chain is EVM-compatible isEvmChain(Chain.ETH); // true isEvmChain(Chain.SOL); // false // Get compatibility group getChainCompatibility(Chain.ETH); // ChainCompatibility.EVM getChainCompatibility(Chain.SOL); // ChainCompatibility.SOLANA ``` ### Compatibility Groups | Group | Chains | | - | - | | `EVM` | ETH, SEP, ARB, POL, OPT, BASE, BSC | | `SOLANA` | SOL | | `BTC` | BTC | | `SEI` | SEI | | `SUI` | SUI | | `STELLAR` | STELLAR | | `HEDERA` | HEDERA | ## Chain IDs For EVM chains, you can access the chain ID: ```typescript theme={null} import { CHAIN_IDS, Chain } from '@webacy-xyz/sdk'; CHAIN_IDS[Chain.ETH]; // 1 CHAIN_IDS[Chain.BSC]; // 56 CHAIN_IDS[Chain.POL]; // 137 CHAIN_IDS[Chain.OPT]; // 10 CHAIN_IDS[Chain.ARB]; // 42161 CHAIN_IDS[Chain.BASE]; // 8453 ``` ## Chain Names Get human-readable chain names: ```typescript theme={null} import { CHAIN_NAMES, Chain } from '@webacy-xyz/sdk'; CHAIN_NAMES[Chain.ETH]; // "Ethereum" CHAIN_NAMES[Chain.SOL]; // "Solana" CHAIN_NAMES[Chain.BSC]; // "BNB Smart Chain" CHAIN_NAMES[Chain.STELLAR]; // "Stellar" ``` ## Address Validation The SDK automatically validates addresses for the specified chain when you call API methods: ```typescript theme={null} // Valid Ethereum address await client.addresses.analyze('0x742d35Cc6634C0532925a3b844Bc454e4438f44e', { chain: Chain.ETH, }); // Valid Solana address await client.addresses.analyze('So11111111111111111111111111111111111111112', { chain: Chain.SOL, }); // Invalid address throws ValidationError try { await client.addresses.analyze('invalid', { chain: Chain.ETH }); } catch (error) { // ValidationError: Invalid Ethereum address format } ``` ### Standalone Validation Utilities You can also validate addresses and URLs directly without making API calls: ```typescript theme={null} import { isValidAddress, isValidEvmAddress, isValidSolanaAddress, isValidBitcoinAddress, isValidTonAddress, isValidSuiAddress, isValidStellarAddress, isValidHederaAddress, isValidUrl, normalizeUrl, Chain, } from '@webacy-xyz/sdk'; // Chain-aware validation isValidAddress('0x742d35Cc...', Chain.ETH); // true isValidAddress('So111...', Chain.SOL); // true // Chain-specific validators isValidEvmAddress('0x742d35Cc...'); // true isValidSolanaAddress('So111...'); // true isValidHederaAddress('0.0.1234567'); // true // URL validation isValidUrl('https://uniswap.org'); // true normalizeUrl('uniswap.org'); // 'https://uniswap.org' ``` ### Address Formats | Chain Type | Format | Example | | - | - | - | | EVM | 42-char hex with 0x prefix | `0x742d35Cc6634C0532925a3b844Bc454e4438f44e` | | Solana | Base58, 32-44 chars | `So11111111111111111111111111111111111111112` | | Bitcoin | Various formats | `bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq` | | Stellar | 56-char starting with G | `GCKV3Z7HN3WUT2WIOUM4SMAS5DN3X5LWQ6FQXVH7ZRMWKFU4Z5IPQWWN` | | Hedera | Native `0.0.X` or EVM hex | `0.0.1234567` | | Sui | 66-char hex with 0x prefix | `0x7d2f...` | | Sei | Bech32 with sei prefix | `sei1...` | ## Endpoint Availability Not all endpoints support all chains. See the [API Reference](../api-reference/introduction) for endpoint-specific chain support. > [card] [Supported Blockchains Guide](../supported-blockchains) > > Complete chain support matrix with endpoint availability # Webacy SDK CLI Reference Source: https://docs.webacy.com/sdk/cli Use the webacy CLI to call every ThreatClient and TradingClient method from your terminal, pipe JSON into scripts, and automate security checks in CI. The `@webacy-xyz/cli` package ships a `webacy` binary that exposes every `ThreatClient` and `TradingClient` method as a subcommand. Use it to script security checks, pipe JSON into other tools, or run one-off analyses without writing TypeScript. ## Installation ```bash theme={null} npm install -g @webacy-xyz/cli ``` Verify the install: ```bash theme={null} webacy --version ``` > [!TIP] > > The CLI is a thin wrapper around the SDK. Every subcommand maps 1:1 to an SDK method, so behavior, validation, and errors match exactly. ## Authentication Set your API key via environment variable (recommended) or the `--api-key` flag: ```bash env var theme={null} export WEBACY_API_KEY=your-api-key webacy addresses analyze 0x... --chain eth ``` ```bash flag theme={null} webacy --api-key your-api-key addresses analyze 0x... --chain eth ``` Without a key, commands fail fast before making any HTTP request: ```text theme={null} AuthenticationError: API key is required. Provide --api-key or set WEBACY_API_KEY. ``` > [!WARNING] > > Never commit your API key to version control. Prefer `WEBACY_API_KEY` in a shell profile or a secrets manager for CI. ## Command structure Every command follows the same shape: ```text theme={null} webacy [global options] [positional args] [local options] ``` * `` — a resource namespace (`addresses`, `contracts`, `tokens`, …) * `` — a method on that resource (`analyze`, `check-sanctioned`, `trending`, …) * Positional args — typically an address, transaction hash, or token address * Local options — method-specific flags (e.g. `--depth`, `--limit`, `--refresh-cache`) Drill into help at any level: ```bash theme={null} webacy --help # list all groups webacy addresses --help # list subcommands for a group webacy addresses analyze --help # flags + usage for a single subcommand ``` ## Global options | Flag | Description | | - | - | | `--api-key ` | API key (falls back to `WEBACY_API_KEY`) | | `--base-url ` | Override the API base URL (e.g. staging) | | `--chain ` | Default blockchain — applies to any command that accepts a chain | | `--timeout ` | Request timeout in milliseconds | | `--debug [level]` | Log SDK activity: `requests`, `responses`, `errors`, or `all` | | `--pretty` / `--no-pretty` | Force pretty or compact JSON (auto-detects TTY by default) | Global flags can appear before or after the subcommand: ```bash theme={null} webacy --chain eth addresses analyze 0x... webacy addresses analyze 0x... --chain eth --pretty ``` `--chain` only accepts production chains (`eth`, `sol`, `base`, `bsc`, `pol`, `arb`, `opt`, `sui`, `stellar`, `btc`, `sei`). An invalid value is rejected before any request is made. ## Output * **stdout** — the SDK response as JSON (pretty when the terminal is interactive, compact when piped; `--pretty` / `--no-pretty` override) * **stderr** — errors and debug logs * **exit code** — `0` on success, `1` on any error (pipes that close early exit `0` — safe for `| head`) This makes the CLI safe to pipe, redirect, and branch on in shell scripts: ```bash theme={null} # Extract just the risk score webacy addresses analyze 0x... --chain eth | jq .overallRisk # Save a full holder analysis to disk webacy holder-analysis get --chain sol --pretty > analysis.json # Fail a CI job if a contract exceeds a risk threshold SCORE=$(webacy contracts analyze "$CONTRACT" --chain eth | jq -r '.score') if [ "$SCORE" -gt 70 ]; then echo "Contract risk too high: $SCORE" exit 1 fi ``` ## Batch and JSON inputs Any command that takes a list or request body accepts either a literal value, `@./path/to/file.json`, or `@~/path/to/file.json` (tilde expands to your home directory): ```bash theme={null} # Comma-separated list webacy batch addresses 0xabc,0xdef,0x123 --chain eth # JSON array from a file echo '["0xabc", "0xdef"]' > addrs.json webacy batch addresses @addrs.json --chain eth # JSON body for transaction scans webacy scan transaction 0xSigner... @./tx-request.json # Tilde expansion webacy scan transaction 0xSigner... @~/requests/tx.json ``` File inputs are capped at 16 MiB and must point at a regular file (directories, FIFOs, and `/dev/stdin` are rejected). ## Input validation Validation happens locally before any HTTP request: * **`--chain`** — rejected by the parser if not a supported production chain. * **`--modules`** (`addresses analyze`) — each entry must be a valid `RiskModule` value; unknown values surface a `ValidationError` listing the full allowed set. * **`--tags`** (`rwa list`) — each entry must be one of `standard`, `yield`, `rwa`, `gold`, `bridged`, `vault`. * **Numeric flags** (`--depth`, `--limit`, `--timeout`, etc.) — must be integers; `3.9` or `10abc` are rejected (no silent truncation). * **Addresses** — validated against chain-specific formats (0x for EVM, base58 for Solana, etc.) before dispatch. Each failure prints a typed `ValidationError` + recovery hint and exits `1`. ## Command reference ### Threat | Group | Subcommands | `--chain` semantics | | - | - | - | | `addresses` | `analyze`, `check-sanctioned`, `check-poisoning`, `quick-profile`¹, `summary` | optional (uses `defaultChain` if set) | | `contracts` | `analyze`, `source-code`, `taxes`, `analyze-solidity`, `code-analysis`, `audits`, `by-symbol` | optional (`by-symbol` is chain-agnostic) | | `url` | `check`, `add` | chain-agnostic | | `wallets` | `transactions`, `approvals` | optional | | `ledger` | `scan-transaction`, `scan-eip712` | chain ID lives in the JSON body; global `--chain` is ignored | | `account-trace` | `trace` | optional | | `usage` | `current`, `history`, `plans`, `max-rps` | chain-agnostic | | `transactions` | `analyze`² | optional | | `scan` | `transaction`, `eip712`, `start-risk-scan`, `risk-scan-status` | chain ID lives in the JSON body for `transaction`/`eip712` | | `batch` | `addresses`, `contracts`, `transactions` | **required** | | `rwa` | `list`, `get` | optional | | `vaults` | `list`, `list-cursor`, `get`, `list-events`, `list-events-for-address` | **required** on `get` and `list-events-for-address` | ¹ `addresses quick-profile` supports `eth`, `base`, `bsc`, `pol`, `opt`, `arb`, `sol` only. ² `transactions analyze` supports `eth`, `base`, `bsc`, `pol`, `opt`, `arb`, `sol`, `stellar` only. ### Trading | Group | Subcommands | `--chain` semantics | | - | - | - | | `holder-analysis` | `get` | optional | | `trading-lite` | `analyze` | Solana only (default when omitted) | | `tokens` | `pools`, `trending`, `trending-pools`, `get`³, `pool-ohlcv`³ | **required** on `get` and `pool-ohlcv` | ³ `tokens get` and `tokens pool-ohlcv` support `eth`, `base`, `bsc`, `pol`, `opt`, `arb`, `sol` only. When the global `--chain` value falls outside a command's supported subset, the CLI throws a `ValidationError` locally with the allowed values — no HTTP round-trip. Each subcommand exposes the same options as the corresponding SDK method — run `webacy --help` to see them. ## Examples ### Investigate a suspicious address ```bash theme={null} webacy --chain eth --pretty addresses analyze 0xSuspect webacy --chain eth --pretty wallets approvals 0xSuspect webacy --chain eth --pretty account-trace trace 0xSuspect --depth 2 ``` ### Vet a new Solana token ```bash theme={null} webacy --chain sol trading-lite analyze webacy --chain sol tokens pools --pretty webacy --chain sol holder-analysis get | jq '.sniper_analysis' ``` ### Check current API quota ```bash theme={null} webacy usage current --pretty ``` ### Stream trending tokens and flag high-risk ones ```bash theme={null} webacy tokens trending --chain sol --limit 20 \ | jq '.tokens[] | select(.risk.overallRisk > 50) | {symbol, risk: .risk.overallRisk}' ``` ## Debugging Use `--debug` to see what the SDK is sending and receiving without changing your code: ```bash theme={null} webacy --debug all addresses analyze 0x... --chain eth # [Webacy SDK] HTTP request: GET /addresses/0x...?chain=eth # [Webacy SDK] HTTP response 200: { ... } ``` Granular levels: `--debug requests`, `--debug responses`, `--debug errors`. Point at a non-production environment for testing: ```bash theme={null} webacy --base-url https://api-development.webacy.com addresses analyze 0x... --chain eth ``` ## Error handling The CLI surfaces the SDK's typed errors with recovery hints on stderr, then exits with code `1`: ```bash theme={null} webacy addresses analyze not-an-address --chain eth # ValidationError: Invalid Ethereum address: "not-an-address"... # Hint: Check your input parameters. Ensure address formats match the specified blockchain. ``` Common error types: * `AuthenticationError` — missing or invalid API key * `ValidationError` — malformed input (address, chain, required field) * `RateLimitError` — you've exceeded your plan's rate limit * `NotFoundError` — resource doesn't exist on the given chain * `NetworkError` — timeout or connectivity issue See [Error Handling](/sdk/error-handling) for the full list and how to recover from each. ## Next steps > [card] [SDK Installation](/sdk/installation) > > Use the SDK directly in your TypeScript code > [card] [ThreatClient](/sdk/threat-client) > > Full method reference for threat analysis > [card] [TradingClient](/sdk/trading-client) > > Full method reference for trading analysis > [card] [Error Handling](/sdk/error-handling) > > Typed errors and recovery strategies # Error Handling Source: https://docs.webacy.com/sdk/error-handling Catch typed SDK errors like ValidationError, RateLimitError, and AuthenticationError with recovery hints, retry logic, and structured logging for production. You can handle errors gracefully using the SDK's structured error classes. All errors extend the base `WebacyError` class, making it easy to catch and respond to different failure scenarios. ## Error Classes ```typescript theme={null} import { WebacyError, AuthenticationError, ValidationError, RateLimitError, NotFoundError, NetworkError, } from '@webacy-xyz/sdk'; ``` | Error | HTTP Status | Description | | - | - | - | | `AuthenticationError` | 401 | Invalid or missing API key | | `ValidationError` | 400 | Invalid input parameters | | `RateLimitError` | 429 | Rate limit exceeded | | `NotFoundError` | 404 | Resource not found | | `NetworkError` | - | Network connectivity issues | | `WebacyError` | Various | Base class for all errors | ## Basic Error Handling ```typescript theme={null} import { ThreatClient, ValidationError, RateLimitError } from '@webacy-xyz/sdk'; const client = new ThreatClient({ apiKey: process.env.WEBACY_API_KEY }); try { const result = await client.addresses.analyze('0x...'); } catch (error) { if (error instanceof ValidationError) { console.error('Invalid input:', error.message); } else if (error instanceof RateLimitError) { console.error('Rate limited, retry later'); } else { console.error('Unexpected error:', error); } } ``` *** ## Error Properties All SDK errors include these properties: ```typescript theme={null} try { await client.addresses.analyze('invalid-address'); } catch (error) { if (error instanceof WebacyError) { console.log(error.message); // Human-readable message console.log(error.code); // Programmatic error code console.log(error.status); // HTTP status code (if applicable) console.log(error.requestId); // Request ID for support console.log(error.endpoint); // Failed endpoint console.log(error.cause); // Original error (if wrapped) } } ``` ### Recovery Suggestions Errors provide recovery suggestions: ```typescript theme={null} try { await client.addresses.analyze('invalid'); } catch (error) { if (error instanceof WebacyError) { const suggestion = error.getRecoverySuggestion(); if (suggestion) { console.log('How to fix:', suggestion); } } } ``` *** ## Specific Error Types ### AuthenticationError Thrown when the API key is invalid or missing. ```typescript theme={null} import { ThreatClient, AuthenticationError } from '@webacy-xyz/sdk'; try { const client = new ThreatClient({ apiKey: 'invalid-key' }); await client.addresses.analyze('0x...'); } catch (error) { if (error instanceof AuthenticationError) { console.error('Invalid API key'); // Prompt user to check their API key } } ``` ### ValidationError Thrown when input parameters are invalid. ```typescript theme={null} import { ThreatClient, Chain, ValidationError } from '@webacy-xyz/sdk'; const client = new ThreatClient({ apiKey: 'your-api-key' }); try { await client.addresses.analyze('not-an-address', { chain: Chain.ETH }); } catch (error) { if (error instanceof ValidationError) { console.error('Validation failed:', error.message); console.log('Fix:', error.getRecoverySuggestion()); // "Ensure the address is a valid Ethereum address (0x followed by 40 hex characters)" } } ``` ### RateLimitError Thrown when you exceed API rate limits. The SDK automatically retries rate-limited requests with exponential backoff. ```typescript theme={null} import { ThreatClient, RateLimitError } from '@webacy-xyz/sdk'; const client = new ThreatClient({ apiKey: 'your-api-key' }); try { await client.addresses.analyze('0x...'); } catch (error) { if (error instanceof RateLimitError) { console.error('Rate limited'); if (error.retryAfter) { console.log(`Retry after ${error.retryAfter} seconds`); } if (error.resetAt) { const resetDate = new Date(error.resetAt * 1000); console.log(`Limit resets at ${resetDate.toISOString()}`); } } } ``` ### NotFoundError Thrown when the requested resource doesn't exist. ```typescript theme={null} import { ThreatClient, NotFoundError } from '@webacy-xyz/sdk'; const client = new ThreatClient({ apiKey: 'your-api-key' }); try { await client.contracts.analyze('0xNonExistentContract...'); } catch (error) { if (error instanceof NotFoundError) { console.error('Contract not found'); } } ``` ### NetworkError Thrown when there are network connectivity issues. ```typescript theme={null} import { ThreatClient, NetworkError } from '@webacy-xyz/sdk'; const client = new ThreatClient({ apiKey: 'your-api-key' }); try { await client.addresses.analyze('0x...'); } catch (error) { if (error instanceof NetworkError) { console.error('Network error:', error.message); if (error.requestId) { console.error('Request ID:', error.requestId); } // Retry or notify user of connectivity issues } } ``` *** ## Retryable Errors Check if an error can be retried: ```typescript theme={null} import { ThreatClient, WebacyError } from '@webacy-xyz/sdk'; const client = new ThreatClient({ apiKey: 'your-api-key' }); async function analyzeWithRetry(address: string, maxRetries = 3) { for (let attempt = 1; attempt <= maxRetries; attempt++) { try { return await client.addresses.analyze(address); } catch (error) { if (error instanceof WebacyError && error.isRetryable() && attempt < maxRetries) { // Safe to retry (rate limits, network issues) const delay = Math.pow(2, attempt) * 1000; // Exponential backoff await new Promise(resolve => setTimeout(resolve, delay)); continue; } // Don't retry (validation errors, auth errors) or max retries reached throw error; } } } ``` Retryable errors: * `RateLimitError` - Wait and retry * `NetworkError` - Retry after connectivity restored Non-retryable errors: * `AuthenticationError` - Fix API key * `ValidationError` - Fix input * `NotFoundError` - Resource doesn't exist *** ## Automatic Retries The SDK automatically retries failed requests with exponential backoff: ```typescript theme={null} const client = new ThreatClient({ apiKey: process.env.WEBACY_API_KEY, retry: { maxRetries: 3, // Default: 3 initialDelay: 1000, // Default: 1000ms maxDelay: 30000, // Default: 30000ms backoffMultiplier: 2, // Default: 2 }, }); ``` Disable retries for specific requests using an AbortController: ```typescript theme={null} const controller = new AbortController(); // Timeout after 5 seconds (no retries) setTimeout(() => controller.abort(), 5000); try { await client.addresses.analyze('0x...', { signal: controller.signal, }); } catch (error) { if (error.name === 'AbortError') { console.log('Request timed out'); } } ``` *** ## Logging Errors Convert errors to JSON for logging: ```typescript theme={null} try { await client.addresses.analyze('0x...'); } catch (error) { if (error instanceof WebacyError) { // Structured logging console.error(JSON.stringify(error.toJSON(), null, 2)); // { // "name": "ValidationError", // "message": "Invalid Ethereum address format", // "code": "VALIDATION_ERROR", // "status": 400, // "requestId": "req_abc123", // "endpoint": "/addresses/invalid" // } } } ``` *** ## Full Example ```typescript theme={null} import { ThreatClient, Chain, WebacyError, AuthenticationError, ValidationError, RateLimitError, NotFoundError, NetworkError, } from '@webacy-xyz/sdk'; async function safeAnalyze(client: ThreatClient, address: string) { try { return await client.addresses.analyze(address); } catch (error) { // Handle specific error types if (error instanceof AuthenticationError) { throw new Error('Please check your API key configuration'); } if (error instanceof ValidationError) { throw new Error(`Invalid address: ${error.getRecoverySuggestion()}`); } if (error instanceof RateLimitError) { const waitTime = error.retryAfter || 60; throw new Error(`Too many requests. Please wait ${waitTime} seconds.`); } if (error instanceof NotFoundError) { return null; // Address not found, return null } if (error instanceof NetworkError) { throw new Error('Network error. Please check your connection.'); } // Log unexpected errors with request ID for support if (error instanceof WebacyError) { console.error('Unexpected error:', error.toJSON()); if (error.requestId) { console.error(`Request ID for support: ${error.requestId}`); } } throw error; } } ``` # Installation Source: https://docs.webacy.com/sdk/installation Install the Webacy TypeScript SDK with npm, pnpm, yarn, or bun and configure ThreatClient or TradingClient with API keys, default chains, and debug logging. ## Requirements * Node.js 18 or later * An API key from [developers.webacy.co](https://developers.webacy.co/) ## Install the Package ```bash npm theme={null} npm install @webacy-xyz/sdk ``` ```bash pnpm theme={null} pnpm add @webacy-xyz/sdk ``` ```bash yarn theme={null} yarn add @webacy-xyz/sdk ``` ```bash bun theme={null} bun add @webacy-xyz/sdk ``` ## Module Support The SDK supports both ESM and CommonJS: ```typescript ESM (Recommended) theme={null} import { ThreatClient, TradingClient, Chain } from '@webacy-xyz/sdk'; ``` ```javascript CommonJS theme={null} const { ThreatClient, TradingClient, Chain } = require('@webacy-xyz/sdk'); ``` ## Initialize a Client ### ThreatClient For security analysis (addresses, contracts, sanctions, URLs): ```typescript theme={null} import { ThreatClient, Chain } from '@webacy-xyz/sdk'; const client = new ThreatClient({ apiKey: process.env.WEBACY_API_KEY, }); ``` ### TradingClient For trading analysis (holder analysis, sniper detection): ```typescript theme={null} import { TradingClient, Chain } from '@webacy-xyz/sdk'; const client = new TradingClient({ apiKey: process.env.WEBACY_API_KEY, }); ``` ## Configuration Options Both clients accept the same configuration options: ```typescript theme={null} const client = new ThreatClient({ // Required apiKey: 'your-api-key', // Optional: Set a default chain for all requests defaultChain: Chain.ETH, // Optional: Enable debug logging debug: true, // or 'requests' | 'responses' | 'errors' // Optional: Custom base URL (for development) baseUrl: 'https://api-development.webacy.com', // Optional: Request timeout in milliseconds timeout: 30000, }); ``` ### Default Chain Set a default chain to avoid specifying it on every request: ```typescript theme={null} const client = new ThreatClient({ apiKey: process.env.WEBACY_API_KEY, defaultChain: Chain.ETH, }); // No need to specify chain - uses ETH const result = await client.addresses.analyze('0x...'); // Override for specific requests const solResult = await client.addresses.analyze('So1...', { chain: Chain.SOL, }); ``` ### Debug Mode Enable logging to troubleshoot issues: ```typescript theme={null} const client = new ThreatClient({ apiKey: process.env.WEBACY_API_KEY, debug: true, // Log everything }); // Or be more specific: const client = new ThreatClient({ apiKey: process.env.WEBACY_API_KEY, debug: 'requests', // Only log outgoing requests // debug: 'responses', // Only log responses // debug: 'errors', // Only log errors }); ``` > [!WARNING] > > Never commit your API key to version control. Use environment variables or a secrets manager. ## Individual Packages If you only need specific functionality, install individual packages to reduce bundle size: | Package | Install | Description | | - | - | - | | [`@webacy-xyz/sdk-core`](https://www.npmjs.com/package/@webacy-xyz/sdk-core) | `npm install @webacy-xyz/sdk-core` | Core utilities only | | [`@webacy-xyz/sdk-threat`](https://www.npmjs.com/package/@webacy-xyz/sdk-threat) | `npm install @webacy-xyz/sdk-threat` | Threat analysis | | [`@webacy-xyz/sdk-trading`](https://www.npmjs.com/package/@webacy-xyz/sdk-trading) | `npm install @webacy-xyz/sdk-trading` | Trading analysis | ```typescript theme={null} // Import from specific packages import { ThreatClient } from '@webacy-xyz/sdk-threat'; import { TradingClient } from '@webacy-xyz/sdk-trading'; import { Chain, ValidationError } from '@webacy-xyz/sdk-core'; ``` ## TypeScript Configuration The SDK is written in TypeScript and includes type definitions. For the best experience, ensure your `tsconfig.json` includes: ```json theme={null} { "compilerOptions": { "moduleResolution": "bundler", // or "node16" / "nodenext" "esModuleInterop": true, "strict": true } } ``` ## Next Steps > [card] [ThreatClient](/sdk/threat-client) > > Analyze addresses, contracts, and URLs > [card] [TradingClient](/sdk/trading-client) > > Holder analysis and trading insights # SDK Introduction Source: https://docs.webacy.com/sdk/introduction Get started with the Webacy TypeScript SDK for blockchain risk analysis with type-safe clients, multi-chain support, retries, and structured error handling. Use the Webacy SDK to integrate blockchain security and risk analysis capabilities into your applications. You get type-safe access to all Webacy API endpoints with built-in error handling, retry logic, and multi-chain support. ## Why Use the SDK? > [card] Type Safety > > Full TypeScript support with complete type definitions for all requests and responses > [card] Multi-Chain > > Built-in support for 12 mainnet blockchains (plus Sepolia testnet) with type-safe Chain enum > [card] Error Handling > > Structured error classes with recovery suggestions > [card] Retry Logic > > Automatic retries with exponential backoff for transient failures ## Packages The SDK is organized as a monorepo with focused packages: | Package | Description | | - | - | | [`@webacy-xyz/sdk`](https://www.npmjs.com/package/@webacy-xyz/sdk) | Unified SDK that re-exports all packages | | [`@webacy-xyz/sdk-core`](https://www.npmjs.com/package/@webacy-xyz/sdk-core) | Core utilities: HTTP client, errors, Chain enum | | [`@webacy-xyz/sdk-threat`](https://www.npmjs.com/package/@webacy-xyz/sdk-threat) | Threat analysis: addresses, contracts, sanctions, URLs, vault risk, depeg monitoring | | [`@webacy-xyz/sdk-trading`](https://www.npmjs.com/package/@webacy-xyz/sdk-trading) | Trading analysis: holder analysis, sniper detection | > [!TIP] > > For most use cases, install `@webacy-xyz/sdk` which includes everything you need. ## Quick Example ```typescript theme={null} import { ThreatClient, Chain } from '@webacy-xyz/sdk'; const client = new ThreatClient({ apiKey: process.env.WEBACY_API_KEY, defaultChain: Chain.ETH, }); // Analyze an address for security risks const result = await client.addresses.analyze( '0x742d35Cc6634C0532925a3b844Bc454e4438f44e' ); console.log(result.overallRisk); // 0-100 risk score console.log(result.issues); // Array of risk factors ``` ## Supported Chains The SDK supports 12 mainnet blockchains through the `Chain` enum (plus `Chain.SEP` for Sepolia testnet): ```typescript theme={null} import { Chain } from '@webacy-xyz/sdk'; Chain.ETH // Ethereum Chain.SOL // Solana Chain.BASE // Base Chain.BSC // BNB Smart Chain Chain.POL // Polygon Chain.ARB // Arbitrum Chain.OPT // Optimism Chain.SUI // Sui Chain.STELLAR // Stellar Chain.BTC // Bitcoin Chain.SEI // Sei Chain.HEDERA // Hedera ``` ## Next Steps > [card] [Installation](/sdk/installation) > > Install the SDK in your project > [card] [ThreatClient](/sdk/threat-client) > > Analyze addresses, contracts, and URLs > [card] [TradingClient](/sdk/trading-client) > > Holder analysis and sniper detection > [card] [Error Handling](/sdk/error-handling) > > Handle errors gracefully # ThreatClient Source: https://docs.webacy.com/sdk/threat-client Reference for ThreatClient methods covering address risk, sanctions screening, contract analysis, URL safety, vault scoring, and transaction simulation. The `ThreatClient` provides access to Webacy's threat and risk analysis APIs. Use it to analyze addresses for security risks, screen for sanctions, check smart contract vulnerabilities, verify URL safety, assess ERC-4626 vault risk, and monitor stablecoin/RWA depeg risk. ## Initialization ```typescript theme={null} import { ThreatClient, Chain } from '@webacy-xyz/sdk'; const client = new ThreatClient({ apiKey: process.env.WEBACY_API_KEY, defaultChain: Chain.ETH, // Optional: set default chain }); ``` ## Resources The ThreatClient provides access to these resources: | Resource | Description | | - | - | | `addresses` | Address risk analysis, sanctions screening, poisoning detection, quick profiles | | `contracts` | Smart contract security analysis and code analysis | | `url` | URL safety and phishing detection | | `wallets` | Wallet activity and approval analysis | | `ledger` | Hardware wallet transaction scanning | | `accountTrace` | Fund flow tracing | | `transactions` | Transaction risk analysis | | `scan` | Transaction and EIP-712 message scanning | | `batch` | Batch analysis for addresses, contracts, and transactions | | `vaults` | ERC-4626 vault risk scoring and due diligence | | `rwa` | Stablecoin and RWA depeg risk monitoring | | `usage` | API usage statistics | *** ## Addresses ### Analyze Address Risk Get comprehensive risk analysis for any blockchain address. ```typescript theme={null} const result = await client.addresses.analyze( '0x742d35Cc6634C0532925a3b844Bc454e4438f44e', { chain: Chain.ETH } ); console.log(result.overallRisk); // 0-100 risk score console.log(result.issues); // Array of risk factors console.log(result.isContract); // true if smart contract ``` **Response:** ```json theme={null} { "count": 1, "medium": 0, "high": 1, "overallRisk": 75.5, "issues": [ { "tag": "Mixer User", "severity": "high", "description": "Address has interacted with mixing services" } ], "isContract": false } ``` **Options:** | Option | Type | Description | | - | - | - | | `chain` | `Chain` | Blockchain to analyze (optional if defaultChain set) | | `modules` | `RiskModule[]` | Specific risk modules to run | | `detailed` | `boolean` | Include detailed analysis data | | `deployerRisk` | `boolean` | Include deployer risk for contracts | ### Check Sanctions Screen an address against OFAC and other sanctions lists. ```typescript theme={null} const result = await client.addresses.checkSanctioned( '0x742d35Cc6634C0532925a3b844Bc454e4438f44e', { chain: Chain.ETH } ); if (result.is_sanctioned) { console.error('Address is sanctioned!'); } else if (result.sanctions_status === 'unknown') { console.error('Sanctions screening could not be completed'); } ``` ### Check Address Poisoning Detect address poisoning (dust attack) attempts. ```typescript theme={null} const result = await client.addresses.checkPoisoning( '0x742d35Cc6634C0532925a3b844Bc454e4438f44e', { chain: Chain.ETH } ); if (result.is_poisoned) { console.warn('Address poisoning detected!'); console.log(result.poisoning_details?.similar_addresses); } ``` ### Get Quick Profile Get a lightweight risk profile with optional token approvals. ```typescript theme={null} const result = await client.addresses.getQuickProfile( '0x742d35Cc6634C0532925a3b844Bc454e4438f44e', { chain: Chain.ETH, withApprovals: true, // Include token approvals } ); console.log(`Risk score: ${result.riskScore}`); console.log(`Risk level: ${result.riskLevel}`); console.log(`Account age: ${result.accountAge} days`); // Check approvals if requested for (const approval of result.approvals ?? []) { console.log(`${approval.symbol} approved to ${approval.spenderName}`); } ``` **Options:** | Option | Type | Description | | - | - | - | | `chain` | `Chain` | Blockchain to analyze (ETH, BASE, BSC, POL, OPT, ARB, SOL) | | `withApprovals` | `boolean` | Include token approval data | | `hideTrustFlags` | `boolean` | Hide trust flags in response | *** ## Contracts ### Analyze Contract Get security analysis for a smart contract. ```typescript theme={null} const result = await client.contracts.analyze( '0xdAC17F958D2ee523a2206206994597C13D831ec7', // USDT { chain: Chain.ETH } ); console.log(result.overallRisk); console.log(result.vulnerabilities); ``` ### Get Contract Tax Check buy/sell tax for a token contract. ```typescript theme={null} const result = await client.contracts.getTax( '0xTokenAddress...', { chain: Chain.ETH } ); console.log(`Buy tax: ${result.buyTax}%`); console.log(`Sell tax: ${result.sellTax}%`); ``` ### Get Code Analysis Perform static code analysis on a contract's source code. ```typescript theme={null} const result = await client.contracts.getCodeAnalysis( '0xContractAddress...', { chain: Chain.ETH, refreshCache: false, // Use cached results if available } ); console.log(`Total findings: ${result.findings.length}`); for (const finding of result.findings) { console.log(`[${finding.severity}] ${finding.title}`); console.log(` ${finding.description}`); console.log(` Location: ${finding.location}`); } ``` **Response:** ```json theme={null} { "contractAddress": "0x...", "chain": "eth", "findings": [ { "title": "Reentrancy vulnerability", "description": "External call before state update", "severity": "high", "location": "withdraw() line 45", "recommendation": "Use checks-effects-interactions pattern" } ], "analyzedAt": "2024-01-20T12:00:00Z" } ``` *** ## URL Safety ### Check URL Analyze a URL for phishing and malware. ```typescript theme={null} const result = await client.url.check('https://suspicious-site.com'); if (result.isPhishing) { console.error('Phishing site detected!'); } console.log(result.riskScore); console.log(result.categories); ``` *** ## Wallets ### Get Approvals List token approvals for a wallet. ```typescript theme={null} const result = await client.wallets.getApprovals( '0x742d35Cc6634C0532925a3b844Bc454e4438f44e', { chain: Chain.ETH } ); for (const approval of result.approvals) { console.log(`${approval.token} approved to ${approval.spender}`); console.log(`Amount: ${approval.amount}`); } ``` ### Get Transactions Get risk-scored transaction history for a wallet. ```typescript theme={null} const result = await client.wallets.getTransactions( '0x742d35Cc6634C0532925a3b844Bc454e4438f44e', { chain: Chain.ETH } ); console.log(`Risk score: ${result.overallRisk}`); console.log(`Issues found: ${result.count}`); for (const issue of result.issues) { console.log(`[${issue.severity}] ${issue.tag}: ${issue.description}`); } ``` **Response:** ```json theme={null} { "count": 2, "overallRisk": 45, "issues": [ { "tag": "Risky Interaction", "severity": "medium", "description": "Interacted with flagged address" } ] } ``` *** ## Account Trace ### Trace Fund Flows Trace multi-hop fund flows for compliance and forensics. ```typescript theme={null} const result = await client.accountTrace.trace( '0x742d35Cc6634C0532925a3b844Bc454e4438f44e', { chain: Chain.ETH } ); console.log(`Total connections: ${result.summary.totalConnections}`); console.log(`High-risk: ${result.summary.highRiskConnections}`); for (const conn of result.connections) { console.log(`${conn.address}: ${conn.relationship} - ${conn.riskFlags.join(', ')}`); } ``` **Response:** ```json theme={null} { "summary": { "totalConnections": 15, "highRiskConnections": 3 }, "connections": [ { "address": "0xabc...", "relationship": "direct_transfer", "riskFlags": ["mixer_user", "high_risk"], "depth": 1 } ] } ``` *** ## Usage ### Get API Usage Monitor your API usage and quotas. ```typescript theme={null} const usage = await client.usage.get(); console.log(`Requests used: ${usage.requestsUsed}`); console.log(`Requests remaining: ${usage.requestsRemaining}`); console.log(`Reset date: ${usage.resetDate}`); ``` ### Get Max RPS Get maximum requests per second for an organization over a time period. ```typescript theme={null} const maxRps = await client.usage.getMaxRps({ organization: 'my-org', from: Date.now() - 86400000, // 24 hours ago to: Date.now(), }); console.log(`Max RPS: ${maxRps}`); ``` **Options:** | Option | Type | Required | Description | | - | - | - | - | | `organization` | `string` | Yes | Organization identifier | | `from` | `number` | Yes | Start time as Unix timestamp in milliseconds (e.g., `Date.now() - 86400000`) | | `to` | `number` | Yes | End time as Unix timestamp in milliseconds (e.g., `Date.now()`) | *** ## Transactions ### Analyze Transaction Get risk analysis for a blockchain transaction. ```typescript theme={null} const result = await client.transactions.analyze( '0xTransactionHash...', { chain: Chain.ETH } ); console.log(`Risk score: ${result.riskScore}`); console.log(`Risk level: ${result.riskLevel}`); for (const tag of result.riskTags ?? []) { console.log(`Risk: ${tag.tag} - ${tag.description}`); } ``` **Supported chains:** ETH, BASE, BSC, POL, OPT, ARB, SOL, STELLAR **Options:** | Option | Type | Description | | - | - | - | | `chain` | `Chain` | Blockchain to analyze | | `hideTrustFlags` | `boolean` | Hide trust flags in response | *** ## Scan ### Scan Transaction Scan a raw transaction for risks before signing. ```typescript theme={null} const result = await client.scan.scanTransaction( '0xSignerAddress...', { tx: { from: '0xSignerAddress...', raw: '0xRawTransactionData...', }, chain: 1, // Chain ID (1 = Ethereum) domain: 'app.example.com', // Optional: dApp domain } ); // One item per simulated asset movement / approval (`@webacy-xyz/sdk-threat` >= 3.0 types) for (const item of result.simulation) { const { txData, counterpartyRisk, assetRisk } = item; console.log(`${txData.changeType} ${txData.rawAmount ?? ''} ${txData.symbol ?? txData.assetType} → ${txData.counterpartyAddress}`); if ((counterpartyRisk.high ?? 0) > 0 || (assetRisk.high ?? 0) > 0) { console.warn('High risk:', counterpartyRisk.issues?.flatMap((i) => i.tags.map((t) => t.name))); } } // An empty `simulation` array, or a party with only `address` and no score, is inconclusive — not safe. ``` **Supported chain IDs:** 1 (ETH), 56 (BSC), 137 (POL), 10 (OPT), 42161 (ARB), 8453 (BASE) `tx.raw` is the serialized unsigned transaction (ethers `Transaction.from({...}).unsignedSerialized`, viem `serializeTransaction(...)`) or a 66-character hash of a mined transaction. ### Scan EIP-712 Message Scan an EIP-712 typed data message before signing. ```typescript theme={null} const result = await client.scan.scanEip712( '0xSignerAddress...', { msg: { from: '0xSignerAddress...', data: { types: { EIP712Domain: [ { name: 'name', type: 'string' }, { name: 'version', type: 'string' }, { name: 'chainId', type: 'uint256' }, ], Permit: [ { name: 'owner', type: 'address' }, { name: 'spender', type: 'address' }, { name: 'value', type: 'uint256' }, ], }, primaryType: 'Permit', domain: { name: 'MyToken', version: '1', chainId: 1, }, message: { owner: '0x...', spender: '0x...', value: '1000000000000000000', }, }, }, domain: 'app.example.com', } ); // The spender / recipient named in the typed data is scored as `counterpartyRisk`; // `domainRisk` is present when a `domain` was passed. Ethereum mainnet only (domain.chainId 1). const spender = result.simulation.counterpartyRisk; if ((spender?.high ?? 0) > 0 || result.simulation.domainRisk?.riskLevel === 'high') { console.warn('High risk spender:', spender?.issues?.flatMap((i) => i.tags.map((t) => t.name))); } ``` *** ## Batch You can analyze multiple addresses, contracts, or transactions in a single request using the batch methods. > [!NOTE] > > **Prerequisites:** You need an initialized `ThreatClient` and a `Chain` import. See [Installation](/sdk/installation) if you haven't set up the SDK yet. ### Batch Addresses You can analyze multiple addresses for risk in one call. ```typescript theme={null} const result = await client.batch.addresses({ addresses: [ '0x742d35Cc6634C0532925a3b844Bc454e4438f44e', '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045', ], chain: Chain.ETH, }); ``` ### Batch Contracts You can analyze multiple smart contracts for risk in one call. ```typescript theme={null} const result = await client.batch.contracts({ addresses: [ '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', '0xdAC17F958D2ee523a2206206994597C13D831ec7', ], chain: Chain.ETH, }); ``` ### Batch Transactions You can analyze multiple transactions for risk in one call. ```typescript theme={null} const result = await client.batch.transactions({ transactions: [ '0xabc123...', '0xdef456...', ], chain: Chain.ETH, }); ``` **Request parameters:** | Parameter | Type | Description | | - | - | - | | `addresses` / `transactions` | `string[]` | List of addresses or transaction hashes to analyze | | `chain` | `Chain` | Target blockchain | ### Advanced: Large Batches When you have a large number of items to analyze, you can split them into chunks and handle partial failures gracefully. ```typescript theme={null} import { ThreatClient, Chain } from '@webacy-xyz/sdk'; const client = new ThreatClient({ apiKey: process.env.WEBACY_API_KEY }); async function batchAnalyzeAddresses(addresses: string[], chain: Chain) { const CHUNK_SIZE = 50; const successes: Record[] = []; const failures: { addresses: string[]; error: string }[] = []; // Split into chunks for (let i = 0; i < addresses.length; i += CHUNK_SIZE) { const chunk = addresses.slice(i, i + CHUNK_SIZE); try { const result = await client.batch.addresses({ addresses: chunk, chain, }); successes.push(result); } catch (error) { failures.push({ addresses: chunk, error: error instanceof Error ? error.message : String(error), }); } } console.log(`Completed: ${successes.length} chunks succeeded, ${failures.length} failed`); return { successes, failures }; } ``` *** ## Vaults ### List Vaults Get a paginated list of ERC-4626 vaults with risk scores and ecosystem aggregates. ```typescript theme={null} const result = await client.vaults.list(); console.log(`Total vaults: ${result.pagination.total}`); console.log(`Total TVL: $${result.aggregates.total_tvl_usd}`); for (const vault of result.items) { console.log(`${vault.metadata.name} — score: ${vault.risk.score}, TVL: $${vault.metadata.tvl_usd}`); } ``` **Filtering and sorting:** ```typescript theme={null} // Filter by protocol, chain, and risk tier const risky = await client.vaults.list({ protocol: 'morpho', chain: Chain.ETH, tier: 'high', sort: 'score_desc', }); // Filter by underlying asset and attention needed const urgent = await client.vaults.list({ underlying: 'USDC', attentionNeeded: true, }); // Filter by risk flags const looping = await client.vaults.list({ riskFlags: 'vault-high-looping,vault-upgradeable', riskFlagsMode: 'any', }); ``` **Options:** | Option | Type | Description | | - | - | - | | `chain` | `Chain` | Filter by chain (`ETH`, `ARB`, `BASE`, `OPT`, `POL`, `BSC`) | | `tier` | `string` | Risk tier: `low`, `medium`, `high`, `critical`, `unknown` | | `protocol` | `string` | DeFi protocol: `morpho`, `aave`, `compound`, `euler`, `spark`, `fluid`, `beefy`, `yearn` | | `contractType` | `string` | Vault type: `erc4626_vault`, `strategy_vault`, `lending_wrapper`, `bridge_vault` | | `underlying` | `string` | Underlying asset symbol (e.g. `USDC`) | | `underlyingRisk` | `string` | Underlying risk tier: `battle_tested`, `medium_risk`, `high_risk`, `crypto`, `unknown` | | `minTvl` | `number` | Minimum TVL in USD | | `minScore` | `number` | Minimum risk score (0-100) | | `maxScore` | `number` | Maximum risk score (0-100) | | `attentionNeeded` | `boolean` | Only vaults needing attention | | `riskFlags` | `string` | Comma-separated risk tag keys (e.g. `vault-high-looping,vault-upgradeable`) | | `riskFlagsMode` | `string` | Combine flags with `any` (OR) or `all` (AND) | | `q` | `string` | Search by name, symbol, or address | | `sort` | `string` | Sort: `score_desc`, `score_asc`, `tvl_desc`, `tvl_asc`, `apy_desc`, `looping_desc`, `name_asc` | | `page` | `number` | Page number (1-indexed, default 1) | | `pageSize` | `number` | Items per page (default 50, max 500) | ### List Vaults with Cursor Pagination For efficient sequential pagination, use cursor-based pagination. ```typescript theme={null} // First page using offset pagination const first = await client.vaults.list({ pageSize: 100 }); // Subsequent pages using cursor const second = await client.vaults.listCursor({ cursor: 'opaque-cursor-from-previous-response', limit: 100, }); if (second.next_cursor) { const third = await client.vaults.listCursor({ cursor: second.next_cursor, limit: 100, }); } ``` ### Get Vault Detail Get detailed risk data for a specific vault, including looping markets, composition, and protocol-specific data. ```typescript theme={null} const detail = await client.vaults.get( '0x1234...abcd', { chain: Chain.ETH } ); console.log(`Score: ${detail.risk.score}`); console.log(`TVL: $${detail.metadata.tvl_usd}`); console.log(`Protocol: ${detail.metadata.protocol}`); console.log(`Listing verdict: ${detail.metadata.listing_verdict}`); // Check risk issues for (const issue of detail.risk.issues) { for (const tag of issue.tags) { console.log(`[${tag.severity}] ${tag.name}: ${tag.description}`); } } // Check Morpho-specific data if (detail.morpho) { console.log(`Morpho liquidity: $${detail.morpho.liquidity_usd}`); console.log(`Bad debt: $${detail.morpho.bad_debt_usd}`); } // Check vault composition for (const asset of detail.vault_composition) { console.log(`${asset.symbol}: ${asset.share_pct}%`); } // Check Webacy code analysis findings console.log(`Code risk: ${detail.webacy.code_risk_score}`); console.log(`Contract risk: ${detail.webacy.contract_risk_score}`); ``` **Options:** | Option | Type | Required | Description | | - | - | - | - | | `chain` | `Chain` | Yes | Blockchain network | ### Get Vault TVL History Get the daily total value locked (USD) time series for a vault. The response hoists the most recent passing point to a `latest` aggregate so you can render the current value without iterating the full series. ```typescript theme={null} // Default 30-day window const history = await client.vaults.getTvlHistory( '0x9d39a5de30e57443bff2a8307a4256c8797a3497', { chain: Chain.ETH } ); if (history.latest) { console.log(`Current TVL: $${history.latest.tvl_usd}`); console.log(`Quality: ${history.latest.quality_flag}`); // 'ok' | 'unknown' under the default filter } console.log(`${history.count} daily samples from ${history.from} to ${history.to}`); console.log(`Stale reason: ${history.stale_reason}`); // 'fresh' | 'pipeline_lag' | 'all_filtered' | 'no_samples_yet' console.log(`Dropped by quality filter: ${history.filtered_count}`); console.log(`Schema version: ${history.schema_version}`); for (const point of history.series) { console.log(`${point.ts}: $${point.tvl_usd} (${point.quality_flag})`); } // 7-day window for a tighter chart const week = await client.vaults.getTvlHistory( '0x9d39a5de30e57443bff2a8307a4256c8797a3497', { chain: Chain.ETH, range: '7d' } ); // Bypass the default quality filter to receive the full raw series, // including 'capped' / 'diverged' / 'spike' samples const raw = await client.vaults.getTvlHistory( '0x9d39a5de30e57443bff2a8307a4256c8797a3497', { chain: Chain.ETH, includeFlagged: true } ); for (const point of raw.series) { if (point.quality_flag !== 'ok' && point.quality_flag !== 'unknown') { console.log(`Flagged ${point.quality_flag} at ${point.ts}: $${point.tvl_usd}`); } } // raw.filtered_count is always 0 when includeFlagged is true ``` By default the chart endpoints drop samples flagged as `capped`, `diverged`, or `spike`, so a single bad pricing artifact never appears as a misleading peak or trough — `count` may be smaller than the requested window and `filtered_count` reports how many points were excluded. A visible chart kink that lines up with `filtered_count` is normal and does not indicate a missed daily update. `stale_reason` disambiguates the four post-filter states (`fresh`, `pipeline_lag`, `all_filtered`, `no_samples_yet`); `stale: boolean` is preserved as a back-compat alias (`true` iff `stale_reason !== 'fresh'`). See [Quality filtering](/vault-risk-intelligence#quality-filtering) for the full `quality_flag` table and when to set `includeFlagged: true`. Tracked vaults with no samples yet return `count: 0`, `latest: null`, and `stale_reason: 'no_samples_yet'`; vaults outside the verified-vaults catalog throw a `404`. **Options:** | Option | Type | Required | Description | | - | - | - | - | | `chain` | `Chain` | Yes | Blockchain network (`ETH`, `ARB`, `BASE`, `OPT`, `POL`, `BSC`) | | `range` | `'7d' \| '30d' \| '60d' \| '3m'` | No | Window length. Defaults to `30d`. | | `includeFlagged` | `boolean` | No | Bypass the default `quality_flag` allowlist and receive the full raw series, including `capped` / `diverged` / `spike` samples. Defaults to `false`. | | `timeout` | `number` | No | Request timeout in milliseconds | | `signal` | `AbortSignal` | No | Abort signal | ### Get Vault Share Price History Get the daily share price (USD) time series for a vault, with per-point trailing 7-day APY and a smoother trailing 30-day APY on the `latest` aggregate. ```typescript theme={null} const history = await client.vaults.getSharePriceHistory( '0x9d39a5de30e57443bff2a8307a4256c8797a3497', { chain: Chain.ETH } ); if (history.latest) { console.log(`Current share price: $${history.latest.share_price_usd}`); console.log(`Trailing 7d APY: ${history.latest.apy_trailing_7d}`); console.log(`Trailing 30d APY: ${history.latest.apy_trailing_30d}`); console.log(`Quality: ${history.latest.quality_flag}`); // 'ok' | 'unknown' under the default filter } console.log(`Stale reason: ${history.stale_reason}`); console.log(`Dropped by quality filter: ${history.filtered_count}`); console.log(`Schema version: ${history.schema_version}`); // Per-point apy_trailing_7d is null for points whose 7-day look-back // sample is missing (e.g. the leading points of a longer range) for (const point of history.series) { if (point.apy_trailing_7d === null) continue; console.log(`${point.ts}: $${point.share_price_usd} (7d APY ${point.apy_trailing_7d}, ${point.quality_flag})`); } // 60-day window for the chart const chart = await client.vaults.getSharePriceHistory( '0x9d39a5de30e57443bff2a8307a4256c8797a3497', { chain: Chain.ETH, range: '60d' } ); ``` Per-point `apy_trailing_7d` is computed as `(price[t] / price[t-7d])^(365/7) - 1` and is `null` when the 7-day look-back sample is missing or the absolute APY exceeds 100 (clamped to suppress single-day pricing artifacts). `latest.apy_trailing_30d` uses the same shape over a 30-day window and is only surfaced on the `latest` aggregate. The same quality-filtering rules as `getTvlHistory` apply: samples flagged as `capped` / `diverged` / `spike` are dropped from the default response, `filtered_count` reports how many were excluded (the 7-day look-back samples used to compute `apy_trailing_7d` are exempt and do not count toward `filtered_count`), and `stale_reason` disambiguates the post-filter staleness states. See [Quality filtering](/vault-risk-intelligence#quality-filtering) for the full table and pass `includeFlagged: true` to receive the raw series for research or marker overlays. The 404 behavior matches `getTvlHistory`. **Options:** | Option | Type | Required | Description | | - | - | - | - | | `chain` | `Chain` | Yes | Blockchain network (`ETH`, `ARB`, `BASE`, `OPT`, `POL`, `BSC`) | | `range` | `'7d' \| '30d' \| '60d' \| '3m'` | No | Window length. Defaults to `30d`. | | `includeFlagged` | `boolean` | No | Bypass the default `quality_flag` allowlist and receive the full raw series, including `capped` / `diverged` / `spike` samples. Defaults to `false`. | | `timeout` | `number` | No | Request timeout in milliseconds | | `signal` | `AbortSignal` | No | Abort signal | *** ## Depeg Monitor (RWA) ### List Pegged Tokens Get a paginated list of stablecoins and RWAs with depeg risk scores and ecosystem aggregates. ```typescript theme={null} const result = await client.rwa.list(); console.log(`Total tokens: ${result.pagination.total}`); console.log(`Stability index: ${result.aggregates.stability_index}`); for (const token of result.items) { console.log(`${token.symbol} — score: ${token.score}, tier: ${token.tier}, price: ${token.price}`); } ``` **Filtering and sorting:** ```typescript theme={null} // Filter by denomination and risk tier const usdCritical = await client.rwa.list({ denomination: 'USD', tier: 'critical', sort: 'score', order: 'desc', }); // Filter by token type tags const goldTokens = await client.rwa.list({ tags: ['gold', 'rwa'], minMcap: 1_000_000, }); // View collapsed/dead tokens (graveyard) const graveyard = await client.rwa.list({ collapsedOnly: true }); // Whole classified catalog, including tokens not selected for monitoring // (option available from @webacy-xyz/sdk-threat 3.2.0) const catalog = await client.rwa.list({ includeUnenrolled: true }); ``` **Options:** | Option | Type | Description | | - | - | - | | `chain` | `Chain` | Filter by chain (`ETH`, `ARB`, `POL`, `OPT`, `BASE`, `BSC`, `LINEA`) | | `tier` | `string` | Risk tier: `critical`, `warning`, `watch`, `ok` | | `tags` | `string[]` | Token types (OR logic): `standard`, `yield`, `rwa`, `gold`, `bridged`, `vault` | | `denomination` | `string` | Denomination code (e.g. `USD`, `EUR`, `XAU`) | | `minScore` | `number` | Minimum depeg risk score (0-100) | | `maxScore` | `number` | Maximum depeg risk score (0-100) | | `minMcap` | `number` | Minimum market cap in USD | | `liquidity` | `string` | Liquidity tier: `high`, `medium`, `low`, `very_low` | | `q` | `string` | Search by symbol, name, or address | | `sort` | `string` | Sort field: `score`, `symbol`, `chain`, `tier`, `abs_dev_clean`, `market_cap_usd`, `ts` | | `order` | `string` | Sort direction: `asc`, `desc` | | `showAll` | `boolean` | Also include collapsed/dead tokens (the rows `collapsedOnly` selects on their own) | | `collapsedOnly` | `boolean` | Only collapsed/dead tokens (graveyard) | | `includeUnenrolled` | `boolean` | Also list classified tokens not selected for monitoring (whole catalog; rows the monitor has not ingested carry `null` metrics). Default `false`: only tokens selected for monitoring. From `@webacy-xyz/sdk-threat` 3.2.0 | | `page` | `number` | Page number (1-indexed, default 1) | | `pageSize` | `number` | Items per page (default 50, max 500) | ### Get Token Detail Get detailed depeg risk for a specific pegged token, including historical time series and depeg events. ```typescript theme={null} // Default 24h history const detail24h = await client.rwa.get('0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48'); // Specify chain and 7 days of history const detail = await client.rwa.get( '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', { chain: Chain.ETH, hours: 168 } ); console.log(`Score: ${detail.snapshot.score}`); console.log(`Tier: ${detail.snapshot.tier}`); console.log(`Price: ${detail.snapshot.price}`); console.log(`Deviation: ${detail.snapshot.abs_dev_clean}`); // Check history console.log(`History points: ${detail.history.series.length}`); for (const point of detail.history.series) { console.log(`${point.ts}: score=${point.score}, price=${point.price}`); } // Check depeg events for (const event of detail.depegEvents) { console.log(`${event.detectedAt}: ${event.oldTier} → ${event.newTier} (score: ${event.riskScore})`); } ``` **Options:** | Option | Type | Required | Description | | - | - | - | - | | `chain` | `Chain` | No | Blockchain network (auto-resolved if token exists on one chain) | | `hours` | `number` | No | Hours of history (default 24, max 168 = 7 days) | *** ## Full Example ```typescript theme={null} import { ThreatClient, Chain, ValidationError, RateLimitError } from '@webacy-xyz/sdk'; const client = new ThreatClient({ apiKey: process.env.WEBACY_API_KEY, defaultChain: Chain.ETH, }); async function analyzeWallet(address: string) { try { // Complete sanctions screening before any risk-based decision const sanctions = await client.addresses.checkSanctioned(address); if (sanctions.is_sanctioned) { throw new Error('Sanctioned address - cannot proceed'); } if (sanctions.sanctions_status !== 'clean') { throw new Error('Sanctions screening unavailable - manual review required'); } // Get overall risk const risk = await client.addresses.analyze(address); if (risk.overallRisk > 70) { console.warn(`High risk wallet: ${risk.overallRisk}`); // Check for address poisoning const poisoning = await client.addresses.checkPoisoning(address); if (poisoning.is_poisoned) { console.warn('Address may be a poisoning attempt'); } } return { safe: risk.overallRisk < 50, risk }; } catch (error) { if (error instanceof ValidationError) { console.error('Invalid address:', error.message); } else if (error instanceof RateLimitError) { console.error(`Rate limited. Retry after ${error.retryAfter} seconds`); } throw error; } } ``` ## Next Steps > [card] [TradingClient](/sdk/trading-client) > > Holder analysis and sniper detection > [card] [Vault Risk V3 API](../api-reference/vault-risk-v3/v3-overview) > > Full vault risk API reference > [card] [Depeg Monitor API](../api-reference/depeg-monitor) > > Full depeg monitoring API reference > [card] [Error Handling](/sdk/error-handling) > > Handle errors gracefully > [card] [Chains](/sdk/chains) > > Supported blockchain networks > [card] [API Reference](/api-reference/introduction) > > Full API documentation # TradingClient Source: https://docs.webacy.com/sdk/trading-client Use TradingClient methods for token holder distribution, sniper and bundler detection, trending pools, OHLCV charts, and Solana trading-lite analysis. Use the `TradingClient` to access Webacy's trading analysis APIs. You can analyze token holder distribution, detect snipers and bundlers, and get quick trading insights. ## Initialization > [!NOTE] > > **Prerequisites:** > > * SDK installed (`npm install @webacy-xyz/sdk`) > * API key available (from your Webacy dashboard) ```typescript theme={null} import { TradingClient, Chain } from '@webacy-xyz/sdk'; const client = new TradingClient({ apiKey: process.env.WEBACY_API_KEY, defaultChain: Chain.SOL, // Optional: set default chain }); ``` ## Resources The TradingClient provides access to these resources: | Resource | Description | | - | - | | `holderAnalysis` | Token holder distribution, sniper/bundler detection | | `tradingLite` | Quick trading analysis (Solana only) | | `tokens` | Token pools, trending data, economics, and OHLCV charts | *** ## Holder Analysis ### Get Holder Analysis Get comprehensive analysis of token holder distribution. ```typescript theme={null} const result = await client.holderAnalysis.get( 'TokenMintAddress...', { chain: Chain.SOL } ); console.log(`Total holders: ${result.totalHolders}`); console.log(`Top 10 hold: ${result.top10Percentage}%`); console.log(`Snipers detected: ${result.sniperCount}`); ``` **Response includes:** * Top holders with wallet addresses and percentages * First buyers analysis * Sniper detection with confidence scores * Bundler detection * Developer wallet tracking * Concentration metrics > [!NOTE] > > Early holder analysis covers Solana tokens launched within the last 12 months and BSC tokens deployed within the last 3 months (data provider retention). Older tokens return `data_availability: "unsupported_token_age"`; previously analyzed tokens continue to return stored results. ### Response Example ```json theme={null} { "totalHolders": 1523, "top10Percentage": 45.2, "top10Holders": [ { "address": "ABC123...", "percentage": 12.5, "isSuspicious": false } ], "sniperCount": 8, "snipers": [ { "address": "DEF456...", "confidence": 0.95, "buyBlock": 123456, "percentage": 2.1 } ], "bundlerCount": 3, "devWallets": ["GHI789..."] } ``` **Options:** | Option | Type | Description | | - | - | - | | `chain` | `Chain` | Blockchain to analyze (optional if defaultChain set) | *** ## Trading Lite Quick, simplified token analysis optimized for trading decisions. > [!WARNING] > > Trading Lite is currently available for **Solana only**. ### Analyze Token ```typescript theme={null} const result = await client.tradingLite.analyze('PumpTokenAddress...'); console.log(`Risk score: ${result.riskScore}`); console.log(`Liquidity: $${result.liquidity}`); console.log(`Is honeypot: ${result.isHoneypot}`); ``` **Response includes:** * Quick risk assessment * Liquidity metrics * Honeypot detection * Basic holder stats *** ## Tokens ### Fetch Token Pools Retrieve liquidity pool information for a token. ```typescript theme={null} const result = await client.tokens.getPools( '0xTokenAddress...', { chain: Chain.ETH } ); for (const pool of result.pools) { console.log(`DEX: ${pool.dex}`); console.log(`Liquidity: $${pool.liquidity}`); console.log(`Pair: ${pool.pairToken}`); } ``` ### List Trending Tokens Retrieve currently trending tokens on a chain. ```typescript theme={null} const result = await client.tokens.getTrending({ chain: Chain.SOL }); for (const token of result.tokens) { console.log(`${token.symbol}: ${token.priceChange24h}%`); } ``` ### List Trending Pools Use this method to retrieve the liquidity pools that are currently trending based on trading volume and activity. ```typescript theme={null} const result = await client.tokens.getTrendingPools({ chain: Chain.ETH }); for (const pool of result.pools) { console.log(`${pool.name}`); console.log(`FDV: ${pool.fdv}`); console.log(`24h Volume: ${pool.volume.h24}`); } ``` ### Get Token Economics Retrieve token economics data including supply, market cap, and holder statistics. ```typescript theme={null} const result = await client.tokens.getToken( '0xTokenAddress...', { chain: Chain.ETH, metricsDate: '20-01-2024', // DD-MM-YYYY format } ); console.log(`Token: ${result.name} (${result.symbol})`); console.log(`Price: $${result.metrics.priceUsd}`); console.log(`Market Cap: $${result.metrics.marketCap}`); console.log(`24h Volume: $${result.metrics.volume24h}`); console.log(`Holders: ${result.metrics.holderCount}`); ``` **Supported chains:** ETH, BASE, BSC, POL, OPT, ARB, SOL **Options:** | Option | Type | Description | | - | - | - | | `chain` | `Chain` | Blockchain to query | | `metricsDate` | `string` | Date in DD-MM-YYYY format | ### Get Pool OHLCV Retrieve Open, High, Low, Close, Volume candlestick data for a liquidity pool. ```typescript theme={null} const result = await client.tokens.getPoolOhlcv( '0xPoolAddress...', { chain: Chain.ETH, timeFrame: 'hour', // 'minute', 'hour', or 'day' limit: 24, // Number of data points } ); console.log(`Pool: ${result.poolName}`); for (const candle of result.data) { const time = new Date(candle.timestamp * 1000).toISOString(); console.log(`${time} - O: ${candle.open} H: ${candle.high} L: ${candle.low} C: ${candle.close}`); console.log(` Volume: ${candle.volume}`); } ``` **Options:** | Option | Type | Description | | - | - | - | | `chain` | `Chain` | Blockchain to query | | `timeFrame` | `string` | `minute`, `hour`, or `day` | | `beforeTimestamp` | `number` | Unix timestamp in **seconds** to fetch data before (use `Math.floor(Date.now() / 1000)` to convert from milliseconds) | | `limit` | `number` | Number of data points to return | *** ## Full Example ```typescript theme={null} import { TradingClient, Chain, ValidationError } from '@webacy-xyz/sdk'; const client = new TradingClient({ apiKey: process.env.WEBACY_API_KEY, defaultChain: Chain.SOL, }); async function analyzeToken(tokenAddress: string) { try { // Get holder analysis const holders = await client.holderAnalysis.get(tokenAddress); // Check for red flags const redFlags: string[] = []; // High concentration if (holders.top10Percentage > 80) { redFlags.push(`High concentration: Top 10 hold ${holders.top10Percentage}%`); } // Snipers if (holders.sniperCount > 5) { redFlags.push(`${holders.sniperCount} snipers detected`); } // Bundlers if (holders.bundlerCount > 0) { redFlags.push(`${holders.bundlerCount} bundlers detected`); } // Quick analysis (Solana) const quickAnalysis = await client.tradingLite.analyze(tokenAddress); if (quickAnalysis.isHoneypot) { redFlags.push('Honeypot detected!'); } return { safe: redFlags.length === 0, redFlags, holders, quickAnalysis, }; } catch (error) { if (error instanceof ValidationError) { console.error('Invalid token address:', error.message); } throw error; } } // Usage const analysis = await analyzeToken('PumpTokenMint...'); if (!analysis.safe) { console.warn('Red flags detected:'); analysis.redFlags.forEach(flag => console.warn(` - ${flag}`)); } ``` ## Use Cases > [card] Token Launch Analysis > > Detect snipers and bundlers on new token launches > [card] Rug Pull Detection > > Identify concentrated holdings and dev wallets > [card] Trading Signals > > Quick risk assessment for trading decisions > [card] Due Diligence > > Comprehensive holder analysis before investing ## Next Steps > [card] [ThreatClient](/sdk/threat-client) > > Address and contract security analysis > [card] [Error Handling](/sdk/error-handling) > > Handle errors gracefully # Webacy SDK Use Cases Source: https://docs.webacy.com/sdk/use-cases See how wallets, DeFi protocols, exchanges, and compliance teams use the Webacy SDK for pre-transaction scanning, token screening, and rug pull detection. Use the Webacy SDK to add blockchain security across diverse applications. Here's how you can leverage these capabilities for your use case. ## Wallet Apps & Browser Extensions **Examples**: MetaMask-like wallets, hardware wallet companions, mobile wallets > [card] [Pre-Transaction Scanning](/sdk/threat-client#analyze-address-risk) > > `addresses.analyze()` - Check addresses before sending funds > [card] [Fast Risk Assessment](/sdk/threat-client#get-quick-profile) > > `addresses.getQuickProfile()` - Sub-500ms risk scores for real-time UX > [card] [Copy-Paste Protection](/sdk/threat-client#check-address-poisoning) > > `addresses.checkPoisoning()` - Detect address poisoning attacks > [card] [Transaction Simulation](/sdk/threat-client#scan-transaction) > > `scan.scanTransaction()` - Simulate transactions before signing **Additional Features**: * `scan.scanEip712()` - Verify permit signatures * `url.check()` - Block phishing links * `wallets.getApprovals()` - Show risky token approvals > [accordion] Implementation Example > > ```typescript theme={null} > import { ThreatClient, Chain } from '@webacy-xyz/sdk'; > > const client = new ThreatClient({ > apiKey: process.env.WEBACY_API_KEY, > defaultChain: Chain.ETH, > }); > > // Before sending funds, check the recipient > async function checkRecipient(address: string) { > // Quick risk check (< 500ms) > const profile = await client.addresses.getQuickProfile(address); > > if (profile.riskScore > 70) { > // Deep analysis for high-risk addresses > const analysis = await client.addresses.analyze(address); > return { safe: false, issues: analysis.issues }; > } > > // Check for address poisoning > const poisoning = await client.addresses.checkPoisoning(address); > if (poisoning.is_poisoned) { > return { safe: false, issues: ['Possible address poisoning attack'] }; > } > > return { safe: true }; > } > ``` > [!NOTE] > > **Value**: Protect your users before they sign dangerous transactions *** ## DeFi Protocols & DEXes **Examples**: Uniswap-like DEXes, lending protocols, yield aggregators > [card] [Token Screening](/sdk/threat-client#analyze-contract) > > `contracts.analyze()` - Screen new token listings > [card] [Tax Detection](/sdk/threat-client#get-contract-tax) > > `contracts.getTax()` - Show buy/sell taxes > [card] [Compliance](/sdk/threat-client#check-sanctions) > > `addresses.checkSanctioned()` - OFAC sanctions screening > [card] [Rug Pull Detection](/sdk/trading-client#get-holder-analysis) > > `holderAnalysis.get()` - Detect concentrated holdings **Additional Features**: * `tokens.getPools()` - Pool risk analysis > [accordion] Implementation Example > > ```typescript theme={null} > import { ThreatClient, TradingClient, Chain } from '@webacy-xyz/sdk'; > > const threat = new ThreatClient({ apiKey: process.env.WEBACY_API_KEY }); > const trading = new TradingClient({ apiKey: process.env.WEBACY_API_KEY }); > > // Screen a token before listing > async function screenTokenForListing(tokenAddress: string, chain: Chain) { > const [contract, holders, tax] = await Promise.all([ > threat.contracts.analyze(tokenAddress, { chain }), > trading.holderAnalysis.get(tokenAddress, { chain }), > threat.contracts.getTax(tokenAddress, { chain }), > ]); > > const redFlags: string[] = []; > > if (contract.overallRisk > 70) redFlags.push('High contract risk'); > if (holders.top10Percentage > 90) redFlags.push('Concentrated holdings'); > if (tax.buyTax > 10 || tax.sellTax > 10) redFlags.push('High tax token'); > > return { approved: redFlags.length === 0, redFlags }; > } > ``` > [!NOTE] > > **Value**: Screen tokens and protect your users from scams *** ## Trading Platforms & Bots **Examples**: Copy trading apps, trading bots, alpha scanners > [card] [Fast Token Risk](/sdk/trading-client#analyze-token) > > `tradingLite.analyze()` - Rapid token analysis (Solana) > [card] [Sniper Detection](/sdk/trading-client#get-holder-analysis) > > `holderAnalysis.get()` - Detect snipers and bundlers > [card] [Trending Tokens](/sdk/trading-client#list-trending-tokens) > > `tokens.getTrending()` - Find trending tokens with risk scores > [card] [Hidden Fee Detection](/sdk/threat-client#get-contract-tax) > > `contracts.getTax()` - Uncover hidden trading fees **Additional Features**: * `tokens.getPoolOhlcv()` - Technical analysis data > [accordion] Implementation Example > > ```typescript theme={null} > import { TradingClient, ThreatClient, Chain } from '@webacy-xyz/sdk'; > > const trading = new TradingClient({ > apiKey: process.env.WEBACY_API_KEY, > defaultChain: Chain.SOL, > }); > const threat = new ThreatClient({ apiKey: process.env.WEBACY_API_KEY }); > > // Quick token analysis for trading bot > async function analyzeForTrading(tokenAddress: string) { > // Fast analysis (< 1s) > const quick = await trading.tradingLite.analyze(tokenAddress); > > if (quick.isHoneypot) return { tradeable: false, reason: 'Honeypot' }; > if (quick.riskScore > 80) return { tradeable: false, reason: 'High risk' }; > > // Check for hidden fees > const tax = await threat.contracts.getTax(tokenAddress, { chain: Chain.SOL }); > if (tax.buyTax > 5 || tax.sellTax > 5) { > return { tradeable: false, reason: `High tax: ${tax.buyTax}/${tax.sellTax}` }; > } > > return { tradeable: true, riskScore: quick.riskScore }; > } > ``` > [!NOTE] > > **Value**: Identify safe trading opportunities, avoid scams *** ## Exchanges (CEX & DEX) **Examples**: Centralized exchanges, hybrid exchanges > [card] [Sanctions Screening](/sdk/threat-client#check-sanctions) > > `addresses.checkSanctioned()` - OFAC/sanctions compliance > [card] [Deposit Screening](/sdk/threat-client#analyze-address-risk) > > `addresses.analyze()` - Screen incoming deposits > [card] [Fund Tracing](/sdk/threat-client#trace-fund-flows) > > `accountTrace.trace()` - Multi-hop fund flow analysis > [card] [Transaction Monitoring](/sdk/threat-client#analyze-transaction) > > `transactions.analyze()` - Real-time transaction screening **Additional Features**: * `contracts.analyze()` - Token listing due diligence > [accordion] Implementation Example > > ```typescript theme={null} > import { ThreatClient, Chain } from '@webacy-xyz/sdk'; > > const client = new ThreatClient({ > apiKey: process.env.WEBACY_API_KEY, > defaultChain: Chain.ETH, > }); > > // Screen deposit address for compliance > async function screenDeposit(address: string, chain: Chain) { > // Sanctions check (required for compliance) > const sanctions = await client.addresses.checkSanctioned(address, { chain }); > if (sanctions.is_sanctioned) { > return { allowed: false, reason: 'Sanctioned address', details: sanctions }; > } > if (sanctions.sanctions_status !== 'clean') { > return { allowed: false, reason: 'Sanctions screening unavailable', details: sanctions }; > } > > // Risk analysis > const risk = await client.addresses.analyze(address, { chain }); > if (risk.overallRisk > 80) { > // Trace fund sources for high-risk > const trace = await client.accountTrace.trace(address, { chain }); > return { allowed: false, reason: 'High risk', risk, trace }; > } > > return { allowed: true, riskScore: risk.overallRisk }; > } > ``` > [!NOTE] > > **Value**: Meet regulatory requirements and protect your platform *** ## Portfolio Trackers & Analytics **Examples**: Zerion, DeBank-like apps, wallet dashboards > [card] [Approval Management](/sdk/threat-client#get-approvals) > > `wallets.getApprovals()` - Show and manage token approvals > [card] [Transaction History](/sdk/threat-client#get-transactions) > > `wallets.getTransactions()` - Risk-scored transaction history > [card] [Wallet Health](/sdk/threat-client#get-quick-profile) > > `addresses.getQuickProfile()` - Wallet security scores > [card] [Token Data](/sdk/trading-client#get-token-economics) > > `tokens.getToken()` - Token economics and safety data > [accordion] Implementation Example > > ```typescript theme={null} > import { ThreatClient, TradingClient, Chain } from '@webacy-xyz/sdk'; > > const threat = new ThreatClient({ apiKey: process.env.WEBACY_API_KEY }); > const trading = new TradingClient({ apiKey: process.env.WEBACY_API_KEY }); > > // Build wallet health dashboard > async function getWalletHealth(address: string, chain: Chain) { > const [profile, approvals, transactions] = await Promise.all([ > threat.addresses.getQuickProfile(address, { chain, withApprovals: true }), > threat.wallets.getApprovals(address, { chain }), > threat.wallets.getTransactions(address, { chain }), > ]); > > // Count risky approvals (unlimited or to unknown contracts) > const riskyApprovals = approvals.approvals.filter( > a => a.amount === 'unlimited' || a.spenderRisk > 50 > ); > > return { > riskScore: profile.riskScore, > riskLevel: profile.riskLevel, > accountAge: profile.accountAge, > riskyApprovals: riskyApprovals.length, > recentIssues: transactions.issues, > }; > } > ``` > [!NOTE] > > **Value**: Give users insights into their wallet security *** ## Compliance & Security Teams **Examples**: Crypto compliance firms, AML providers, forensic investigators > [card] [Sanctions Screening](/sdk/threat-client#check-sanctions) > > `addresses.checkSanctioned()` - Real-time sanctions checks > [card] [Fund Tracing](/sdk/threat-client#trace-fund-flows) > > `accountTrace.trace()` - Multi-hop transaction tracing > [card] [History Analysis](/sdk/threat-client#get-transactions) > > `wallets.getTransactions()` - Complete transaction history > [card] [Contract Audits](/sdk/threat-client#get-code-analysis) > > `contracts.getCodeAnalysis()` - Smart contract security analysis > [accordion] Implementation Example > > ```typescript theme={null} > import { ThreatClient, Chain } from '@webacy-xyz/sdk'; > > const client = new ThreatClient({ > apiKey: process.env.WEBACY_API_KEY, > defaultChain: Chain.ETH, > }); > > // AML screening workflow > async function amlScreening(address: string, chain: Chain) { > // Step 1: Sanctions check > const sanctions = await client.addresses.checkSanctioned(address, { chain }); > if (sanctions.is_sanctioned) { > return { status: 'blocked', reason: 'sanctioned', data: sanctions }; > } > if (sanctions.sanctions_status !== 'clean') { > return { status: 'review', reason: 'screening_unavailable', data: sanctions }; > } > > // Step 2: Risk analysis > const risk = await client.addresses.analyze(address, { chain }); > > // Step 3: Fund flow tracing for medium+ risk > if (risk.overallRisk >= 50) { > const trace = await client.accountTrace.trace(address, { chain }); > const transactions = await client.wallets.getTransactions(address, { chain }); > > return { > status: risk.overallRisk >= 75 ? 'review' : 'monitor', > risk, > trace, > transactions, > }; > } > > return { status: 'approved', risk }; > } > ``` > [!NOTE] > > **Value**: Enterprise-grade blockchain compliance and forensics *** ## Token Launch Platforms **Examples**: Pump.fun integrations, launchpads, fair launch platforms > [card] [Holder Distribution](/sdk/trading-client#get-holder-analysis) > > `holderAnalysis.get()` - Monitor holder concentration > [card] [Launch Screening](/sdk/trading-client#analyze-token) > > `tradingLite.analyze()` - Screen new token launches > [card] [Contract Safety](/sdk/threat-client#analyze-contract) > > `contracts.analyze()` - Verify contract security > [accordion] Implementation Example > > ```typescript theme={null} > import { ThreatClient, TradingClient, Chain } from '@webacy-xyz/sdk'; > > const threat = new ThreatClient({ apiKey: process.env.WEBACY_API_KEY }); > const trading = new TradingClient({ > apiKey: process.env.WEBACY_API_KEY, > defaultChain: Chain.SOL, > }); > > // Screen new token launch > async function screenLaunch(tokenAddress: string) { > const [quick, holders, contract] = await Promise.all([ > trading.tradingLite.analyze(tokenAddress), > trading.holderAnalysis.get(tokenAddress), > threat.contracts.analyze(tokenAddress, { chain: Chain.SOL }), > ]); > > const warnings: string[] = []; > > if (quick.isHoneypot) warnings.push('Honeypot detected'); > if (holders.sniperCount > 5) warnings.push(`${holders.sniperCount} snipers`); > if (holders.bundlerCount > 0) warnings.push(`${holders.bundlerCount} bundlers`); > if (holders.top10Percentage > 80) warnings.push('High concentration'); > if (contract.overallRisk > 70) warnings.push('Contract risk'); > > return { > safe: warnings.length === 0, > warnings, > metrics: { holders: holders.totalHolders, liquidity: quick.liquidity }, > }; > } > ``` > [!NOTE] > > **Value**: Verify launches are safe, detect snipers and bundlers *** ## Why Webacy SDK? > [card] Multi-Chain > > 12 chains: ETH, SOL, BASE, ARB, POL, OPT, BSC, SUI, STELLAR, BTC, SEI, HEDERA > [card] Type-Safe > > Full TypeScript support with IntelliSense > [card] Real-Time > > Quick profile optimized for sub-500ms responses > [card] Comprehensive > > Addresses, contracts, URLs, transactions > [card] Production-Ready > > Built-in retry logic and error handling > [card] Pre-Transaction > > Stop losses before they happen ## Get Started > [card] [Installation](/sdk/installation) > > Install the SDK in your project > [card] [ThreatClient](/sdk/threat-client) > > Start with address and contract analysis > [card] [TradingClient](/sdk/trading-client) > > Token and holder analysis > [card] [API Reference](/api-reference/introduction) > > Full endpoint documentation # Set up a webhook alert for a stablecoin depeg Source: https://docs.webacy.com/set-up-a-webhook-depeg Set up a stablecoin depeg webhook alert with Webacy: subscribe to DEPEG_TIER_CHANGE events, verify HMAC signatures, and trigger a test delivery. A hands-on walkthrough to receive real-time depeg alerts. By the end you'll have a running endpoint that receives signed `DEPEG_TIER_CHANGE` events and verifies them. For the full API and event reference, see [Webhooks](/essentials/webhooks). ## What you'll build This is the foundation for any real-time depeg workflow — treasury alerting, automated de-risking, or a live compliance dashboard. You'll build a small HTTP server that: 1. Receives webhook POSTs from Webacy, 2. Verifies the `X-Webhook-Signature` (so you only trust real events), 3. Reacts to the tier change. **1. Get your API key** You use your standard Webacy API key (`x-api-key`). If you don't have one, contact [info@webacy.com](mailto:info@webacy.com). No webhook-specific setup is needed. **2. Build a receiver that verifies signatures** Each delivery is signed with HMAC-SHA256 over the JSON-serialized `event` object, keyed by your subscription's `secret_key`, and sent in the `X-Webhook-Signature` header. Always verify before trusting a payload. ```javascript Node.js (Express) theme={null} const express = require("express"); const crypto = require("crypto"); const app = express(); const SECRET = process.env.WEBACY_WEBHOOK_SECRET; // the secret_key from step 3 function isValid(body) { const expected = crypto .createHmac("sha256", SECRET) .update(JSON.stringify(body.event)) // compact JSON of the event object .digest("hex"); return crypto.timingSafeEqual( Buffer.from(expected), Buffer.from(body.signature), ); } app.post("/webhooks/webacy", express.json(), (req, res) => { if (!isValid(req.body)) return res.status(401).end(); const { data } = req.body.event; console.log( `${data.symbol} on ${data.chain}: ${data.old_tier} -> ${data.new_tier} (${data.deviation_pct}% off peg)`, ); // ...trigger your alerting / hedging logic here... res.status(200).end(); // any 2xx acknowledges; non-2xx triggers retries }); app.listen(3000); ``` ```python Python (Flask) theme={null} import os, hmac, hashlib, json from flask import Flask, request app = Flask(__name__) SECRET = os.environ["WEBACY_WEBHOOK_SECRET"] # the secret_key from step 3 def is_valid(body: dict) -> bool: expected = hmac.new( SECRET.encode(), json.dumps(body["event"], separators=(",", ":"), ensure_ascii=False).encode(), hashlib.sha256, ).hexdigest() return hmac.compare_digest(expected, body["signature"]) @app.post("/webhooks/webacy") def webacy_webhook(): body = request.get_json() if not is_valid(body): return "", 401 d = body["event"]["data"] print(f"{d['symbol']} on {d['chain']}: {d['old_tier']} -> {d['new_tier']} ({d['deviation_pct']}% off peg)") # ...trigger your alerting / hedging logic here... return "", 200 # any 2xx acknowledges; non-2xx triggers retries ``` Deploy this to a public **HTTPS** URL (private/loopback hosts are rejected). For local testing, a tunnel like ngrok or a [webhook.site](https://webhook.site) bin works. **3. Create a subscription** Point a subscription at your URL and pick filters. Save the `secret_key` from the response — it's only returned once. ```bash theme={null} curl -X POST https://api.webacy.com/webhooks/subscriptions \ -H "x-api-key: $WEBACY_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "webhookUrl": "https://your-app.com/webhooks/webacy", "eventTypes": ["DEPEG_TIER_CHANGE"], "filters": { "tiers": ["warning", "critical"], "minDeviationPct": 1.0 } }' ``` Response (note `id` and `secret_key`): ```json theme={null} { "id": "42", "webhook_url": "https://your-app.com/webhooks/webacy", "event_types": ["DEPEG_TIER_CHANGE"], "filters": { "tiers": ["warning", "critical"], "minDeviationPct": 1.0 }, "secret_key": "store-this-now", "is_active": true, "created_at": "2026-06-22T18:00:00.000Z" } ``` Set `WEBACY_WEBHOOK_SECRET` in your receiver to that `secret_key`. **4. Send a test event** Trigger a synthetic delivery so you don't have to wait for a real tier change: ```bash theme={null} curl -X POST https://api.webacy.com/webhooks/subscriptions/42/test \ -H "x-api-key: $WEBACY_API_KEY" ``` Your endpoint should receive a `DEPEG_TIER_CHANGE` POST and log it. If the signature check passes, you're done — that's the same path real events take. **5. Go live** * **Filters**: tune `tiers`, `chains`, `tokens`, `minDeviationPct` to only get the alerts you care about. * **Retries**: failed deliveries retry up to 5 times with backoff. Inspect history with `GET /webhooks/deliveries` and re-send with `POST /webhooks/deliveries/{id}/retry`. * **Secret rotation**: rotate with `POST /webhooks/subscriptions/{id}/rotate-secret`. The previous secret stays valid for 24h (sent as `X-Webhook-Previous-Signature`) so you can roll without downtime. ## The event you receive ```json theme={null} { "event": { "event_type": "DEPEG_TIER_CHANGE", "event_id": "1a0d2b92-7142-44de-8a7c-7faa57c96df3", "timestamp": "2026-06-22T18:01:30.702Z", "data": { "token_address": "0xdac17f958d2ee523a2206206994597c13d831ec7", "chain": "eth", "symbol": "USDT", "old_tier": "ok", "new_tier": "warning", "risk_score": 42.5, "deviation_pct": 1.8, "price_usd": "0.982", "peg_usd": "1.000" } }, "signature": "", "delivered_at": "2026-06-22T18:01:30.702Z" } ``` Headers: `X-Event-Type: DEPEG_TIER_CHANGE`, `X-Webhook-Signature`, `X-Event-ID` (use for idempotency). > [!TIP] > > Stuck on signatures? The string you sign is the **compact JSON of the `event` object only** (not the full body, no extra whitespace). The Node and Python snippets above do exactly that. # Severity Levels Source: https://docs.webacy.com/severity-levels Reference for Webacy severity levels that translate numerical risk scores into low, medium, high, and critical actions for policies, alerts, and workflows. While Webacy calculates precise numerical risk scores, many products and workflows require a simpler way to interpret those scores. Severity levels group similar scores into standardized ranges that make it easier to trigger alerts, enforce policies, and prioritize investigations. Depending on the entity type and product, severity levels may also incorporate additional contextual information beyond the overall score, such as real-time events, confidence, or critical risk factors. ## Severity Levels Are Contextual While every Webacy analysis begins with a standardized risk score, the way that score is presented may vary depending on the entity being evaluated and the product consuming the intelligence. Different blockchain assets exhibit different types of risk, and different workflows require different ways of communicating that risk. As a result, Webacy may expose specialized severity frameworks that are tailored to a particular domain while remaining grounded in the same underlying risk intelligence. ## Standard Severity Levels Webacy generally categorizes risk into four severity levels. > [!NOTE] > > **Note:** *Some entity types may define additional severity bands or specialized classifications depending on the scoring methodology being used.* ![Screenshot 2026 08 06 At 3 52 38 PM](https://mintcdn.com/webacy/WOwccSluwNfjURJB/images/Screenshot-2026-08-06-at-3.52.38-PM.png?fit=max\&auto=format\&n=WOwccSluwNfjURJB\&q=85\&s=aba0b9e362d86c18394ef36e7836fe64) | Severity | Score Range | General Interpretation | | - | - | - | | 🟢 Low | 0-24 | Minimal observed risk. No significant indicators requiring action. | | 🟡 Medium | 25-49 | Elevated risk signals are present and may warrant additional review or monitoring. | | 🟠 High | 50-74 | Significant risk indicators have been identified. Increased scrutiny or automated controls may be appropriate. | | 🔴 Critical | 75-100 | Severe risk requiring immediate attention or automated response. | ## Per-risk-factor severity The 0–100 severity bands above apply to rolled-up risk scores such as `overallRisk` and `score`. Individual risk factors returned inside `issues[].tags[]` use a separate scale on the `severity` field. Tag severity is a per-signal weight, not a rolled-up score. Higher values indicate more severe tags. For example, `DPRK`, `HACK`, and `Phishing` are emitted with higher severity values, while lower-signal tags such as `associated_drainer` are emitted with `severity: 1`. This severity scale is not linear, and is not capped at 10. | Tag severity | Interpretation | | - | - | | severity \< 3 | Low-signal or contextual indicator | | 3 ≤ severity \< 7 | Moderate indicator that contributes to the overall score | | 7 ≤ severity | Strong indicator, typically driving elevated `overallRisk` or Critical indicator (for example, sanctions, DPRK, confirmed hack, phishing) | Use tag severity to rank findings within a single response. Use `overallRisk` and the 0–100 severity bands above for cross-address comparisons and policy thresholds. ## Asset Monitoring Severity Used for products such as stablecoin monitoring, where the emphasis is on operational response. ![Screenshot 2026 08 06 At 4 04 07 PM](https://mintcdn.com/webacy/WOwccSluwNfjURJB/images/Screenshot-2026-08-06-at-4.04.07-PM.png?fit=max\&auto=format\&n=WOwccSluwNfjURJB\&q=85\&s=605897c58b3781bbbb20abcdc8e9d7fd) | Tier | Score Range | Typical Meaning | | - | - | - | | OK | \< 25 | Operating normally | | Watch | 25-49 | Monitor closely | | Warning | 50-69 | Elevated risk requiring attention | | Critical | 70+ | Immediate action recommended | ## Why Severity Exists Severity levels provide a common language for risk across the Webacy platform. Rather than requiring every application to interpret raw numerical scores differently, developers can build consistent user experiences and automated workflows using standardized severity levels. Common uses include: * Alert prioritization * Policy enforcement * Transaction approval workflows * Asset listing decisions * Treasury monitoring * Case management * AI agent decision making ## Severity is Contextual Severity should be interpreted within the context of the entity being analyzed. A **High** severity wallet, transaction, stablecoin, or vault may represent very different underlying risks, even if their numerical scores fall within the same range. Severity communicates the urgency of the situation, not the specific cause of the risk. To understand *why* an entity received its severity, developers should examine the underlying risk factors, detection engines, and supporting intelligence included in the analysis. ## Built for Automation Severity levels are designed to make automated decision making straightforward. Many integrations use severity as the primary input for configurable policies, such as: * Block transactions above **High** * Generate alerts for **Critical** events * Escalate **High** findings for manual review * Notify AI agents when severity changes * Pause treasury operations when monitored assets become **Critical** Because severity levels are standardized across the platform, the same policy framework can be applied consistently to many different blockchain entities. ## What's Next > [card] [Data Quality and Confidence](/data-quality-and-confidence) > > Understand how Webacy measures confidence, validates data quality, and builds explainable, high-precision risk intelligence. # Smart Contract Analysis Source: https://docs.webacy.com/smart-contract-analysis Analyze smart contracts with Webacy: source verification, bytecode inspection, proxy and admin key detection, honeypot checks, and exploit pattern matching. The Contract Analysis engine evaluates smart contracts to identify security, operational, governance, and financial risks before they impact users or applications. By analyzing contract architecture, permissions, bytecode, privileged functionality, dependencies, and hundreds of proprietary risk factors, Webacy provides explainable intelligence that extends beyond traditional smart contract audits. Whether evaluating a newly deployed token contract, a DeFi protocol, or the underlying contracts supporting a stablecoin or vault, Contract Analysis helps organizations understand how a contract is designed to behave—and where that behavior may introduce risk. ## What It Analyzes Contract Analysis evaluates a wide range of characteristics, including: * Contract architecture * Bytecode analysis * Privileged functionality * Ownership and administrative permissions * Upgradeability * Proxy contracts * Freeze and blacklist capabilities * Mint and burn permissions * External dependencies * Audit history * Known exploit patterns Every analysis contributes to the overall Webacy Risk Framework, producing explainable risk intelligence that can be consumed by APIs, dashboards, alerts, and automated workflows. ## Common Use Cases * Token due diligence * Smart contract screening * Protocol security reviews * Exchange listing reviews * Stablecoin and vault analysis * Treasury risk management * AI-powered contract evaluation ## Beyond Security While security vulnerabilities are an important component of contract analysis, they represent only one dimension of risk. Webacy also evaluates how a contract is governed, the permissions it grants, how it can change over time, and the operational or financial implications of its design. This broader approach helps developers and institutions understand not just whether a contract is secure, but whether it behaves in a way that aligns with their own risk policies and operational requirements. ## What's Next > [card] [Trading Intelligence](/trading-intelligence) > > Evaluate market behavior through holder, liquidity, distribution, and trading analysis to identify structural risks before they impact price. # Stablecoin Methodology Source: https://docs.webacy.com/stablecoin Webacy’s stablecoin methodology assesses the probability of financial loss arising from a stablecoin’s backing, liquidity, market exposure, operations, concentration, and governance. A stable market price alone does not establish safety. A stablecoin may maintain its peg while weaknesses develop in its reserves, redemption arrangements, technical infrastructure, or counterparties. Our framework evaluates these sources of risk together to understand the conditions that could lead to loss. ## Assessment framework The rating framework comprises six risk types. Each contains risk categories, which are assessed using underlying rating factors: specific evidence, conditions, and indicators relevant to that category. ![Stablecoin Risk Framework](https://mintcdn.com/webacy/wYq0X5OYKq2WX0JJ/images/stablecoin-risk-framework.png?fit=max\&auto=format\&n=wYq0X5OYKq2WX0JJ\&q=85\&s=36d6b70a71066a3a0ddadee5e77cf0d6) ### Credit risk Credit risk assesses whether the assets and counterparties supporting a stablecoin can meet its financial obligations. * **Backing and coverage:** The quality and sufficiency of assets supporting outstanding stablecoin obligations. * **Credit and counterparties:** Exposure to the failure or deterioration of issuers, custodians, and other financial counterparties. * **Events and incidents:** Credit-related events and their implications for the stablecoin’s financial resilience. * **Collateral and liquidation:** The ability of collateral arrangements and liquidation mechanisms to protect backing when conditions deteriorate. ### Liquidity risk Liquidity risk assesses whether holders can redeem or exit their exposure without material loss. * **Redemption and exit:** The availability and reliability of redemption routes and market liquidity, including how they may perform under stress. ### Market risk Market risk assesses how changes in prices and market conditions could affect the stablecoin or its backing. * **Valuation and oracles:** The reliability of valuations and price information used by the stablecoin’s mechanisms. * **Events and incidents:** Market disruptions and their implications for stability. * **Bridges and representations:** Market risks associated with bridged or wrapped versions, including differences in pricing and convertibility. ### Concentration risk Concentration risk assesses dependence on a limited set of exposures or participants. * **Concentration:** The extent to which backing, holdings, liquidity, or dependencies are concentrated, and how that concentration could amplify a disruption. ### Operational risk Operational risk assesses whether the stablecoin’s infrastructure and processes can function reliably. * **Code and chain:** Risks arising from smart contracts and the blockchain infrastructure supporting the stablecoin. * **Bridges and representations:** The operational reliability of mechanisms used to transfer or represent the stablecoin across chains. * **Events and incidents:** Operational failures, security incidents, and their implications for continued operation. * **Backing and coverage:** The reliability of processes used to maintain, account for, and report backing and coverage. ### Governance risk Governance risk assesses how authority, decision-making, and holder protections affect exposure to loss. * **Admin controls and governance:** Who can change the system, exercise privileged powers, or make decisions that affect holders. * **Events and incidents:** Governance-related events and their implications for accountability and control. * **Claim and loss allocation:** The nature of holders’ claims and how losses are allocated if the stablecoin or its supporting arrangements fail. ## How the assessment evolves Webacy combines on-chain and off-chain evidence. On-chain risk is assessed in real time. Off-chain risk is assessed as close to real time as available information allows, depending on the publication and verification of disclosures, reports, and other evidence. Underlying rating factors inform category assessments, which contribute to the six risk types and the overall rating. Categories that appear under multiple risk types are examined from the perspective of each type. For example, backing and coverage has both a financial dimension and an operational dimension. **Supporting records are informational.** They provide context and evidence for the assessment and are separate from the six risk types that contribute to the rating. > [!TIP] > > **Access to underlying risk factors**\ > \ > This page publishes the risk types and categories within Webacy’s stablecoin framework. The detailed rating factors underlying each category are shared with partners working directly with Webacy and are available upon request through a discussion with our team. > > Contact Webacy to learn more about the factors relevant to your stablecoin or assessment needs. # Stellar Support Source: https://docs.webacy.com/stellar Stellar blockchain risk analysis with Webacy API including address scans, token risk checks, sanction screening, and supported endpoints overview. ## Overview The Webacy API provides risk assessment for the Stellar blockchain ecosystem. Analyze Stellar addresses and tokens for security threats, malicious activity, and risk factors. > [!NOTE] > > Stellar support is currently in beta. Contact us at [info@webacy.com](mailto:info@webacy.com) for feedback or questions. ## Supported Endpoints ### Address Risk Analysis Analyze any Stellar address for security threats and risk factors. ```bash theme={null} GET /addresses/{address}?chain=stellar ``` ### Holder Analysis Analyze token holder distribution and detect suspicious activity. ```bash theme={null} GET /holder-analysis/{identifier}?chain=stellar ``` ## Address Formats Stellar uses different address formats depending on the entity type: | Type | Format | Example | | - | - | - | | Account | G... (56 characters) | `GA223OFHVKVAH2NBXP4AURJRVJTSOVHGBMKJNL6GRJWNN4SARVGSITYG` | | Token | CODE:ISSUER | `USDC:GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN` | > [!WARNING] > > For token analysis, use the `CODE:ISSUER` format. The code is the asset code (e.g., `USDC`) and the issuer is the account that created the token. ## Test Addresses Use these addresses to test the API: ```bash theme={null} # Known malicious address curl -X GET "https://api.webacy.com/addresses/GA223OFHVKVAH2NBXP4AURJRVJTSOVHGBMKJNL6GRJWNN4SARVGSITYG?chain=stellar" \ -H "x-api-key: YOUR_API_KEY" # Token holder analysis curl -X GET "https://api.webacy.com/holder-analysis/WillowDollar:GAFKQXZYW32INZMX3N4CPB73P3ZYTPHYEZF2HYBHVL6LFPSLLOWPTJVS?chain=stellar" \ -H "x-api-key: YOUR_API_KEY" ``` ## Stellar-Specific Risk Tags These risk tags are unique to the Stellar ecosystem: | Tag | Severity | Description | | - | - | - | | `stellar-clawback-operations` | Medium | A clawback operation has been detected on this account or token. | | `stellar-multiple-clawbacks` | High | Multiple clawback operations detected, indicating a potential pattern of fund recovery or manipulation. | | `stellar-malicious-account` | High | Account flagged as malicious by community threat intelligence. | | `stellar-unsafe-account` | Medium | Account flagged as potentially unsafe by community threat intelligence. | | `stellar-malicious-issuer-token` | High | Token issuer has been flagged as malicious. | | `stellar-unsafe-issuer-token` | Medium | Token issuer has been flagged as potentially unsafe. | | `stellar-failed-operations` | Low | The account or token has at least one recently failed operation. | | `stellar-multiple-failed-operations` | Medium | Multiple failed operations detected, which can indicate misconfiguration, contention, or abusive automation. | | `stellar-smart-contract-interactions` | Low | The account has interacted with Soroban smart contracts. Apply contract-level scrutiny in addition to account-level checks. | ## Additional Risk Tags Standard risk tags also apply to Stellar addresses: * `wash_trading` - Suspicious trading patterns detected * `sanctioned` - Address appears on sanction lists * `insufficient_wallet_age` - Account is very new * `insufficient_wallet_balance` - Low account balance * `insufficient_wallet_transactions` - Limited transaction history * Holder concentration tags (top holders owning significant percentages) ## Example Response ```json theme={null} { "count": 2, "medium": 1, "high": 1, "overallRisk": 65.5, "issues": [ { "tag": "stellar-malicious-account", "severity": "high", "description": "Account flagged as malicious by community threat intelligence" }, { "tag": "stellar-clawback-operations", "severity": "medium", "description": "Clawback operation detected on this account" } ] } ``` ## Best Practices 1. **Always use the correct format** - Use `CODE:ISSUER` format for tokens, not just the asset code 2. **Check holder distribution** - Use the holder analysis endpoint to understand token concentration 3. **Monitor for clawback** - Clawback-enabled tokens can have funds recalled by the issuer ## What's Next > [card] [Hedera Support](/hedera) > > Explore the support we have for the Hedera Blockchain. # Supply Flows Source: https://docs.webacy.com/supply-flows Real-time stablecoin issuance and redemption tracking across 139+ tokens — see whether capital is flowing into or out of the stablecoin system. Real-time issuance and redemption across 139+ tracked stablecoins. # What is it? Every stablecoin supply goes up when tokens are **minted** and down when they are **burned** (redeemed). Supply Flows aggregates those changes across the whole market and answers a simple question: ***Is money flowing into the stablecoin system right now, or out of it?*** Rising net issuance means capital is entering — a bullish signal. Sustained net redemption means capital is leaving — a risk-off signal that can precede market stress. # Header Metrics | **Metric** | **What it means** | **How to use it** | | :- | :- | :- | | **24h Direction** | Net issuance or redemption across all tracked stablecoins over the last 24 hours. | Green ↑ Net Issuance = new capital entering. Red ↓ Net Redemption = capital leaving. A sudden flip from green to red is worth investigating. | | **Total Supply** | Aggregate USD value of all tracked stablecoins combined. | Provides scale context. A \$1B daily net flow is large relative to a \$300B market but noise relative to \$3T. | | **Net 7d** | Net minting over the trailing seven days. | Week-over-week trend health. Consistent weekly issuance = sustained demand. Declining 7d while 24h is still positive = slowing momentum. | | **Net 30d** | Net minting over the trailing thirty days. | Structural momentum. A positive 30d with negative 7d may signal a trend reversal. Persistent negative 30d = structural contraction. | # Risk x Flow Matrix The scatter plot maps every token at the intersection of two independent signals — on-chain supply change and Webacy risk score — to surface tokens where risk and capital flow are moving in the same dangerous direction. ### Axes Dot size is proportional to market cap. Colour reflects risk tier: green (ok/stable), yellow (watch), orange (warning), red (critical). | **Axis** | **Source** | **Range** | | :- | :- | :- | | **X — Risk score** | Webacy monitor (price deviation, liquidity, volatility, chain spread) | 0 (safe) → 100 (critical) | | **Y — 30d supply change** | reference circulating-supply delta | Positive % (growing) → Negative % (shrinking) | ### Quadrants | **Quadrant** | **Label** | **Signal** | | :- | :- | :- | | **Top-left** | Growing Risk | Supply expanding but risk score rising. Token gaining market share while showing stress — monitor closely for reversal. | | **Top-right** | Strong Demand | Low risk and growing supply. Healthy organic growth. Where USDC and USDT typically sit. | | **Bottom-left** | Danger Zone | High risk and capital leaving. The most critical signal — users are pulling funds while risk is elevated. Historically precedes depeg events. | | **Bottom-right** | Cautious Exit | Low risk but redemptions happening. Orderly exit — less alarming, may reflect portfolio rotation rather than loss of confidence. | > [!NOTE] > > **Key insight:** Tokens drifting into the bottom-left Danger Zone — high risk score *and* net 30-day outflows — have historically been among the earliest on-chain signals before a depeg. The matrix lets you see this combination at a glance across the whole market. # Biggest Movers (24h) Ranks all tokens by absolute 24-hour supply change — not just the largest tokens, but the ones moving the most relative to their recent baseline. Each row shows: * **Token type chip** — **FIAT** fiat-backed · **CRYPTO** crypto/algorithmically-backed · **SYNTHETIC** synthetic * **Risk tier badge** — ok / watch / warning / critical from the Webacy monitor * **Flow bar** — green for net issuance, red for net redemption; bar length is relative to the largest mover * **Dollar amount** — absolute net change in USD A long red bar paired with a **WARNING** or **CRITICAL** badge is the highest-priority item to investigate: users are actively leaving a token that is already showing risk signals. # All Tokens table The full sortable, filterable breakdown of every tracked stablecoin. Columns: | **Column** | **Description** | | :- | :- | | **Token** | Symbol, full name, type chip (Fiat / Crypto / Synthetic). | | **Supply** | Current total circulating supply in USD. | | **Net 24h** | Change in supply over the last 24 hours. Percentage sub-label shows relative size. | | **Net 7d** | Change over the trailing 7 days. | | **Net 30d** | Change over the trailing 30 days. Most reliable for structural trend analysis. | | **Flow** | Inline bar — green for net issuance, red for net redemption. Length is relative to the biggest mover in the current filtered view. | | **Risk** | Webacy risk tier badge for this token (ok / watch / warning / critical). Blank if the token is not yet in our monitor. | | **Top Chains** | Per-chain supply breakdown chips showing where this token circulates most. | ### Practical sort / filter combinations | **Goal** | **How** | | :- | :- | | **Find structurally growing tokens** | Sort Net 30d descending — these tokens are attracting sustained capital. | | **Find tokens at risk of collapse** | Sort Net 30d ascending + filter to Crypto — algorithmic/crypto-backed tokens with persistent outflows are the highest-risk category. | | **Focus on regulated fiat stablecoins** | Filter to Fiat — USDC, USDT, PYUSD, BUSD, etc. Movements here reflect institutional/exchange behaviour. | | **Monitor experimental tokens** | Filter to Synthetic — smallest category, most volatile supply, often earliest to show stress. | | **Identify sudden large outflows** | Sort Net 24h ascending — large negative numbers on tokens you recognise warrant immediate investigation. | # Stress token alert When one or more tokens simultaneously meet *both* of the following conditions, a warning banner appears at the top of the page: * Risk tier is **WARNING** or **CRITICAL** in the Webacy monitor * Net 30-day supply change is **negative** (net redemptions over the past month) This is the page's highest-confidence combined signal — on-chain supply data and off-chain threat intelligence pointing in the same direction. When this fires, check those tokens first. # Bridged vs native supply fields For multichain stablecoins, raw supply changes can be dominated by L2 bridge inflows and outflows rather than genuine new issuance or redemption. The organic supply fields strip out bridge activity to give a cleaner demand signal. > [!NOTE] > > Bridge flows are excluded from the organic supply signal. USDC on Arbitrum, for example, is primarily bridged from Ethereum — its supply changes reflect bridge activity, not new USDC issuance. | **Field** | **Description** | | :- | :- | | `organic_net_24h` | Net supply change from native minting/burning only, excluding L2 bridge inflows/outflows. More reliable demand signal than raw net\_24h for multichain stablecoins. | | `bridge_flow_pct` | Fraction of the 24h supply change explained by bridge activity (0–1). When > 0.80, a supply spike is flagged as bridge\_flow\_spike and scored at 50% weight. | | `bridged_fraction` | Share of total supply that is bridged (not natively minted) across all chains. High values indicate the token is primarily a bridged asset on most chains. | | `native_supply_{chain} / bridged_supply_{chain}` | Per-chain breakdown of native vs bridged supply. | | `has_bridged_data` | Boolean. False when bridged-supply data isn't available for this token; organic fields fall back to null. | # Supported Blockchains Source: https://docs.webacy.com/supported-blockchains Blockchain risk is chain-agnostic. Webacy is designed to deliver consistent, explainable risk intelligence across every supported ecosystem. Webacy continuously expands support for new blockchain networks as the digital asset ecosystem evolves. While each blockchain has unique architectures, standards, and transaction models, the Webacy Risk Framework provides a consistent approach to evaluating wallets, transactions, smart contracts, digital assets, and other supported entities across chains. > [!TIP] > > If you'd like to request a blockchain, or would like us to support YOUR blockchain, please get in touch. ## Supported Networks > [!NOTE] > > Support for individual engines and APIs may vary by network as new capabilities are introduced. Check individual endpoint documentation for specific chain coverage. | Blockchain | Identifier | Status | | - | - | - | | Ethereum | `eth` | Full Support | | Polygon | `pol` | Full Support | | Optimism | `opt` | Full Support | | Arbitrum | `arb` | Full Support | | Base | `base` | Full Support | | Robinhood | `robinhood` | Full Support | | BSC | `bsc` | Full Support | | Solana | `sol` | Full Support | | Sei | `sei` | Full Support | | Sui | `sui` | Full Support | | Stellar | `stellar` | Full Support | | Hedera | `hedera` | Full Support | | Bitcoin | `btc` | Limited | | Tron | `tron` | Limited | ## Cross-Chain by Design Many blockchain risks extend beyond a single network. Webacy's intelligence platform is designed to analyze entities across ecosystems, enabling consistent risk assessments as assets, users, and protocols operate across multiple chains. As support expands, the same APIs, risk framework, and intelligence engines continue to provide a familiar developer experience regardless of the underlying blockchain. ## Default Chain When no chain is specified, the API defaults to **Ethereum** (`eth`). ## Expanding Coverage Supporting a new blockchain is more than adding RPC connectivity. Every new network requires the integration of blockchain-specific data models, entity types, risk factors, and detection methodologies to ensure analyses remain accurate and explainable. Webacy continuously adds support for new ecosystems, asset types, and protocol standards as they mature. ## Chain-Specific Capabilities Some capabilities may be available only on selected networks due to differences in blockchain architecture or protocol support. Refer to the documentation for each API or intelligence engine to see which chains are currently supported for a given feature. View [Hedera](/hedera) and [Stellar](/stellar) Pages for more details. ## Requesting Additional Chains Need support for a blockchain not listed? Contact us at [info@webacy.com](mailto:info@webacy.com). ## What's Next > [card] [Data Freshness](/data-freshness) > > Learn how Webacy continuously updates risk intelligence as blockchain conditions change in real time. # Add Token Intelligence to Your App in Minutes Source: https://docs.webacy.com/tokens/add-token-intelligence-to-your-app-in-minutes Add honeypot detection, liquidity checks, and real-time token risk scoring to your DEX swap UI or audit page with a single Webacy API integration. Power token audit pages, risk indicators, and trading safeguards with a single API. ![Screenshot2026 03 19at6 14 48PM](https://mintcdn.com/webacy/x9kuIxHM_7K4Pi30/images/Screenshot2026-03-19at6.14.48PM.png?fit=max\&auto=format\&n=x9kuIxHM_7K4Pi30\&q=85\&s=2bebf0f46f322800577dee6b6b3283a6) ![Screenshot2026 03 19at6 16 15PM](https://mintcdn.com/webacy/x9kuIxHM_7K4Pi30/images/Screenshot2026-03-19at6.16.15PM.png?fit=max\&auto=format\&n=x9kuIxHM_7K4Pi30\&q=85\&s=fcce050a8c6c11b0c3c5a67d0713b66c) ![Screenshot2026 03 19at6 17 11PM 1](https://mintcdn.com/webacy/x9kuIxHM_7K4Pi30/images/Screenshot2026-03-19at6.17.11PM-1.png?fit=max\&auto=format\&n=x9kuIxHM_7K4Pi30\&q=85\&s=6b7132945c3e060eb37fb65afdbdb40a) # ⚡️ Drive swaps and volume through risk intelligence and token information 🍯 Honeypot Detection ⚠️ Liquidity, Sniping, Bundling, Holder Risk 📇 Contract & Deployer Analysis ✅ Real-time risk scoring # Try the Live Demo Try it now at [DD.xyz](http://DD.xyz) 🚀 ![Screenshot 2026 03 19 At 6 09 07 PM](https://mintcdn.com/webacy/x9kuIxHM_7K4Pi30/images/Screenshot2026-03-19at6.09.07PM.png?fit=max\&auto=format\&n=x9kuIxHM_7K4Pi30\&q=85\&s=c45f42f361117b082997f22ffc6d8e8f) DD.xyz [Get API Key](https://developers.webacy.co/billing) 🚀 # 🧩 Use Case: Token Audit Page Build pages like: * DEXTools token views * Block-explorer token analysis * Trading app token screens ... without building your own risk engine! # ⚙️ How it Works [Try it in the docs](/api-reference/trading-lite/get-simplified-token-analysis-with-security-indicators) 🚀 1. [Get your API key](https://developers.webacy.co/billing) 2. [Call the endpoint](/api-reference/trading-lite/get-simplified-token-analysis-with-security-indicators) 3. Get structured intelligence 4. Render in your UI 1. Token pages 2. Trade confirmation screens 3. Risk badges / warnings > [!TIP] > > [Check out our SDK](/sdk/introduction) for even faster development! # 🧪 Live Demo Paste a token address and see exactly what your app can display. 👉 **Try it here:** [DD.xyz](http://DD.xyz) 🚀 No login required. # 🧱 What You Get ## [DD Lite](/api-reference/trading-lite/get-simplified-token-analysis-with-security-indicators) * Contract Address (CA) * Deployer Address (DA) * Dev Analysis * Top 10 Holders * Sniping * Bundling * Total Holders * Metadata * Mintable * Freezable ## [Holder Analysis Endpoint](/api-reference/holder-analysis/get-detailed-early-holder-analysis-for-a-token) * Everything in DD Lite \ \+ * Robust token info * First buyer analysis * Top 10 Holders analysis * Metadata For even more risk and risk score data, check out the [Threat Risks](/api-reference/threat-risks/threat-considerations-for-an-address) endpoint! > [!TIP] > > [Check out our SDK](/sdk/introduction)! # 🎯 Where to Use This * Token pages * Swap / trade screens * Wallet and app warnings * Portfolio dashboards * Discovery feeds # 🎉 Why Builders Use This * No need to build your own risk engine * Works across tokens instantly * Clean, structured output for UI * Designed for real-time trading environments # 🔌 Add it in \<10 Minutes You don't need: * Custom indexing * Contract analysis pipelines * Risk heuristics We've already done it. # ADD TOKEN INTELLIGENCE TO YOUR APP TODAY Try the demo at [DD.xyz](http://DD.xyz) Get your API key at [https://developers.webacy.co/](https://developers.webacy.co/) Ship in minutes! *** Powered by [DD.xyz](http://DD.xyz)\ The risk intelligence layer # DEX Token Screening Source: https://docs.webacy.com/tokens/dex-token-screening Screen tokens in your DEX, aggregator, or swap UI for honeypots, hidden buy and sell taxes, holder concentration, and rug pull signals in real time. You spot a honeypot token on trending. The chart looks perfect—steady climb, healthy volume. Your users buy in. When they try to sell, nothing happens. The contract blocks all sells except for the developer's wallet. \$3.2 million locked forever. This guide shows you how to screen tokens before your users get burned. ## Why Token Screening Matters > [card] Honeypot Detection > > Block tokens that won't let users sell > [card] Tax Analysis > > Expose hidden buy/sell taxes before users swap > [card] Rug Risk Assessment > > Identify concentrated holdings and suspicious patterns **Why DEX developers choose Webacy:** * **Contract security analysis** — Detect honeypots, malicious functions, and rug mechanics * **Hidden tax detection** — Find buy/sell taxes hidden in contract code * **Holder concentration** — Identify tokens where insiders hold most supply * **Liquidity analysis** — Assess pool depth and rug pull indicators * **Trading Lite API** — Sub-second screening for real-time user protection * **Multi-chain support** — ETH, Solana, Base, Arbitrum, BSC, and more *** ## Prerequisites Before implementing token screening, ensure you have: * A Webacy API key ([sign up here](https://developers.webacy.co/billing)) * Basic familiarity with REST APIs or the [Webacy SDK](../sdk/installation) * Your swap interface's token selection and pre-swap flows identified *** ## Token Listing Due Diligence Screen tokens before they appear on your platform. ### Contract Security Analysis Get a comprehensive security analysis of any token contract. ```bash cURL theme={null} curl -X GET "https://api.webacy.com/contracts/0xTokenAddress...?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} import { ThreatClient, Chain } from '@webacy-xyz/sdk'; const client = new ThreatClient({ apiKey: process.env.WEBACY_API_KEY }); const analysis = await client.contracts.analyze( '0xTokenAddress...', { chain: Chain.ETH } ); console.log(`Risk score: ${analysis.overallRisk}/100`); console.log(`Is honeypot: ${analysis.isHoneypot}`); for (const vuln of analysis.vulnerabilities ?? []) { console.log(`[${vuln.severity}] ${vuln.name}: ${vuln.description}`); } ``` ```python Python theme={null} import requests response = requests.get( "https://api.webacy.com/contracts/0xTokenAddress...", params={"chain": "eth"}, headers={"x-api-key": "YOUR_API_KEY"} ) analysis = response.json() ``` **Key fields to check:** | Field | Description | Red Flag | | - | - | - | | `isHoneypot` | Contract blocks sells | Block immediately | | `overallRisk` | 0-100 risk score | > 70 requires review | | `vulnerabilities[]` | Security issues found | Any critical severity | | `hasProxyContract` | Contract is upgradeable | Hidden risk | ### Hidden Tax Detection Many scam tokens hide excessive taxes that steal from users on every transaction. > [!WARNING] > > **The Tax Trap**: A token advertises "5% tax for marketing." The contract actually takes 90% on sells. Users buy in at market price and can only exit at 10 cents on the dollar. ```bash cURL theme={null} curl -X GET "https://api.webacy.com/contracts/0xTokenAddress.../tax?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} const tax = await client.contracts.getTax( '0xTokenAddress...', { chain: Chain.ETH } ); console.log(`Buy tax: ${tax.buyTax}%`); console.log(`Sell tax: ${tax.sellTax}%`); console.log(`Transfer tax: ${tax.transferTax}%`); // Flag high taxes if (tax.sellTax > 10) { console.warn(`⚠️ High sell tax: ${tax.sellTax}%`); } if (tax.buyTax !== tax.sellTax) { console.warn('⚠️ Asymmetric taxes detected'); } ``` ```python Python theme={null} response = requests.get( "https://api.webacy.com/contracts/0xTokenAddress.../tax", params={"chain": "eth"}, headers={"x-api-key": "YOUR_API_KEY"} ) tax = response.json() ``` **Tax warning thresholds:** | Tax Level | Recommendation | | - | - | | 0-5% | Normal range | | 5-10% | Show warning to users | | 10-25% | Strong warning + require confirmation | | > 25% | Block or hide token | ### Holder Concentration Analysis Identify tokens where insiders control most of the supply. ```bash cURL theme={null} curl -X GET "https://api.webacy.com/holder-analysis/TokenMintAddress...?chain=sol" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} import { TradingClient, Chain } from '@webacy-xyz/sdk'; const tradingClient = new TradingClient({ apiKey: process.env.WEBACY_API_KEY }); const holders = await tradingClient.holderAnalysis.get( 'TokenMintAddress...', { chain: Chain.SOL } ); console.log(`Total holders: ${holders.totalHolders}`); console.log(`Top 10 concentration: ${holders.top10Percentage}%`); console.log(`Snipers detected: ${holders.sniperCount}`); console.log(`Bundlers detected: ${holders.bundlerCount}`); // Check for rug indicators if (holders.top10Percentage > 80) { console.warn('⚠️ Extreme concentration: Top 10 hold over 80%'); } if (holders.sniperCount > 10) { console.warn('⚠️ High sniper activity at launch'); } ``` ```python Python theme={null} response = requests.get( "https://api.webacy.com/holder-analysis/TokenMintAddress...", params={"chain": "sol"}, headers={"x-api-key": "YOUR_API_KEY"} ) holders = response.json() ``` **Holder red flags:** | Metric | Red Flag Threshold | What It Means | | - | - | - | | Top 10 % | > 80% | Insiders can dump | | Sniper count | > 10 | Coordinated buying at launch | | Bundler count | > 3 | Multiple wallets acting as one | | Dev wallet % | > 20% | Developer can rug | *** ## Real-Time User Warnings Screen tokens in real-time when users try to swap. ### Pre-Swap Screening Check tokens before users execute swaps. ```bash cURL theme={null} curl -X GET "https://api.webacy.com/contracts/0xTokenAddress...?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} async function screenTokenBeforeSwap(tokenAddress: string, chain: Chain) { // Get contract analysis const analysis = await client.contracts.analyze(tokenAddress, { chain }); // Get tax info const tax = await client.contracts.getTax(tokenAddress, { chain }); const warnings: string[] = []; let shouldBlock = false; // Check for honeypot if (analysis.isHoneypot) { warnings.push('This token appears to be a honeypot - you may not be able to sell'); shouldBlock = true; } // Check tax if (tax.sellTax > 25) { warnings.push(`Extreme sell tax detected: ${tax.sellTax}%`); shouldBlock = true; } else if (tax.sellTax > 10) { warnings.push(`High sell tax: ${tax.sellTax}%`); } // Check risk score if (analysis.overallRisk > 70) { warnings.push(`High risk score: ${analysis.overallRisk}/100`); } return { allowed: !shouldBlock, warnings, riskScore: analysis.overallRisk, taxes: { buy: tax.buyTax, sell: tax.sellTax, }, }; } ``` ```python Python theme={null} def screen_token_before_swap(token_address: str, chain: str): # Get contract analysis analysis = requests.get( f"https://api.webacy.com/contracts/{token_address}", params={"chain": chain}, headers={"x-api-key": "YOUR_API_KEY"} ).json() # Get tax info tax = requests.get( f"https://api.webacy.com/contracts/{token_address}/tax", params={"chain": chain}, headers={"x-api-key": "YOUR_API_KEY"} ).json() return { "risk_score": analysis.get("overallRisk"), "is_honeypot": analysis.get("isHoneypot"), "buy_tax": tax.get("buyTax"), "sell_tax": tax.get("sellTax") } ``` ### Trading Lite for Speed For high-volume DEXes, use Trading Lite for sub-second token screening. > [!WARNING] > > Trading Lite is currently available for **Solana only**. Use the standard contract analysis endpoints for EVM chains. ```bash cURL theme={null} curl -X GET "https://api.webacy.com/trading-lite/PumpTokenAddress..." \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} const quickAnalysis = await tradingClient.tradingLite.analyze('PumpTokenAddress...'); console.log(`Risk score: ${quickAnalysis.riskScore}`); console.log(`Is honeypot: ${quickAnalysis.isHoneypot}`); console.log(`Liquidity: $${quickAnalysis.liquidity}`); // Quick pass/fail for swap UI const safeToSwap = quickAnalysis.riskScore < 50 && !quickAnalysis.isHoneypot; ``` ```python Python theme={null} response = requests.get( "https://api.webacy.com/trading-lite/PumpTokenAddress...", headers={"x-api-key": "YOUR_API_KEY"} ) quick = response.json() ``` *** ## Liquidity Analysis Check if there's enough liquidity to actually execute trades. ### Pool Data ```bash cURL theme={null} curl -X GET "https://api.webacy.com/tokens/0xTokenAddress.../pools?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} const pools = await tradingClient.tokens.getPools( '0xTokenAddress...', { chain: Chain.ETH } ); for (const pool of pools.pools) { console.log(`DEX: ${pool.dex}`); console.log(`Liquidity: $${pool.liquidity.toLocaleString()}`); console.log(`Pair: ${pool.pairToken}`); console.log(`24h Volume: $${pool.volume24h.toLocaleString()}`); } // Check for low liquidity const totalLiquidity = pools.pools.reduce((sum, p) => sum + p.liquidity, 0); if (totalLiquidity < 10000) { console.warn('⚠️ Very low liquidity - high slippage expected'); } ``` ```python Python theme={null} response = requests.get( "https://api.webacy.com/tokens/0xTokenAddress.../pools", params={"chain": "eth"}, headers={"x-api-key": "YOUR_API_KEY"} ) pools = response.json() ``` **Liquidity warning thresholds:** | Liquidity | Risk Level | User Guidance | | - | - | - | | > \$100k | Low | Normal trading | | \$10k-\$100k | Medium | Warn about slippage | | \$1k-\$10k | High | Strong slippage warning | | \< \$1k | Critical | May be rug pull or dead token | ### Rug Pull Indicators Combine multiple signals to detect potential rug pulls. ```typescript theme={null} interface RugPullRisk { score: number; // 0-100 indicators: string[]; recommendation: 'safe' | 'caution' | 'avoid'; } async function assessRugPullRisk( tokenAddress: string, chain: Chain ): Promise { const indicators: string[] = []; let score = 0; // Get all data const [contract, tax, pools, holders] = await Promise.all([ client.contracts.analyze(tokenAddress, { chain }), client.contracts.getTax(tokenAddress, { chain }), tradingClient.tokens.getPools(tokenAddress, { chain }), tradingClient.holderAnalysis.get(tokenAddress, { chain }), ]); // Check contract risks if (contract.isHoneypot) { indicators.push('Honeypot detected'); score += 50; } if (contract.hasProxyContract) { indicators.push('Upgradeable contract'); score += 15; } // Check taxes if (tax.sellTax > 25) { indicators.push(`Extreme sell tax: ${tax.sellTax}%`); score += 30; } else if (tax.sellTax > 10) { indicators.push(`High sell tax: ${tax.sellTax}%`); score += 15; } // Check liquidity const totalLiquidity = pools.pools.reduce((sum, p) => sum + p.liquidity, 0); if (totalLiquidity < 10000) { indicators.push(`Low liquidity: $${totalLiquidity.toLocaleString()}`); score += 20; } // Check holder concentration if (holders.top10Percentage > 80) { indicators.push(`High concentration: Top 10 hold ${holders.top10Percentage}%`); score += 25; } if (holders.sniperCount > 10) { indicators.push(`${holders.sniperCount} snipers at launch`); score += 10; } // Determine recommendation let recommendation: 'safe' | 'caution' | 'avoid' = 'safe'; if (score >= 50) { recommendation = 'avoid'; } else if (score >= 25) { recommendation = 'caution'; } return { score: Math.min(score, 100), indicators, recommendation, }; } ``` *** ## Complete Integration Workflow ### Token Listing Flow ```mermaid theme={null} flowchart TD A[New Token Submitted] --> B[Contract Analysis] B --> C{Is Honeypot?} C -->|Yes| D["❌ REJECT Token"] C -->|No| E[Tax Analysis] E --> F{Sell Tax > 25%?} F -->|Yes| D F -->|No| G[Holder Analysis] G --> H{Top 10 > 90%?} H -->|Yes| D H -->|No| I[Pool Analysis] I --> J{Liquidity > $10k?} J -->|No| K["⚠️ Flag for Review"] J -->|Yes| L["✅ List Token"] K --> M{Manual Review} M -->|Approved| L M -->|Rejected| D ``` ### Pre-Swap User Warning Flow ```mermaid theme={null} flowchart TD A[User Selects Token] --> B{Cached Analysis?} B -->|Yes| C[Show Cached Warnings] B -->|No| D[Fetch Token Analysis] D --> C C --> E{Any Critical Issues?} E -->|Yes| F["🛑 Show Strong Warning"] E -->|No| G{Any Warnings?} G -->|Yes| H["⚠️ Show Caution Banner"] G -->|No| I["✅ Normal Swap UI"] F --> J{User Acknowledges?} J -->|Yes| K[Enable Swap] J -->|No| L[Cancel] H --> K I --> K ``` ### Full TypeScript Implementation > [accordion] Complete DEX Token Screening Module > > ```typescript theme={null} > import { ThreatClient, TradingClient, Chain } from '@webacy-xyz/sdk'; > > const threatClient = new ThreatClient({ > apiKey: process.env.WEBACY_API_KEY, > }); > > const tradingClient = new TradingClient({ > apiKey: process.env.WEBACY_API_KEY, > }); > > interface TokenScreeningResult { > allowed: boolean; > riskScore: number; > warnings: Warning[]; > taxes: { buy: number; sell: number }; > liquidity: number; > holderConcentration: number; > recommendation: 'safe' | 'caution' | 'avoid' | 'block'; > } > > interface Warning { > severity: 'info' | 'warning' | 'critical'; > message: string; > category: string; > } > > // Main screening function > async function screenToken( > tokenAddress: string, > chain: Chain > ): Promise { > const warnings: Warning[] = []; > > // Parallel fetch all data > const [contract, tax, pools, holders] = await Promise.all([ > threatClient.contracts.analyze(tokenAddress, { chain }), > threatClient.contracts.getTax(tokenAddress, { chain }), > tradingClient.tokens.getPools(tokenAddress, { chain }), > tradingClient.holderAnalysis.get(tokenAddress, { chain }).catch(() => null), > ]); > > // Critical: Honeypot check > if (contract.isHoneypot) { > warnings.push({ > severity: 'critical', > message: 'This token appears to be a honeypot. You may not be able to sell.', > category: 'honeypot', > }); > > return { > allowed: false, > riskScore: 100, > warnings, > taxes: { buy: tax.buyTax, sell: tax.sellTax }, > liquidity: 0, > holderConcentration: 0, > recommendation: 'block', > }; > } > > // Tax warnings > if (tax.sellTax > 25) { > warnings.push({ > severity: 'critical', > message: `Extreme sell tax: ${tax.sellTax}%. You will lose most of your value when selling.`, > category: 'tax', > }); > } else if (tax.sellTax > 10) { > warnings.push({ > severity: 'warning', > message: `High sell tax: ${tax.sellTax}%`, > category: 'tax', > }); > } > > if (tax.buyTax > 10) { > warnings.push({ > severity: 'warning', > message: `High buy tax: ${tax.buyTax}%`, > category: 'tax', > }); > } > > // Liquidity warnings > const totalLiquidity = pools.pools.reduce((sum, p) => sum + p.liquidity, 0); > if (totalLiquidity < 1000) { > warnings.push({ > severity: 'critical', > message: `Very low liquidity: $${totalLiquidity.toLocaleString()}. May be unable to sell.`, > category: 'liquidity', > }); > } else if (totalLiquidity < 10000) { > warnings.push({ > severity: 'warning', > message: `Low liquidity: $${totalLiquidity.toLocaleString()}. Expect high slippage.`, > category: 'liquidity', > }); > } > > // Holder concentration warnings > const holderConcentration = holders?.top10Percentage ?? 0; > if (holders) { > if (holders.top10Percentage > 90) { > warnings.push({ > severity: 'critical', > message: `Extreme concentration: Top 10 wallets hold ${holders.top10Percentage}%`, > category: 'holders', > }); > } else if (holders.top10Percentage > 70) { > warnings.push({ > severity: 'warning', > message: `High concentration: Top 10 wallets hold ${holders.top10Percentage}%`, > category: 'holders', > }); > } > > if (holders.sniperCount > 10) { > warnings.push({ > severity: 'warning', > message: `${holders.sniperCount} snipers detected at launch`, > category: 'trading', > }); > } > > if (holders.bundlerCount > 3) { > warnings.push({ > severity: 'warning', > message: `${holders.bundlerCount} bundler wallets detected`, > category: 'trading', > }); > } > } > > // Determine recommendation > const criticalCount = warnings.filter(w => w.severity === 'critical').length; > const warningCount = warnings.filter(w => w.severity === 'warning').length; > > let recommendation: 'safe' | 'caution' | 'avoid' | 'block' = 'safe'; > if (criticalCount > 0) { > recommendation = tax.sellTax > 50 ? 'block' : 'avoid'; > } else if (warningCount >= 2) { > recommendation = 'caution'; > } > > return { > allowed: recommendation !== 'block', > riskScore: contract.overallRisk, > warnings, > taxes: { buy: tax.buyTax, sell: tax.sellTax }, > liquidity: totalLiquidity, > holderConcentration, > recommendation, > }; > } > > // Quick screen for Solana (using Trading Lite) > async function quickScreenSolana(tokenMint: string): Promise<{ > safe: boolean; > riskScore: number; > isHoneypot: boolean; > liquidity: number; > }> { > const result = await tradingClient.tradingLite.analyze(tokenMint); > > return { > safe: result.riskScore < 50 && !result.isHoneypot, > riskScore: result.riskScore, > isHoneypot: result.isHoneypot, > liquidity: result.liquidity, > }; > } > > // Batch screen for token lists > async function screenTokenList( > tokens: Array<{ address: string; chain: Chain }> > ): Promise> { > const results = new Map(); > > // Process in batches of 5 to avoid rate limits > for (let i = 0; i < tokens.length; i += 5) { > const batch = tokens.slice(i, i + 5); > const batchResults = await Promise.all( > batch.map(t => screenToken(t.address, t.chain)) > ); > > batch.forEach((token, index) => { > results.set(token.address, batchResults[index]); > }); > } > > return results; > } > ``` *** ## Example Tokens for Testing ### Known Honeypots | Address | Chain | Description | | - | - | - | | Test with newly deployed tokens on testnets | - | Honeypots are constantly being deployed | ### High Tax Tokens | Address | Chain | Description | | - | - | - | | Various "reflection" or "rebase" tokens | - | Often have hidden mechanics | ### Safe Tokens (for comparison) | Address | Chain | Description | | - | - | - | | `0xdAC17F958D2ee523a2206206994597C13D831ec7` | ETH | USDT - no tax, high liquidity | | `0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48` | ETH | USDC - verified, safe | | `0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599` | ETH | WBTC - established token | > [!NOTE] > > **Testing tip**: For honeypot and tax testing, use tokens you find in real-time on DEX trending lists. Scam tokens are deployed constantly, so the best test data is fresh data. *** ## API Quick Reference | Endpoint | Use Case | Response Time | | - | - | - | | `GET /contracts/{address}` | Contract analysis | \~500ms | | `GET /contracts/{address}/tax` | Tax detection | \~300ms | | `GET /holder-analysis/{address}` | Holder distribution | \~400ms | | `GET /tokens/{address}/pools` | Liquidity pools | \~300ms | | `GET /trading-lite/{address}` | Quick analysis (SOL) | \~200ms | *** ## Next Steps > [card] [Get Your API Key](https://developers.webacy.co/billing) > > Start screening tokens today > [card] [API Reference](../api-reference/introduction) > > Complete endpoint documentation > [card] [Honeypots Explained](../glossary/honeypots) > > Deep dive on honeypot mechanics > [card] [Trading Client SDK](../sdk/trading-client) > > SDK for holder analysis # Trading Intelligence Source: https://docs.webacy.com/trading-intelligence Evaluate token markets with Webacy Trading Intelligence: holder analysis, distribution and unlock schedules, liquidity depth, and insider or sniper behavior. The Trading Intelligence engine evaluates the market characteristics of digital assets by analyzing how they are owned, traded, distributed, and supported by liquidity. Rather than focusing solely on price movements, Webacy identifies structural risks that can influence an asset's stability, tradability, and long-term health. Whether evaluating a newly launched token, monitoring an existing market, or performing due diligence for a listing decision, Trading Intelligence provides explainable insights that help organizations make faster and more informed decisions. ## Holder Analysis Understanding who owns an asset is fundamental to understanding its risk. Webacy analyzes holder composition, early holder dynamics (such as bundling, sniping, or insider trading), concentration, wallet behavior, whale activity, insider ownership, ecosystem participants, and other characteristics that influence an asset's risk profile. **Common use cases** * Exchange listing due diligence * Whale monitoring * Treasury exposure * Community analysis * Early holder identification ## Distribution Analysis Healthy markets depend on healthy distribution. Distribution Analysis evaluates how tokens are allocated across the ecosystem, identifying concentration risks, treasury holdings, unlock schedules, circulating supply dynamics, and other structural characteristics that may influence market behavior. **Common use cases** * Token launch analysis * Listing reviews * Treasury monitoring * Circulating supply validation * Concentration risk assessment ## Liquidity Analysis Liquidity determines how efficiently markets function. Webacy evaluates onchain liquidity, market depth, liquidity concentration, pool composition, capital movement, and other indicators that may affect an asset's resilience during periods of market stress. **Common use cases** * Market maker monitoring * DeFi risk analysis * Liquidity health monitoring * Slippage assessment * Exit risk analysis ## Market Structure Markets are influenced by far more than price alone. Market Structure analyzes the broader characteristics of an asset's trading environment, including trading activity, ownership dynamics, liquidity behavior, ecosystem maturity, and structural signals that help identify manipulation, instability, or emerging risks. This holistic view enables organizations to evaluate assets based on their underlying market health rather than short-term price movements alone. ## Built for Real-Time Markets Trading conditions can change in minutes. Trading Intelligence continuously evaluates market behavior as new holders emerge, liquidity shifts, trading activity evolves, and distribution changes over time. This enables exchanges, trading platforms, market makers, analysts, and automated trading systems to monitor assets continuously rather than relying solely on periodic due diligence. ## What's Next > [card] [Asset Integrity](/asset-integrity) > > Continuously evaluate the financial, operational, and structural integrity of stablecoins, vaults, RWAs, and other institutional digital assets. # Transaction Monitoring Source: https://docs.webacy.com/transaction-monitoring Every blockchain transaction tells a story. Transaction Monitoring uncovers the risk behind every movement of value, before and after it happens. The Transaction Monitoring engine analyzes blockchain transactions throughout their lifecycle, combining transaction screening, fund flow analysis, and transaction simulation into a single source of real-time risk intelligence. Whether evaluating historical activity, monitoring live transactions, or simulating a transaction before execution, Webacy provides the context needed to make informed, risk-based decisions. ## What It Analyzes Transaction Monitoring combines multiple analytical techniques to understand both the intent and impact of a transaction, including: * Transaction screening * Fund flow analysis * Counterparty relationships * Transaction simulation (pre-sign) * Asset movement * Protocol interactions * Cross-chain activity * Historical transaction patterns Together, these signals provide explainable intelligence that extends far beyond basic transaction monitoring. ## Fund Flow Analysis Webacy traces how assets move across wallets, contracts, protocols, and chains to uncover the broader context behind a transaction. This supports investigations, source-of-funds analysis, exposure mapping, and multi-hop screening, helping organizations identify indirect connections to malicious, sanctioned, or otherwise high-risk entities that may not be visible from the immediate counterparty alone. ![Screenshot 2026 08 06 At 4 45 35 PM](https://mintcdn.com/webacy/WOwccSluwNfjURJB/images/Screenshot-2026-08-06-at-4.45.35-PM.png?fit=max\&auto=format\&n=WOwccSluwNfjURJB\&q=85\&s=137116c143283ef75065aa4878009f6b) ## Transaction Simulation Webacy simulates transactions before they are signed or executed to identify what they are expected to do and whether the outcome introduces risk. Simulation can surface unexpected asset transfers, dangerous approvals, malicious contract interactions, changes in permissions, and other execution risks, enabling wallets, applications, policy engines, and AI agents to warn, block, or escalate transactions before funds move. ![Screenshot 2026 08 06 At 4 53 18 PM](https://mintcdn.com/webacy/WOwccSluwNfjURJB/images/Screenshot-2026-08-06-at-4.53.18-PM.png?fit=max\&auto=format\&n=WOwccSluwNfjURJB\&q=85\&s=921c76037c36dc27e137b9bbe270ea27) ## Common Use Cases * AML transaction monitoring * Treasury monitoring * Exchange deposit and withdrawal monitoring * Pre-sign transaction simulation * Transaction policy enforcement * Fraud detection * Compliance workflows * AI-powered transaction approval ## Built for Real-Time Decisions Unlike traditional monitoring systems that operate after a transaction has occurred, Webacy can evaluate transactions before, during, and after execution. This enables organizations to block malicious interactions, investigate suspicious fund flows, monitor treasury activity, and automate policy decisions using real-time blockchain intelligence. ## What's Next > [card] [Smart Contract Analysis](/smart-contract-analysis) > > Analyze smart contracts for security vulnerabilities, privileged functionality, governance controls, and operational risks. # Transaction Simulation Overview Source: https://docs.webacy.com/transactions/transaction-simulation Add pre-signing transaction simulation, EIP-712 permit analysis, and approval risk checks to your wallet or dApp so users see what they sign in advance. You visit a "token claim" site. The transaction looks normal—just a contract interaction. You approve it without a second thought. 48 hours later, your entire wallet is drained through a permit signature you didn't understand. Transaction simulation would have caught it. This guide shows you how to build that last line of defense. ## Why Transaction Simulation Matters > [card] Last Line of Defense > > Users trust your app to protect them—make that trust count > [card] Permit Protection > > Catch EIP-712 signatures that can drain wallets without transactions > [card] Approval Awareness > > Show users their existing exposure before they add more **Why developers choose Webacy:** * **Pre-signing simulation** — Show users exactly what will happen before they approve * **EIP-712 signature analysis** — Decode and risk-score permit/signature requests * **Approval risk detection** — Identify dangerous existing approvals * **Recipient verification** — Catch address poisoning before users confirm * **Multi-chain support** — Same APIs for ETH, Polygon, Arbitrum, Base, and more *** ## Prerequisites Before implementing transaction simulation, ensure you have: * A Webacy API key ([sign up here](https://developers.webacy.co/billing)) * Basic familiarity with REST APIs or the [Webacy SDK](../sdk/installation) * Your application's transaction signing flow identified for integration *** ## Pre-Signing Protection The moment before a user signs a transaction is your last chance to protect them. ### Transaction Simulation Simulate every transaction before it gets signed. The endpoint is `POST /scan/{fromAddress}/transactions`, where `fromAddress` is the signer, and it takes the **serialized unsigned transaction** (`raw`), not the `to`/`data`/`value` fields. Every EVM library produces it as a `0x` hex string: ethers `Transaction.from({...}).unsignedSerialized`, viem `serializeTransaction(...)`, web3.js `bytesToHex(tx.serialize())` (its `serialize()` returns bytes). A 66-character tx hash is also accepted for a transaction that is already mined. ```bash cURL theme={null} curl -X POST "https://api.webacy.com/scan/0xUserAddress.../transactions" \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "tx": { "from": "0xUserAddress...", "raw": "0x02f00180843b9aca008506fc23ac00830186a094d8da6bf26964af9d7eed9e03e53415d37aa96045872386f26fc1000080c0" }, "chain": 1, "domain": "app.example.com" }' ``` ```typescript TypeScript theme={null} import { ThreatClient } from '@webacy-xyz/sdk'; import { Transaction } from 'ethers'; const client = new ThreatClient({ apiKey: process.env.WEBACY_API_KEY }); // The transaction your dApp is about to ask the user to sign const raw = Transaction.from({ type: 2, chainId: 1, to: '0xContractAddress...', data: '0xTransactionData...', value: 0n, nonce: 12, gasLimit: 100_000n, maxFeePerGas: 30_000_000_000n, maxPriorityFeePerGas: 1_000_000_000n, }).unsignedSerialized; const result = await client.scan.scanTransaction('0xUserAddress...', { tx: { from: '0xUserAddress...', raw }, chain: 1, // Ethereum mainnet domain: 'connected-dapp.com', }); // One item per simulated asset movement (or approval): party = the signer, // counterparty = who receives / can spend, asset = the token contract. const { simulation } = result as unknown as TransactionScanResponse; for (const item of simulation) { const { txData, counterpartyRisk, assetRisk } = item; console.log(`${txData.changeType} ${txData.rawAmount ?? ''} ${txData.symbol ?? txData.assetType} → ${txData.counterpartyAddress}`); if ((counterpartyRisk.high ?? 0) > 0 || (assetRisk.high ?? 0) > 0) { console.warn('⛔ High risk: ', counterpartyRisk.issues?.flatMap((i) => i.tags.map((t) => t.name))); } if (counterpartyRisk.overallRisk === undefined) { // The recipient could not be scored (provider outage or budget) — treat as unknown, not safe console.warn('⚠️ Recipient risk unavailable, ask the user to double-check the address'); } } interface TransactionScanResponse { simulation: Array<{ partyRisk: AddressRisk; counterpartyRisk: AddressRisk; /** `address` is `null` for the native asset (ETH) */ assetRisk: AddressRisk & { address: string | null }; txData: { changeType: 'TRANSFER' | 'APPROVE'; assetType?: 'NATIVE' | 'ERC20' | 'ERC721' | 'ERC1155'; rawAmount?: string; symbol?: string; partyAddress: string; counterpartyAddress: string; assetAddress: string | null; }; /** Attached to the first item only, when the calldata calls a known-risky function */ functionRisk?: { selector: string; functionName: string; riskLevel: string; description: string }; }>; block?: number | null; // absent / null for a pending (unsigned) transaction chain: string; descriptor: string; // signed TLV descriptor (hardware-wallet integrations) timestamp: string; } // When a party could not be scored (provider outage or time budget) only `address` is present — // never read a missing score as "clean". interface AddressRisk { address: string; overallRisk?: number; // 0–100 high?: number; // count of high-severity findings medium?: number; issues?: Array<{ tags: Array<{ key: string; name: string; description: string; severity: number }> }>; } ``` ```python Python theme={null} import requests response = requests.post( "https://api.webacy.com/scan/0xUserAddress.../transactions", headers={ "x-api-key": "YOUR_API_KEY", "Content-Type": "application/json" }, json={ "tx": { "from": "0xUserAddress...", "raw": "0x02f00180843b9aca008506fc23ac00830186a094d8da6bf26964af9d7eed9e03e53415d37aa96045872386f26fc1000080c0" }, "chain": 1, "domain": "app.example.com" } ) result = response.json() for item in result["simulation"]: tx = item["txData"] print(tx["changeType"], tx.get("rawAmount"), tx.get("symbol") or tx.get("assetType"), "->", tx["counterpartyAddress"]) if item["counterpartyRisk"].get("high", 0) > 0: print("HIGH RISK counterparty:", [t["name"] for i in item["counterpartyRisk"].get("issues", []) for t in i["tags"]]) ``` **What to show users:** | Field | What It Means | Display Priority | | - | - | - | | `simulation[].txData` | Each asset movement (`TRANSFER`) or approval (`APPROVE`) the transaction would cause: amount, token, recipient / spender | Always show | | `simulation[].counterpartyRisk` | Risk profile of the recipient or spender (`overallRisk` 0–100, `high` / `medium` counts, tagged `issues`) | Show with color coding — `high > 0` means block or strong warning | | `simulation[].assetRisk` | Risk profile of the token contract involved | Show when `high > 0` | | `simulation[0].functionRisk` | Present on the first item when the calldata calls a known-risky function (e.g. `setApprovalForAll`) | Show prominently if present | | `block` | Absent (or `null`) for a pending transaction, the block number for a mined one | Informational | > [!NOTE] > > The chain can be passed either as the numeric `chain` in the body (`1`, `56`, `137`, `10`, `42161`, `8453`) or as the `?chain=` query (`eth`, `bsc`, `pol`, `opt`, `arb`, `base`); the query wins when both are present. `tx.from` must match the `fromAddress` in the path. > [!WARNING] > > **An empty `simulation` array is inconclusive, not safe.** It means the simulation produced no asset movement and the calldata named no recipient or spender to score — a call that reverts, a contract call with no transfer, or a degraded simulation read. Treat it as *unknown* and ask the user to verify the address, never as a green light. A party whose `overallRisk` / `high` / `medium` are missing (only `address` present) could not be scored in time — same rule. > [!WARNING] > > **Supported chain IDs:** 1 (ETH), 56 (BSC), 137 (Polygon), 10 (Optimism), 42161 (Arbitrum), 8453 (Base) ### EIP-712 Permit Signature Verification Permit signatures are one of the most dangerous attack vectors. A single signature can authorize unlimited token spending without any on-chain transaction. > [!WARNING] > > **The Silent Drain**: Unlike regular transactions, permit signatures don't show up on block explorers until the attacker uses them. A user can sign a permit and see nothing happen—until days later when everything is gone. ```bash cURL theme={null} curl -X POST "https://api.webacy.com/scan/0xUserAddress.../eip712" \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "msg": { "from": "0xUserAddress...", "data": { "types": { "EIP712Domain": [ {"name": "name", "type": "string"}, {"name": "version", "type": "string"}, {"name": "chainId", "type": "uint256"}, {"name": "verifyingContract", "type": "address"} ], "Permit": [ {"name": "owner", "type": "address"}, {"name": "spender", "type": "address"}, {"name": "value", "type": "uint256"}, {"name": "nonce", "type": "uint256"}, {"name": "deadline", "type": "uint256"} ] }, "primaryType": "Permit", "domain": { "name": "USD Coin", "version": "2", "chainId": 1, "verifyingContract": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48" }, "message": { "owner": "0xUserAddress...", "spender": "0xSuspiciousContract...", "value": "115792089237316195423570985008687907853269984665640564039457584007913129639935", "nonce": 0, "deadline": 1893456000 } } }, "domain": "suspicious-site.com" }' ``` ```typescript TypeScript theme={null} const result = await client.scan.scanEip712( '0xUserAddress...', { msg: { from: '0xUserAddress...', data: { types: { EIP712Domain: [ { name: 'name', type: 'string' }, { name: 'version', type: 'string' }, { name: 'chainId', type: 'uint256' }, { name: 'verifyingContract', type: 'address' }, ], Permit: [ { name: 'owner', type: 'address' }, { name: 'spender', type: 'address' }, { name: 'value', type: 'uint256' }, { name: 'nonce', type: 'uint256' }, { name: 'deadline', type: 'uint256' }, ], }, primaryType: 'Permit', domain: { name: 'USD Coin', version: '2', chainId: 1, verifyingContract: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', }, message: { owner: '0xUserAddress...', spender: '0xSuspiciousContract...', value: '115792089237316195423570985008687907853269984665640564039457584007913129639935', nonce: 0, deadline: 1893456000, }, }, }, domain: 'suspicious-site.com', } ); // The spender / recipient named in the typed data is scored as the // counterparty; the verifying contract (or `token` / `contract` fields) as the party. const { simulation } = result as unknown as Eip712ScanResponse; if ((simulation.counterpartyRisk?.high ?? 0) > 0 || simulation.domainRisk?.riskLevel === 'high') { console.error('⛔ DANGEROUS SIGNATURE DETECTED'); console.error(`Spender ${simulation.counterpartyRisk?.address} is flagged:`, simulation.counterpartyRisk?.issues?.flatMap((i) => i.tags.map((t) => t.name))); console.error('This signature could drain your entire wallet.'); // Block the signature } interface Eip712ScanResponse { simulation: { partyRisk?: AddressRisk & { allAddressesChecked: string[] }; counterpartyRisk?: AddressRisk & { allAddressesChecked: string[] }; domainRisk?: { riskLevel: 'low' | 'medium' | 'high' | 'unknown'; description: string }; functionRisk?: { selector: string; functionName: string; riskLevel: string; risks: string[] }; }; chain: string; descriptor: string; timestamp: string; } ``` ```python Python theme={null} response = requests.post( "https://api.webacy.com/scan/0xUserAddress.../eip712", headers={ "x-api-key": "YOUR_API_KEY", "Content-Type": "application/json" }, json={ "msg": { "from": "0xUserAddress...", "data": { "types": { "EIP712Domain": [ {"name": "name", "type": "string"}, {"name": "version", "type": "string"}, {"name": "chainId", "type": "uint256"}, {"name": "verifyingContract", "type": "address"} ], "Permit": [ {"name": "owner", "type": "address"}, {"name": "spender", "type": "address"}, {"name": "value", "type": "uint256"}, {"name": "nonce", "type": "uint256"}, {"name": "deadline", "type": "uint256"} ] }, "primaryType": "Permit", "domain": { "name": "USD Coin", "version": "2", "chainId": 1, "verifyingContract": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48" }, "message": { "owner": "0xUserAddress...", "spender": "0xSuspiciousContract...", "value": "115792089237316195423570985008687907853269984665640564039457584007913129639935", "nonce": 0, "deadline": 1893456000 } } }, "domain": "suspicious-site.com" } ) ``` **Key red flags to surface:** | Red Flag | What It Means | | - | - | | `value` = max uint256 | Unlimited token approval | | Unknown `spender` | Approving unknown contract | | Long `deadline` | Signature valid for extended period | | `simulation.counterpartyRisk.high > 0` | The spender / recipient is a known drainer, hacker or sanctioned address | | `simulation.domainRisk.riskLevel` = `high` | The dApp `domain` you passed is a known phishing site | | `simulation.functionRisk` present | The typed data embeds calldata for a risky function (Safe `execTransaction`, delegatecall, ownership transfer, …) | > [!NOTE] > > Only Ethereum mainnet is supported for EIP-712 scans: `data.domain.chainId` must be `1` (or pass `?chain=eth`). `msg.from` must match the `fromAddress` in the path. Pass the dApp origin as `domain` to get `simulation.domainRisk`. *** ## Approval Risk Management Users often have approvals they've forgotten about. Help them understand their exposure. ### Current Approval Scanning Show users their existing approvals before they add more. ```bash cURL theme={null} curl -X GET "https://api.webacy.com/wallets/0xUserAddress.../approvals?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} const approvals = await client.wallets.getApprovals( '0xUserAddress...', { chain: Chain.ETH } ); // Categorize by risk const dangerous = approvals.approvals.filter(a => a.isUnlimited && (a.spenderRisk === 'high' || !a.spenderVerified) ); const unlimited = approvals.approvals.filter(a => a.isUnlimited && a.spenderRisk !== 'high' ); console.log(`⛔ ${dangerous.length} dangerous approvals`); console.log(`⚠️ ${unlimited.length} unlimited approvals`); console.log(`Total approvals: ${approvals.approvals.length}`); ``` ```python Python theme={null} response = requests.get( "https://api.webacy.com/wallets/0xUserAddress.../approvals", params={"chain": "eth"}, headers={"x-api-key": "YOUR_API_KEY"} ) ``` ### Dangerous Approval Detection Flag approvals that could be used to drain the wallet. ```typescript theme={null} interface ApprovalRisk { token: string; spender: string; riskFactors: string[]; recommendedAction: 'revoke' | 'review' | 'ok'; } function assessApprovalRisk(approval: Approval): ApprovalRisk { const riskFactors: string[] = []; // Check for unlimited approval if (approval.isUnlimited) { riskFactors.push('Unlimited approval amount'); } // Check if spender is known if (!approval.spenderName) { riskFactors.push('Unknown spender contract'); } // Check if spender contract still exists if (approval.spenderDeployed === false) { riskFactors.push('Spender contract no longer exists'); } // Check spender risk score if (approval.spenderRisk === 'high') { riskFactors.push('Spender flagged as high risk'); } // Determine action let recommendedAction: 'revoke' | 'review' | 'ok' = 'ok'; if (riskFactors.length >= 2 || approval.spenderRisk === 'high') { recommendedAction = 'revoke'; } else if (riskFactors.length === 1) { recommendedAction = 'review'; } return { token: approval.symbol, spender: approval.spender, riskFactors, recommendedAction, }; } ``` *** ## Recipient Verification Before a user sends funds, verify the recipient address isn't part of an attack. ### Address Poisoning Check ```bash cURL theme={null} curl -X GET "https://api.webacy.com/addresses/0xRecipient.../poisoning?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} const poisoning = await client.addresses.checkPoisoning( '0xRecipient...', { chain: Chain.ETH } ); if (poisoning.is_poisoned) { // Stop the transaction return { blocked: true, reason: 'Address Poisoning Detected', message: 'This address appears to be part of an address poisoning attack. ' + 'It closely resembles a legitimate address you\'ve interacted with. ' + 'Please verify the full address character by character.', similarTo: poisoning.similar_addresses }; } ``` ```python Python theme={null} response = requests.get( "https://api.webacy.com/addresses/0xRecipient.../poisoning", params={"chain": "eth"}, headers={"x-api-key": "YOUR_API_KEY"} ) ``` ### Risk Profiling Get a quick risk assessment of any recipient. ```bash cURL theme={null} curl -X GET "https://api.webacy.com/addresses/0xRecipient.../quick-profile?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} const profile = await client.addresses.getQuickProfile( '0xRecipient...', { chain: Chain.ETH } ); // Show risk information on the confirmation screen const riskDisplay = { score: profile.riskScore, level: profile.riskLevel, accountAge: profile.accountAge, warning: profile.riskLevel === 'high' ? 'This address has been flagged as high risk' : null }; ``` ```python Python theme={null} response = requests.get( "https://api.webacy.com/addresses/0xRecipient.../quick-profile", params={"chain": "eth"}, headers={"x-api-key": "YOUR_API_KEY"} ) ``` *** ## Complete Integration Workflow ### Pre-Signing Check Flow ```mermaid theme={null} flowchart TD A[Transaction/Signature Request] --> B{Is EIP-712 Signature?} B -->|Yes| C[Scan EIP-712] B -->|No| D{Has Recipient?} D -->|Yes| E[Check Address Poisoning] D -->|No| F[Simulate Transaction] E --> F C --> G{Risk Level?} F --> G G -->|Critical| H["⛔ BLOCK - Don't allow signing"] G -->|High| I["⚠️ Strong Warning + Details"] G -->|Medium| J["Show Caution + Asset Changes"] G -->|Low| K["Show Asset Changes"] I --> L{User Confirms Warning?} J --> M[Allow Signing] K --> M L -->|Yes| M L -->|No| N[Cancel Transaction] ``` ### Approval Health Check Flow ```mermaid theme={null} flowchart TD A[User Opens Wallet] --> B[Fetch Current Approvals] B --> C{Any Dangerous Approvals?} C -->|Yes| D["Show Alert Badge"] C -->|No| E[Normal View] D --> F[User Views Approvals] F --> G[Categorize by Risk] G --> H["🔴 Dangerous (Revoke Now)"] G --> I["🟡 Unlimited (Review)"] G --> J["🟢 Safe"] ``` ### Full TypeScript Implementation > [accordion] Complete Transaction Security Module > > ```typescript theme={null} > import { ThreatClient, Chain, type ScanChainId } from '@webacy-xyz/sdk'; > > const client = new ThreatClient({ > apiKey: process.env.WEBACY_API_KEY, > defaultChain: Chain.ETH, > }); > > type RiskLevel = 'low' | 'medium' | 'high' | 'critical'; > > interface PreSigningResult { > allowed: boolean; > riskLevel: RiskLevel; > assetChanges?: Array<{ > type: 'TRANSFER' | 'APPROVE'; > symbol: string; > amount: string; > counterparty: string; > }>; > warnings: string[]; > blockReason?: string; > } > > // Shape of the API responses (see the tables above). A party that could not be > // scored in time carries only `address` — `levelOf` treats that as unknown. > interface AddressRisk { > address: string; > overallRisk?: number; > high?: number; > medium?: number; > issues?: Array<{ tags: Array<{ key: string; name: string }> }>; > } > interface TxScanResponse { > simulation: Array<{ > partyRisk: AddressRisk; > counterpartyRisk: AddressRisk; > assetRisk: AddressRisk; > txData: { changeType: 'TRANSFER' | 'APPROVE'; assetType?: string; rawAmount?: string; symbol?: string; counterpartyAddress: string }; > functionRisk?: { functionName: string; description: string }; > }>; > } > interface Eip712ScanResponse { > simulation: { > counterpartyRisk?: AddressRisk; > partyRisk?: AddressRisk; > domainRisk?: { riskLevel: string }; > functionRisk?: { functionName: string; risks: string[] }; > }; > } > > // Map an address risk profile to a display level > function levelOf(...risks: Array): RiskLevel { > if (risks.some((r) => (r?.high ?? 0) > 0)) return 'critical'; > if (risks.some((r) => (r?.medium ?? 0) > 0)) return 'high'; > if (risks.some((r) => (r?.overallRisk ?? 0) >= 30)) return 'medium'; > // A party that could not be scored (no overallRisk) is unknown, not low > if (risks.some((r) => r && r.overallRisk === undefined)) return 'medium'; > return 'low'; > } > > function tagNames(risk?: AddressRisk): string[] { > return risk?.issues?.flatMap((i) => i.tags.map((t) => t.name)) ?? []; > } > > // Main pre-signing check > async function preSigningCheck( > userAddress: string, > request: TransactionRequest | EIP712Request, > chain: ScanChainId, > dappDomain?: string > ): Promise { > > // Determine request type > if (isEIP712Request(request)) { > return checkEIP712Signature(userAddress, request, dappDomain); > } else { > return checkTransaction(userAddress, request, chain, dappDomain); > } > } > > // EIP-712 signature check > async function checkEIP712Signature( > userAddress: string, > request: EIP712Request, > dappDomain?: string > ): Promise { > const result = (await client.scan.scanEip712(userAddress, { > msg: { > from: userAddress, > data: request.typedData, > }, > domain: dappDomain, > })) as unknown as Eip712ScanResponse; > > const warnings: string[] = []; > const { counterpartyRisk, partyRisk, domainRisk, functionRisk } = result.simulation; > > // Check for permit signatures > if (request.typedData.primaryType.toLowerCase().includes('permit')) { > warnings.push('This is a PERMIT signature - it can authorize token spending'); > > // Check for unlimited approval > const message = request.typedData.message; > if (message.value === '115792089237316195423570985008687907853269984665640564039457584007913129639935') { > warnings.push('UNLIMITED token approval requested'); > } > } > > if (functionRisk) { > warnings.push(`Risky function in typed data: ${functionRisk.functionName}`, ...functionRisk.risks); > } > if (domainRisk?.riskLevel === 'high') { > warnings.push(`${dappDomain} is a known malicious domain`); > } > > // Block critical risk: the spender / recipient is a flagged address. > // No scored party at all (neither counterparty nor contract) is > // inconclusive, not safe — never answer 'low' for it. > const scored = levelOf(counterpartyRisk, partyRisk); > const riskLevel: RiskLevel = > !counterpartyRisk && !partyRisk && scored === 'low' ? 'medium' : scored; > if (riskLevel === 'critical' || domainRisk?.riskLevel === 'high') { > return { > allowed: false, > riskLevel: 'critical', > warnings: [...warnings, ...tagNames(counterpartyRisk)], > blockReason: 'This signature matches known malicious patterns and could drain your wallet.', > }; > } > > return { > allowed: true, > riskLevel, > warnings, > }; > } > > // Transaction check > async function checkTransaction( > userAddress: string, > request: TransactionRequest, > chain: ScanChainId, > dappDomain?: string > ): Promise { > const warnings: string[] = []; > > // Check recipient for poisoning if present > if (request.to) { > const poisoning = await client.addresses.checkPoisoning(request.to, { > chain: chainIdToChain(chain), > }); > > if (poisoning.is_poisoned) { > return { > allowed: false, > riskLevel: 'critical', > warnings: ['Address poisoning attack detected'], > blockReason: 'This address appears to be part of an address poisoning scam.', > }; > } > } > > // Simulate transaction — `raw` is the serialized unsigned transaction > // (ethers `Transaction.from({...}).unsignedSerialized`, viem `serializeTransaction`) > const result = (await client.scan.scanTransaction(userAddress, { > tx: { from: userAddress, raw: request.raw }, > chain, > domain: dappDomain, > })) as unknown as TxScanResponse; > > const assetChanges = result.simulation.map((item) => ({ > type: item.txData.changeType, > symbol: item.txData.symbol ?? item.txData.assetType ?? 'asset', > amount: item.txData.rawAmount ?? (item.txData.changeType === 'APPROVE' ? 'approval' : ''), > counterparty: item.txData.counterpartyAddress, > })); > > // Approvals: the spender is the risk — an unlimited approval to a flagged > // address is the dominant drainer pattern > for (const item of result.simulation) { > if (item.txData.changeType === 'APPROVE') { > warnings.push(`Approval to ${item.txData.counterpartyAddress}${(item.counterpartyRisk.high ?? 0) > 0 ? ' (FLAGGED ADDRESS)' : ''}`); > } > if (item.functionRisk) { > warnings.push(`Risky function: ${item.functionRisk.functionName} — ${item.functionRisk.description}`); > } > } > > // Block critical transactions: any recipient / spender / token flagged high > const scored = levelOf( > ...result.simulation.flatMap((item) => [item.counterpartyRisk, item.assetRisk]), > ); > // An empty simulation is inconclusive, not safe (see the warning above): > // nothing was scored, so never answer 'low' for it. > const riskLevel: RiskLevel = > result.simulation.length === 0 && scored === 'low' ? 'medium' : scored; > if (riskLevel === 'critical') { > return { > allowed: false, > riskLevel: 'critical', > assetChanges, > warnings: [...warnings, ...result.simulation.flatMap((item) => tagNames(item.counterpartyRisk))], > blockReason: 'This transaction has been identified as dangerous.', > }; > } > > return { > allowed: true, > riskLevel, > assetChanges, > warnings, > }; > } > > // Approval health check > async function getApprovalHealth( > userAddress: string, > chain: Chain > ): Promise<{ > dangerous: number; > unlimited: number; > total: number; > needsAttention: boolean; > approvals: ApprovalInfo[]; > }> { > const result = await client.wallets.getApprovals(userAddress, { chain }); > > const categorized = result.approvals.map(a => ({ > ...a, > category: categorizeApproval(a), > })); > > const dangerous = categorized.filter(a => a.category === 'dangerous').length; > const unlimited = categorized.filter(a => a.category === 'unlimited').length; > > return { > dangerous, > unlimited, > total: result.approvals.length, > needsAttention: dangerous > 0, > approvals: categorized, > }; > } > > function categorizeApproval(approval: Approval): 'dangerous' | 'unlimited' | 'safe' { > if (approval.spenderRisk === 'high' || !approval.spenderVerified) { > return 'dangerous'; > } > if (approval.isUnlimited) { > return 'unlimited'; > } > return 'safe'; > } > > // Helper to convert chain ID to Chain enum > function chainIdToChain(chainId: ScanChainId): Chain { > const mapping: Record = { > 1: Chain.ETH, > 56: Chain.BSC, > 137: Chain.POL, > 10: Chain.OPT, > 42161: Chain.ARB, > 8453: Chain.BASE, > }; > return mapping[chainId] || Chain.ETH; > } > > // Type guards > function isEIP712Request(request: any): request is EIP712Request { > return 'typedData' in request; > } > > interface TransactionRequest { > /** Serialized unsigned transaction (ethers `Transaction.unsignedSerialized`, viem `serializeTransaction`) */ > raw: string; > /** Recipient, when known, for the address-poisoning pre-check */ > to?: string; > } > > interface EIP712Request { > typedData: { > types: Record>; > primaryType: string; > domain: Record; > message: Record; > }; > } > ``` *** ## Example Addresses for Testing ### Permit Phishing | Address | Chain | Description | | - | - | - | | `0x84672cc56b6dad30cfa5f9751d9ccae6c39e29cd` | ETH | AI Protocol user permit phishing | | `0x624Fc3Dc249E37E8BFd3e834C4dF81Ff2dA1D0Ca` | BSC | Malicious permit scammer | ### Address Poisoning | Address | Chain | Description | | - | - | - | | `0xd9A1C3788D81257612E2581A6ea0aDa244853a91` | ETH | \$68M WBTC attack | | `0x5f90e59d0a03fd2f8c56b8cc896c5b42594eb3a0` | ETH | \$50M poisoning drain | ### Known Drainers | Address | Chain | Attribution | | - | - | - | | `0xe7d13137923142a0424771e1778865b88752b3c7` | ETH | WalletConnect phishing campaign | | `0x1aDf5DAc035AE7FEC116e8345e005FB88d542f53` | ETH | Phishing scammer | ### Clean Addresses (for comparison) | Address | Chain | Description | | - | - | - | | `0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045` | ETH | Vitalik's wallet (low risk) | | `0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48` | ETH | USDC contract (verified) | *** ## API Quick Reference | Endpoint | Use Case | Response Time | | - | - | - | | `POST /scan/{fromAddress}/transactions` | Transaction simulation | \~1–3s (cold), \~50ms (cached) | | `POST /scan/{fromAddress}/eip712` | Signature analysis | \~1–3s (cold), \~50ms (cached) | | `GET /addresses/{address}/poisoning` | Address poisoning | \~300ms | | `GET /addresses/{address}/quick-profile` | Recipient risk | \~200ms | | `GET /wallets/{address}/approvals` | Approval list | \~400ms | *** ## Next Steps > [card] [Get Your API Key](https://developers.webacy.co/billing) > > Start protecting your users > [card] [API Reference](../api-reference/introduction) > > Complete endpoint documentation > [card] [Install the SDK](../sdk/installation) > > TypeScript SDK for integration > [card] [Address Poisoning](../glossary/address-poisoning) > > Learn more about this attack vector # Use Cases, Guides, and Walkthroughs Source: https://docs.webacy.com/use-cases-guides-walkthroughs Guides and walkthroughs for building with Webacy: wallet screening, DEX token risk, vault due diligence, stablecoin monitoring, and trading bot integrations. The Learn section contains practical guides, use cases, and walkthroughs for implementing Webacy across a wide range of blockchain products and workflows. Whether you're integrating wallet screening into an exchange, monitoring stablecoins in real time, building an AI agent, or creating automated compliance policies, these guides demonstrate how Webacy's intelligence can be applied to solve real-world problems. Unlike the API Reference, which documents individual endpoints, or the Build section, which explains how to integrate the platform, Learn focuses on implementation patterns, architecture, and use cases to help you build production-ready applications. ## Example Topics The Learn section will continue to grow as new intelligence engines and products are introduced. Topics include: * Building a wallet screening service * Implementing transaction monitoring * Monitoring stablecoins and vaults in real time * Creating risk-based policy engines * Exchange listing and delisting workflows * Treasury monitoring and risk controls * Building AI agents with MCP * Protecting users from address poisoning * Regulatory and AML implementation patterns # Vault Methodology Source: https://docs.webacy.com/vault Webacy’s vault methodology assesses the probability of financial loss arising from a vault’s exposures, liquidity, market conditions, infrastructure, concentration, and governance. Vaults connect deposited assets to strategies, markets, and protocols. Their risk depends on both the assets they hold and how those assets are deployed, managed, valued, and withdrawn. Our framework evaluates these relationships together to identify conditions that could lead to loss. ## Assessment framework The rating framework comprises six risk types. Each contains risk categories assessed through underlying rating factors: specific evidence, conditions, and indicators relevant to that category. ![Vault Risk Framework](https://mintcdn.com/webacy/wYq0X5OYKq2WX0JJ/images/vault-risk-framework.png?fit=max\&auto=format\&n=wYq0X5OYKq2WX0JJ\&q=85\&s=139208f065b97f5930ba0c43a4879cef) ### Credit risk Credit risk assesses the potential for losses when borrowers, counterparties, or underlying exposures fail to meet their obligations. * **Credit and counterparties:** The quality of credit exposures and the reliability of counterparties on which the vault depends. * **Claim and loss allocation:** The nature of depositors’ claims and how losses are distributed across participants if an underlying exposure fails. ### Liquidity risk Liquidity risk assesses whether depositors can withdraw or exit their exposure without material loss. * **Redemption and exit:** The availability and reliability of withdrawal routes, including the constraints that may affect access to deposited assets under normal and stressed conditions. ### Market risk Market risk assesses how changes in market conditions and asset valuations could affect the vault. * **Valuation and oracles:** The reliability of asset valuations and price information used to value positions and support the vault’s mechanisms. ### Concentration risk Concentration risk assesses whether a limited set of exposures or dependencies could amplify losses or restrict access to funds. * **Concentration:** The extent to which the vault depends on particular assets, markets, counterparties, or strategies. * **Redemption and exit:** How concentrated exposures or dependencies could limit withdrawal capacity or make exits more difficult during stress. ### Operational risk Operational risk assesses whether the vault’s technical infrastructure and supporting systems can function securely and reliably. * **Code and chain:** Risks arising from the vault’s smart contracts and the blockchain infrastructure on which they operate. * **Bridges and representations:** Risks introduced by cross-chain mechanisms and wrapped or bridged assets used by the vault. * **Events and incidents:** Operational failures and security incidents, including their implications for the vault’s continued operation. ### Governance risk Governance risk assesses how control, decision-making, and strategy oversight affect depositors’ exposure to loss. * **Admin controls and governance:** The allocation of authority and the powers available to change the vault’s configuration, operation, or exposures. * **Events and incidents:** Governance-related events and their implications for accountability and depositor protection. * **Curator and mandate:** The role and responsibilities of the curator, the scope of the vault’s strategy, and the controls governing how that mandate is implemented. ## How the assessment evolves Webacy combines on-chain and off-chain evidence. On-chain risk is assessed in real time. Off-chain risk is assessed as close to real time as available information allows, depending on the availability and verification of documentation, disclosures, and other evidence. Underlying rating factors inform category assessments, which contribute to the six risk types and the overall rating. The assessment considers how risks interact. For example, concentrated allocations may increase both exposure to loss and the difficulty of exiting during a disruption. Categories that appear under more than one risk type are assessed from each relevant perspective. Redemption and exit, for example, addresses both general withdrawal availability and the constraints created by concentration. **Supporting records are informational.** They provide context and evidence for the assessment and are separate from the six risk types that contribute to the rating. > [!TIP] > > **Access to underlying rating factors** > > This page describes the risk types and categories within DD’s vault framework. The detailed rating factors underlying each category are shared with partners working directly with DD and are available upon request through a discussion with our team. > > Contact DD to learn more about the factors relevant to your vault or assessment needs. # Vault Incidents Source: https://docs.webacy.com/vault-incidents Curated timeline of DeFi yield-vault exploits, depegs, and governance failures, with event categories and root-cause analysis for ERC-4626 stablecoin vaults. The [Vault Incidents](https://depeg-monitor.webacy.co/vault-events) page is a curated timeline of exploits, depegs, and governance failures that affected DeFi yield vaults — protocols where users deposit stablecoins to earn yield. Unlike the real-time risk score, this is a historical record with root-cause analysis. # Event categories | **Category** | **Description** | | :- | :- | | **Vault contract** | Exploit or vulnerability in the vault's own smart contract code. | | **Strategy / protocol** | The underlying yield strategy or protocol (e.g. Aave, Compound, Curve) had an incident. | | **Infrastructure** | Bridge exploit, oracle manipulation, or cross-chain infrastructure failure affecting vault TVL. | | **Stablecoin** | The stablecoin held in the vault depegged, causing vault share value to fall. | | **Governance / admin** | Multisig compromise, malicious upgrade, or governance attack on the protocol. | # Attack mechanisms | **Mechanism** | **Description** | | :- | :- | | **Oracle manipulation** | Price feed manipulated to allow under-collateralised borrows or inflated vault share prices. | | **Flash loan** | Single-transaction loan used to temporarily distort pool prices or drain reserves. | | **Reentrancy** | Contract called back before state is updated, allowing multiple withdrawals against one deposit. | | **Logic error** | Bug in accounting, share calculation, or reward distribution. | | **Donation attack** | Sending tokens directly to a contract manipulates share price calculations. | | **Collateral mispricing** | LST or illiquid collateral mispriced relative to the underlying, creating exploitable spread. | | **Insolvency cascade** | Undercollateralised positions trigger liquidations that propagate across protocols. | | **Liquidity freeze** | Withdrawals blocked due to governance action, regulatory intervention, or protocol pause. | | **Bridge exploit** | Validator compromise or logic error in a cross-chain bridge draining bridged stablecoin TVL. | # Event type badges | **Badge** | **Meaning** | | :- | :- | | **Exploit / Hack** | Active smart contract exploit — funds lost or at immediate risk. | | **Rug / Drain** | Insider-initiated fund drain or exit scam. | | **Depeg** | Stablecoin held by the vault lost its peg, reducing vault NAV. | | **Oracle** | Oracle manipulation — not necessarily an exploit but abnormal price feed. | | **Incident** | Other category: governance issue, pause, admin action. | # Vault Ratings Source: https://docs.webacy.com/vault-ratings How Webacy scores DeFi vaults on a 0–100 composite risk scale from weighted sub-scores, additive penalties, and hard state floors. > [!NOTE] > > This is the **V2 risk-score methodology** — the 0–100 composite that the V3 vault surface maps to a letter grade. For the V3 framework (seven weighted categories, composite letter grade, criteria taxonomy) see [Vault Risk V3](/api-reference/vault-risk-v3/v3-overview). The 0–100 score here is the same value V3 reports as `composite.score`. **How it works:** Every vault gets a 0–100 composite risk score (0 = safe, 100 = critical). It's built from \~20 sub-scores, each weighted by importance. Additionally, additive penalties and hard state floors can force the score higher for binary danger conditions. A higher score means a riskier vault. > [!NOTE] > > Every number in the score can be traced back to a specific signal. The API exposes the full sub-score breakdown so we can tell a user "this vault scores 78/100 because redemptions are currently closed and the admin key is an EOA with no timelock" — not just a number. ## Letter grade The 0–100 composite maps to a letter grade via the standard `grading_scheme=v2` scale (lower risk = better grade): | Grade | Risk score | | Grade | Risk score | | - | - | - | - | - | | A+ | 0–5 | | C+ | 47–56 | | A | 6–12 | | C | 57–66 | | A- | 13–20 | | C- | 67–77 | | B+ | 21–28 | | D | 78–88 | | B | 29–37 | | F | 89–100 | | B- | 38–46 | | | | See the [full grading contract](/api-reference/vault-risk-v3/framework-methodology#letter-grade-mapping). # Outputs | Output | What it means | | - | - | | Composite Score (0–100) | Overall risk — weighted sum of all sub-scores + penalties + floors | | Tier | `low` / `medium` / `high` / `critical` — bucketed label for the composite | | listing\_verdict | `safe_to_list` / `caution` / `review_required` / `do_not_list` — actionable recommendation | | withdrawal\_state | `normal` / `constrained` / `illiquid` / `locked` / `blocked` — current exit condition | | liquidity\_tier | `open` / `mild_stress` / `constrained` / `illiquid` / `locked` — named label for the liquidity sub-score | | governance\_score | Separate sub-score for governance quality specifically (centralization + upgrade + code + webacy code) | | pct\_tvl\_withdrawable | What % of the vault's TVL can actually be withdrawn right now | | solvency\_risk | Weighted sub-score for the "vault is losing money" signals | | liquidity\_risk | Weighted sub-score for the "users can't get out" signals | # Sub-scores The weight shows how much it contributes to the final composite. ### Contract and Code Quality | Signal | Weight | What it measures | | - | - | - | | Protocol Risk | 15% | Webacy's vault protocol-risk classification, Negligible → Blacklisted. The single largest weight because it captures protocol-level risk independent of the vault's own code. | | Upgrade Risk | 10% | Is the contract a proxy? Can it be upgraded? A vault that can be upgraded without a timelock is a rug vector. Timelocks reduce this score (7-day timelock = gold standard). | | Code Risk | 10% | Is the source code verified on-chain? How many audits does it have? Unverified = +65 sub-score because you can't audit what you can't read. | | Webacy Code Risk | 2% | Webacy's own vulnerability scan findings — reentrancy, unchecked calls, malicious external calls. | ### Governance and Control | Signal | Weight | What it measures | | - | - | - | | Centralization Risk | 12% | Who controls the vault? EOA owner (single key) = bad. Multisig = better. A 1-of-3 multisig is still weak — we score both the threshold (how many keys needed) and the ratio (how easy quorum is to reach). Also: does a single EOA hold the strategy manager role? | | Strategy Risk | 5% | Does the vault use external strategies or leverage? More strategies = more attack surface. | | Asset Risk | 5% | What's the underlying stablecoin? USDC/USDT/DAI = low. Algorithmic or niche stablecoins (USR, AUSD) = high. | ### Liquidity and Exit | Signal | Weight | What it measures | | - | - | - | | Closed Liquidity | 12% | Are deposits or redemptions currently paused/closed? Redemption closed = can't exit = +60 sub-score. One of the most impactful signals. | | Utilization Rate | 10% | For lending vaults: what % of the pool is currently borrowed? Above 95% = users can't withdraw. The curve is nonlinear — 98% scores 88/100, 100% scores 97/100. | | Looping Risk | 4% | Recursive lending (borrowing to re-deposit). Amplifies liquidation cascades. 80%+ looping = 70+ sub-score. | | Depeg Risk | 5% | Is the vault's share price below \$1? For stablecoins, any deviation is a red flag. Near-zero = vault collapsed. | ### Performance and Market Behavior | Signal | Weight | What it measures | | - | - | - | | TVL Outflow | 2% | Has the vault lost significant TVL recently? 50%+ drop = 100 sub-score. Signals loss of confidence. | | Size Risk | 2% | Small TVL vaults (\<\$50k) are riskier, less battle-tested, easier to manipulate. | | Maturity | 3% | How old is the vault? Brand new (\<5 weeks) = +40 sub-score. Time in production reduces risk. | ### How these sub-scores map to V3 categories In V3, you'll see these V2 sub-scores regrouped into [seven weighted risk categories](/api-reference/vault-risk-v3/framework-methodology#what-each-category-measures). The mapping below is a **conceptual correspondence** — it shows where each signal appears, not the exact scoring wiring (the V3 composite is computed from its own framework, not by re-bucketing these V2 weights). | V2 sub-score | V3 category | | - | - | | Protocol Risk, Upgrade Risk, Code Risk, Webacy Code Risk, Maturity | `smart_contract` | | Centralization Risk, timelock & pause controls, admin-change monitoring | `operational_governance` | | Asset Risk, Depeg Risk, Oracle quality | `asset_collateral` | | Closed Liquidity, Utilization Rate, Looping Risk, TVL Outflow, Size Risk | `market_liquidity` | | Strategy Risk | `counterparty` | `hack_exploit_history` is driven by the additive penalties and risk flags below (for example, recent exploit, ownership transfer, repeated pausing) rather than a single weighted sub-score. `chain_infrastructure` is reserved and carries no V2 signal today. For details on what each V3 category measures and representative criteria, see [What each category measures](/api-reference/vault-risk-v3/framework-methodology#what-each-category-measures). # Oracle Type Quality The oracle sub-score uses a **weakest-link model** — the worst oracle type found across all of the vault's underlying markets sets the floor. Oracle quality is scored by type: | Oracle Type | Base Score | Why | | - | - | - | | Major decentralized oracle networks | 8 | Battle-tested, multi-source, heartbeat monitoring | | wstETH / Pendle PT wrapped oracles | 18 | Derived from rebase math — manipulation surface if underlying is thin | | MorphoOracle / UrdOracle (single-source) | 28 | Single price source, no cross-reference | | Unknown / unverified | 40 | Can't assess what isn't disclosed | Additionally: any collateral token with **\<\$5M daily trading volume** raises the oracle sub-score floor to 55 (`thin_collateral_market` flag). Below that volume threshold, a well-capitalized attacker can move the price enough to overborrow against inflated collateral — the pattern behind the Mango Markets and Cream Finance exploits. # Additive Penalties These fire for specific dangerous combinations or events and add directly on top of the weighted composite. Multiple conditions stack independently. ### Interaction Penalties (Compound Risk) | Condition | Penalty | | - | - | | High utilization (>95%) + single concentrated borrower | +10 | | High utilization (>95%) + single concentrated depositor (holds ≥50% of shares) | +10 | | High utilization + major TVL outflow happening simultaneously | +10 | | Upgradeable contract + weak multisig (threshold ≤ 2) | +8 | | Pause function present + EOA control + no meaningful timelock | +8 | ### **Governance Behavior Penalties (on-chain activity)** | Condition | Penalty | | - | - | | Recent contract upgrade in last 30 days | +12 | | Recent contract upgrade in last 30 days **+ zero audits on record** | +32 (stacked) | | Repeated pausing (3+ times in 90 days) | +10 | | 1–2 pause events in 90 days | +5 | | Ownership transfer in last 90 days | +8 | ### **State & Structural Penalties** | Condition | Penalty | | - | - | | Dormant vault (very low activity, not new/bot-run) | +25 | | Market concentration >80% in single market | +10 | | Bad debt in underlying lending markets | +15 | | Tight liquidation buffer (\<5%) | +10 | | Exit liquidity \<5% of TVL | +10 | | Webacy contract risk flagged | +15 | | Webacy deployer risk flagged | +10 | | Oracle gap >3x (on-chain price vs market price) | +15 | | Collateral depegged >20% | +20 | | ERC-4626 vault used as live price oracle in lending market | +15 | ### **Yield & Liquidity Trap Penalties** | Condition | Penalty | | - | - | | Reward-dependent yield >90% of APY from emissions | +12 | | Reward-dependent yield >70% of APY from emissions | +8 | | Reward-dependent yield >50% of APY from emissions | +4 | | **Yield trap**: vault locked/illiquid + reward-dependent APY >70% | +15 | | **Shared collateral exposure**: flagged collateral token shared across multiple vaults | +10 | # Hard State Floors (binary minimums) These ensure a catastrophic condition can never be masked by a low smooth score. The composite cannot go *below* these values when the condition is active. | Condition | Floor | | - | - | | Redemptions closed | 75 | | Redemptions closed + utilization >95% | 80 | | Active depeg (share price \< 0.99) | 70 | | Oracle risk >60 + liquidation proximity >40 | 70 | | Exchange rate spike >2% (donation attack pattern) | 70 | | Dormant vault | 65 | | Exchange rate crash >1% (exploit in progress / collateral collapse) | 65 | | Yield trap active | 65 | | Exit illiquid (\<2% withdrawable) | 60 | | listing\_verdict = do\_not\_list | 75 (tier = critical) | | listing\_verdict = review\_required | 50 (tier = high) | # Computed-but-Zeroed Signals These are calculated and exposed in the API payload but don't add to the weighted composite — they feed into additive penalties or are surfaced directly for consumers. | Signal | What it is | | - | - | | Borrower Concentration | Top borrower's share of total borrow across the vault's underlying lending markets. If one whale controls 80% of borrowing, the vault's liquidity is hostage to them. | | Depositor Concentration | Top depositor's share of vault shares. A single whale exiting triggers a utilization spike that traps everyone else. | | Lender / LP Concentration | Full distribution of a vault's own depositors/LPs, not just the top one: a Herfindahl (HHI) index banded low → extreme, top-10 / top-30 supply shares, and the largest lenders' wallet addresses with their individual shares. Lets you see *who* the concentration is, not only how concentrated. Field `lender_concentration`. Currently populated for Morpho and Euler vaults; `null` wherever the pipeline hasn't sourced per-account positions (any other vault, or a Morpho / Euler vault not populated yet). | | Borrower Distribution | The debt-side counterpart to Lender / LP Concentration: the full distribution of the vault's borrowers across its underlying markets — an HHI banded low → extreme, top-10 / top-30 debt shares, and the largest borrowers' wallet addresses with their individual shares. Distinct from **Borrower Concentration** above, which is the top borrower's share alone. Field `borrower_concentration`. Currently populated for Morpho and Euler vaults; `null` wherever the pipeline hasn't sourced per-account positions. | | Curator Concentration | For curator-managed (Morpho) vaults: how concentrated the *curator's whole book* is across the markets they allocate to — an HHI over the curator's per-market supply banded low → extreme, plus top-10 / top-30 market shares and the largest markets by supply, along with the curator's address, its aggregate deployed supply and how many vaults it runs. Surfaces curator-level (cross-vault) concentration that a single vault's own view misses. Field `curator_concentration`. `null` when the vault isn't Morpho-backed (no curator) or the curator's book isn't populated yet. | | Governance Behavior | Recent on-chain governance events: contract upgrades (30d), pause events (90d), ownership transfers (90d). Structure-based scoring alone misses behavioral patterns. | | Yield Sustainability | Ratio of emissions-based APY to total APY. >70% = yield collapses when rewards end, causing TVL flight and utilization spike. | | Exchange Rate Velocity | Rate of change in vault share price since last checkpoint. Spike >2% = donation attack pattern (Venus wUSDM). Crash >1% = exploit in progress or collateral collapse. | | ERC-4626 Oracle Risk | Whether the vault's convertToAssets() function is being used as a live price oracle in a lending market. Direct asset donations inflate this rate without minting shares — enabling overborrowing against inflated collateral. | | Oracle Gap | Worst ratio between on-chain oracle price and real market price found across collateral tokens. 9x gap = oracle is stale or manipulable. | | Exit Liquidity Ratio | What fraction of TVL is withdrawable right now vs total deposited. | | Market Liquidity | Absolute USD liquidity available in the underlying lending markets. | | Market Concentration | What % of TVL is in the single largest lending market. | | Bad Debt | Realized losses in the underlying lending markets that won't be recovered. | | Momentum | 1-month vs 3-month CAGR divergence — is yield declining recently? | | Flow Risk | Net capital flows — large outflows signal institutional confidence loss. | | Fee Drain | Management + performance fees. >2% management fee = meaningful yield erosion. | | Volatility | Share price volatility over 3 months. | | Drawdown | Worst historical drawdown from peak. | | Return Loss | Lifetime or annualized return negative = vault is losing user capital. | # Risk Flags Flags are surfaced in the API alongside the score. Each maps to one or more of the conditions above. **Blocking flags** (force do\_not\_list): unverified, redemption\_closed, dormant **Non-blocking flags**: depeg · high\_looping\_exposure · no\_audits · eoa\_owner · pause\_capable · upgradeable · negative\_return · lockup\_7d · withdrawal\_delay · low\_tvl · new\_vault · deposit\_closed · inactive · subvault · thin\_collateral\_market · concentrated\_borrower · concentrated\_depositor · recent\_upgrade · unaudited\_upgrade · repeated\_pausing · ownership\_transfer · exchange\_rate\_spike · exchange\_rate\_crash · erc4626\_donation\_risk · reward\_dependent\_yield · yield\_trap · emergency\_deposit\_cap · shared\_collateral\_exposure # Vault Risk Intelligence Source: https://docs.webacy.com/vault-risk-intelligence Continuous DeFi vault risk scoring across six chains — composite scores, listing verdicts, withdrawal signals, and 90-day history. Webacy continuously scores thousands of DeFi vaults across Ethereum, Arbitrum, Base, Optimism, Polygon, and BSC (with more coverage coming soon). Every vault gets a composite risk score, a listing verdict, withdrawal signals, and a 90-day history. > [!NOTE] > > Want vault risk coverage on a chain that's not listed yet? [Contact the team](mailto:info@webacy.com) — we're actively expanding chain coverage. # Risk Tiers ![Screenshot 2026 04 13 At 11 51 17 AM](https://mintcdn.com/webacy/nHZ00OBCBxHAq-vy/images/Screenshot-2026-04-13-at-11.51.17-AM.png?fit=max\&auto=format\&n=nHZ00OBCBxHAq-vy\&q=85\&s=d55b0cc89038753dc9e4cb82a25f89d4) # Letter Grades Each vault receives a letter grade derived directly from its composite risk score on a standard 11-band scale. It is a **risk rating**: lower risk earns a better grade. **A+ is the lowest risk**, **F is the highest risk**. The grade always points the conventional way (A+ is best), while the underlying `vault_score` is a risk magnitude where higher means worse. Bands are tighter at the safe end and widen as risk rises. | Grade | Risk score | Grade | Risk score | | :- | :- | :- | :- | | A+ | 0–5 | C+ | 47–56 | | A | 6–12 | C | 57–66 | | A- | 13–20 | C- | 67–77 | | B+ | 21–28 | D | 78–88 | | B | 29–37 | F | 89–100 | | B- | 38–46 | | | The `vault_grade` field is available on all vault records alongside the numeric `vault_score` (0–100). # Listing Verdict Every vault receives a `listing_verdict` — a clear signal for teams deciding whether to integrate, list, or accept a vault as collateral. It's computed from the composite risk score plus hard blocking conditions, updated with every data refresh. ![Screenshot 2026 04 13 At 11 47 08 AM](https://mintcdn.com/webacy/nHZ00OBCBxHAq-vy/images/Screenshot-2026-04-13-at-11.47.08-AM.png?fit=max\&auto=format\&n=nHZ00OBCBxHAq-vy\&q=85\&s=b6d9b28e89f5bca9e812e56c566980e0) Available via `GET /vaults` → `listing_verdict` field on each vault item. # Withdrawal Risk The `withdrawal_risk` field tells you how freely users can exit a vault right now. For lending vaults it is computed from the lending market's utilization, refreshed every 6 hours by the vault pipeline, so it reflects on-chain liquidity as of the latest run. ![Screenshot 2026 04 13 At 11 47 39 AM](https://mintcdn.com/webacy/nHZ00OBCBxHAq-vy/images/Screenshot-2026-04-13-at-11.47.39-AM.png?fit=max\&auto=format\&n=nHZ00OBCBxHAq-vy\&q=85\&s=ae5f9e5f46c25cab0e8bb86ed353e8e9) # Data Freshness Vault data refreshes every 6 hours. The share price on the vault detail endpoint is additionally overlaid with a live market price at request time. | **Signal** | **Source** | **Freshness** | **Coverage** | | :- | :- | :- | :- | | **Share price** | Live market price feed, vault detail endpoint | Live, cached up to 60 seconds | EVM vaults with a live market price; others use the pipeline share price | | **Lending market utilization rate** | Vault pipeline (on-chain reads and protocol APIs) | Every 6 hours | All lending vaults | | **Vault score** | Vault pipeline | Every 6 hours | All vaults | | **Withdrawal risk level** | Pipeline utilization + stored flags | Every 6 hours | All vaults | **Price indicator:** A green dot (●) next to a share price means a live market quote was available. A grey dot means the price is from the latest pipeline run (every 6 hours). Prices above \$500 or equal to zero are treated as bad data and shown as —. # Score History & Trends Every vault detail page includes a 90-day score sparkline so you can see whether a vault is improving, degrading, or stable over time. The delta badge shows the score change vs 30 days ago. **Each daily snapshot records:** • Risk score (0–100) • Tier (low / medium / high / critical) • Active risk flags • Share price • Looping exposure % History endpoint: `GET /vaults/[chain:address]/history` — returns up to 90 snapshots. # TVL & Share Price History Two dedicated endpoints expose daily UTC-midnight samples for the chart on the vault detail page. Both accept a `range` of `7d`, `30d`, `60d`, or `3m` (defaulting to `30d`) and hoist the most recent point to a `latest` aggregate so you can render current stats without paging the full series. The `stale` flag flips `true` when the latest sample is older than 48 hours or the series is empty. | **Endpoint** | **Per-point fields** | **`latest` adds** | **Notes** | | :- | :- | :- | :- | | [`GET /vaults/{address}/tvl-history`](/api-reference/vault-risk/get-vault-tvl-history) | `ts`, `tvl_usd`, `quality_flag` | — | Total value locked over time | | [`GET /vaults/{address}/share-price-history`](/api-reference/vault-risk/get-vault-share-price-history) | `ts`, `share_price_usd`, `apy_trailing_7d`, `quality_flag` | `apy_trailing_30d` | 7-day APY catches spikes / depegs immediately; 30-day APY is the smoother headline number, surfaced on `latest` only | Per-point `apy_trailing_7d` is annualized against the sample 7 days earlier (`(price[t] / price[t-7d])^(365/7) - 1`) and returns `null` when the look-back sample is missing or the absolute APY exceeds 100 (clamped to suppress single-day pricing artifacts). Both endpoints return `404` when the vault is not in the verified-vaults catalog; tracked vaults with no samples yet still return `200` with `count: 0`, `latest: null`, and `stale_reason: 'no_samples_yet'`. Available in the SDK as [`client.vaults.getTvlHistory()`](/sdk/threat-client#get-vault-tvl-history) and [`client.vaults.getSharePriceHistory()`](/sdk/threat-client#get-vault-share-price-history). ## Quality filtering Each sample carries a `quality_flag` that captures whether the underlying reading was trusted. By default, the chart endpoints drop samples flagged as `capped`, `diverged`, or `spike` so a single bad pricing artifact never appears as a misleading peak or trough in the line — the BSC USDX 92× over-report that prompted this change is the canonical example. | `quality_flag` | What it means | In default response | | :- | :- | :- | | `ok` | Producer-verified clean reading. | ✅ Returned | | `unknown` | Legacy row or sample that predates flag derivation. | ✅ Returned (kept in the allowlist until backfill rollout completes) | | `capped` | Reading clamped at a hard ceiling — treat as a lower bound. | ❌ Dropped | | `diverged` | Multi-source readings disagreed materially. | ❌ Dropped | | `spike` | Single-sample jump exceeded the 5× day-over-day threshold; likely a pricing artifact. | ❌ Dropped | When samples in the window are dropped, the response is **non-silent**: the envelope reports `count < days` plus `filtered_count: N` and every returned point still carries its `quality_flag`. A visible chart kink that lines up with `filtered_count` is normal and **does not** indicate a missed daily update. The `stale_reason` enum disambiguates the four states behind `stale: true` so consumers can render the right empty-state copy: | `stale_reason` | `stale` | When it fires | | :- | :- | :- | | `fresh` | `false` | Latest passing sample is within 48 hours. | | `pipeline_lag` | `true` | Latest passing sample is older than 48 hours. | | `all_filtered` | `true` | Every sample in the window was dropped by the quality filter — distinct from "no samples yet". | | `no_samples_yet` | `true` | Vault is tracked but has no samples in the window. | Pass `?includeFlagged=true` to bypass the allowlist and receive the full raw series with every sample's `quality_flag` populated — useful when researching the cause of a flagged event or building a custom marker overlay. `filtered_count` is always `0` in that mode. The response envelope also carries `schema_version` (currently `s3`); pin it if you're building a regression harness so additive shape changes don't fail your assertions silently. # Share Price & Depeg Signals `last_share_price` is the vault token price in USD. For yield-bearing vaults — sDAI, sUSDe, Yearn, Fluid — the share price legitimately drifts above \$1 as yield accumulates. This is expected behavior, not a risk signal. Depeg flags only fire when the price falls meaningfully *below* par. ![Screenshot 2026 04 13 At 11 48 41 AM](https://mintcdn.com/webacy/nHZ00OBCBxHAq-vy/images/Screenshot-2026-04-13-at-11.48.41-AM.png?fit=max\&auto=format\&n=nHZ00OBCBxHAq-vy\&q=85\&s=c662ed3488680157cc507e07a5356919) # [RISK SCORE METHODOLOGY ↗️](/vault-ratings) # Monitoring Status Each vault is assigned a `monitoring_status` derived from TVL and trend data. Legacy and deprecated vaults are hidden by default in the dashboard (toggle with 'Show legacy (N)'). | **Status** | **Condition** | **What it means** | | :- | :- | :- | | `active` | TVL ≥ \$500K and no severe trend decline | Fully monitored and shown by default | | `watch` | TVL \$100K–\$500K OR TVL dropped >50% in 90d | At-risk; shown by default but flagged | | `legacy` | TVL \< \$100K | Effectively dead capital; hidden by default | | `deprecated` | Protocol officially shut down | Hidden by default | # Actionability Class Every vault output includes an `actionability_class` that identifies the dominant risk driver and returns a targeted one-line action recommendation. The class with the highest weighted average sub-score wins. | **Class** | **Key sub-scores** | **Example action** | | :- | :- | :- | | `smart_contract` | Protocol risk (40%), Code (20%), Audit recency (10%), Oracle (10%), Asset (10%), Webacy code (10%) | "Reduce position: elevated code or protocol risk warrants caution." | | `liquidity_lock` | Closed liquidity (50%), Utilization (30%), Utilization risk (10%), Exit liquidity (10%) | "Exit now: liquidity is critically constrained." | | `governance` | Centralization (40%), Upgrade (30%), Strategy (15%), Governance behavior (15%) | "Reduce position: centralization or upgrade risk is elevated." | | `market_conditions` | Depeg (35%), Looping (25%), TVL outflow (20%), Size (10%), Maturity (10%) | "Reduce exposure: market or collateral conditions are deteriorating." | Action verb (*monitor / review / plan / watch / reduce / exit*) is selected by combining class × tier. The `actionability_class`, `actionability_action`, `actionability_detail`, and `actionability_class_scores` fields are all available in the API output. # Exchange Rate Velocity ERC-4626 vaults accumulate yield slowly — a 15% APY vault moves \~0.04% per day. A sudden large movement in the exchange rate is a direct indicator of an attack in progress or structural failure. | **Signal** | **Threshold** | **Scoring Impact** | **Pattern** | | :- | :- | :- | :- | | `exchange_rate_spike` | > +2% since last checkpoint | **Hard floor at 70 (critical boundary)** | Donation attack — assets transferred directly into vault inflate convertToAssets() without minting shares. Venus wUSDM: 65% jump → \$902K bad debt (Feb 2024). | | `exchange_rate_crash` | > −1% since last checkpoint | **Hard floor at 65 (high tier)** | Exploit in progress, collateral collapse, or bad-debt crystallization. Yield vaults should never go down for stablecoins. | Previous price is persisted across pipeline runs. No external API required — uses the share price already captured during enrichment. # ERC-4626 Donation Attack Risk When an ERC-4626 vault is used as collateral in a lending protocol and that protocol prices it via `convertToAssets()`, the vault becomes vulnerable to a **donation attack**: an attacker transfers assets directly into the vault contract (without calling `deposit()`), inflating the exchange rate without minting new shares. The lending protocol's oracle reads the inflated rate and allows overborrowing against the manipulated collateral. > [!NOTE] > > **Venus wUSDM (Feb 27, 2024):** > > Attacker donated USDM directly into the wUSDM contract, inflating the exchange rate from 1.0694 → 1.764. Venus used `convertToAssets()` as its price oracle with no TWAP or manipulation protection. \~\$902K bad debt generated from a \$350 initial deposit. **Detection** Vault is ERC-4626 **AND** its address appears as `collateralAsset` in ≥ 1 active lending market. Queried from live on-chain market data at scoring time. **Scoring Impact** `erc4626_donation_risk = true` → **+15 additive penalty** + `erc4626_donation_risk` flag. This is a latent (pre-exploit) structural risk; pair with exchange rate velocity for real-time detection. # Large Redemption Alerts Every 6 hours, Webacy scans 24 hours of on-chain `Withdraw` events across 600+ vaults (TVL ≥ \$500K) to detect concentrated exits before they appear in price data. A vault is flagged when a single wallet redeems more than \$500K or more than 1% of vault TVL within the lookback window. | **Chain** | **Lookback window** | | :- | :- | | **Ethereum** | 24h | | **Arbitrum** | 2h (high-frequency chain) | | **Base** | 24h | | **Optimism** | 24h | | **Polygon** | 24h | | **BSC** | 6h | Flagged vaults receive a `large_redemption_alert` risk flag and expose four fields: `large_redemption_count_24h`, `large_redemption_usd_24h`, `large_redemption_max_pct_tvl`, and `large_redemption_wallets`. # Risk Summary (Natural Language) Every vault includes a `risk_summary` field — a one-sentence plain-English explanation of why the vault scored the way it did. Generated deterministically from the top weighted sub-score contributors and highest-priority active flags. No LLM required. > [!NOTE] > > Example > > "Score 74 (HIGH). Primary drivers: restricted withdrawals, centralized governance, unverified/unaudited code. Active signals: yield trap, thin collateral market." Available as `risk_summary` on every vault record. Useful for surfacing in alerts, reports, and API consumers without additional processing. # Output Fields Reference Additional fields returned on every vault record. These fields feed into the scoring pipeline and are exposed in the API response for consumers that need to inspect data freshness, vault architecture, or audit provenance directly. | **Field** | **Type** | **Description** | | :- | :- | :- | | `data_as_of` | ISO 8601 timestamp | When this vault was last scored and enriched by the pipeline. Returned on the vault detail (`GET /vaults/{address}`) only; list rows return `last_scored_at` instead. Used in the UI as a staleness indicator — an amber ⚠ badge appears when the timestamp is more than 48 hours old. Useful for API consumers to detect stale records before acting on them. | | `ts_feature_tags` | string\[] | Webacy's vault architecture tags (e.g. `euler_earn_like`, `pendle_pt`, `yearn_v3_like`). Used internally to apply architecture-specific scoring rules — for example, utilization zero-out for EulerEarn and Pendle vaults, and depeg suppression for Pendle PT vaults. See *Architecture-specific scoring rules* above for how each tag affects scoring. | | `last_audit_date` | ISO date string | Date of the most recent security audit on record (sourced from Webacy's curated audit registry). Drives the graduated audit recency sub-score: Fresh (\<6 months) → 5, Moderate (6–18 months) → 10–30, Aging (18–36 months) → 30–60, Stale (>3 years) → 70. `null` when no audit date is available. | | `audit_firms` | string\[] | Names of the audit firms that have reviewed this protocol (e.g. Trail of Bits, OpenZeppelin, Spearbit, Pashov). Reputable firms with audits within the last 12 months apply up to a −20 reduction to the audit recency sub-score. An empty array means no audit firms are on record — equivalent to `no_audits` for scoring purposes. | | `days_since_harvest` | integer (nullable) | Days since the vault's last `harvest()` keeper call. Populated from on-chain harvest data. Used to apply graduated harvest inactivity penalties for strategy/keeper vaults (Yearn V2/V3, Harvest, etc.): \< 30 days → no penalty; 30–60 days → +10, `harvest_slow`; 60–90 days → +25, `harvest_stale`; ≥ 90 days → full inactivity penalty, `harvest_dormant`. `null` when unavailable — harvest penalty is suppressed when data is absent. | # Vault Yield & Fees Source: https://docs.webacy.com/vault-yield-and-fees Standardized realized APY, Merkl incentives, yield durability, before/after-fees APY, deposit status, and deposit/redemption terms on every vault. Protocol-reported APYs aren't comparable: Morpho reports a smoothed average, Aave a spot supply rate, Lagoon a weekly APR, Yearn a net APR. Webacy publishes one standardized yield per vault, then breaks it down so you can see where it comes from, what fees cost, and whether you can actually get it. Every field on this page is returned on the vault `metadata` object by [`GET /vaults`](/vault-risk-intelligence) (list) and `GET /vaults/{address}` (detail), and on the [V3 vault detail](/api-reference/vault-risk-v3/get-vault-risk-detail-v3). The one exception is `data_as_of`, which is returned on the detail only. All yields are decimal ratios (`0.0313` = 3.13%). This page describes the methodology and API behaviour as of November 12, 2026. The API does not yet return a version for the realized-APY methodology. The fee model and the durability score carry their own `method` (see the example below). > [!NOTE] > > These fields are informational. None of them changes a vault's risk score or letter grade. ## What you get > [card] Standardized APY > > The vault's realized yield, measured the same way for every protocol, with its source and window. > [card] Incentives > > Third-party reward campaigns (Merkl), kept separate from the base yield, with eligibility and end dates. > [card] Yield durability > > A 0–100 score for how much of the yield a typical depositor can count on if incentives stop. > [card] Fees > > APY before and after the vault's fees, with the fee rates and where they came from. > [card] Deposit status > > Whether a new depositor can deposit right now, and who is allowed to. > [card] Flow terms > > Whether deposits and redemptions settle instantly or through a request queue, and any lockup. *** ## Standardized APY When `apy_measure` starts with `realized_`, `apy` is the vault's **realized share-price yield**: how much the value of one vault share actually grew, annualized. Its `apy_source` is then `onchain.share_price` (Webacy's own on-chain read) or `tradingstrategy.share_price` (an independent share-price feed, corroborated against a live on-chain read). When no realized yield is available, `apy` is the protocol's own figure instead (a spot, smoothed, or projected rate), and `apy_source` / `apy_measure` say which. Check `apy_measure` before treating `apy` as measured depositor earnings. ```text theme={null} realized APY = (share price now / share price N days ago) ^ (365 / N) − 1 ``` * **Windows:** 7, 30, and 90 days. The headline `apy` is the 90-day window, or the 30-day window when the vault is younger than 90 days or its 90-day window was refused (see **Guards**). The 7-day window is published for monitoring but is never the headline. * **Source:** share prices are read on-chain by Webacy at the block for each date (`convertToAssets` for ERC-4626 vaults, `pricePerShare` for Yearn v2, `getPricePerFullShare` for Beefy, the reserve's normalized income for Aave). Where an independent share-price feed also covers the vault, the two are compared and a disagreement is flagged. * **Net of fees by construction:** protocols that take their fee inside the share price (Morpho, Euler, Yearn, Lagoon, and others) are already net of that fee. * **Guards:** Webacy's pipeline refuses a realized window outside −95% to +50% rather than publishing it. A share price rising faster than that is usually interest accruing on debt that won't be repaid. Funds whose share price tracks a market price (equity or gold index funds) are refused too, because that's a price return, not yield. A measured loss, meaning a realized share-price window in which the share price fell, is published as a negative `apy` with `apy_realized_loss: true`. A realized share-price yield is published as measured: positive, exactly 0 for a flat window, or negative for a loss. A protocol's own figure is published only when it is above 0 and at most 500%, and is `null` otherwise. > [!WARNING] > > Two exceptions to the loss rule apply today: > > * **A refused 90-day loss can fall back to a positive window.** When a vault's 90-day window is refused because it lost more than the −95% floor, the headline falls back to the 30-day window even if that window is a gain. The refused window doesn't appear in `realized_apy_windows`. > * **A measured loss can read `null`.** On a vault whose market is flagged as stuck or impaired, a measured realized loss can be published as `apy: null`. The loss still shows in `realized_apy_windows`, so check it when `apy` is `null`. > > A fix for both is rolling out. A refused loss will hand the headline only to a shorter window that is also a loss; otherwise it reads `apy: null`, never a shorter window's gain or zero. And a measured loss will be published as a negative `apy` on a flagged market too. The same release also checks each window against its neighbouring start day: a window whose result swings sharply when its start moves by one day is dropped, so one day's share price can no longer set a 90-day headline. | Field | Meaning | | :- | :- | | `apy` | The headline yield. Negative only when it is a measured realized loss (see `apy_realized_loss`), down to −0.95 (−95%). | | `apy_realized_loss` | `true` when `apy` is a negative realized share-price yield, `false` for any other non-null `apy`, `null` when `apy` is `null`. | | `apy_kind` | `null` for ordinary vault yield. `incentive_reward` means `apy` is a campaign reward rate paid from a separate escrow, not yield the deposits earn. Treat any other non-null value as not ordinary yield, and leave these rows out when ranking or comparing `apy`. | | `apy_source` | Where `apy` came from. `onchain.share_price` and `tradingstrategy.share_price` are realized share-price yield. Other values name the protocol's own figure when no realized yield is available, e.g. `morpho.avgNetApy`, `euler.supplyApy`, `aave.supplyInfo.apy`, `lagoon.weeklyApr.linearNetApr`. | | `apy_measure` | What kind of number it is: a realized window (`realized_90d`, `realized_30d`, `realized_7d`, `realized_lifetime`), or the protocol measure (`spot`, `smoothed`, `trailing_7d`, `trailing_30d`, `projected`, `realized`, or `issuer_declared` for a yield the fund's issuer declares). It is `null` on the two reward-campaign vaults (`apy_kind: incentive_reward`) today; a fix that labels them `projected` is rolling out. | | `apy_native` | The protocol's own reported figure when `apy` is the realized yield, so you can show "realized 3.13% (protocol reports 3.27%)". `null` whenever `apy` is negative, so a protocol's positive figure is never shown next to a measured loss. | | `realized_apy_windows` | All realized windows, e.g. `{"realized_7d": 0.0364, "realized_30d": 0.0355, "realized_90d": 0.0313}`. Signed, so a loss shows here. | > [!WARNING] > > A negative `apy` is annualized, like every realized window. An `apy` of −0.0271 on a 90-day window (`apy_measure: realized_90d`) is a share-price drop of about 0.7% in that window, not 2.7% (`(1 − 0.0271)^(90/365) − 1`). The −95% floor applies to the annualized figure, so on a 30-day window a real drop of more than about 22% is refused. Today, when no window survives, `apy` falls back to the protocol's own figure (`apy_source` / `apy_measure` say so); with the fix that is rolling out, a refused loss reads `null` instead. If your code assumed `apy >= 0`, check `apy_realized_loss` before treating `apy` as a yield. > [!TIP] > > A gap between `apy` and `apy_native` is information, not an error. Protocol figures are often spot rates or include rewards that never reach the share price. The realized figure is what depositors actually earned. > [!NOTE] > > Coming soon: a flag on each vault saying whether a protocol-reported `apy` includes token rewards, with the ex-rewards yield where the protocol publishes one, and a reason field when `apy` is `null`. They are not returned yet. Vault data is normally refreshed every 6 hours, but don't assume a record is that fresh. On the vault detail, `data_as_of` says when the vault's record was last measured; a failed read keeps the previous record, so `data_as_of` can be older than the latest refresh. List rows don't return `data_as_of`; they return `last_scored_at`. *** ## Incentives `incentives` describes third-party reward campaigns run through [Merkl](https://merkl.xyz), matched to the vault by chain and address. Incentives are paid from a sponsor's budget, not earned by the deposits, so they are **never added into `apy`**. The object is `null` when the vault has no Merkl campaign. Such a vault also has no durability score. That doesn't prove it has no incentives, because rewards can come from programmes outside Merkl. Note too that `apy` itself can already contain rewards when it is a protocol-reported figure (see `apy_source`). | Field | Meaning | | :- | :- | | `incentive_apr` | Total incentive APR across live campaigns. | | `incentive_apr_liquid` / `incentive_apr_speculative` | The part paid in tradable tokens vs. points or pre-launch tokens with no market value yet. | | `incentive_apr_restricted` | The part only some depositors can earn (for example, Coinbase-verified addresses only). A typical depositor's incentive is `incentive_apr − incentive_apr_restricted`. | | `incentive_share` | Share of the total yield that comes from incentives, in \[0, 1]. `incentive_share_basis` says which base yield it was computed against (`merkl_native` or `merkl_total`). A third value, `realized_share_price`, means it was computed against the vault's realized share-price APY because Merkl gave no base yield; no vault returns it today. | | `incentive_streak_days` | Days of unbroken campaign coverage. `incentive_current_end` is the latest end date among live campaigns. | | `incentive_campaigns_active` | Up to 20 live campaigns, soonest-ending first (`incentive_campaigns_active_count` gives the full count): each one's own `apr`, reward token, `start` / `end`, `eligibility` (`open`, `conditional`, `restricted`, `unknown`), `hooks`, and `reward_quality` (`stable`, `stable_depegging`, `volatile`, `unverified`, `unpriced`). | | `incentive_coverage_spans` | Campaign coverage over the last 365 days, for drawing a renewal timeline. | > [!WARNING] > > Read `incentive_apr` together with `incentive_apr_restricted`. An ordinary depositor's incentive is `incentive_apr − incentive_apr_restricted`. When all of it is restricted, an ordinary depositor earns only the base `apy`. > > `null` on `incentive_apr_restricted` (or any eligibility APR field) means eligibility wasn't computed. Don't read it as 0, and don't treat the incentive as open. APR whose eligibility is unknown is not counted as restricted, so the subtraction above can include it (`incentive_apr_liquid_eligibility_unknown` gives that part). Also returned: `incentive_apr_liquid_restricted`, `incentive_apr_liquid_eligibility_unknown`, `incentive_apr_liquid_low_quality` (open token APR paid in a token with no reliable value), `incentive_apr_boosted` (campaigns with per-user boosts, so the headline is an average), `incentive_eligibility_hooks`, `incentive_reward_qualities`, `incentive_self_funded`, `merkl_native_apr`, and `merkl_total_apr`. Each campaign row also carries `boosted`. *** ## Yield durability `incentives.yield_durability` scores how much of a vault's current yield a **typical depositor** can count on if incentives are not renewed. The base yield counts as fully durable; only the incentive part is discounted: ```text theme={null} score = 100 × [ (1 − share) + share × liquid_fraction × renewal × funding ] ``` * `share` is the incentive share of the yield an ordinary depositor can earn. Restricted campaigns are left out, so it can be lower than the headline `incentive_share`. * `liquid_fraction` is the share of the open incentives paid in tradable tokens. Points and pre-launch tokens count as 0, and so does a token with no reliable value. APR that Merkl reports but can't attribute to a campaign, or whose eligibility is unknown, counts as 0.5. When no incentive is open to an ordinary depositor, it is 0.5 and has no effect, because `share` is 0. * `renewal` grows with the campaign streak: 0.25 + 0.65 × min(streak days / 365, 1), so between 0.25 and 0.90. * `funding` is 0.85 when the vault's own curator funds the campaign, otherwise 1. Today the curator check doesn't recognise curators of Morpho Vault V2 vaults, and no vault currently carries the `self_subsidised` flag, so in practice `funding` is 1 on every vault today. | `tier` | Score | | :- | :- | | `high` | 80 or more | | `medium` | 50 to below 80 | | `low` | below 50 | | `no_incentive` | a Merkl campaign is live but its reported APR is currently 0%. This is not the same as a vault with no campaign, which has no durability fields at all. | Today a vault with a live campaign can still have no score: when Merkl reports no base yield for it (its total APR equals the incentive APR), the incentive share isn't computed and no score is returned, even when the vault has a realized share-price `apy`. `flags` add context independent of the tier: `incentive_dependent` (incentives are 50% or more of the typical depositor's yield), `short_streak` (under 30 days of unbroken campaigns), `points_incentive` / `pretge_incentive`, `self_subsidised`, and `restricted_incentive` (some incentive APR is gated and was excluded from the score). `drivers` returns the inputs above. > [!NOTE] > > A vault whose incentives are all restricted can score `high`: for an ordinary depositor its yield is all base yield, which is fully durable. The `restricted_incentive` flag tells you this is the case. *** ## Fees `fees` gives the yield before and after the vault's own fees, with the rates behind them. The object is `null` when nothing is known about the vault's fees. | Field | Meaning | | :- | :- | | `apy_after_fees` | What a depositor earns after the vault's fees. Same window as `apy`, and negative when `apy` is a realized loss on a vault that takes its fee inside the share price. | | `apy_before_fees` | The yield before fees: `apy_after_fees / (1 − performance) + management`. | | `fee_gap_reason` | Why `apy_before_fees` is `null` (see the table below). `null` when it is filled in. | | `fee_treatment` | `in_share_price` when the protocol takes its fee inside the share price, otherwise `unknown`. | | `fee_model` | The rates: `performance_bps`, `management_bps`, `entry_bps`, `exit_bps` (basis points, 1000 = 10%), plus `source` (where they were read, e.g. `morpho_api`, `lagoon_api`) and `management_source` (`protocol_design` when the protocol has no management fee by design). | A rate the source doesn't provide is never assumed: `apy_before_fees` stays `null` and `fee_gap_reason` says why. Entry and exit fees are reported in `fee_model` but not folded into either APY. | `fee_gap_reason` | Meaning | | :- | :- | | `no_apy` | The vault has no published `apy` to work from. | | `treatment_unknown` | It isn't known whether the protocol takes its fee inside the share price, so neither an after-fees nor a before-fees figure can be stated (`apy_after_fees` is `null` too). | | `apy_source_unclassified` | The `apy` comes from a source that isn't known to be net of fees, so it can't be used as the after-fees figure (`apy_after_fees` is `null` too). | | `fee_not_on_whole_yield` | The protocol's fee isn't a performance or management fee on the whole yield, so the before-fees figure can't be worked out by grossing the yield up. This covers protocols whose fee is taken on only part of the yield (for example Beefy, whose fee is taken on harvested rewards) and protocols with no performance or management fee on the vault's yield to gross up, such as Aave and Centrifuge. `apy_after_fees` is still returned. | | `rate_unknown` | The performance or management fee rate isn't published, or (for a Morpho protocol figure that includes rewards) the fee-bearing part of the yield can't be separated from the rewards. | *** ## Deposit status `deposit_status` says whether a new depositor can deposit right now. | Field | Meaning | | :- | :- | | `status` | `open`, `capped` (at capacity), `paused`, `closed` (deliberately not accepting deposits, e.g. shut down or a supply cap of zero), or `unknown` (no reliable signal; never guessed). | | `reason` | Machine-readable detail, e.g. `supply_cap_reached`, `supply_cap_zero`, `max_cap_headroom`, `cap_unverified`, `shutdown`, or `fund_` for a fund (`fund_open`, `fund_upcoming`). | | `source` | The signal that decided it, e.g. `erc4626_max_deposit`, `euler_supply_cap`, `aave_supply_cap`, `lagoon_max_cap`, `centrifuge_fund_status`. For `unknown` it names the signal that was inconclusive; `null` when no signal applied. | | `capacity_usd` | Remaining deposit capacity in USD when measurable; `0` when capped; `null` when unlimited or when the status is `unknown`. Some curators set a placeholder cap far above any real demand, and it is reported as set (values above \$1 trillion occur), so read a very large `capacity_usd` as effectively unlimited, not as measured demand. | | `permission` | `permissionless`, `permissioned` (KYC, allowlist, or a deposit gate), or `unknown`. | *** ## Flow terms `flow_terms` says how deposits and redemptions settle. The object is `null` when nothing is known. | Field | Meaning | | :- | :- | | `deposit_flow` / `redemption_flow` | `sync` (settles in the same transaction), `async` (you submit a request and the vault settles it later), or `unknown`. | | `settlement_seconds` | Typical wait for an async leg; `0` when both legs are sync. | | `lockup_seconds` | Minimum holding period; `0` where the protocol has none by design. | | `source` | Where the terms came from: `protocol_design`, `lagoon_api`, or `erc165_supports_interface` (ERC-7540 request-based vaults detected on-chain). | A `sync` redemption can still be limited by available liquidity. See `pct_tvl_withdrawable` and the withdrawal signals in [Vault Risk Intelligence](/vault-risk-intelligence). *** ## Filtering and sorting On the vault list (`GET /vaults`): | Parameter | Use | | :- | :- | | `sort=apy_desc` | Rank by the standardized `apy`. A realized loss ranks below every positive or zero yield, and above vaults with no `apy`. | | `sort=incentive_apr_desc` / `sort=durability_desc` | Rank vaults with a live Merkl incentive by incentive APR or durability score (vaults without one sort last). | | `hasIncentives=true` / `hasIncentives=false` | Only vaults with a live Merkl incentive, or only vaults without one. `false` also returns vaults whose Merkl campaign currently pays 0% or has ended. Rewards paid outside Merkl aren't covered, so `false` doesn't prove a vault has no incentives. | | `incentiveEndingWithinDays=30` | Only vaults whose live campaigns all end within that many days (1–365). | | `durabilityTier=low` | Filter by durability tier: `high`, `medium`, `low`, `no_incentive`. Only vaults with a Merkl campaign have a tier, and not all of them (see [Yield durability](#yield-durability)). To find vaults without a live Merkl incentive, use `hasIncentives=false`. | *** ## Example Steakhouse High Yield USDC Edition (Morpho, Base). Excerpt of `metadata` from `GET /vaults/0xbeeff2490feffa212fac2f6553682c219e6a8845?chain=base` as returned on November 12, 2026 (`data_as_of` 2026-11-11T17:07:17Z), trimmed to the fields on this page. Values change with every refresh: ```json theme={null} { "apy": 0.03128631, "apy_source": "onchain.share_price", "apy_measure": "realized_90d", "apy_realized_loss": false, "apy_native": 0.03265557109384124, "realized_apy_windows": { "realized_7d": 0.0363807, "realized_30d": 0.03550349, "realized_90d": 0.03128631 }, "fees": { "apy_after_fees": 0.03128631, "apy_before_fees": 0.04171508, "fee_gap_reason": null, "fee_treatment": "in_share_price", "fee_model": { "performance_bps": 2500, "management_bps": 0, "entry_bps": null, "exit_bps": null, "source": "morpho_api", "management_source": "morpho_api", "method": "fee_model_v1" } }, "flow_terms": { "deposit_flow": "sync", "redemption_flow": "sync", "settlement_seconds": 0, "lockup_seconds": 0, "source": "protocol_design" }, "incentives": { "incentive_source": "merkl", "incentive_apr": 0.02118913, "incentive_apr_liquid": 0.02118913, "incentive_apr_speculative": 0, "incentive_apr_restricted": 0.02118913, "incentive_share": 0.3918, "incentive_share_basis": "merkl_native", "incentive_streak_days": 153, "incentive_current_end": "2027-01-08T16:00:00Z", "incentive_campaigns_active": [ { "apr": 0.01, "symbol": "MORPHO", "type": "TOKEN", "start": "2026-10-21T18:00:00Z", "end": "2026-11-20T18:00:00Z", "eligibility": "restricted", "hooks": ["COINBASE_ATTESTATION", "WHITELIST_CAMPAIGN"], "reward_quality": "volatile" }, { "apr": 0.01118913, "symbol": "USDC", "type": "TOKEN", "start": "2026-06-18T15:00:00Z", "end": "2027-01-08T16:00:00Z", "eligibility": "restricted", "hooks": ["WHITELIST_ADDRESSES", "WHITELIST_CAMPAIGN"], "reward_quality": "stable" } ], "yield_durability": { "score": 100, "tier": "high", "flags": ["restricted_incentive"], "drivers": { "method": "yield_durability_v1", "liquid_fraction": 0.5, "renewal": 0.5225, "funding": 1 } } } } ``` How to read it: * The vault's realized APY is **3.13%**, annualized from its share-price change over the last 90 days and measured on-chain. Morpho's own figure is 3.27%. * Before the curator's 25% performance fee, the annualized APY is **4.17%**, so fees cost 1.04 percentage points a year. * Sponsors pay another **2.12%** in incentives, but all of it is restricted (Coinbase-verified or allow-listed depositors), so an ordinary depositor earns 3.13% and a depositor eligible for both campaigns about 5.25%. `incentive_apr` is the authoritative total; here the two listed campaigns (1% and 1.12%) add up to it. * Durability is `high` with `restricted_incentive`: for an ordinary depositor the yield is all base yield. `liquid_fraction` is 0.5 because no incentive is open to an ordinary depositor, so it has no effect on the score. # Wallet Screening Source: https://docs.webacy.com/wallet-screening Screen wallets with Webacy for sanctions exposure, counterparty risk, fund-flow patterns, malicious behavior, and reputation signals across supported chains. Wallet Screening helps organizations understand the risk profile of blockchain participants before assets move. By analyzing historical activity, behavioral patterns, counterparty relationships, sanctions exposure, and hundreds of proprietary risk factors, Webacy enables developers and institutions to make informed, risk-based decisions about the wallets they interact with. Whether screening a single address or monitoring millions of wallets, the engine provides explainable intelligence that can power compliance workflows, automated policies, and user protection. > [card] Webacy is not a KYC provider. > > Wallet Screening complements existing KYC and AML programs by providing onchain risk intelligence, rather than identity verification. ## What It Analyzes Wallet Screening combines intelligence from across the blockchain, including: * Historical onchain behavior * Counterparty relationships * Fund flow patterns * Sanctions exposure * Known malicious activity * Behavioral risk indicators * Wallet reputation * Associated entities Each analysis is evaluated using the Webacy Risk Framework to produce explainable risk intelligence that can be consumed by APIs, dashboards, alerts, and automated workflows. ## Fund-Flow Exposure A wallet's own labels tell you what it did. Fund-flow exposure tells you who funded it. On request, Webacy traces a wallet's incoming transfers up to two hops back and reports the senders that carry a risk label — sanctions, DPRK, hacks, scams and phishing, mixers, money laundering, FBI IC3 reports, address poisoning and analyst flags — together with the share of the wallet's inflow each accounts for. Material exposure raises the wallet's risk score (verified and trusted addresses excepted); the rest is reported for context, so you can see the full picture without a false positive from a dust transfer. It is opt-in on Ethereum, BSC, Arbitrum, Base and Polygon. See [Screen a Wallet for Risk](/screen-a-wallet-for-risk) for the request, the response and the scoring rules. ## Common Use Cases * AML and customer due diligence * Wallet onboarding * Exchange deposit screening * Treasury risk management * Counterparty risk assessment * Regulatory compliance * User protection * AI-powered policy engines ## Built for Continuous Monitoring Risk is not static. Wallets continue to transact, interact with new protocols, and establish new relationships over time. Webacy continuously monitors supported wallets so organizations can detect meaningful changes in risk as they occur, rather than relying solely on point-in-time screening. ## What's Next > [card] [Transaction Monitoring](/transaction-monitoring) > > Monitor blockchain transactions in real time using transaction screening, fund flow analysis, and pre-sign transaction simulation. # Exchange Wallet Screening Source: https://docs.webacy.com/wallets/exchange-wallet-screening Implement deposit and withdrawal screening for your exchange with sub-500ms sanctions checks and fraud detection across 14 chains, plus address poisoning detection on EVM chains. In March 2022, the Lazarus Group drained \$625M from Ronin Bridge in a single attack. The deposit address was already flagged—but no one checked. Don't make the same mistake. This guide shows you how to screen every deposit and withdrawal in real-time, across 14 chains, with one API. ## Why Wallet Screening Matters > [card] Compliance > > Stay ahead of OFAC and AML requirements—sanctions lists update daily > [card] Risk Management > > Stop bad actors at the door, not after they've moved funds > [card] User Protection > > Catch address poisoning before your users lose millions **Why exchanges choose Webacy:** * **One integration, 14 chains** — ETH, SOL, BTC, and 11 more. No vendor sprawl. * **Sub-500ms responses** — Screen in real-time without blocking transactions * **Sanctions + fraud in one call** — Compliance and security, unified * **Address poisoning detection** — The threat most providers miss *** ## Prerequisites Before implementing wallet screening, ensure you have: * A Webacy API key ([sign up here](https://developers.webacy.co/billing)) * Basic familiarity with REST APIs or the [Webacy SDK](/sdk/installation) * Your application's deposit/withdrawal flow identified for integration points *** ## Deposit Screening Every deposit is a potential liability until you verify the source. Screen every incoming deposit address to catch sanctioned entities, mixer activity, and high-risk wallets. ### Sanctions Check The fastest compliance check—verify if an address is on OFAC or other sanctions lists. ```bash cURL theme={null} curl -X GET "https://api.webacy.com/addresses/sanctioned/0x098B716B8Aaf21512996dC57EB0615e2383E2f96?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} import { ThreatClient, Chain } from '@webacy-xyz/sdk'; const client = new ThreatClient({ apiKey: process.env.WEBACY_API_KEY }); const result = await client.addresses.checkSanctioned( '0x098B716B8Aaf21512996dC57EB0615e2383E2f96', { chain: Chain.ETH } ); if (result.is_sanctioned) { console.log('BLOCKED: Sanctioned address'); } else if (result.sanctions_status === 'unknown') { console.log('REVIEW: Sanctions screening unavailable'); } ``` ```python Python theme={null} import requests response = requests.get( "https://api.webacy.com/addresses/sanctioned/0x098B716B8Aaf21512996dC57EB0615e2383E2f96", params={"chain": "eth"}, headers={"x-api-key": "YOUR_API_KEY"} ) data = response.json() ``` > [!TIP] > > **Try it now**: Paste `0x098B716B8Aaf21512996dC57EB0615e2383E2f96` into the sanctions endpoint. This is the actual Lazarus Group wallet from Ronin Bridge—instant hit. ### Full Risk Analysis For addresses that pass sanctions screening, perform a comprehensive risk analysis. ```bash cURL theme={null} curl -X GET "https://api.webacy.com/addresses/0x722122dF12D4e14e13Ac3b6895a86e84145b6967?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} const analysis = await client.addresses.analyze( '0x722122dF12D4e14e13Ac3b6895a86e84145b6967', { chain: Chain.ETH } ); console.log(`Risk Score: ${analysis.overallRisk}/100`); console.log(`Issues: ${analysis.issues.map(i => i.tag).join(', ')}`); ``` ```python Python theme={null} response = requests.get( "https://api.webacy.com/addresses/0x722122dF12D4e14e13Ac3b6895a86e84145b6967", params={"chain": "eth"}, headers={"x-api-key": "YOUR_API_KEY"} ) ``` **Response fields to use:** | Field | Description | Action | | - | - | - | | `overallRisk` | 0-100 risk score | Set your threshold (e.g., >50 = review) | | `issues[]` | Array of risk tags | Check for specific threats | | `labels[]` | Entity labels | Identify mixers, exchanges, etc. | > [!TIP] > > **Try it now**: Test `0x722122dF12D4e14e13Ac3b6895a86e84145b6967`—the Tornado Cash Router. You'll get high risk scores and mixer tags in the response. ### Multi-Chain Support The same endpoints work across all supported chains—just change the `chain` parameter. ```bash Ethereum theme={null} curl "https://api.webacy.com/addresses/{address}?chain=eth" -H "x-api-key: YOUR_KEY" ``` ```bash Solana theme={null} curl "https://api.webacy.com/addresses/{address}?chain=sol" -H "x-api-key: YOUR_KEY" ``` ```bash Bitcoin theme={null} curl "https://api.webacy.com/addresses/{address}?chain=btc" -H "x-api-key: YOUR_KEY" ``` ```bash Base theme={null} curl "https://api.webacy.com/addresses/{address}?chain=base" -H "x-api-key: YOUR_KEY" ``` *** ## Withdrawal Protection Your users trust you to protect their funds—even from their own mistakes. Protect users from sending funds to risky destinations, including address poisoning attacks. ### Address Poisoning Detection Address poisoning is a sophisticated attack where scammers create lookalike addresses to trick users into sending funds to the wrong destination. > [!WARNING] > > **Real Case**: In May 2024, a victim lost \$68 million in WBTC by copying a poisoned address from their transaction history. The legitimate and scam addresses looked nearly identical. **The Attack Pattern—Can You Spot the Difference?** | | Address | | - | - | | ✅ Legitimate | `0xd9A1b0B1e1aE382DbDc898Ea68012FfcB2853a91` | | ❌ Attacker | `0xd9A1C3788D81257612E2581A6ea0aDa244853a91` | Both start with `0xd9A1`. Both end with `53a91`. The victim couldn't tell them apart—and lost \$68 million. ```bash cURL theme={null} curl -X GET "https://api.webacy.com/addresses/0xd9A1C3788D81257612E2581A6ea0aDa244853a91/poisoning?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} const poisoning = await client.addresses.checkPoisoning( '0xd9A1C3788D81257612E2581A6ea0aDa244853a91', { chain: Chain.ETH } ); if (poisoning.is_poisoned) { console.log('WARNING: Address poisoning detected!'); console.log(`Similar to: ${poisoning.similar_addresses}`); } ``` ```python Python theme={null} response = requests.get( "https://api.webacy.com/addresses/0xd9A1C3788D81257612E2581A6ea0aDa244853a91/poisoning", params={"chain": "eth"}, headers={"x-api-key": "YOUR_API_KEY"} ) ``` > [!TIP] > > **One API call, millions saved**: Add this check before every withdrawal. Your users won't notice the 300ms latency—but they'll notice when you save them from a \$68M mistake. ### Withdrawal Destination Check Screen withdrawal destinations for general risk factors. ```typescript theme={null} async function screenWithdrawal(destination: string, chain: Chain) { // 1. Sanctions check (immediate block) const sanctions = await client.addresses.checkSanctioned(destination, { chain }); if (sanctions.is_sanctioned) { return { allowed: false, reason: 'Sanctioned address' }; } if (sanctions.sanctions_status !== 'clean') { return { allowed: false, reason: 'Sanctions screening unavailable' }; } // 2. Address poisoning check (warn user) const poisoning = await client.addresses.checkPoisoning(destination, { chain }); if (poisoning.is_poisoned) { return { allowed: false, reason: 'Potential address poisoning attack', warning: 'Please verify this address carefully' }; } // 3. Risk analysis (flag high risk) const risk = await client.addresses.analyze(destination, { chain }); if (risk.overallRisk >= 50) { return { allowed: true, warning: `High risk destination (score: ${risk.overallRisk})`, issues: risk.issues }; } return { allowed: true }; } ``` *** ## Complete Integration Workflow Here's how it all fits together. ### Recommended Deposit Flow ```mermaid theme={null} flowchart TD A[Deposit Received] --> B{Sanctions Check} B -->|Sanctioned| C[BLOCK Deposit] B -->|Clear| D{Risk Analysis} D -->|Score > 80| E["BLOCK + Report"] D -->|Score 50-80| F[REVIEW Required] D -->|Score < 50| G[ACCEPT Deposit] ``` ### Recommended Withdrawal Flow ```mermaid theme={null} flowchart TD A[Withdrawal Request] --> B{Sanctions Check} B -->|Sanctioned| C[BLOCK Withdrawal] B -->|Clear| D{Poisoning Check} D -->|Poisoned| E["WARN User + Require Confirmation"] D -->|Clear| F{Risk Analysis} F -->|Score >= 50| G["FLAG + Show Warning"] F -->|Score < 50| H[Process Withdrawal] ``` ### Implementation Example > [accordion] Full TypeScript Implementation > > ```typescript theme={null} > import { ThreatClient, Chain } from '@webacy-xyz/sdk'; > > const client = new ThreatClient({ > apiKey: process.env.WEBACY_API_KEY, > defaultChain: Chain.ETH, > }); > > // Deposit screening > async function screenDeposit(address: string, chain: Chain) { > // Step 1: Sanctions (must block) > const sanctions = await client.addresses.checkSanctioned(address, { chain }); > if (sanctions.is_sanctioned) { > return { > action: 'BLOCK', > reason: 'Sanctioned address', > report: true > }; > } > if (sanctions.sanctions_status !== 'clean') { > return { > action: 'REVIEW', > reason: 'Sanctions screening unavailable' > }; > } > > // Step 2: Risk analysis > const risk = await client.addresses.analyze(address, { chain }); > > if (risk.overallRisk >= 80) { > return { > action: 'BLOCK', > reason: 'Extremely high risk', > riskScore: risk.overallRisk, > issues: risk.issues > }; > } > > if (risk.overallRisk >= 50) { > return { > action: 'REVIEW', > reason: 'High risk - manual review required', > riskScore: risk.overallRisk, > issues: risk.issues > }; > } > > return { > action: 'ACCEPT', > riskScore: risk.overallRisk > }; > } > > // Withdrawal screening > async function screenWithdrawal(destination: string, chain: Chain) { > // Step 1: Sanctions > const sanctions = await client.addresses.checkSanctioned(destination, { chain }); > if (sanctions.is_sanctioned) { > return { > action: 'BLOCK', > reason: 'Cannot withdraw to sanctioned address' > }; > } > if (sanctions.sanctions_status !== 'clean') { > return { > action: 'REVIEW', > reason: 'Sanctions screening unavailable' > }; > } > > // Step 2: Address poisoning > const poisoning = await client.addresses.checkPoisoning(destination, { chain }); > if (poisoning.is_poisoned) { > return { > action: 'WARN', > reason: 'Possible address poisoning attack detected', > requireConfirmation: true, > message: 'Please verify this is the correct address. It appears similar to addresses that have been used in phishing attacks.' > }; > } > > // Step 3: Risk analysis > const risk = await client.addresses.analyze(destination, { chain }); > if (risk.overallRisk >= 50) { > return { > action: 'FLAG', > reason: 'High risk destination', > riskScore: risk.overallRisk, > showWarning: true > }; > } > > return { action: 'PROCEED' }; > } > ``` *** ## Example Addresses for Testing Use these addresses to test your integration: ### OFAC Sanctioned Addresses | Address | Chain | Attribution | | - | - | - | | `0x098B716B8Aaf21512996dC57EB0615e2383E2f96` | ETH | Lazarus Group (Ronin Bridge heist) | | `0x566f827a4988d4a3eb9da469d8d3d0b536da196e` | ETH | OFAC SDN List | | `0x55da7813a4314cc896bf0cf61886529b7769be81` | ETH | OFAC SDN List | | `bc1qy78e6ml7f3p438jqrrlzsewx625y0sr7jsesa7` | BTC | OpenSanctions | | `115p7UMMngoj1pMvkpHijcRdfJNXj6LrLn` | BTC | WannaCry Ransomware | | `1295rkVyNfFpqZpXvKGhDqwhP1jZcNNDMV` | BTC | Suex (OFAC) | ### Known Hackers | Address | Chain | Attribution | | - | - | - | | `0x3b09A3c9aDD7D0262e6E9724D7e823Cd767a0c74` | ETH | Bittensor Hack | | `0x7a503e3ab9433ebf13afb4f7f1793c25733b3cca` | ETH | GANA Hack | | `0xd967113224c354600b3151e27aaba53e3034f372` | ETH | WazirX Malware/Spear Phishing | | `0x889b49ef0bf787c3ddc2950bfc7d1d439320004b` | ETH | Woo X Exploiter | | `0x44f887cfbd667cb2042dd55ab1d8951c94bb0102` | ETH | Loopring Guardian 2FA Exploit | | `bc1ql9r9a4uxmsdwkenjwx7t5clslsf62gxt8ru7e8` | BTC | Trust Hack | ### Mixers & Money Laundering | Address | Chain | Type | | - | - | - | | `0x722122dF12D4e14e13Ac3b6895a86e84145b6967` | ETH | Tornado Cash Router | | `0x5614987586c15f4e9b3ebcbec07c477b58f2e59b` | ETH | Tornado Cash Router (Primary) | | `0x561376c5c8313bd742083d42e6b8b6d8da701fff` | ETH | Tornado Cash Pool (100 ETH) | ### Phishing & Scam Addresses | Address | Chain | Attribution | | - | - | - | | `0x84672cc56b6dad30cfa5f9751d9ccae6c39e29cd` | ETH | AI Protocol User Permit Phishing | | `0x1aDf5DAc035AE7FEC116e8345e005FB88d542f53` | ETH | Phishing scammer | | `0xe7d13137923142a0424771e1778865b88752b3c7` | ETH | Mailer Lite/WalletConnect Phishing Campaign | | `0x624Fc3Dc249E37E8BFd3e834C4dF81Ff2dA1D0Ca` | BSC | Malicious Permit scammer | ### Address Poisoning | Address | Chain | Type | | - | - | - | | `0xd9A1C3788D81257612E2581A6ea0aDa244853a91` | ETH | Known poisoned address (\$68M WBTC attack) | | `0xCF03Aa88AfDA357C837b9DDD38A678E3Ad7Cd5D7` | ETH | Poisoning victim | | `0x5f90e59d0a03fd2f8c56b8cc896c5b42594eb3a0` | ETH | \$50M address poisoning drain | ### DPRK-Related (North Korea) | Address | Chain | Attribution | | - | - | - | | `0x0fa09c3a328792253f8dee7116848723b72a6d2e` | ETH | North Korean entities (High Risk) | | `0x6eedf92fb92dd68a270c3205e96dccc527728066` | ETH | North Korean entities (High Risk) | | `0xbdd077f651ebe7f7b3ce16fe5f2b025be2969516` | ETH | North Korean entities (High Risk) | ### Clean Addresses (for comparison) | Address | Chain | Type | | - | - | - | | `0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045` | ETH | Vitalik's wallet (low risk) | > [!NOTE] > > For a complete list of test addresses, see [Example Addresses](/example-addresses). *** ## API Quick Reference | Endpoint | Use Case | Response Time | | - | - | - | | `GET /addresses/sanctioned/{address}` | Sanctions screening | \~100ms | | `GET /addresses/{address}` | Full risk analysis | \~500ms | | `GET /addresses/{address}/poisoning` | Address poisoning check | \~300ms | **Authentication:** ```text theme={null} Header: x-api-key: YOUR_API_KEY Base URL: https://api.webacy.com ``` *** ## Ready to Ship? You've seen how it works. Now integrate it: 1. **Get your API key** — Takes 2 minutes 2. **Test with the example addresses** — Verify your integration 3. **Go live** — Start screening deposits today ## Next Steps > [card] [Get Your API Key](https://developers.webacy.co/billing) > > Start screening in minutes > [card] [API Reference](../api-reference/introduction) > > Every endpoint, every parameter > [card] [Install the SDK](../sdk/installation) > > TypeScript bindings included > [card] [Understanding Risk Tags](../glossary/threats-and-labels) > > Know what you're looking at # Consumer Wallet Security Source: https://docs.webacy.com/wallets/wallet-security Build secure consumer wallets with address poisoning detection, transaction preview, EIP-712 signature analysis, and phishing URL screening under 500ms. Your user pasted an address from their clipboard. It looked right—but it wasn't. The first four characters matched. The last four matched. But in the middle, a scammer had swapped characters. \$68 million in WBTC, gone in one transaction. This guide shows you how to protect your users from these attacks before they happen. ## Why Wallets Need Security > [card] Send Protection > > Verify addresses before your users send funds to scammers > [card] Transaction Preview > > Show users what they're signing before they sign it > [card] Phishing Defense > > Block malicious dApps before they drain wallets **Why wallet developers choose Webacy:** * **Address poisoning detection** — The attack that stole \$68M in one transaction * **Transaction simulation** — Show users exactly what will happen before signing * **EIP-712 signature analysis** — Catch permit phishing attacks * **URL screening** — Block known phishing sites in your dApp browser * **Sub-500ms response times** — Security without blocking the user experience *** ## Prerequisites Before implementing wallet security, ensure you have: * A Webacy API key ([sign up here](https://developers.webacy.co/billing)) * Basic familiarity with REST APIs or the [Webacy SDK](../sdk/installation) * Your wallet's send flow and transaction signing identified for integration points *** ## Send Flow Protection The send flow is where users are most vulnerable. A simple address check can save them from losing everything. ### Quick Profile Before Sending Before showing the send confirmation, check the destination address. ```bash cURL theme={null} curl -X GET "https://api.webacy.com/addresses/0xd9A1C3788D81257612E2581A6ea0aDa244853a91/quick-profile?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} import { ThreatClient, Chain } from '@webacy-xyz/sdk'; const client = new ThreatClient({ apiKey: process.env.WEBACY_API_KEY }); const profile = await client.addresses.getQuickProfile( '0xd9A1C3788D81257612E2581A6ea0aDa244853a91', { chain: Chain.ETH } ); console.log(`Risk score: ${profile.riskScore}`); console.log(`Risk level: ${profile.riskLevel}`); console.log(`Account age: ${profile.accountAge} days`); ``` ```python Python theme={null} import requests response = requests.get( "https://api.webacy.com/addresses/0xd9A1C3788D81257612E2581A6ea0aDa244853a91/quick-profile", params={"chain": "eth"}, headers={"x-api-key": "YOUR_API_KEY"} ) profile = response.json() ``` **Use the response to guide users:** | Risk Level | Action | | - | - | | `low` | Proceed normally | | `medium` | Show caution banner | | `high` | Require explicit confirmation | | `critical` | Block and explain why | ### Address Poisoning Detection Address poisoning attacks are devastating because they exploit user trust. Scammers create addresses that look nearly identical to legitimate ones. > [!WARNING] > > **Real Case**: In May 2024, a victim copied what they thought was their own address from transaction history. The attacker's address matched the first and last characters perfectly. \$68 million in WBTC, gone. **Can you spot the difference?** | | Address | | - | - | | ✅ Legitimate | `0xd9A1b0B1e1aE382DbDc898Ea68012FfcB2853a91` | | ❌ Attacker | `0xd9A1C3788D81257612E2581A6ea0aDa244853a91` | Both start with `0xd9A1`. Both end with `53a91`. The scammer generated a vanity address specifically to match the victim's transaction history. ```bash cURL theme={null} curl -X GET "https://api.webacy.com/addresses/0xd9A1C3788D81257612E2581A6ea0aDa244853a91/poisoning?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} const poisoning = await client.addresses.checkPoisoning( '0xd9A1C3788D81257612E2581A6ea0aDa244853a91', { chain: Chain.ETH } ); if (poisoning.is_poisoned) { // Block the transaction and show warning showPoisoningWarning({ message: 'This address appears to be part of an address poisoning attack.', similarAddresses: poisoning.similar_addresses, recommendation: 'Verify the full address character by character.' }); } ``` ```python Python theme={null} response = requests.get( "https://api.webacy.com/addresses/0xd9A1C3788D81257612E2581A6ea0aDa244853a91/poisoning", params={"chain": "eth"}, headers={"x-api-key": "YOUR_API_KEY"} ) poisoning = response.json() ``` > [!TIP] > > **Integration tip**: Run this check whenever a user pastes an address. The 300ms latency is invisible to users—but catching a poisoning attack is priceless. ### Sanctions Screening Prevent users from sending to sanctioned addresses and protect your platform from regulatory risk. ```bash cURL theme={null} curl -X GET "https://api.webacy.com/addresses/sanctioned/0x098B716B8Aaf21512996dC57EB0615e2383E2f96?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} const sanctions = await client.addresses.checkSanctioned( '0x098B716B8Aaf21512996dC57EB0615e2383E2f96', { chain: Chain.ETH } ); if (sanctions.is_sanctioned) { // Block transaction to sanctioned address blockTransaction({ reason: 'This address is on the OFAC sanctions list.', canOverride: false }); } else if (sanctions.sanctions_status === 'unknown') { requireManualReview({ reason: 'Sanctions screening could not be completed.' }); } ``` ```python Python theme={null} response = requests.get( "https://api.webacy.com/addresses/sanctioned/0x098B716B8Aaf21512996dC57EB0615e2383E2f96", params={"chain": "eth"}, headers={"x-api-key": "YOUR_API_KEY"} ) ``` *** ## Transaction Preview Show users exactly what they're about to sign. Transaction simulation catches drainers, malicious approvals, and unexpected asset transfers. ### Pre-Signing Simulation Simulate the transaction before the user signs to reveal what will actually happen. ```bash cURL theme={null} curl -X POST "https://api.webacy.com/scan/0xUserAddress.../transactions" \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "tx": { "from": "0xUserAddress...", "raw": "0x02f00180843b9aca008506fc23ac00830186a094d8da6bf26964af9d7eed9e03e53415d37aa96045872386f26fc1000080c0" }, "chain": 1, "domain": "app.example.com" }' ``` ```typescript TypeScript theme={null} import { Transaction } from 'ethers'; // `raw` is the serialized unsigned transaction the user is about to sign const raw = Transaction.from({ type: 2, chainId: 1, to: '0xContractAddress...', data: '0xTransactionData...', value: 0n, nonce: 12, gasLimit: 100_000n, maxFeePerGas: 30_000_000_000n, maxPriorityFeePerGas: 1_000_000_000n, }).unsignedSerialized; const result = await client.scan.scanTransaction('0xUserAddress...', { tx: { from: '0xUserAddress...', raw }, chain: 1, // Ethereum mainnet domain: 'app.example.com', }); // One item per simulated asset movement or approval const { simulation } = result as unknown as { simulation: Array<{ txData: { changeType: 'TRANSFER' | 'APPROVE'; rawAmount?: string; symbol?: string; assetType?: string; counterpartyAddress: string }; counterpartyRisk: { high?: number; overallRisk?: number; issues?: Array<{ tags: Array<{ name: string }> }> }; assetRisk: { high?: number }; }>; }; for (const item of simulation) { const { txData, counterpartyRisk, assetRisk } = item; console.log(`${txData.changeType}: ${txData.rawAmount ?? ''} ${txData.symbol ?? txData.assetType} → ${txData.counterpartyAddress}`); if ((counterpartyRisk.high ?? 0) > 0 || (assetRisk.high ?? 0) > 0) { console.warn('Flagged:', counterpartyRisk.issues?.flatMap((i) => i.tags.map((t) => t.name))); } } ``` ```python Python theme={null} import requests response = requests.post( "https://api.webacy.com/scan/0xUserAddress.../transactions", headers={ "x-api-key": "YOUR_API_KEY", "Content-Type": "application/json" }, json={ "tx": { "from": "0xUserAddress...", "raw": "0x02f00180843b9aca008506fc23ac00830186a094d8da6bf26964af9d7eed9e03e53415d37aa96045872386f26fc1000080c0" }, "chain": 1, "domain": "app.example.com" } ) simulation = response.json() ``` **Key response fields:** | Field | Description | | - | - | | `simulation[].txData` | Each asset movement (`TRANSFER`) or approval (`APPROVE`) the transaction would cause: amount, token, recipient / spender | | `simulation[].counterpartyRisk` | Risk profile of the recipient / spender — `high > 0` is a known drainer, hacker or sanctioned address | | `simulation[].assetRisk` | Risk profile of the token contract (`address` is `null` for ETH) | | `simulation[0].functionRisk` | Present when the calldata calls a known-risky function | | `descriptor` | Signed TLV descriptor for hardware-wallet integrations | An empty `simulation` array, or a party with only `address` and no score, is *inconclusive* — never treat it as safe. ### EIP-712 Signature Analysis Permit signatures are the most dangerous attack vector. A user can lose everything without sending a single transaction—just by signing a message. > [!WARNING] > > **How Permit Phishing Works**: The user signs what looks like a simple message. In reality, they've authorized a contract to spend all their tokens. Hours or days later, the attacker drains everything. ```bash cURL theme={null} curl -X POST "https://api.webacy.com/scan/0xUserAddress.../eip712" \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "msg": { "from": "0xUserAddress...", "data": { "types": { "EIP712Domain": [ {"name": "name", "type": "string"}, {"name": "version", "type": "string"}, {"name": "chainId", "type": "uint256"}, {"name": "verifyingContract", "type": "address"} ], "Permit": [ {"name": "owner", "type": "address"}, {"name": "spender", "type": "address"}, {"name": "value", "type": "uint256"}, {"name": "nonce", "type": "uint256"}, {"name": "deadline", "type": "uint256"} ] }, "primaryType": "Permit", "domain": { "name": "USD Coin", "version": "2", "chainId": 1, "verifyingContract": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48" }, "message": { "owner": "0xUserAddress...", "spender": "0xSuspiciousAddress...", "value": "115792089237316195423570985008687907853269984665640564039457584007913129639935", "nonce": 0, "deadline": 1893456000 } } }, "domain": "suspicious-site.com" }' ``` ```typescript TypeScript theme={null} const result = await client.scan.scanEip712( '0xUserAddress...', { msg: { from: '0xUserAddress...', data: { types: { EIP712Domain: [ { name: 'name', type: 'string' }, { name: 'version', type: 'string' }, { name: 'chainId', type: 'uint256' }, { name: 'verifyingContract', type: 'address' }, ], Permit: [ { name: 'owner', type: 'address' }, { name: 'spender', type: 'address' }, { name: 'value', type: 'uint256' }, { name: 'nonce', type: 'uint256' }, { name: 'deadline', type: 'uint256' }, ], }, primaryType: 'Permit', domain: { name: 'USD Coin', version: '2', chainId: 1, // Ethereum mainnet only verifyingContract: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', }, message: { owner: '0xUserAddress...', spender: '0xSuspiciousAddress...', value: '115792089237316195423570985008687907853269984665640564039457584007913129639935', nonce: 0, deadline: 1893456000, }, }, }, domain: 'suspicious-site.com', } ); // The spender named in the permit is scored as the counterparty; the dApp // domain you passed comes back as `domainRisk`. const { simulation } = result as unknown as { simulation: { counterpartyRisk?: { address: string; high?: number; overallRisk?: number; issues?: Array<{ tags: Array<{ name: string }> }> }; domainRisk?: { riskLevel: 'low' | 'medium' | 'high' | 'unknown' }; }; }; if ((simulation.counterpartyRisk?.high ?? 0) > 0 || simulation.domainRisk?.riskLevel === 'high') { // Block signature and warn user showSignatureWarning({ spender: simulation.counterpartyRisk?.address, tags: simulation.counterpartyRisk?.issues?.flatMap((i) => i.tags.map((t) => t.name)), message: 'This signature could give unlimited access to your tokens.' }); } ``` ```python Python theme={null} response = requests.post( "https://api.webacy.com/scan/0xUserAddress.../eip712", headers={ "x-api-key": "YOUR_API_KEY", "Content-Type": "application/json" }, json={ "msg": { "from": "0xUserAddress...", "data": { "types": { "EIP712Domain": [ {"name": "name", "type": "string"}, {"name": "version", "type": "string"}, {"name": "chainId", "type": "uint256"}, {"name": "verifyingContract", "type": "address"} ], "Permit": [ {"name": "owner", "type": "address"}, {"name": "spender", "type": "address"}, {"name": "value", "type": "uint256"}, {"name": "nonce", "type": "uint256"}, {"name": "deadline", "type": "uint256"} ] }, "primaryType": "Permit", "domain": { "name": "USD Coin", "version": "2", "chainId": 1, "verifyingContract": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48" }, "message": { "owner": "0xUserAddress...", "spender": "0xSuspiciousAddress...", "value": "115792089237316195423570985008687907853269984665640564039457584007913129639935", "nonce": 0, "deadline": 1893456000 } } }, "domain": "suspicious-site.com" } ) result = response.json() spender = result["simulation"].get("counterpartyRisk") or {} if spender.get("high", 0) > 0 or (result["simulation"].get("domainRisk") or {}).get("riskLevel") == "high": print("DANGEROUS SIGNATURE:", [t["name"] for i in spender.get("issues", []) for t in i["tags"]]) ``` > [!TIP] > > **The max uint256 red flag**: If you see `value: "115792089237316195423570985008687907853269984665640564039457584007913129639935"`, that's unlimited approval. Always flag this for users. *** ## Phishing Protection If your wallet has a dApp browser, you need URL screening. ### URL Scanning Check URLs before allowing users to connect their wallet. ```bash cURL theme={null} curl -X POST "https://api.webacy.com/url" \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"url": "https://uniswap-claim.com"}' ``` ```typescript TypeScript theme={null} const result = await client.url.check('https://uniswap-claim.com'); // riskLevel: 'high' (known phishing / blocklisted), 'medium' (looks like a // known project's domain), 'low' (known project site), 'unknown' (no verdict) if (result.riskLevel === 'high') { // Block the connection blockDappConnection({ url: 'https://uniswap-claim.com', reason: result.description, }); } ``` ```python Python theme={null} response = requests.post( "https://api.webacy.com/url", headers={ "x-api-key": "YOUR_API_KEY", "Content-Type": "application/json" }, json={"url": "https://uniswap-claim.com"} ) ``` The response is `{ "riskLevel", "description", "message" }`. See the [dApp browser guide](/apps/dapp-browser-security#phishing-detection) for what each `riskLevel` means. `unknown` means no verdict, not safe. *** ## Approval Management Help users understand and manage their existing token approvals. ### Get Risky Approvals Show users their current approvals and highlight dangerous ones. ```bash cURL theme={null} curl -X GET "https://api.webacy.com/wallets/0xUserAddress.../approvals?chain=eth" \ -H "x-api-key: YOUR_API_KEY" ``` ```typescript TypeScript theme={null} const approvals = await client.wallets.getApprovals( '0xUserAddress...', { chain: Chain.ETH } ); // Categorize approvals by risk const riskyApprovals = approvals.approvals.filter( a => a.isUnlimited || a.spenderRisk === 'high' ); console.log(`Found ${riskyApprovals.length} risky approvals`); for (const approval of riskyApprovals) { console.log(`${approval.symbol} approved to ${approval.spenderName || approval.spender}`); console.log(` Amount: ${approval.isUnlimited ? 'UNLIMITED' : approval.amount}`); } ``` ```python Python theme={null} response = requests.get( "https://api.webacy.com/wallets/0xUserAddress.../approvals", params={"chain": "eth"}, headers={"x-api-key": "YOUR_API_KEY"} ) ``` **Help users clean up:** * Show unlimited approvals prominently * Flag approvals to contracts that no longer exist * Identify approvals to known drainer contracts * Provide easy revoke functionality *** ## Complete Integration Workflow ### Send Flow ```mermaid theme={null} flowchart TD A[User Enters Address] --> B{Address Poisoning Check} B -->|Poisoned| C["BLOCK + Show Warning"] B -->|Clear| D{Sanctions Check} D -->|Sanctioned| E["BLOCK + Compliance Notice"] D -->|Clear| F{Quick Profile} F -->|High Risk| G["WARN + Require Confirmation"] F -->|Medium Risk| H["Show Caution Banner"] F -->|Low Risk| I[Proceed to Confirmation] G --> I H --> I ``` ### Transaction Signing Flow ```mermaid theme={null} flowchart TD A[Transaction Request] --> B{Is EIP-712 Signature?} B -->|Yes| C[Scan EIP-712] B -->|No| D[Simulate Transaction] C --> E{Risk Level?} D --> E E -->|Critical| F["BLOCK Transaction"] E -->|High| G["Show Strong Warning"] E -->|Medium| H["Show Asset Changes + Caution"] E -->|Low| I["Show Asset Changes"] G --> J{User Confirms?} H --> J I --> K[Sign Transaction] J -->|Yes| K J -->|No| L[Cancel] ``` ### Full TypeScript Implementation > [accordion] Complete Wallet Security Module > > ```typescript theme={null} > import { ThreatClient, Chain, type ScanChainId, type ScanEIP712TypedData } from '@webacy-xyz/sdk'; > > const client = new ThreatClient({ > apiKey: process.env.WEBACY_API_KEY, > defaultChain: Chain.ETH, > }); > > // Send flow protection > async function validateSendAddress(address: string, chain: Chain) { > // 1. Address poisoning (most critical) > const poisoning = await client.addresses.checkPoisoning(address, { chain }); > if (poisoning.is_poisoned) { > return { > allowed: false, > severity: 'critical', > reason: 'Address poisoning attack detected', > details: 'This address looks similar to legitimate addresses and may be part of a scam.' > }; > } > > // 2. Sanctions check (compliance) > const sanctions = await client.addresses.checkSanctioned(address, { chain }); > if (sanctions.is_sanctioned) { > return { > allowed: false, > severity: 'critical', > reason: 'Sanctioned address', > details: 'This address is on the OFAC sanctions list.' > }; > } > if (sanctions.sanctions_status !== 'clean') { > return { > allowed: false, > severity: 'high', > reason: 'Sanctions screening unavailable', > details: 'The address could not be authoritatively screened and requires manual review.' > }; > } > > // 3. Quick profile (risk assessment) > const profile = await client.addresses.getQuickProfile(address, { chain }); > > if (profile.riskLevel === 'critical') { > return { > allowed: false, > severity: 'critical', > reason: 'Extremely high risk address', > riskScore: profile.riskScore > }; > } > > if (profile.riskLevel === 'high') { > return { > allowed: true, > severity: 'high', > requireConfirmation: true, > reason: 'High risk address detected', > riskScore: profile.riskScore > }; > } > > return { > allowed: true, > severity: profile.riskLevel, > riskScore: profile.riskScore > }; > } > > // Shape of the scan responses (a party that could not be scored carries only `address`) > interface AddressRisk { > address: string; > overallRisk?: number; > high?: number; > medium?: number; > issues?: Array<{ tags: Array<{ key: string; name: string }> }>; > } > interface TxScanResponse { > simulation: Array<{ > counterpartyRisk: AddressRisk; > assetRisk: AddressRisk; > txData: { changeType: 'TRANSFER' | 'APPROVE'; assetType?: string; rawAmount?: string; symbol?: string; counterpartyAddress: string }; > functionRisk?: { functionName: string; description: string }; > }>; > } > interface Eip712ScanResponse { > simulation: { > counterpartyRisk?: AddressRisk; > domainRisk?: { riskLevel: 'low' | 'medium' | 'high' | 'unknown' }; > functionRisk?: { functionName: string; risks: string[] }; > }; > } > const isFlagged = (r?: AddressRisk) => (r?.high ?? 0) > 0; > const isUnscored = (r?: AddressRisk) => !!r && r.overallRisk === undefined; > > // Transaction preview — `raw` is the serialized unsigned transaction > // (ethers `Transaction.from({...}).unsignedSerialized`, viem `serializeTransaction`) > async function previewTransaction( > userAddress: string, > raw: string, > chain: ScanChainId, > dappDomain?: string > ) { > const result = (await client.scan.scanTransaction(userAddress, { > tx: { from: userAddress, raw }, > chain, > domain: dappDomain, > })) as unknown as TxScanResponse; > > const flagged = result.simulation.some((i) => isFlagged(i.counterpartyRisk) || isFlagged(i.assetRisk)); > const unscored = result.simulation.some((i) => isUnscored(i.counterpartyRisk)); > const warnings = result.simulation.flatMap((i) => [ > ...(i.counterpartyRisk.issues?.flatMap((issue) => issue.tags.map((t) => t.name)) ?? []), > ...(i.functionRisk ? [`Risky function: ${i.functionRisk.functionName}`] : []), > ]); > > return { > assetChanges: result.simulation.map((i) => i.txData), > warnings, > // An empty simulation or an unscored recipient is inconclusive, not safe > shouldBlock: flagged, > requiresExtraConfirmation: !flagged && (unscored || result.simulation.length === 0), > }; > } > > // Signature analysis > async function analyzeSignature( > userAddress: string, > typedData: ScanEIP712TypedData, > dappDomain: string > ) { > const result = (await client.scan.scanEip712(userAddress, { > msg: { > from: userAddress, > data: typedData, > }, > domain: dappDomain, > })) as unknown as Eip712ScanResponse; > > const { counterpartyRisk, domainRisk, functionRisk } = result.simulation; > return { > spender: counterpartyRisk?.address, > spenderTags: counterpartyRisk?.issues?.flatMap((i) => i.tags.map((t) => t.name)) ?? [], > shouldBlock: isFlagged(counterpartyRisk) || domainRisk?.riskLevel === 'high', > isPermit: typedData.primaryType.toLowerCase().includes('permit'), > riskyFunction: functionRisk?.functionName, > }; > } > > // URL screening for dApp browser > async function checkDappUrl(url: string) { > const result = await client.url.check(url); > > return { > // Only a known project site is safe; 'unknown' is unverified. > safe: result.riskLevel === 'low', > block: result.riskLevel === 'high', > riskLevel: result.riskLevel, > reason: result.description, > }; > } > ``` *** ## Example Addresses for Testing ### Address Poisoning | Address | Chain | Description | | - | - | - | | `0xd9A1C3788D81257612E2581A6ea0aDa244853a91` | ETH | Known poisoned address (\$68M WBTC attack) | | `0x5f90e59d0a03fd2f8c56b8cc896c5b42594eb3a0` | ETH | \$50M address poisoning drain | ### Sanctioned Addresses | Address | Chain | Attribution | | - | - | - | | `0x098B716B8Aaf21512996dC57EB0615e2383E2f96` | ETH | Lazarus Group (Ronin Bridge) | | `0x566f827a4988d4a3eb9da469d8d3d0b536da196e` | ETH | OFAC SDN List | ### Phishing & Drainers | Address | Chain | Attribution | | - | - | - | | `0x84672cc56b6dad30cfa5f9751d9ccae6c39e29cd` | ETH | Permit phishing drainer | | `0xe7d13137923142a0424771e1778865b88752b3c7` | ETH | WalletConnect phishing campaign | | `0x624Fc3Dc249E37E8BFd3e834C4dF81Ff2dA1D0Ca` | BSC | Malicious Permit scammer | ### Clean Addresses (for comparison) | Address | Chain | Description | | - | - | - | | `0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045` | ETH | Vitalik's wallet (low risk) | *** ## API Quick Reference | Endpoint | Use Case | Response Time | | - | - | - | | `GET /addresses/{address}/quick-profile` | Fast risk assessment | \~200ms | | `GET /addresses/{address}/poisoning` | Address poisoning check | \~300ms | | `GET /addresses/sanctioned/{address}` | Sanctions screening | \~100ms | | `POST /scan/{fromAddress}/transactions` | Transaction simulation | \~1–3s (cold), \~50ms (cached) | | `POST /scan/{fromAddress}/eip712` | Signature analysis | \~1–3s (cold), \~50ms (cached) | | `POST /url` | URL screening | \~0.5s (p95 \~1s) | | `GET /wallets/{address}/approvals` | Token approvals | \~400ms | *** ## Next Steps > [card] [Get Your API Key](https://developers.webacy.co/billing) > > Start protecting users today > [card] [API Reference](../api-reference/introduction) > > Complete endpoint documentation > [card] [Install the SDK](../sdk/installation) > > TypeScript SDK for faster integration > [card] [Risk Tags Reference](../glossary/threats-and-labels) > > Understand what each risk means # What Technology Does Webacy Build In-House? Source: https://docs.webacy.com/what-technology-does-webacy-build-in-house What Webacy builds in-house — risk engine, scoring models, contract and transaction analysis — versus where third-party blockchain infrastructure is used. Webacy's risk intelligence is built primarily on proprietary technology developed in-house. DD is not a wrapper around third-party risk providers. The core intelligence layer, detection systems, scoring models, entity analysis, contract analysis, transaction analysis, and risk classification logic are developed and maintained by Webacy. Third-party services are used where appropriate to access raw blockchain data, provide infrastructure redundancy, verify data consistency, or retrieve platform-specific information directly from the source. In other words: **Webacy uses third-party infrastructure to access blockchain data. Webacy builds the intelligence that interprets it.** ## Proprietary Technology Built By Webacy Webacy has developed a proprietary risk intelligence engine for analyzing assets, wallets, smart contracts, transactions, vaults, pools, stablecoins, and protocols across supported networks. ### Risk Intelligence Engine Webacy's core risk engine evaluates hundreds of signals across on-chain activity, contract behavior, market structure, counterparty exposure, and protocol configuration. This engine powers DD's risk scores, alerts, labels, classifications, and intelligence outputs. It is designed to detect both known risks and emerging patterns across digital assets and blockchain ecosystems. ### Smart Contract Risk Analysis Webacy's in-house contract analysis systems evaluate smart contracts for structural, security, and operational risks. Examples include: * Contract ownership and permissions * Upgradeability and proxy patterns * Administrative control * Access control configuration * Mint, freeze, blacklist, pause, and transfer restrictions * Known malicious patterns * Deployment and updater behavior * Code-level risk indicators * Contract dependency risk ### Token & Asset Risk Intelligence Webacy has built proprietary tools to evaluate the risk of tokens and digital assets. This includes analysis of: * Token structure * Holder concentration * Liquidity conditions * Transfer behavior * Trading patterns * Supply dynamics * Deployer behavior * Ownership changes * Honeypot and sell restriction risks * Wrapped asset and bridge dependencies ### Wallet & Counterparty Intelligence Webacy analyzes wallets and counterparties using internally developed entity, behavior, and relationship models. These systems evaluate: * Wallet activity patterns * Counterparty exposure * Fund flow behavior * Risk propagation * Contamination links * Malicious wallet associations * Transaction history * Behavioral anomalies * Entity clustering signals ### Transaction Risk Analysis Webacy's transaction intelligence evaluates risk before and after transactions occur. This includes proprietary analysis of: * Transaction intent * Contract interactions * Approval risk * Recipient risk * Execution path risk * Malicious transaction patterns * Suspicious routing * Asset movement * Simulated transaction outcomes where applicable ### Stablecoin & Vault Intelligence For stablecoins, vaults, and asset-backed products, Webacy has developed specialized intelligence systems that evaluate structural and real-time risk. These systems analyze: * Asset composition * Liquidity depth * Redemption pathways * Counterparty exposure * Treasury behavior * Oracle integrity * Price deviations * Slippage conditions * Governance and administrative risk * Protocol dependencies * Contamination propagation ### Real-Time Monitoring & Alerting Webacy's proprietary monitoring systems continuously evaluate changes across supported networks. These systems detect changes in: * Smart contract configurations * Wallet behavior * Token activity * Liquidity conditions * Governance activity * Counterparty exposure * Market stress * Asset integrity * Protocol risk This enables DD to provide intelligence that reflects current conditions rather than static snapshots. ### Risk Scoring, Labels & Classification Webacy's scoring and classification systems are developed in-house. These systems translate complex blockchain activity into clear outputs, including: * Risk scores * Risk labels * Category-level signals * Alerts * Explanations * Entity classifications * API responses * Monitoring outputs The logic behind these outputs is proprietary to Webacy and reflects years of research, engineering, and applied security work. ### Proprietary Systems in Practice These capabilities ship today across DD's products, each built and maintained in-house: * **Vault risk ratings** — a composite risk grade for DeFi vaults built from weighted sub-scores, additive penalties, and hard safety floors, with a clear listing verdict and a plain-language risk summary. See [Vault Ratings](/vault-ratings), [Vault Risk Intelligence](/vault-risk-intelligence), and [Vault Risk V3](/api-reference/vault-risk-v3/v3-overview). * **In-house vulnerability scanning** — detection of code-level risks such as reentrancy, unchecked external calls, and malicious external calls, folded into contract risk scoring. * **Exchange-rate and donation-attack detection** — real-time monitoring of vault share-price movement to catch donation attacks and exploits as they happen. See [Vault Risk Intelligence](/vault-risk-intelligence). * **Large-redemption monitoring** — continuous scanning of on-chain exit activity to flag concentrated withdrawals before they appear in price. * **Stablecoin depeg monitoring** — continuous, multi-signal scoring of stablecoin peg health, with safety grades and reserve-backing analysis. See [Depeg scoring methodology](/scoring-methodology) and [Safety Grade](/safety-grade). * **Supply, backing, and peg-confidence analysis** — proprietary views into supply flows, collateral backing, and peg confidence. See [Supply Flows](/supply-flows), [Backing Map](/backing-map), and [Peg Confidence](/pcs). * **Wallet, token, and transaction risk** — entity, behavior, and contamination analysis surfaced through risk tags and scores. See [Risk Tags](/glossary/threats-and-labels). All of these run on Webacy's own scoring and classification logic. Third-party infrastructure only supplies the raw blockchain data underneath. ## What Third-Party Tools Are Used For? Webacy uses third-party infrastructure where it improves reliability, accuracy, coverage, or data freshness. These services do not define Webacy's intelligence. They help Webacy access, verify, and cross-check the raw data that our systems analyze. ### Blockchain Data Access Webacy may use block explorers, indexers, RPC providers, and similar infrastructure to retrieve raw blockchain data. Examples of this data include: * Transactions * Logs and events * Contract metadata * Token transfers * Wallet activity * Contract deployment data * On-chain state * Historical blockchain records Webacy then processes, normalizes, enriches, and analyzes this data through its own proprietary systems. ### Redundancy & Data Quality Checks Webacy may use multiple infrastructure providers for redundancy, fallback coverage, and voting-style validation. This helps ensure that risk intelligence remains reliable even when a single data source is delayed, incomplete, or unavailable. ### Platform-Specific Data For certain integrations, Webacy may retrieve data directly from a protocol, vault platform, or ecosystem API. This is especially useful when the platform itself exposes the most accurate, current, or context-specific information about its own products. For example, vault-related data may be pulled directly from the relevant platform API when that is the most accurate source for live vault information. ### Ecosystem Intelligence In some cases, Webacy may incorporate supporting ecosystem data when it improves risk context. This can include public information about protocols, assets, issuers, audits, reserves, or operational disclosures. This information is used as supporting evidence, not as the core risk engine. ## What Webacy Does Not Do Webacy does not simply resell third-party risk scores. Webacy does not rely on a single external provider to determine asset, wallet, transaction, vault, or protocol risk. Webacy does not treat off-chain reports or third-party labels as the primary source of truth. Instead, Webacy builds proprietary intelligence systems that analyze blockchain activity directly and continuously. ## Summary The core DD technology stack is built in-house by Webacy. Third-party tools are used primarily for: * Accessing raw blockchain data * Infrastructure redundancy * Data quality checks * Platform-specific source data * Supporting ecosystem context Webacy's proprietary systems are responsible for: * Risk detection * Signal generation * Smart contract analysis * Wallet and counterparty intelligence * Token and asset risk analysis * Transaction analysis * Stablecoin and vault intelligence * Real-time monitoring * Risk scoring * Classification * Alerts * API outputs The distinction is important: **Third parties help provide access to data. Webacy provides the intelligence.** # x402 Payments Source: https://docs.webacy.com/x402-payments Call the Webacy API without an API key by paying per request in USDC on Base using the x402 protocol, with prepaid credit tokens for follow-up requests. x402 lets you call the Webacy API without an API key by paying per request in USDC on [Base](https://base.org/). Instead of signing up for a key, you make a request, receive a payment challenge, pay on-chain, and retry. It works on any endpoint that supports it — supported endpoints are marked in the [API Reference](/api-reference/introduction) with a `402` response. Think of it as an alternative access model alongside API keys, ideal for agents and integrations that need to pay as they go. ## Prerequisites Before you begin, ensure you have: * A Base-compatible wallet funded with USDC to cover the payment * The ability to sign an on-chain payment (directly or through an x402 client library) ## How It Works **1. Call a supported endpoint without an API key** Send your request as usual, but omit the `x-api-key` header. **2. Receive a 402 Payment Required** The response includes a `payment-required` header — base64-encoded JSON payment requirements. Decode it and read the first entry of the `accepts` array for the amount (`accepts[0].amount`), the USDC contract (`accepts[0].asset`), and the pay-to address (`accepts[0].payTo`). **3. Pay on-chain** Send `accepts[0].amount` of USDC on Base to `accepts[0].payTo`. Amounts are in USDC base units (6 decimals), so `500000` is 0.50 USDC. **4. Retry the same request with your payment proof** Resend the identical request, this time with a `payment-signature` header containing your signed payment proof. **5. Get your response** You receive the endpoint's normal response, plus `x-credit-token` and `x-credit-balance-cu` headers. ## Credit Tokens After you pay, Webacy returns a **credit token** in the `x-credit-token` header. This token holds the prepaid balance left over from your payment. Keep it. On subsequent requests, send it back as an `x-credit-token` header to spend your prepaid balance instead of paying again. The `x-credit-balance-cu` header in each response tells you how much balance remains. When it runs out, the next request returns another `402` and you pay again. > [!NOTE] > > Store your credit token securely and reuse it across requests. It represents prepaid balance — treat it like a bearer token. ## Headers | Header | Direction | Purpose | | - | - | - | | `payment-signature` | Request | Signed payment proof | | `payment-required` | Response (402) | Base64-encoded JSON payment requirements (an `accepts` array with amount, asset, and `payTo`) | | `x-credit-token` | Request and response | Bearer token for your prepaid balance | | `x-credit-balance-cu` | Response | Prepaid balance remaining after the call | ## Pricing You pay the same per-endpoint price as with an API key, so an endpoint costs you the same either way. The `402` challenge gives you the exact amount for the request you are making. There is a **\$0.50 minimum** per payment. If your payment covers more than a single request needs, the surplus becomes extra prepaid balance on your credit token, which you can spend on later requests. ## Supported Chains Today, x402 payments are supported on **Base** using USDC. Support for additional chains is coming. ## Example The following walks through the full challenge-pay-retry loop against the address risk endpoint. ```bash cURL theme={null} # (a) Initial request with no API key -> 402 with the payment-required header curl -i -X GET "https://api.webacy.com/addresses/0x742d35Cc6634C0532925a3b844Bc454e4438f44e?chain=eth" # (b) The 402 response carries a base64 payment-required header. Decoded, it looks like: # { # "x402Version": 2, # "error": "Payment required", # "resource": { "url": "https://api.webacy.com/addresses/0x742d...e?chain=eth" }, # "accepts": [ # { # "scheme": "exact", # "network": "eip155:8453", # Base mainnet # "amount": "500000", # 0.50 USDC (6 decimals) # "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", # USDC on Base # "payTo": "0x6f9F5cf7D85B82BB0d519AeF9341241C2fDc83fc", # "maxTimeoutSeconds": 300 # } # ] # } # ...pay accepts[0].amount of USDC on Base to accepts[0].payTo... # (c) Retry the same request with your signed payment proof curl -i -X GET "https://api.webacy.com/addresses/0x742d35Cc6634C0532925a3b844Bc454e4438f44e?chain=eth" \ -H "payment-signature: YOUR_SIGNED_PAYMENT" # Response now returns the data plus: # x-credit-token: # x-credit-balance-cu: ``` ```javascript JavaScript theme={null} // Illustrative flow. The pay() step is a placeholder for signing the payment // with your Base wallet or an x402 client library (see the note below). const url = 'https://api.webacy.com/addresses/0x742d35Cc6634C0532925a3b844Bc454e4438f44e?chain=eth'; // (a) Initial request with no API key -> 402 with the payment-required header let res = await fetch(url); if (res.status === 402) { // (b) Decode the base64 payment requirements const challenge = JSON.parse(atob(res.headers.get('payment-required'))); const { payTo, amount, asset, network } = challenge.accepts[0]; // ...pay `amount` of USDC (`asset`) on `network` to `payTo`, // then produce a signed payment proof... const paymentSignature = await pay(challenge); // (c) Retry the same request with your signed payment proof res = await fetch(url, { headers: { 'payment-signature': paymentSignature }, }); } const data = await res.json(); console.log(res.headers.get('x-credit-token')); // save this for later requests console.log(res.headers.get('x-credit-balance-cu')); // remaining balance ``` > [!NOTE] > > Producing the `payment-signature` means signing the payment with your Base wallet. x402 client libraries can automate the full challenge-pay-retry loop for you. For the complete `402` response schema on any endpoint that supports x402, see the [API Reference](/api-reference/introduction). # Yield Scores: Safety-Weighted Ranking of Stablecoin Pools Source: https://docs.webacy.com/yield-scores How Webacy ranks DeFi stablecoin yield pools with a safety-weighted rank score based on the risk rating of each pool's riskiest constituent. The Yield Scores feed ranks DeFi stablecoin pools by a **safety-weighted rank score** — raw yield weighted by the Risk Rating of the pool's **riskiest** constituent token. A high-yield pool holding a shaky stablecoin ranks below a modest-yield pool holding only USDC. > [!WARNING] > > **The rank is not a yield.** `safety_weighted_rank_score` is a unitless ordering index. Multiplying an APY by a safety score is neither a return you will earn nor a risk adjustment: a true risk-adjusted yield is *yield minus expected loss* (APY − PD × LGD), which needs a loss model the Risk Rating does not yet carry. That field is reserved as `expected_loss_adjusted_apy` and is `null` until the rated-event model ships. Do not present the rank as a percentage. # Formula `safety_weighted_rank_score = Effective APY × (Safety Score / 100)` * **Effective APY** is the raw APY, except when the pool is flagged as an APY spike (see below), in which case the 30-day mean APY is used. * **Safety Score** is the score of the pool's **riskiest** constituent (0–100, higher = safer; equivalent to `100 − risk score`). Examples (same arithmetic, read as an ordering only): * 4% APY, every constituent **A+** (safety score 96) → rank **3.84** * 15% APY from a pool whose riskiest constituent is **C+** (safety score 35) → rank **5.25** * 25% APY, riskiest constituent **F** (safety score 2) → rank **0.5** The second pool outranks the first; that says nothing about what either pays after losses. # Pool Grade = Riskiest Constituent Pools are drawn from Webacy's stablecoin pool dataset (stablecoin=true, TVL ≥ \$1M, APY ≥ 0.1%, APY \< 200%). **Every** underlying token of a pool is resolved to a Risk Rating by its **chain and contract address** — never by ticker symbol. Ticker matching is not used at all: the same ticker exists on several chains and from several issuers, and a ticker fallback would hand a pool the grade of whichever twin happened to match. The pool's `grade` and `safety_score` are those of the **least safe** constituent. A USDC-FRAX pool carries FRAX's grade, not USDC's. Each pool reports how much of its constituent set is graded: | `coverage` | Meaning | Grade / rank | | :- | :- | :- | | `full` | Every constituent has a Risk Rating | Graded and ranked | | `partial` | At least one constituent has no Risk Rating | **Not graded, not ranked** — one graded leg never stands for the pool | | `none` | Nothing resolvable (unsupported chain, no underlying tokens, or no constituent graded) | Not graded, not ranked | `constituents[]` lists every graded leg (`symbol`, `chain`, `address`, `grade`, `safety_score`) in the pool's own order; `unmatched_constituents[]` lists the addresses with no rating. Ungraded pools sort after ranked ones. # ⚠ APY Spike Detection When a pool's current APY is **3× or more above its 30-day mean APY**, it is flagged as a stress spike. These spikes almost always indicate a crisis event — exploit, oracle failure, or liquidation cascade — not a genuine yield opportunity. > [!WARNING] > > **Real example — Resolv/Morpho USDC (March 2026):** > > After the Resolv USR minting exploit, the RESOLVUSDC Morpho vault on Ethereum showed 38% APY while its 30-day mean was \~8% (spike ratio 4.77×). The elevated rate reflected liquidation stress and oracle risk — not a safe high-yield deposit opportunity. Gauntlet (vault risk curator) emergency-deallocated from all Resolv markets. The rank for this pool correctly used the 8% mean (rank 7.57) rather than the spiked 38% (rank 36.14). `apy_spike` and `apy_spike_ratio` are reported on every pool; the `apy` field is always the raw current APY. # Filters Applied | **Filter** | **Value** | **Reason** | | :- | :- | :- | | stablecoin | **true** | Only stablecoin-denominated pools | | outlier | **false** | Exclude statistical outliers | | min TVL | **\$1M** | Filter out thin, illiquid pools | | min APY | **0.1%** | Exclude near-zero noise | | max APY | **200%** | Exclude unsustainable outlier yields | # Field Definitions | **Field** | **Description** | | :- | :- | | `symbol` | Pool token pair(s) as reported upstream. | | `project` | Protocol name (Aave, Morpho, Curve, etc.). | | `chain` | Network the pool is deployed on. | | `grade` | Risk Rating of the pool's **riskiest** constituent (A+ to F). `null` unless `coverage` is `full`. See [Risk Rating](/safety-grade). | | `safety_score` | The riskiest constituent's 0–100 safety score. `null` unless `coverage` is `full`. | | `coverage` | `full` / `partial` / `none` — see above. | | `constituents` | Graded underlying tokens with their own grade and score. | | `unmatched_constituents` | Underlying token addresses with no Risk Rating. | | `apy` | Nominal APY (%) as reported upstream. | | `apy_base` / `apy_reward` | Intrinsic and incentive components of the APY (%). | | `apy_mean_30d` | 30-day mean APY (%). | | `apy_spike` / `apy_spike_ratio` | Spike flag and current ÷ 30-day-mean ratio. | | `safety_weighted_rank_score` | Effective APY × (Safety Score / 100). **Unitless ranking index, not a yield.** Primary sort key. `null` when the pool is not graded. | | `expected_loss_adjusted_apy` | Reserved for APY − expected loss. Always `null` today. | | `tvl_usd` | Total Value Locked in the pool (USD). | # Update Cadence * **Pool data** — fetched fresh each run. * **Risk ratings** — recalculated daily at 04:15 UTC; yield scores depend on them. * **Yield scores output** — recalculated every 6 hours.