Skip to main content

TxOut

@harmoniclabs/cardano-ledger-tsDocs


@harmoniclabs/cardano-ledger-ts / TxOut

Class: TxOut

Implements

Constructors

new TxOut()

new TxOut(txOutput): TxOut

Parameters

txOutput: ITxOut

Returns

TxOut

Defined in

src/tx/body/output/TxOut.ts:46

Properties

address

readonly address: Address

Implementation of

ITxOut.address

Defined in

src/tx/body/output/TxOut.ts:41


datum?

readonly optional datum: Data | Hash32

Implementation of

ITxOut.datum

Defined in

src/tx/body/output/TxOut.ts:43


refScript?

readonly optional refScript: Script<LitteralScriptType>

Implementation of

ITxOut.refScript

Defined in

src/tx/body/output/TxOut.ts:44


value

readonly value: Value

Implementation of

ITxOut.value

Defined in

src/tx/body/output/TxOut.ts:42

Accessors

fake

get static fake(): TxOut

Returns

TxOut

Defined in

src/tx/body/output/TxOut.ts:119

Methods

clone()

clone(): TxOut

Returns

TxOut

Implementation of

Cloneable.clone

Defined in

src/tx/body/output/TxOut.ts:109


toCbor()

toCbor(): CborString

Returns

CborString

Implementation of

ToCbor.toCbor

Defined in

src/tx/body/output/TxOut.ts:168


toCborObj()

toCborObj(): CborMap

Returns

CborMap

Implementation of

ToCbor.toCborObj

Defined in

src/tx/body/output/TxOut.ts:172


toData()

toData(version): Data

Parameters

version: ToDataVersion = "v2"

Returns

Data

Implementation of

ToData.toData

Defined in

src/tx/body/output/TxOut.ts:129


toJson()

toJson(): object

Returns

object

address

address: `addr1${string}` | `addr_test1${string}`

datum

datum: any

refScript

refScript: undefined | ScriptSignature | ScriptAll | ScriptAny | ScriptAtLeast | ScriptAfter | ScriptBefore | object

value

value: ValueJson

Implementation of

ToJson.toJson

Defined in

src/tx/body/output/TxOut.ts:333


fromCbor()

static fromCbor(cStr): TxOut

Parameters

cStr: CanBeCborString

Returns

TxOut

Defined in

src/tx/body/output/TxOut.ts:223


fromCborObj()

static fromCborObj(cObj): TxOut

Parameters

cObj: CborObj

Returns

TxOut

Defined in

src/tx/body/output/TxOut.ts:227