TxOut
@harmoniclabs/cardano-ledger-ts • Docs
@harmoniclabs/cardano-ledger-ts / TxOut
Class: TxOut
Implements
Constructors
new TxOut()
new TxOut(
txOutput
):TxOut
Parameters
• txOutput: ITxOut
Returns
Defined in
src/tx/body/output/TxOut.ts:46
Properties
address
readonly
address:Address
Implementation of
Defined in
src/tx/body/output/TxOut.ts:41
datum?
readonly
optional
datum:Data
|Hash32
Implementation of
Defined in
src/tx/body/output/TxOut.ts:43
refScript?
readonly
optional
refScript:Script
<LitteralScriptType
>
Implementation of
Defined in
src/tx/body/output/TxOut.ts:44
value
readonly
value:Value
Implementation of
Defined in
src/tx/body/output/TxOut.ts:42
Accessors
fake
get
static
fake():TxOut
Returns
Defined in
src/tx/body/output/TxOut.ts:119
Methods
clone()
clone():
TxOut
Returns
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
Defined in
src/tx/body/output/TxOut.ts:223
fromCborObj()
static
fromCborObj(cObj
):TxOut
Parameters
• cObj: CborObj