TakeCanisterSnapshotOptions
Defined in: packages/pic/src/pocket-ic-types.ts:1365
Options for taking a snapshot of a canister.
Properties
Section titled “Properties”canisterId
Section titled “canisterId”canisterId:
Principal
Defined in: packages/pic/src/pocket-ic-types.ts:1369
The Principal of the canister to take a snapshot of.
replaceSnapshot?
Section titled “replaceSnapshot?”
optionalreplaceSnapshot:Uint8Array<ArrayBufferLike>
Defined in: packages/pic/src/pocket-ic-types.ts:1374
The ID of an existing snapshot to replace with the new one.
sender?
Section titled “sender?”
optionalsender:Principal
Defined in: packages/pic/src/pocket-ic-types.ts:1385
The Principal to send the request as. Defaults to the anonymous principal.
uninstallCode?
Section titled “uninstallCode?”
optionaluninstallCode:boolean
Defined in: packages/pic/src/pocket-ic-types.ts:1379
Whether to uninstall the canister’s code after taking the snapshot.