SurveillanceAnalyzer
SIP Protocol API Reference v0.7.4
SIP Protocol API Reference / SurveillanceAnalyzer
Class: SurveillanceAnalyzer
Section titled “Class: SurveillanceAnalyzer”Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:21972
SurveillanceAnalyzer - Analyze wallet privacy exposure
Example
Section titled “Example”import { SurveillanceAnalyzer } from '@sip-protocol/sdk'
const analyzer = new SurveillanceAnalyzer({ heliusApiKey: process.env.HELIUS_API_KEY!, cluster: 'mainnet-beta',})
const result = await analyzer.analyze('7xK9...')console.log(result.privacyScore.overall) // 45console.log(result.privacyScore.risk) // 'high'Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SurveillanceAnalyzer(
config):SurveillanceAnalyzer
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:21975
Parameters
Section titled “Parameters”config
Section titled “config”Returns
Section titled “Returns”SurveillanceAnalyzer
Methods
Section titled “Methods”analyze()
Section titled “analyze()”analyze(
walletAddress):Promise<FullAnalysisResult>
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:21982
Perform full privacy analysis on a wallet
Parameters
Section titled “Parameters”walletAddress
Section titled “walletAddress”string
Solana wallet address to analyze
Returns
Section titled “Returns”Promise<FullAnalysisResult>
Complete analysis result with all details
quickScore()
Section titled “quickScore()”quickScore(
walletAddress):Promise<{score:number;risk:"medium"|"critical"|"high"|"low";topIssue:string|null; }>
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:22011
Get quick privacy score without full analysis
Performs a lighter analysis suitable for real-time display. Uses only the most recent transactions (100 max).
Parameters
Section titled “Parameters”walletAddress
Section titled “walletAddress”string
Returns
Section titled “Returns”Promise<{ score: number; risk: "medium" | "critical" | "high" | "low"; topIssue: string | null; }>