useTokenSupply
Get the total supply for this token
function useTokenSupply(
contract: RequiredParam<TokenContract>,
): UseQueryResult<{}, unknown>;
Parameters
Returns
a response object that includes the total minted supply
type ReturnType = UseQueryResult<{}, unknown>;
Example
const {
data: totalSupply,
isLoading,
error,
} = useTokenSupply(contract);