useCollections
This hook is SWR powered. Use this hook to fetch a collection, using the Collections endpoint. It takes a query parameter which maps to the same parameters that the api endpoint uses.
import { useCollections } from '@reservoir0x/reservoir-kit-ui'
const { data: collection } = useCollections({
id: "0xb47e3cd837ddf8e4c57f05d70ab865de6e193bbb",
})
Updated about 2 years ago