Skip to main content

TxOutRef

@harmoniclabs/cardano-ledger-tsDocs


@harmoniclabs/cardano-ledger-ts / TxOutRef

Class: TxOutRef

Implements

Constructors

new TxOutRef()

new TxOutRef(__namedParameters): TxOutRef

Parameters

__namedParameters: ITxOutRef

Returns

TxOutRef

Defined in

src/tx/body/output/TxOutRef.ts:73

Properties

id

readonly id: Hash32

Implementation of

ITxOutRef.id

Defined in

src/tx/body/output/TxOutRef.ts:70


index

readonly index: number

Implementation of

ITxOutRef.index

Defined in

src/tx/body/output/TxOutRef.ts:71

Accessors

fake

get static fake(): TxOutRef

Returns

TxOutRef

Defined in

src/tx/body/output/TxOutRef.ts:166

Methods

eq()

eq(other): boolean

Parameters

other: ITxOutRef

Returns

boolean

Defined in

src/tx/body/output/TxOutRef.ts:179


toCbor()

toCbor(): CborString

Returns

CborString

Implementation of

ToCbor.toCbor

Defined in

src/tx/body/output/TxOutRef.ts:124


toCborObj()

toCborObj(): CborObj

Returns

CborObj

Implementation of

ToCbor.toCborObj

Defined in

src/tx/body/output/TxOutRef.ts:128


toData()

toData(version?): DataConstr

Parameters

version?: ToDataVersion

Returns

DataConstr

Implementation of

ToData.toData

Defined in

src/tx/body/output/TxOutRef.ts:110


toJson()

toJson(): UTxORefJson

Returns

UTxORefJson

Implementation of

ToJson.toJson

Defined in

src/tx/body/output/TxOutRef.ts:158


toString()

toString(): `${string}#${number}`

Returns a string representation of an object.

Returns

`${string}#${number}`

Defined in

src/tx/body/output/TxOutRef.ts:93


eq()

static eq(a, b): boolean

Parameters

a: ITxOutRef

b: ITxOutRef

Returns

boolean

Defined in

src/tx/body/output/TxOutRef.ts:174


fromCbor()

static fromCbor(cStr): TxOutRef

Parameters

cStr: CanBeCborString

Returns

TxOutRef

Defined in

src/tx/body/output/TxOutRef.ts:136


fromCborObj()

static fromCborObj(cObj): TxOutRef

Parameters

cObj: CborObj

Returns

TxOutRef

Defined in

src/tx/body/output/TxOutRef.ts:140


fromString()

static fromString(str): TxOutRef

Parameters

str: string

Returns

TxOutRef

Defined in

src/tx/body/output/TxOutRef.ts:98


sort()

static sort(a, b): number

Parameters

a: ITxOutRef

b: ITxOutRef

Returns

number

Defined in

src/tx/body/output/TxOutRef.ts:184