MoveValue
type MoveValue {
asAddress: Address
asVector(
first: Int
after: String
last: Int
before: String
): MoveValueConnection
bcs: Base64
display: Display
extract(
path: String!
): MoveValue
format(
format: String!
): JSON
json: JSON
type: MoveType
}
Fields
MoveValue.asAddress ● Address object
Attempts to treat this value as an Address.
If the value is of type address or 0x2::object::ID, it is interpreted as an address pointer, and it is scoped to the current checkpoint.
If the value is of type 0x2::object::UID, it is interpreted as a wrapped object whose version is bounded by the root version of the current value. Such values do not support nested owned object queries, but Address.addressAt can be used to re-scope it to a checkpoint (defaults to the current checkpoint), instead of a root version, allowing owned object queries.
Values of other types cannot be interpreted as addresses, and null is returned.
MoveValue.asVector ● MoveValueConnection object
Attempts to treat this value as a vector<T> and paginate over its elements.
Values of other types cannot be interpreted as vectors, and null is returned.
MoveValue.asVector.first ● Int scalar
MoveValue.asVector.after ● String scalar
MoveValue.asVector.last ● Int scalar
MoveValue.asVector.before ● String scalar
MoveValue.bcs ● Base64 scalar
The BCS representation of this value, Base64-encoded.
MoveValue.display ● Display object
A rendered JSON blob based on an on-chain template, substituted with data from this value.
Returns null if the value's type does not have an associated Display template.
MoveValue.extract ● MoveValue object
Extract a nested value at the given path.
path is a Display v2 'chain' expression, allowing access to nested, named and positional fields, vector indices, VecMap keys, and dynamic (object) field accesses.