Icon SunFilledIcon MoonStars

Icon LinkScalars

The Fuel indexer has a collection of GraphQL scalars that cover virtually any value type in use on the Fuel network. The following list contains each GraphQL scalar type along with its equivalent Rust type.

GraphQL ScalarRust TypeNotes
Addressu8[32]
AssetIdu8[32]
BlobVec<u8>Byte blob of arbitary size
BlockIdu8[32]32-byte block ID
Booleanbool
Bytes4u8[4]
Bytes8u8[8]
Bytes32u8[32]
Bytes64u8[64]
CharfieldStringString of arbitrary size
ContractIdu8[32]
HexStringVec<u8>Byte blob of arbitrary size
IDSizedAsciiString<64>Alias of UID
Int1i8
Int4i32
Int8i64
Int16i128
JsonStringJSON string of arbitary size
MessageIdu8[32]
Nonceu8[32]
Saltu8[32]
Signatureu8[64]64-byte signature
Tai64TimestampTai64Tai64 timestamp
Timestampu64
UIDSizedAsciiString<64>32-byte unique ID
UInt1u8
UInt4u32
UInt8u64
UInt16u128
VirtualStringUsed to store types tagged with @virtual directive

Was this page helpful?