cardano/datum
This module contains code for extracting data from a potential inline datum found in either an input or output.
Functions
Find the datum data on an input or error. The data is assumed to be an inline datum.
expect datum: Datum = datum.input_datum(this_input)
Find the datum data on a input by the datum hash or error. The data is assumed to be embedded data and must be referenced by its hash.
expect datum: Datum = datum.input_datum_by_hash(this_input, these_datums)
Find the datum data on an output or error. The data is assumed to be an inline datum.
expect datum: Datum = datum.output_datum(that_output)