Skip to main content

sdk.constellation.totalsupply

Home > @openformat/sdk > Constellation > totalSupply

Constellation.totalSupply() method

Returns the total supply of tokens.

totalSupply

Signature:

totalSupply(params?: ERC20TotalSupplyParams): Promise<string>;

Parameters

ParameterTypeDescription
paramsERC20TotalSupplyParams(Optional)

Returns:

Promise<string>

{Promise<number>} - The total supply of tokens as a number.

Exceptions

{Error} - If the method call fails, an error is thrown with the relevant error message.