Marketplace Data
useFloorOrder
Hook to fetch the floor order for a collection Retrieves the lowest priced order (listing) currently available for any token in the specified collection from the marketplace
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Hook to fetch the floor order for a collection Retrieves the lowest priced order (listing) currently available for any token in the specified collection from the marketplace
| Name | Type | Description |
|---|---|---|
params.config | SdkConfig | Configuration parameters |
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.filter | OrdersFilter | Optional filter criteria for collectibles |
params.query | StandardQueryOptions | Optional React Query configuration (from TanStack Query) |
const { data, isLoading } = useFloorOrder({
chainId: 137,
collectionAddress: '0x...'
});
const { data, isLoading } = useFloorOrder({
chainId: 1,
collectionAddress: '0x...',
filter: {
minPrice: '1000000000000000000' // 1 ETH in wei
},
query: {
refetchInterval: 30000,
enabled: hasCollectionAddress
}
});
Was this page helpful?