exportNEARViewingKey()
SIP Protocol API Reference v0.7.4
SIP Protocol API Reference / exportNEARViewingKey
Function: exportNEARViewingKey()
Section titled “Function: exportNEARViewingKey()”exportNEARViewingKey(
viewingKey):NEARViewingKeyExport
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:18752
Export a viewing key in standard JSON format
The export format includes version information for forward compatibility and can be safely serialized to JSON.
Parameters
Section titled “Parameters”viewingKey
Section titled “viewingKey”The viewing key to export
Returns
Section titled “Returns”The export object (serialize with JSON.stringify)
Example
Section titled “Example”const exported = exportNEARViewingKey(viewingKey)const json = JSON.stringify(exported)
// Save to file or send to auditor