Skip to content

detectExchangeExposure()

SIP Protocol API Reference v0.7.4


SIP Protocol API Reference / detectExchangeExposure

detectExchangeExposure(transactions, walletAddress, customExchanges?): ExchangeExposureResult

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

Detect exchange interactions in transaction history

AnalyzableTransaction[]

Transaction history to analyze

string

The wallet being analyzed

KnownExchange[]

Optional custom exchange list

ExchangeExposureResult

Exchange exposure analysis result

const result = detectExchangeExposure(transactions, 'abc123...')
console.log(result.exchangeCount) // 2
console.log(result.exchanges[0].name) // 'Binance'