useTokens
This hook is SWR powered and also handles infinite loading UX. Use this hook to fetch token details, using the Tokens endpoint. It takes a query parameter which maps to the same parameters that the api endpoint uses.
import { useTokens } from '@reservoir0x/reservoir-kit-ui'
const { data: tokens } = useTokens({
tokens: ["0xb47e3cd837ddf8e4c57f05d70ab865de6e193bbb:1"],
})
Updated about 2 years ago