@evefrontier/dapp-kit - v0.0.1
    Preparing search index...

    Function getOwnedObjectsByType

    • Get all objects of a specific type owned by an address.

      Returns only object addresses (lightweight). Use this when you need to find objects and will fetch their details separately.

      Parameters

      • owner: string

        The owner's Sui address

      • OptionalobjectType: string

        Optional Move type filter (e.g., "0xpkg::module::Type")

      Returns Promise<GraphQLResponse<GetOwnedObjectsByTypeResponse>>

      Promise resolving to list of owned object addresses

      const result = await getOwnedObjectsByType(
      "0xowner...",
      "0xworld::smart_storage_unit::SmartStorageUnit"
      );
      const addresses = result.data?.address?.objects?.nodes.map(n => n.address);