Docs

totalSupply

Calls the "totalSupply" function on the contract.

Example

import { totalSupply } from "thirdweb/extensions/erc20";
const result = await totalSupply({
contract,
});

Parameters

Returns

The parsed result of the function call.