totalSupply

Calls the "totalSupply" function on the contract.

Example

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

Parameters

The options for the totalSupply function.

Type

Returns

let returnType: Promise<bigint>;

The parsed result of the function call.