UTxO
@harmoniclabs/cardano-ledger-ts • Docs
@harmoniclabs/cardano-ledger-ts / UTxO
Class: UTxO
Extended by
Implements
Constructors
new UTxO()
new UTxO(
utxo
):UTxO
Parameters
• utxo: IUTxO
Returns
Defined in
Properties
resolved
readonly
resolved:TxOut
Implementation of
Defined in
utxoRef
readonly
utxoRef:TxOutRef
Implementation of
Defined in
Methods
clone()
clone():
UTxO
Returns
Implementation of
Cloneable.clone
Defined in
toCbor()
toCbor():
CborString
Returns
CborString
Implementation of
ToCbor.toCbor
Defined in
toCborObj()
toCborObj():
CborArray
Returns
CborArray
Implementation of
ToCbor.toCborObj
Defined in
toData()
toData(
version
?):Data
Parameters
• version?: ToDataVersion
Returns
Data
Implementation of
ToData.toData
Defined in
toJson()
toJson():
object
Returns
object
resolved
resolved:
object
resolved.address
address: `addr1${string}` | `addr_test1${string}`
resolved.datum
datum:
any
resolved.refScript
refScript:
undefined
|ScriptSignature
|ScriptAll
|ScriptAny
|ScriptAtLeast
|ScriptAfter
|ScriptBefore
|object
resolved.value
value:
ValueJson
utxoRef
utxoRef:
UTxORefJson
Implementation of
ToJson.toJson
Defined in
src/tx/body/output/UTxO.ts:107
fromCbor()
static
fromCbor(cStr
):UTxO
Parameters
• cStr: CanBeCborString
Returns
Defined in
fromCborObj()
static
fromCborObj(cObj
):UTxO
Parameters
• cObj: CborObj
Returns
Defined in
sort()
static
sort(a
,b
):number
Parameters
• a: IUTxO
• b: IUTxO
Returns
number