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.
Parameters
Section titled “Parameters”snapshotId
Section titled “snapshotId”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
Returns
Section titled “Returns”The mapped snapshot ID.