Skip to main content

HasDecimals

Implemented by token contracts that use decimal precision for amounts. Primarily ERC-20 tokens and similar fungible token standards where amounts need decimal representation.

Schema Definition

interface HasDecimals {
decimals: Int!
}

Fields

FieldTypeDescription
decimals
Int! non-null scalar
Number of decimal places used to represent token amounts. Common values: 18 (most tokens), 6 (USDC, USDT), 8 (WBTC).

Implemented By

Token object