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:
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”The snapshot ID to encode, represented as a Uint8Array or an array of numbers.
Returns
Section titled “Returns”string
The hex string representation of the snapshot ID.