POutputDatum
info
Introduced in V2 version
This type defines various ways extra information (datum) can be attached to a transaction output.
Definition:
import { pstruct } from "../../../PTypes/PStruct/pstruct";
import { data } from "../../../type_system/types";
import { PDatumHash } from "../../V1/ScriptsHashes/PDatumHash";
export const POutputDatum = pstruct({
NoDatum: {},
DatumHash: { datumHash: PDatumHash.type },
InlineDatum: { datum: data }
});
NoDatum
Represents an output without any associated datum, this being the simplest form.
type: PTxOutRef.type
DatumHash
datumHash
The hash of datum that can be used to reference the datum. This is used instead of embedding the full datum in the output.
type: PDatumHash.type
InlineDatum
Represents an inline datum in case the full datum needs to be readily accessible without any further lookup.
datum
The actual raw data associated with the transaction output
type: data