generateRandomNEARViewingKey()
SIP Protocol API Reference v0.7.4
SIP Protocol API Reference / generateRandomNEARViewingKey
Function: generateRandomNEARViewingKey()
Section titled “Function: generateRandomNEARViewingKey()”generateRandomNEARViewingKey(
label?):NEARViewingKey
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:18709
Generate a new random viewing key
Creates a cryptographically random viewing key that is NOT derived from a spending key. Use this for standalone viewing keys or testing.
Parameters
Section titled “Parameters”label?
Section titled “label?”string
Optional label for the viewing key
Returns
Section titled “Returns”The generated viewing key
Example
Section titled “Example”const viewingKey = generateRandomNEARViewingKey('Audit Key')