NEARViewingKey
SIP Protocol API Reference v0.15.1
SIP Protocol API Reference / NEARViewingKey
Interface: NEARViewingKey
Section titled “Interface: NEARViewingKey”Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:18866
A NEAR viewing key with associated metadata
Properties
Section titled “Properties”privateKey
Section titled “privateKey”privateKey:
`0x${string}`
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:18871
The viewing private key (32 bytes) Used for decryption and stealth address scanning
publicKey
Section titled “publicKey”publicKey:
`0x${string}`
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:18876
The viewing public key (32 bytes) Can be shared for encryption
hash:
`0x${string}`
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:18881
Hash of the viewing public key for announcement matching This is published on-chain to enable efficient scanning
label?
Section titled “label?”
optionallabel?:string
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:18885
Optional label for this viewing key
createdAt
Section titled “createdAt”createdAt:
number
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:18889
Timestamp when this key was created