Private
Readonly
clientthe name to give the snapshot
the accounts to include in the snapshot
optional parameters to control the snapshot creation
Optional
commitment?: "processed" | "confirmed" | "finalized"the commitment used to determine the account state included in the snapshot
Optional
description?: stringdescription of the snapshot
Optional
group?: stringgroup of the snapshot
the id of the snapshot and the number of accounts included
Deletes all globally stored snaphots.
Optional
filter: SnapshotFilteroptional filter to apply to the snapshots returned
the ids of the deleted snapshots
Returns the pubkeys of accounts that can be snapshotted.
optional parameters to configure which accounts are included
Optional
commitment?: "processed" | "confirmed" | "finalized"the commitment the accounts must have reached
Optional
includewhether to include program accounts
Lists all snapshots that have been created with Luzid.
Optional
filter: SnapshotFilteroptional filter to apply to the snapshots returned
Restores accounts from the snapshot that was updated most recently.
Optional
opts: { optional parameters to control the restore process
Optional
accounts?: string[]the accounts to restore, not provided all accounts inside the snapshot will be restored
Optional
commitment?: "processed" | "confirmed" | "finalized"the commitment the restore transaction must reach before this method returns
Optional
deletewhether to delete the snapshot after it was restored (default: false)
Optional
filter?: SnapshotFilteroptional filter to limit the snapshots that are considered when finding the last updated snapshot
Restores accounts from a snapshot.
the id of the snapshot to retrieve accounts from
Optional
opts: { optional parameters to control the restore process
Optional
accounts?: string[]the accounts to restore, not provided all accounts inside the snapshot will be restored
Optional
commitment?: "processed" | "confirmed" | "finalized"the commitment the restore transaction must reach before this method returns
Optional
deletewhether to delete the snapshot after it was restored (default: false)
Returns the information of all accounts that are in a snapshot.
The returned accounts have the following properties:
Generated using TypeDoc
Creates a snapshot of the accounts specified.