This hook is SWR powered and also handles infinite loading UX. Use this hook to fetch bids, using the Bids (offers) endpoint. It takes a query parameter which maps to the same parameters that the api endpoint uses.

ParameterType
optionsBids (offers) options
swrOptionsSWR Options
enabledBoolean
import { useBids } from '@reservoir0x/reservoir-kit-ui'

 const {
   data: bids,
   fetchNextPage,
   hasNextPage,
 } = useBids({
    contracts: ['0xb47e3cd837ddf8e4c57f05d70ab865de6e193bbb'],
 })