Scalars

Scalars are the value types that every field in a GraphQL document eventually resolves to. It can be viewed as the primitive data type that stores a single value. There are 5 built-in scalars: int, float, string, Boolean, and id - we have also defined custom scalars to help define the data we return.

Address

A 20-byte Ethereum address, encoded as a checksummed hex string with 0x prefix.

BigInt

An integer of arbitrary precision, decimal-encoded. Typically a uint256.

Boolean

Represents a boolean value that can be either true or false.

Bytes

An array of byte, encoded as a lowercase hex string with 0x prefix.

Float

A signed double-precision floating-point value.

ID

A unique identifier, often used to refetch an object or as a key for caching.

Int

A signed 32-bit integer.

String

A UTF-8 character sequence.

Time

A point in time, encoded per RFC-3999. This is in second precision and in UTC, an example would be 2023-12-04T18:32:12Z.

Last updated