useUsersActivity

This hook is SWR powered. Use this hook to fetch a single user or multiple user's activity, using the Users Activity endpoint. It takes an array of users (i.e. wallet addresses), 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 { useUsersActivity } from '@reservoir0x/reservoir-kit-ui'

const { data: activity } = useUsersActivity(
  ["0xFd03726FD90ccc7386bf62b44Bb594f7cbFB3995"]
)