Skip to main content

Parameters

NameTypeDescription
params.configSdkConfigConfiguration parameters
params.chainIdnumberThe chain ID (must be a number, e.g., 1 for Ethereum, 137 for Polygon)
params.collectionAddressstringThe collection contract address
params.collectibleIdstringThe specific collectible/token ID
params.filterOrdersFilterOptional filter criteria for offers
params.queryStandardQueryOptionsOptional React Query configuration (from TanStack Query)

Returns

Query result containing the count of offers

Example

Basic usage:
const { data: offerCount, isLoading } = useCountOffersForCollectible({
  chainId: 137,
  collectionAddress: '0x...',
  collectibleId: '123'
});
With filter:
const { data: filteredCount } = useCountOffersForCollectible({
  chainId: 137,
  collectionAddress: '0x...',
  collectibleId: '123',
  filter: { 
    priceRange: { min: '1000000000000000000' } 
  }
});