MapData
One of the 5 Plutus-Core builtin data classes. Parent class is UplcData
.
Represents a list of pairs of other UplcData
instances.
Constructor
new helios.MapData(pairs: [UplcData, UplcData][])
Static methods
fromCbor
Deserialize a CBOR encoded MapData
instance. Mutates bytes
and shifts it to the following element.
helios.MapData.fromCbor(bytes: number[]): MapData
Getters
map
Get the underlying list of UplcData
pairs.
map_data.map: [UplcData, UplcData][]
Methods
toCbor
Encodes a MapData
instance as CBOR bytes.
map_data.toCbor(): number[]
toSchemaJson
Returns the schema JSON needed to interact with external tools like cardano-cli and Lucid.
map_data.toSchemaJson(): string