Skip to content

NEARViewingKey

SIP Protocol API Reference v0.7.4


SIP Protocol API Reference / NEARViewingKey

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

A NEAR viewing key with associated metadata

privateKey: `0x${string}`

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

The viewing private key (32 bytes) Used for decryption and stealth address scanning


publicKey: `0x${string}`

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

The viewing public key (32 bytes) Can be shared for encryption


hash: `0x${string}`

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

Hash of the viewing public key for announcement matching This is published on-chain to enable efficient scanning


optional label: string

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

Optional label for this viewing key


createdAt: number

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

Timestamp when this key was created