Skip to content

DownloadCanisterSnapshotOptions

Defined in: packages/pic/src/pocket-ic-types.ts:1438

Options for downloading a snapshot of a canister to a directory.

Principal

canisterId: Principal

Defined in: packages/pic/src/pocket-ic-types.ts:1398

The Principal of the canister the snapshot belongs to.

CanisterSnapshotOptions.canisterId


optional sender: Principal

Defined in: packages/pic/src/pocket-ic-types.ts:1450

The Principal to send the request as. Defaults to the anonymous principal. It must be a controller unless the canister’s snapshot visibility allows it.

CanisterSnapshotOptions.sender


snapshotDir: string

Defined in: packages/pic/src/pocket-ic-types.ts:1443

The directory to download the snapshot to, on the machine running the PocketIC server. It must be empty or not exist yet.


snapshotId: Uint8Array

Defined in: packages/pic/src/pocket-ic-types.ts:1403

The ID of the snapshot.

CanisterSnapshotOptions.snapshotId