Atlantic API
L2 Proof Verification
You can verify your STARK proofs on Starknet (L2) using Integrity verifier. It is faster and much cheaper compared to verifying on L1 and especially useful if you need an interaction with Starknet contracts.
/v1/l2/atlantic-query/proof-verification
This endpoint lets you verify already generated proofs with Integrity verifier.
How to use?
To verify the proof, upload the proof.json
file along with stoneVersion
and memoryVerification
settings for the verifier. The endpoint also offers an option to mock the fact hash, which bypasses actual verification on chain. It is useful for testing purposes.
Sending request
- Query Parameters
apiKey
(string, required)
- Request Body
proofFile
(file -.json
, required) - File containing proof to verify.mockFactHash
(boolean, required) - Iftrue
the fact hash will be mocked, bypassing actual verification for testing purposes.stoneVersion
(string, required) -stone5
orstone6
. For Sharp proofs,stone6
has to be used.memoryVerification
(string, required) -strict
,relaxed
orcairo1
. Type of public memory verification.strict
andrelaxed
are for cairo 0.strict
should be used if possible, however for some bootloaders (e.g. one used by Sharp)relaxed
is required.
Responses
-
Success (201 created)
-
Error responses
- 400 Bad Request - Indicates that parameters are invalid such as providing programFile with programHash at the same request
- 500 Internal Server Error - This says error is on our side.