0xcalldata

ERC-20 function

decimals()

Returns the decimal precision commonly used to display an ERC-20 token amount.

Selector
0x313ce567
Mutability
view

Generate decimals 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
sel0x313ce567
decimals()

How decimals works

Contracts store and transfer integer amounts. A decimals value of 6 means that 1,000,000 base units are commonly displayed as one token.

Parameters

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

Return value

The display precision as an unsigned 8-bit integer.

uint8 result

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

View all ERC-20 functions →