import { Core } from "https://deno.land/x/lucid@0.7.0/src/core/core.ts";
const { TransactionOutputBuilder } = Core;
We introduce a builder-pattern format for creating transaction outputs This is because:
- Some fields (i.e. data hash) are optional, and we can't easily expose Option<> in WASM
- Some fields like amounts have many ways it could be set (some depending on other field values being known)
- Easier to adapt as the output format gets more complicated in future Cardano releases