Skip to content

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:

  • CanisterId is a unique identifier for a canister.
  • u64 is a subnet-local number (incremented for each new snapshot).

string

The hex string representation of the snapshot ID.

snapshot_id

The decoded snapshot ID as a Uint8Array.