Home > @3rdweb/sdk > IThirdwebSdk > createSnapshot
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Creates a snapshot from a list of leafs. The leafs could be addresses, hashes, etc.
Signature:
createSnapshot(leafs: string[]): Promise<{
merkleRoot: string;
snapshotUri: string;
snapshot: Snapshot;
}>;
Parameter | Type | Description |
---|---|---|
leafs | string[] | The list of leafs to create a snapshot from (e.g. addresses) |
Returns:
Promise<{ merkleRoot: string; snapshotUri: string; snapshot: Snapshot; }>