Creates a useQuery hook for a contract call.
useQuery
import { createContractQuery } from "thirdweb/react";import { totalSupply } from "thirdweb/extensions/erc20";const useTotalSupply = createContractQuery(totalSupply);const { data, isLoading } = useTotalSupply({ contract });
An object containing the created useRead hook.
useRead