useBids
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.
Parameter | Type |
---|---|
options | Bids (offers) options |
swrOptions | SWR Options |
enabled | Boolean |
import { useBids } from '@reservoir0x/reservoir-kit-ui'
const {
data: bids,
fetchNextPage,
hasNextPage,
} = useBids({
contracts: ['0xb47e3cd837ddf8e4c57f05d70ab865de6e193bbb'],
})
Updated almost 2 years ago