@midnight/ledger v3.0.2 • Readme | API
@midnight/ledger v3.0.2 / runProgram
Function: runProgram()
runProgram(
initial,
ops,
cost_model,
gas_limit?): VmResults
Runs a VM program against an initial stack, with an optional gas limit
Parameters
• initial: VmStack
• ops: Op
<null
>[]
• cost_model: CostModel
• gas_limit?: bigint