Skip to main content

TxIn

@harmoniclabs/cardano-ledger-ts • Docs


@harmoniclabs/cardano-ledger-ts / TxIn

Class: TxIn

Extends​

Constructors​

new TxIn()​

new TxIn(utxo): TxIn

Parameters​

• utxo: IUTxO

Returns​

TxIn

Inherited from​

UTxO.constructor

Defined in​

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

Properties​

resolved​

readonly resolved: TxOut

Inherited from​

UTxO.resolved

Defined in​

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


utxoRef​

readonly utxoRef: TxOutRef

Inherited from​

UTxO.utxoRef

Defined in​

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

Methods​

clone()​

clone(): UTxO

Returns​

UTxO

Inherited from​

UTxO.clone

Defined in​

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


toCbor()​

toCbor(): CborString

Returns​

CborString

Inherited from​

UTxO.toCbor

Defined in​

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


toCborObj()​

toCborObj(): CborArray

Returns​

CborArray

Inherited from​

UTxO.toCborObj

Defined in​

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


toData()​

toData(version?): Data

Parameters​

• version?: ToDataVersion

Returns​

Data

Inherited from​

UTxO.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

Inherited from​

UTxO.toJson

Defined in​

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


fromCbor()​

static fromCbor(cStr): UTxO

Parameters​

• cStr: CanBeCborString

Returns​

UTxO

Inherited from​

UTxO.fromCbor

Defined in​

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


fromCborObj()​

static fromCborObj(cObj): UTxO

Parameters​

• cObj: CborObj

Returns​

UTxO

Inherited from​

UTxO.fromCborObj

Defined in​

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


sort()​

static sort(a, b): number

Parameters​

• a: IUTxO

• b: IUTxO

Returns​

number

Inherited from​

UTxO.sort

Defined in​

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