MetadataValue
Hierarchy
- { height: Field; length: Field; type: Field; value: Field }
- MetadataValue
Index
Constructors
externalconstructor
Parameters
externalvalue: { height: Field; length: Field; type: Field; value: Field }
externalheight: Field = Field
externallength: Field = Field
externaltype: Field = Field
externalvalue: Field = Field
Returns MetadataValue
Properties
height
length
type
value
Methods
hash
Computes the Poseidon hash of the metadata value.
Returns Field
The hash as a Field.
staticnew
Creates a new MetadataValue instance.
Parameters
params: { type: MetadataFieldType; value: Field | Metadata | MetadataTree | Text }
The parameters including value and type.
type: MetadataFieldType
value: Field | Metadata | MetadataTree | Text
Returns MetadataValue
A new MetadataValue.
Represents a metadata value with its type and associated data.