Kiosk client
Kiosk Client
Kiosk Client is the base for all Kiosk SDK functionality.
We recommend you keep only one instance of
KioskClient
throughout your dApp or script. For example, in react, you'd use a context to provide the client.
Creating a kiosk client
You can follow the example to create a KioskClient
. The client currently supports MAINNET
and
TESTNET
. View next section for usage in other networks.
Mysten Kiosk rules and extensions are not supported in Devnet due to network wipes (that would require constantly changing the package IDs).
Using KioskClient on devnet or localnet
To use all the functionality of Kiosk SDK outside of MAINNET
and TESTNET
, use Network.CUSTOM
as the network, and pass the packageIds
for the rules and extensions you want to use.