Helios API/ API Reference/ Classes/

Redeemer

Base-type of SpendingRedeemer and MintingRedeemer

Hierarchy

Index

Constructors

constructor

new Redeemer(data, profile?)

Parameters

NameType
dataUplcData
profile?Profile

Overrides

CborData.constructor

Accessors

cpuCost

get cpuCost(): bigint

Returns

bigint

data

get data(): UplcData

Returns

UplcData

memCost

get memCost(): bigint

Returns

bigint

profile

get profile(): Profile

Returns

Profile

programName

get programName(): null | string

Returns

null | string

Methods

dump

dump(): any

Returns

any

dumpInternal

dumpInternal(): any

Returns

any

estimateFee

estimateFee(networkParams): bigint

Parameters

NameType
networkParamsNetworkParams

Returns

bigint

setProfile

setProfile(profile): void

Parameters

NameType
profileProfile

Returns

void

setProgramName

setProgramName(name): void

Parameters

NameType
namestring

Returns

void

toCbor

toCbor(): number[]

Returns

number[]

Inherited from

CborData.toCbor

toCborHex

toCborHex(): string

Returns

string

Inherited from

CborData.toCborHex

toCborInternal

toCborInternal(type, index): number[]

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

Parameters

NameType
typenumber
indexnumber

Returns

number[]

toScriptPurposeData

toScriptPurposeData(body): ConstrData

Parameters

NameType
bodyTxBody

Returns

ConstrData

updateIndex

updateIndex(body): void

Parameters

NameType
bodyTxBody

Returns

void

fromCbor

Static fromCbor(bytes): Redeemer

Parameters

NameType
bytesnumber[]

Returns

Redeemer