Constructors
constructor
- new ZkSendLink(__namedParameters): ZkSendLink
Properties
address
address: string
Optional
assets
assets?: LinkAssets
Optional
bagObject
Optional
claimed
claimed?: boolean
Optional
claimedBy
claimedBy?: string
Optional
creatorAddress
creatorAddress?: string
Optional
keypair
Methods
claimAssets
- claimAssets(address, __namedParameters?): Promise<SuiTransactionBlockResponse>
Parameters
- address: string
- __namedParameters: {
reclaim?: false;
sign?: undefined;
} | {
reclaim: true;
sign: ((transaction: Uint8Array) => Promise<string>);
} = {}
createClaimTransaction
- createClaimTransaction(address, __namedParameters?): Transaction
Parameters
- address: string
- __namedParameters: {
reclaim?: boolean;
} = {}Optional
reclaim?: boolean
createRegenerateTransaction
- createRegenerateTransaction(sender, options?): Promise<{
transaction: Transaction;
url: string;
}> Returns Promise<{
transaction: Transaction;
url: string;
}>
loadAssets
- loadAssets(options?): Promise<void>
Returns Promise<void>
loadClaimedStatus
- loadClaimedStatus(): Promise<void>
Returns Promise<void>
Static
fromAddress
- fromAddress(address, options): Promise<ZkSendLink>
Parameters
- address: string
- options: Omit<ZkSendLinkOptions, "address" | "keypair" | "isContractLink">
Static
fromUrl
- fromUrl(url, options?): Promise<ZkSendLink>
Parameters
- url: string
- options: Omit<ZkSendLinkOptions, "address" | "keypair" | "isContractLink"> = {}