useTokenOpenseaBanned

This hook is used to check if a particular token has been flagged for suspicious activity on OpenSea. Once the hook is imported the next step is to use it within a React component. You'll need to pass in a collectionId and a tokenId. Currently there's no requirement for an OpenSea api token to use the underlying API. Note that this hook only works with mainnet tokens.

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

const isBanned = useTokenOpenseaBanned(collectionId, tokenId)