> ## Documentation Index
> Fetch the complete documentation index at: https://sequence-0fb8d9e6-shop-docs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# useInventory

> The useInventory hook retrieves the user inventory in a collection from your Marketplace.

```ts
import { useInventory } from "@0xsequence/marketplace-sdk/react";

## Into your React component:

const { data: inventoryData } = useInventory({
  accountAddress: "0x2b54eAE39bdcDbBE1bbe001a4329C38cD58679D1",
  chainId: 421614,
  collectionAddress: "0x36631c1e690714192614364ae9629850b546d194"
});

console.log(inventoryData);
```

<ResponseField name="useInventory">
  <ResponseField name="* params" />

  <Expandable>
    ```ts
    interface UseInventoryArgs {
      accountAddress: Address;
      collectionAddress: Address;
      chainId: number;
      isLaos721?: boolean;
      query?: {
        enabled?: boolean;
      };
    }
    ```
  </Expandable>

  <ResponseField name="* return properties" />

  <Expandable>
    <ParamField path="data" type="CollectiblesResponse">
      Contains the user inventory data.
    </ParamField>

    <ParamField path="isLoading" type="boolean">
      Indicates whether the data is currently loading.
    </ParamField>

    <ParamField path="fetchNextPage" type="(options?: FetchNextPageOptions) => Promise<UseInfiniteQueryResult>">
      This function allows you to fetch the next "page" of results.
    </ParamField>
  </Expandable>
</ResponseField>
