Skip to content

mapSnapshotId

mapSnapshotId(snapshotId): snapshot_id

Defined in: packages/ic-management/src/utils/ic-management.utils.ts:40

Maps a snapshot ID to the appropriate format for the IC interface.

The snapshot ID to map. It can either be a string (SnapshotIdText) or a Uint8Array | number[] (snapshot_id). If a string is provided, it is decoded into a Uint8Array using decodeSnapshotId.

string | snapshot_id

snapshot_id

The mapped snapshot ID.