Import
Usage
Return Type: UseQueryResult
The hook returns a React Query result object with the following key properties:
Parameters
Parameter | Type | Description |
---|---|---|
chainId | number | The chain ID (e.g., 1 for Ethereum, 137 for Polygon) |
collectionAddress | string | The collection contract address |
tokenId | string | The token ID within the collection |
query | object | (Optional) React Query configuration options |
config | object | (Optional) SDK configuration options |
Query Options
You can customize the query behavior using the optionalquery
parameter:
Notes
This hook is useful for:- Displaying the current lowest price for a specific Collectible
- Building price comparison features
- Data fetching and caching
- Loading and error states
- Type-safe responses
Make sure to provide valid chain IDs and contract addresses. Invalid
parameters will result in failed queries.