quartz/wallet/node_modules/@3rdweb/sdk/dist/interfaces/IThirdwebSdk.d.ts
2022-03-04 20:05:23 +08:00

18 lines
683 B
TypeScript

import { Snapshot } from "../types/snapshots";
export default interface IThirdwebSdk {
/**
* Creates a snapshot from a list of leafs. The leafs could be addresses,
* hashes, etc.
*
* @beta - This method is still in beta and the API is subject to change.
*
* @param leafs - The list of leafs to create a snapshot from (e.g. addresses)
* @returns - An object containing the snapshot URI (which is uploaded to storage) and the merkle root (which can be used in a Claim Condition)
*/
createSnapshot(leafs: string[]): Promise<{
merkleRoot: string;
snapshotUri: string;
snapshot: Snapshot;
}>;
}