Skip to main content

MetadataValue

Represents a metadata value with its type and associated data.

Hierarchy

  • { height: Field; length: Field; type: Field; value: Field }
    • MetadataValue

Index

Constructors

Properties

Methods

Constructors

externalconstructor

  • new MetadataValue(value: { height: Field; length: Field; type: Field; value: Field }): MetadataValue
  • 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

height: Field = Field

length

length: Field = Field

type

type: Field = Field

value

value: Field = Field

Methods

hash

  • hash(): Field
  • Computes the Poseidon hash of the metadata value.


    Returns Field

    The hash as a Field.

staticnew