<target> | Inferred when the project has one actor | Actor target name; conflicts with --code |
--code | None | Python source file to run instead of a project target |
--handler | main | Handler function name |
--payload | 0x | Hex (0x optional) or @path/to/file for raw bytes; conflicts with the other payload flags |
--payload-text | None | UTF-8 text passed as raw bytes |
--payload-json | None | JSON string encoded to CBOR |
--expect | None | Expected output bytes (hex); the run passes only if the handler succeeds and returns exactly these |
--cycles-limit | 10000000 | Cycles (gas) limit |
--initial-state | None | Initial state as a JSON object of "hex_key": "hex_value" |
--state | None | Start from the state in this file and, when the handler succeeds, save the state it leaves back to it, so calls follow one another like transactions. A missing file is an empty state. Conflicts with --initial-state |
--reset | false | With --state, start from an empty state instead of the file; requires --state |
--sender | Fixed simulation sender | Caller address seen by the handler (20-byte hex, 0x optional) |
--block-height | 1 | Simulated block height |
--timestamp | 1700000000000 | Simulated block time in milliseconds since the Unix epoch |
--strict | false | Apply chain source checks and deterministic SDK import aliases; time and randomness still use local fixtures |
--stub-llm | None (repeatable) | Answer the next runner.llm call with JSON; structured values are checked against their schema |
--stub-llm-failure | None (repeatable) | Return a structured LLM failure code. Both LLM stub flags are consumed in command-line order |
--stub | None (repeatable) | Answer an off-chain function: FUNCTION=JSON |
--stub-error | None (repeatable) | Make an off-chain function raise: FUNCTION=TYPE:MESSAGE |
--stub-exit | None (repeatable) | Make an off-chain container crash: FUNCTION=CODE (nonzero) |
--json | false | Emit one versioned JSON result object |
--verbose | false | Also report the build identity, the simulator path, the raw result bytes, and the messages the runtime sends itself |