TxRedeemer
@harmoniclabs/cardano-ledger-ts • Docs
@harmoniclabs/cardano-ledger-ts / TxRedeemer
Class: TxRedeemer
Implements
ITxRedeemer
ToCbor
Cloneable
<TxRedeemer
>ToJson
Constructors
new TxRedeemer()
new TxRedeemer(
redeemer
):TxRedeemer
Parameters
• redeemer: ITxRedeemer
Returns
Defined in
src/tx/TxWitnessSet/TxRedeemer.ts:84
Properties
data
readonly
data:Data
the actual value of the redeemer
Implementation of
Defined in
src/tx/TxWitnessSet/TxRedeemer.ts:81
execUnits
execUnits:
ExBudget
Implementation of
Defined in
src/tx/TxWitnessSet/TxRedeemer.ts:82
index
readonly
index:number
index of the input the redeemer corresponds to
Implementation of
Defined in
src/tx/TxWitnessSet/TxRedeemer.ts:77
tag
readonly
tag:TxRedeemerTag
Implementation of
Defined in
src/tx/TxWitnessSet/TxRedeemer.ts:73
Methods
clone()
clone():
TxRedeemer
Returns
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
Defined in
src/tx/TxWitnessSet/TxRedeemer.ts:214
fromCborMapEntry()
static
fromCborMapEntry(entry
):TxRedeemer
Parameters
• entry: CborMapEntry
Returns
Defined in
src/tx/TxWitnessSet/TxRedeemer.ts:180
fromCborObj()
static
fromCborObj(cObj
):TxRedeemer
Parameters
• cObj: CborObj