useAttributes

This hook is SWR powered. Use this hook to fetch collection attributes, using the All Attributes endpoint. It takes a query parameter which maps to the same parameters that the api endpoint uses.

import { useAttributes } from '@reservoir0x/reservoir-kit-ui'

  const attributes = useAttributes(collectionId)