Skip to main content

Parameters

NameTypeDescription
params.chainIdnumberThe chain ID (must be a number, e.g., 1 for Ethereum, 137 for Polygon)
params.collectionAddressstringThe collection contract address
params.tokenIdstringThe token ID within the collection
params.filterOrderFilterOptional filter for orders
params.queryStandardQueryOptionsOptional React Query configuration (from TanStack Query)

Returns

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

Example

Basic usage:
const { data, isLoading } = useHighestOffer({
  chainId: 137,
  collectionAddress: '0x...',
  tokenId: '1'
});
With custom query options:
const hasTokenId = true;

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