NEARViewingKey
SIP Protocol API Reference v0.7.4
SIP Protocol API Reference / NEARViewingKey
Interface: NEARViewingKey
Section titled “Interface: NEARViewingKey”Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:18530
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-DXh2IGkz.d.ts:18535
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-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
label?
Section titled “label?”
optionallabel:string
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:18549
Optional label for this viewing key
createdAt
Section titled “createdAt”createdAt:
number
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:18553
Timestamp when this key was created