Skip to main content

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

FieldTypeDescription
raw
BigInt! non-null scalar
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
String! non-null scalar
Human-readable formatted amount with decimal places applied (e.g., '1.5' for 1.5 tokens).
decimals
Int! non-null scalar
Number of decimal places used in the formatted representation.

Member Of

BlockTransaction object ● Token object ● TokenBalance object ● TokenHolder object ● Transaction object ● TransactionStats object