Skip to content

isNEARAnnouncementForViewingKey()

SIP Protocol API Reference v0.15.1


SIP Protocol API Reference / isNEARAnnouncementForViewingKey

Function: isNEARAnnouncementForViewingKey()

Section titled “Function: isNEARAnnouncementForViewingKey()”

isNEARAnnouncementForViewingKey(announcementHash, viewingKey): boolean

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:19178

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