Querying
You can use the kioskClient
to query kiosk data. It helps you get owned kiosks for an address, as
well as fetching all the contents of a specified kiosk.
Querying owned kiosks
Querying owned kiosks returns a list of kioskOwnerCaps
, as well as a list of the kioskIds
.
KioskOwnerCap
is important in this case, as it is used for managing an owned kiosk, as well as
purchasing.
Querying kiosk content
You can follow the sample to query a kiosk's contents. We recommend saving the items
structure
(KioskItem
), as it's useful when you're trying to purchase from one.
listing
field only applies on items that are listed for sale.
Query kiosk extension
Queries an extension's data. Returns null
if there's no extension with that type installed.
Querying transfer policy for type
Get owned transfer policies
Queries to find all the owned transfer policies. Useful to manage transfer policies, and can be
combined with TransferPolicyTransaction
to easily add or remove rules and withdraw profits.
Get owned transfer policies by type
Queries to find all the owned transfer policies for a specific type. Useful to manage transfer policies, and can be combined with