An address clustering workflow that uses the Nansen API to systematically identify related wallet addresses and analyze their relationships. This enables researchers to uncover wallet connections through funding patterns, shared interactions, and behavioral analysis across multiple blockchains.
Core Components
Labels: Find labels of the initial address
Related Wallets: Detection of special connections (funding, signing, contract deployment)
Counterparties Analysis: Identification of high-interaction addresses and shared patterns
This integration enables systematic discovery of wallet clusters through multiple relationship types and confidence levels.
Workflow Implementation
Step 1: Tarket Address Label Lookup
Query labels of the target address
Step 2: Initial Relationship Discovery
Query Related Wallets endpoint with target address
Identify direct relationships: relation: "First Funder", "Signer", "Deployed via"
Build initial cluster with high-confidence connections
Step 3: Counterparty Analysis
Analyze counterparties with group_by: "entity" for entity-level grouping
Filter for volume_in_usd > 50000 to find significant addresses
Identify shared CEX deposit addresses across potential cluster members
Step 4: Pattern Recognition
Compare transaction timing using block_timestamp fields
Look for addresses with similar method: "0x" patterns
Check for coordinated movements with matching transaction_type values
Step 5: Multi-Level Clustering
For each high-confidence related address, repeat steps 1-3
Cross-reference addresses that deposit to same CEX addresses
Build network graph of relationships with confidence scores
Step 6: Confidence Assessment
High confidence (>90%): First funder, shared signers, same CEX deposits
Medium confidence (60-90%): High interaction volume, coordinated timing