Skip to content

detectClusters()

SIP Protocol API Reference v0.7.4


SIP Protocol API Reference / detectClusters

detectClusters(transactions, walletAddress): ClusterResult

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:22086

Detect address clusters using Common Input Ownership Heuristic

AnalyzableTransaction[]

Transaction history to analyze

string

The wallet being analyzed

ClusterResult

Cluster detection result

const result = detectClusters(transactions, 'abc123...')
console.log(result.linkedAddressCount) // 5
console.log(result.clusters[0].linkType) // 'common-input'