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
| Parameter | Type | Description |
|---|---|---|
| params | ERC20TotalSupplyParams | (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.