Helios API/ API Reference/ Classes/

SpendingRedeemer

Base-type of SpendingRedeemer and MintingRedeemer

Hierarchy

Index

Constructors

constructor

new SpendingRedeemer(input, inputIndex, data, exUnits?)

Parameters

NameType
inputnull | TxInput
inputIndexnumber
dataUplcData
exUnits?Cost

Overrides

Redeemer.constructor

Accessors

cpuCost

get cpuCost(): bigint

Returns

bigint

Inherited from

Redeemer.cpuCost

data

get data(): UplcData

Returns

UplcData

Inherited from

Redeemer.data

inputIndex

get inputIndex(): number

Returns

number

memCost

get memCost(): bigint

Returns

bigint

Inherited from

Redeemer.memCost

profile

get profile(): Profile

Returns

Profile

Inherited from

Redeemer.profile

programName

get programName(): null | string

Returns

null | string

Inherited from

Redeemer.programName

Methods

dump

dump(): any

Returns

any

Inherited from

Redeemer.dump

dumpInternal

dumpInternal(): any

Returns

any

Inherited from

Redeemer.dumpInternal

estimateFee

estimateFee(networkParams): bigint

Parameters

NameType
networkParamsNetworkParams

Returns

bigint

Inherited from

Redeemer.estimateFee

setProfile

setProfile(profile): void

Parameters

NameType
profileProfile

Returns

void

Inherited from

Redeemer.setProfile

setProgramName

setProgramName(name): void

Parameters

NameType
namestring

Returns

void

Inherited from

Redeemer.setProgramName

toCbor

toCbor(): number[]

Returns

number[]

Inherited from

Redeemer.toCbor

toCborHex

toCborHex(): string

Returns

string

Inherited from

Redeemer.toCborHex

toCborInternal

toCborInternal(type, index): number[]

type: 0 -> spending 1 -> minting 2 -> certifying 3 -> rewarding

Parameters

NameType
typenumber
indexnumber

Returns

number[]

Inherited from

Redeemer.toCborInternal

toScriptPurposeData

toScriptPurposeData(body): ConstrData

Parameters

NameType
bodyTxBody

Returns

ConstrData

Inherited from

Redeemer.toScriptPurposeData

updateIndex

updateIndex(body): void

Parameters

NameType
bodyTxBody

Returns

void

Inherited from

Redeemer.updateIndex

fromCbor

Static fromCbor(bytes): Redeemer

Parameters

NameType
bytesnumber[]

Returns

Redeemer

Inherited from

Redeemer.fromCbor