isNEARAnnouncementForViewingKey()
SIP Protocol API Reference v0.7.4
SIP Protocol API Reference / isNEARAnnouncementForViewingKey
Function: isNEARAnnouncementForViewingKey()
Section titled “Function: isNEARAnnouncementForViewingKey()”isNEARAnnouncementForViewingKey(
announcementHash,viewingKey):boolean
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:18842
Check if an announcement hash matches a viewing key
Used during scanning to efficiently filter announcements that belong to this viewing key.
Parameters
Section titled “Parameters”announcementHash
Section titled “announcementHash”`0x${string}`
Hash from the on-chain announcement
viewingKey
Section titled “viewingKey”The viewing key to check against
Returns
Section titled “Returns”boolean
true if the announcement is for this viewing key