detectClusters()
SIP Protocol API Reference v0.7.4
SIP Protocol API Reference / detectClusters
Function: detectClusters()
Section titled “Function: detectClusters()”detectClusters(
transactions,walletAddress):ClusterResult
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:22086
Detect address clusters using Common Input Ownership Heuristic
Parameters
Section titled “Parameters”transactions
Section titled “transactions”Transaction history to analyze
walletAddress
Section titled “walletAddress”string
The wallet being analyzed
Returns
Section titled “Returns”Cluster detection result
Example
Section titled “Example”const result = detectClusters(transactions, 'abc123...')console.log(result.linkedAddressCount) // 5console.log(result.clusters[0].linkType) // 'common-input'