TokenAmount
Represents a token amount with both raw (base unit) and human-readable formatted values. Includes decimal information for proper conversion between representations.
Schema Definition
type TokenAmount {
raw: BigInt!
formatted: String!
decimals: Int!
}
Fields
| Field | Type | Description |
|---|---|---|
raw | Raw amount in the smallest unit (e.g., wei for native currency, or base units for tokens). Represented as a string to handle large numbers. | |
formatted | Human-readable formatted amount with decimal places applied (e.g., '1.5' for 1.5 tokens). | |
decimals | Number of decimal places used in the formatted representation. |
Member Of
BlockTransaction object ● Token object ● TokenBalance object ● TokenHolder object ● Transaction object ● TransactionStats object