Skip to main content

TxRedeemer

@harmoniclabs/cardano-ledger-tsDocs


@harmoniclabs/cardano-ledger-ts / TxRedeemer

Class: TxRedeemer

Implements

Constructors

new TxRedeemer()

new TxRedeemer(redeemer): TxRedeemer

Parameters

redeemer: ITxRedeemer

Returns

TxRedeemer

Defined in

src/tx/TxWitnessSet/TxRedeemer.ts:84

Properties

data

readonly data: Data

the actual value of the redeemer

Implementation of

ITxRedeemer.data

Defined in

src/tx/TxWitnessSet/TxRedeemer.ts:81


execUnits

execUnits: ExBudget

Implementation of

ITxRedeemer.execUnits

Defined in

src/tx/TxWitnessSet/TxRedeemer.ts:82


index

readonly index: number

index of the input the redeemer corresponds to

Implementation of

ITxRedeemer.index

Defined in

src/tx/TxWitnessSet/TxRedeemer.ts:77


tag

readonly tag: TxRedeemerTag

Implementation of

ITxRedeemer.tag

Defined in

src/tx/TxWitnessSet/TxRedeemer.ts:73

Methods

clone()

clone(): TxRedeemer

Returns

TxRedeemer

Implementation of

Cloneable.clone

Defined in

src/tx/TxWitnessSet/TxRedeemer.ts:157


toCbor()

toCbor(): CborString

Returns

CborString

Implementation of

ToCbor.toCbor

Defined in

src/tx/TxWitnessSet/TxRedeemer.ts:200


toCborMapEntry()

toCborMapEntry(): CborMapEntry

Returns

CborMapEntry

Defined in

src/tx/TxWitnessSet/TxRedeemer.ts:166


toCborObj()

toCborObj(): CborArray

Returns

CborArray

Implementation of

ToCbor.toCborObj

Defined in

src/tx/TxWitnessSet/TxRedeemer.ts:204


toJson()

toJson(): object

Returns

object

data

data: any

execUnits

execUnits: object

execUnits.memory

memory: string

execUnits.steps

steps: string

index

index: number

tag

tag: "Spend" | "Mint" | "Cert" | "Withdraw" | "Voting" | "Proposing"

Implementation of

ToJson.toJson

Defined in

src/tx/TxWitnessSet/TxRedeemer.ts:236


fromCbor()

static fromCbor(cStr): TxRedeemer

Parameters

cStr: CanBeCborString

Returns

TxRedeemer

Defined in

src/tx/TxWitnessSet/TxRedeemer.ts:214


fromCborMapEntry()

static fromCborMapEntry(entry): TxRedeemer

Parameters

entry: CborMapEntry

Returns

TxRedeemer

Defined in

src/tx/TxWitnessSet/TxRedeemer.ts:180


fromCborObj()

static fromCborObj(cObj): TxRedeemer

Parameters

cObj: CborObj

Returns

TxRedeemer

Defined in

src/tx/TxWitnessSet/TxRedeemer.ts:218