Skip to content

encodeSnapshotId

encodeSnapshotId(snapshotId): string

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

Encodes a snapshot ID into a hex string representation.

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).

snapshot_id

The snapshot ID to encode, represented as a Uint8Array or an array of numbers.

string

The hex string representation of the snapshot ID.