Kiosk client/Kiosk transaction
Examples
The following dApp-focused examples demonstrate how to use the SDK to interact with Kiosk.
Minting into Kiosk example
For every scenario using Kiosk in dApps, the user who has connected their wallet either has at least one kiosk already or you must create it for them.
The SDK supports the scenario of silently
creating the kiosk, as part of our Programmable
Transaction.
Assume that the mint function of the contract is:
public fun mint(coin: Coin<SUI>, kiosk: &mut Kiosk, cap: &KioskOwnerCap){...}