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

# useHighestOffer

> Hook to fetch the highest offer for a collectible Retrieves the highest offer currently available for a specific token in a collection from the marketplace

## Parameters

| Name                       | Type                   | Description                                                            |
| -------------------------- | ---------------------- | ---------------------------------------------------------------------- |
| `params.chainId`           | `number`               | The chain ID (must be a number, e.g., 1 for Ethereum, 137 for Polygon) |
| `params.collectionAddress` | `string`               | The collection contract address                                        |
| `params.tokenId`           | `string`               | The token ID within the collection                                     |
| `params.filter`            | `OrderFilter`          | Optional filter for orders                                             |
| `params.query`             | `StandardQueryOptions` | Optional React Query configuration (from TanStack Query)               |

## Returns

Query result containing the highest offer data or null if no offers exist

## Example

Basic usage:

```typescript theme={null}
const { data, isLoading } = useHighestOffer({
  chainId: 137,
  collectionAddress: '0x...',
  tokenId: '1'
});
```

With custom query options:

```typescript theme={null}
const hasTokenId = true;

const { data, isLoading } = useHighestOffer({
  chainId: 1,
  collectionAddress: '0x...',
  tokenId: '42',
  query: {
    refetchInterval: 15000,
    enabled: hasTokenId
  }
});
```
