Skip to content

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.

`0x${string}`

Hash from the on-chain announcement

NEARViewingKey

The viewing key to check against

boolean

true if the announcement is for this viewing key