TxOutput
Represents a transaction output that is used when building a transaction.
export interface TxOutput {
address: Address<SC>
calcDeposit(params: NetworkParams): bigint
copy(): TxOutput<SC>
correctLovelace(
params: NetworkParams,
updater: (output: TxOutput<SC>) => void
): void
datum: undefined | TxOutputDatum
dump(): any
encodingConfig: TxOutputEncodingConfig
kind: "TxOutput"
refScript: undefined
| UplcProgramV2
| UplcProgramV1
toCbor(): number[]
toUplcData(): ConstrData
value: Value
}
Properties
address
txOutput.address satisfies Address<SC>
calcDeposit
txOutput.calcDeposit satisfies (params: NetworkParams) => bigint
copy
Deep copy of the TxOnput so that Network interfaces don't allow accidental mutation of the underlying data
txOutput.copy satisfies () => TxOutput<SC>
correctLovelace
txOutput.correctLovelace satisfies (
params: NetworkParams,
updater: (output: TxOutput<SC>) => void
) => void
datum
txOutput.datum satisfies undefined | TxOutputDatum
dump
txOutput.dump satisfies () => any
encodingConfig
txOutput.encodingConfig satisfies TxOutputEncodingConfig
kind
txOutput.kind satisfies "TxOutput"
refScript
txOutput.refScript satisfies undefined
| UplcProgramV2
| UplcProgramV1
toCbor
txOutput.toCbor satisfies () => number[]
toUplcData
txOutput.toUplcData satisfies () => ConstrData
value
txOutput.value satisfies Value