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, and verify URL safety.
Initialization
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 |
usage | API usage statistics |
Addresses
Analyze Address Risk
Get comprehensive risk analysis for any blockchain address.| 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.Check Address Poisoning
Detect address poisoning (dust attack) attempts.Get Quick Profile
Get a lightweight risk profile with optional token approvals.| 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.Get Contract Tax
Check buy/sell tax for a token contract.Get Code Analysis
Perform static code analysis on a contract’s source code.URL Safety
Check URL
Analyze a URL for phishing and malware.Wallets
Get Approvals
List token approvals for a wallet.Get Transactions
Get risk-scored transaction history for a wallet.Account Trace
Trace Fund Flows
Trace multi-hop fund flows for compliance and forensics.Usage
Get API Usage
Monitor your API usage and quotas.Get Max RPS
Get maximum requests per second for an organization over a time period.| 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.| Option | Type | Description |
|---|---|---|
chain | Chain | Blockchain to analyze |
hideTrustFlags | boolean | Hide trust flags in response |
