Creates an NFT API for a configured low-level provider.
The AftermathApi that supplies the gRPC object and dynamic
field readers. Its addresses.nfts value must include
packages.mystenTransferPolicy.
ReadonlyaddressesNFT package addresses used to derive the personal-kiosk type.
ReadonlyobjectFully qualified Move types used by the NFT readers.
The personal-kiosk owner-cap type derived from addresses.
Fetches and casts kiosk owner caps from a list of object IDs.
This method performs gRPC object-batch reads. It selects the regular or personal-kiosk caster from each object's Move type and drops per-object errors handled by the underlying batch reader.
The owner-cap object IDs to fetch.
Cast kiosk owner caps for objects returned by gRPC.
Loads the NFTs for each kiosk represented by owner caps.
This method performs gRPC dynamic-field and object reads by calling
fetchNftsInKiosk once for each cap. The returned kiosks preserve the input
cap order. isPersonal is true only when the cap's objectType equals
objectTypes.personalKioskCap.
The kiosk owner-cap objects to materialize.
One kiosk object per input cap, including its NFT list.
Fetches owner caps by ID and materializes their kiosks.
This method performs gRPC object, dynamic-field, and NFT Display reads by
composing fetchKioskOwnerCaps and fetchKiosks.
The regular or personal-kiosk owner-cap object IDs.
The materialized kiosk objects in owner-cap order.
Fetches and casts a batch of NFT object IDs.
This method performs gRPC object reads in batches of at most 50 IDs and requests Display output. Missing object responses and objects that do not have usable Display fields are omitted from the returned array.
The Sui object IDs to fetch.
Renderable NFTs for the successfully fetched IDs.
Fetches renderable NFTs stored in a kiosk's dynamic fields.
This method performs paginated gRPC dynamic-field reads and then fetches the referenced objects with Display output. The dynamic-field helper consumes all pages before the NFT object batch is loaded.
The kiosk object ID used as the dynamic-field parent.
Renderable NFTs found in the kiosk.
Fetches regular and personal-kiosk owner caps owned by a wallet.
This method performs two paginated gRPC owned-object queries: one for
0x2::kiosk::KioskOwnerCap and one for the derived personal-kiosk cap
type. The returned array concatenates the regular-cap results before the
personal-cap results.
The owner's Sui address.
Kiosk owner caps owned by the wallet.
Fetches all kiosks owned by a wallet and loads their NFTs.
This method performs paginated gRPC owned-object reads followed by dynamic
field and NFT object reads for each kiosk. It includes both regular and
personal kiosks and marks each result with isPersonal.
The wallet address whose kiosk owner caps are queried.
The wallet's kiosks and their renderable NFTs.
Fetches renderable NFTs owned by a wallet address.
This method performs paginated gRPC object reads through
Objects().fetchOwnedObjects and requests Display output. Objects without
Display data, with Display errors, or with no non-empty display field are
omitted by the caster.
The owner's Sui address.
Renderable NFTs in the order returned by the object reader.
Fetches NFTs and kiosk data from Sui through the low-level
AftermathApi.Every fetch method performs gRPC network I/O through the object and dynamic field helpers. NFT reads request Display data and return only objects that can be rendered by
NftsApiCasting; missing Display output is filtered out. Construct this class only with anAftermathApithat has the required NFT package addresses.