0xcalldata

ERC-20 function

totalSupply()

Returns the ERC-20 token supply currently reported by the contract.

Selector
0x18160ddd
Mutability
view

Generate totalSupply calldata

Edit the example inputs to rebuild the bytes instantly in your browser. Nothing is sent and no transaction is submitted.

This function takes no parameters.

calldata4 bytes
sel0x18160ddd
totalSupply()

How totalSupply works

The result is a raw uint256 amount. Convert it with the token’s decimals only when presenting a human-readable value.

Parameters

This function takes no parameters. Its calldata is only the four-byte selector.

Return value

The current total supply in the token’s base units.

uint256 result

Return data comes back after execution and is not included in the calldata above.

View all ERC-20 functions →