Skip to main content

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​

UTxO

Defined in​

src/tx/body/output/UTxO.ts:32

Properties​

resolved​

readonly resolved: TxOut

Implementation of​

IUTxO.resolved

Defined in​

src/tx/body/output/UTxO.ts:30


utxoRef​

readonly utxoRef: TxOutRef

Implementation of​

IUTxO.utxoRef

Defined in​

src/tx/body/output/UTxO.ts:29

Methods​

clone()​

clone(): UTxO

Returns​

UTxO

Implementation of​

Cloneable.clone

Defined in​

src/tx/body/output/UTxO.ts:47


toCbor()​

toCbor(): CborString

Returns​

CborString

Implementation of​

ToCbor.toCbor

Defined in​

src/tx/body/output/UTxO.ts:63


toCborObj()​

toCborObj(): CborArray

Returns​

CborArray

Implementation of​

ToCbor.toCborObj

Defined in​

src/tx/body/output/UTxO.ts:67


toData()​

toData(version?): Data

Parameters​

• version?: ToDataVersion

Returns​

Data

Implementation of​

ToData.toData

Defined in​

src/tx/body/output/UTxO.ts:52


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​

UTxO

Defined in​

src/tx/body/output/UTxO.ts:75


fromCborObj()​

static fromCborObj(cObj): UTxO

Parameters​

• cObj: CborObj

Returns​

UTxO

Defined in​

src/tx/body/output/UTxO.ts:79


sort()​

static sort(a, b): number

Parameters​

• a: IUTxO

• b: IUTxO

Returns​

number

Defined in​

src/tx/body/output/UTxO.ts:115