Skip to content

TakeCanisterSnapshotOptions

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

Options for taking a snapshot of a canister.

Principal

canisterId: Principal

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

The Principal of the canister to take a snapshot of.


optional replaceSnapshot: Uint8Array<ArrayBufferLike>

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

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


optional sender: Principal

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

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


optional uninstallCode: boolean

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

Whether to uninstall the canister’s code after taking the snapshot.