Helios API/ API Reference/ Classes/
MintingRedeemer
Base-type of SpendingRedeemer and MintingRedeemer
Hierarchy
-
↳
MintingRedeemer
Index
Constructors
constructor
• new MintingRedeemer(mph
, mphIndex
, data
, exUnits?
)
Parameters
Name | Type |
---|---|
mph | null | MintingPolicyHash |
mphIndex | number |
data | UplcData |
exUnits? | Cost |
Overrides
Accessors
cpuCost
• get
cpuCost(): bigint
Returns
bigint
Inherited from
Redeemer.cpuCost
data
• get
data(): UplcData
Returns
Inherited from
Redeemer.data
memCost
• get
memCost(): bigint
Returns
bigint
Inherited from
Redeemer.memCost
mphIndex
• get
mphIndex(): number
Returns
number
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 [] |