Skip to content

UploadCanisterSnapshotOptions

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

Options for uploading a snapshot of a canister from a directory.

Principal

canisterId: Principal

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

The Principal of the canister to upload the snapshot to.


optional replaceSnapshot: Uint8Array<ArrayBufferLike>

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

The ID of an existing snapshot to replace with the uploaded one.


optional sender: Principal

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

The Principal to send the request as. Defaults to the anonymous principal.


snapshotDir: string

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

The directory to upload the snapshot from, on the machine running the PocketIC server, as written by PocketIc.downloadCanisterSnapshot.