Docs

totalSupply

Retrieves the total supply of ERC20 tokens.

Example

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

Parameters

Returns

A promise that resolves to the total supply as a bigint.