@midnight-ntwrk/onchain-runtime v0.2.2 • Readme | API
@midnight-ntwrk/onchain-runtime v0.2.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