ListData

One of the 5 Plutus-Core builtin data classes. Parent class is UplcData.

Represents a list of other UplcData instances.

Constructor

new helios.ListData(list: UplcData[])

Static methods

fromCbor

Deserialize a CBOR encoded ListData instance. Mutates bytes and shifts it to the following element.

helios.ListData.fromCbor(bytes: number[]): ListData

Getters

list

Get the underlying UplcData list.

list_data.list: UplcData[]

Methods

toCbor

Encodes a ListData instance as CBOR bytes.

list_data.toCbor(): number[]

toSchemaJson

Returns the schema JSON needed to interact with external tools like cardano-cli and Lucid.

list_data.toSchemaJson(): string