programFile or
pieFile) and expected result.
For step-by-step details, see:
For all queries, send:
apiKeyas a query parameterdeclaredJobSizein the request body
declaredJobSize determines the machine used for trace generation and affects cost.
Choose it based on expected program step count.
| Number of steps [millions] | Size |
|---|---|
| 0 - 13 | S |
| 13 - 30 | M |
| >30 | L |
Input: Cairo Program (programFile)
- Generate trace (
pie.zip)
- Inputs:
programFileinputFile(optional, available for Cairo1 and Cairo0 with Rust VM)layout(can beauto)cairoVersionresult = TRACE_GENERATION
pieFilemust be empty- Output: trace file (
pie.zip)
- Generate proof file (
proof.json)
- Inputs:
programFileinputFile(optional, available for Cairo1 and Cairo0 with Rust VM)layout(can beauto)cairoVersionresult = PROOF_GENERATIONsharpProver(stwoorstone) - set tostwoto use S-two prover
pieFilemust be empty- Output: proof file (
proof.json)
- Generate proof and verify on Layer 1 (L1)
- Inputs:
programFileinputFile(optional, available for Cairo1 and Cairo0 with Rust VM)layout(can beauto)cairoVersionresult = PROOF_VERIFICATION_ON_L1sharpProver(stwoorstone) - set tostwoto use S-two prover
pieFilemust be empty- Output: trace, proof, and L1 verification
- Generate proof and verify on Layer 2 (L2)
- Inputs:
programFileinputFile(optional, available for Cairo1 and Cairo0 with Rust VM)layout(can beauto)cairoVersionresult = PROOF_VERIFICATION_ON_L2
pieFilemust be empty- Output: trace, proof, and L2 verification
Input: Trace File (pie.zip)
- Generate proof file (
proof.json)
- Inputs:
pieFilelayout(can beauto)result = PROOF_GENERATIONsharpProver(stwoorstone) - set tostwoto use S-two prover
- Output: proof file (
proof.json)
- Generate proof and verify on Layer 1 (L1)
- Inputs:
pieFilelayout(can beauto)result = PROOF_VERIFICATION_ON_L1
- Output: proof and L1 verification
- Generate proof and verify on Layer 2 (L2)
- Inputs:
pieFilelayout(can beauto)result = PROOF_VERIFICATION_ON_L2
- Output: proof and L2 verification

