decodeSnapshotId
decodeSnapshotId(
snapshotId):snapshot_id
Defined in: packages/ic-management/src/utils/ic-management.utils.ts:28
Decodes a hex string representation of a snapshot ID back into its original format.
A snapshot ID is a tuple (CanisterId, u64), where:
CanisterIdis a unique identifier for a canister.u64is a subnet-local number (incremented for each new snapshot).
Parameters
Section titled “Parameters”snapshotId
Section titled “snapshotId”string
The hex string representation of the snapshot ID.
Returns
Section titled “Returns”The decoded snapshot ID as a Uint8Array.