Helios API/ API Reference/ Classes/
Redeemer
Base-type of SpendingRedeemer and MintingRedeemer
Hierarchy
-
↳
Redeemer
Index
Constructors
constructor
• new Redeemer(data
, profile?
)
Parameters
Overrides
Accessors
cpuCost
• get
cpuCost(): bigint
Returns
bigint
data
• get
data(): UplcData
Returns
memCost
• get
memCost(): bigint
Returns
bigint
profile
• get
profile(): Profile
Returns
programName
• get
programName(): null
| string
Returns
null
| string
Methods
dump
▸ dump(): any
Returns
any
dumpInternal
▸ dumpInternal(): any
Returns
any
estimateFee
▸ estimateFee(networkParams
): bigint
Parameters
Name | Type |
---|---|
networkParams | NetworkParams |
Returns
bigint
setProfile
▸ setProfile(profile
): void
Parameters
Name | Type |
---|---|
profile | Profile |
Returns
void
setProgramName
▸ setProgramName(name
): void
Parameters
Name | Type |
---|---|
name | string |
Returns
void
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
[]
toScriptPurposeData
▸ toScriptPurposeData(body
): ConstrData
Parameters
Name | Type |
---|---|
body | TxBody |
Returns
updateIndex
▸ updateIndex(body
): void
Parameters
Name | Type |
---|---|
body | TxBody |
Returns
void
fromCbor
▸ Static
fromCbor(bytes
): Redeemer
Parameters
Name | Type |
---|---|
bytes | number [] |