detectExchangeExposure()
SIP Protocol API Reference v0.7.4
SIP Protocol API Reference / detectExchangeExposure
Function: detectExchangeExposure()
Section titled “Function: detectExchangeExposure()”detectExchangeExposure(
transactions,walletAddress,customExchanges?):ExchangeExposureResult
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:22119
Detect exchange interactions in transaction history
Parameters
Section titled “Parameters”transactions
Section titled “transactions”Transaction history to analyze
walletAddress
Section titled “walletAddress”string
The wallet being analyzed
customExchanges?
Section titled “customExchanges?”Optional custom exchange list
Returns
Section titled “Returns”Exchange exposure analysis result
Example
Section titled “Example”const result = detectExchangeExposure(transactions, 'abc123...')console.log(result.exchangeCount) // 2console.log(result.exchanges[0].name) // 'Binance'