Helios API/ API Reference/ Classes/
SpendingRedeemer
Base-type of SpendingRedeemer and MintingRedeemer
Hierarchy
-
↳
SpendingRedeemer
Index
Constructors
constructor
• new SpendingRedeemer(input
, inputIndex
, data
, exUnits?
)
Parameters
Overrides
Accessors
cpuCost
• get
cpuCost(): bigint
Returns
bigint
Inherited from
Redeemer.cpuCost
data
• get
data(): UplcData
Returns
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
Inherited from
Redeemer.profile
programName
• get
programName(): null
| string
Returns
null
| string
Inherited from
Redeemer.programName
Methods
dump
▸ dump(): any
Returns
any
Inherited from
dumpInternal
▸ dumpInternal(): any
Returns
any
Inherited from
estimateFee
▸ estimateFee(networkParams
): bigint
Parameters
Name | Type |
---|---|
networkParams | NetworkParams |
Returns
bigint
Inherited from
setProfile
▸ setProfile(profile
): void
Parameters
Name | Type |
---|---|
profile | Profile |
Returns
void
Inherited from
setProgramName
▸ setProgramName(name
): void
Parameters
Name | Type |
---|---|
name | string |
Returns
void
Inherited from
toCbor
▸ toCbor(): number
[]
Returns
number
[]
Inherited from
toCborHex
▸ toCborHex(): string
Returns
string
Inherited from
toCborInternal
▸ toCborInternal(type
, index
): number
[]
type: 0 -> spending 1 -> minting 2 -> certifying 3 -> rewarding
Parameters
Name | Type |
---|---|
type | number |
index | number |
Returns
number
[]
Inherited from
toScriptPurposeData
▸ toScriptPurposeData(body
): ConstrData
Parameters
Name | Type |
---|---|
body | TxBody |
Returns
Inherited from
updateIndex
▸ updateIndex(body
): void
Parameters
Name | Type |
---|---|
body | TxBody |
Returns
void
Inherited from
fromCbor
▸ Static
fromCbor(bytes
): Redeemer
Parameters
Name | Type |
---|---|
bytes | number [] |