Skip to content

exportNEARViewingKey()

SIP Protocol API Reference v0.7.4


SIP Protocol API Reference / 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.

NEARViewingKey

The viewing key to export

NEARViewingKeyExport

The export object (serialize with JSON.stringify)

const exported = exportNEARViewingKey(viewingKey)
const json = JSON.stringify(exported)
// Save to file or send to auditor