Skip to main content

MoveValue

No description

type MoveValue {
bcs: Base64
json: JSON
type: MoveType
}

Fields

MoveValue.bcs ● Base64 scalar

The BCS representation of this value, Base64-encoded.

MoveValue.json ● JSON scalar

Representation of a Move value in JSON, where:

  • Addresses, IDs, and UIDs are represented in canonical form, as JSON strings.
  • Bools are represented by JSON boolean literals.
  • u8, u16, and u32 are represented as JSON numbers.
  • u64, u128, and u256 are represented as JSON strings.
  • Balances, Strings, and Urls are represented as JSON strings.
  • Vectors of bytes are represented as Base64 blobs, and other vectors are represented by JSON arrays.
  • Structs are represented by JSON objects.
  • Enums are represented by JSON objects, with a field named @variant containing the variant name.
  • Empty optional values are represented by null.

MoveValue.type ● MoveType object

The value's type.

Member Of

Event object ● IMoveObject interface ● MoveObject object