totalSupply

Calls the "totalSupply" function on the contract.

Example

import { totalSupply } from "thirdweb/extensions/erc1155";
const result = await totalSupply({
contract,
id: ...,
});

Parameters

Returns

The parsed result of the function call.