useTokenActivity
This hook is SWR powered. Use this hook to fetch a token's activity, using the Token Activity endpoint. It takes the collection ID appended to the token ID (collectionID:tokenID), as the first parameter, an optional query object which maps to the same parameters that the API endpoint uses, as the second parameter, and an optional SWR Infinite configuration object, as the third parameter.
import { useTokenActivity } from '@reservoir0x/reservoir-kit-ui'
const { data: activity } = useTokenActivity(
"0x744df993f93c89801cadbea8a4a3fd2b4a443d2c:1793"
)
Updated over 1 year ago