Atlantic API
Submit Program To Program Registry
This endpoint allows you to submit a compiled Cairo program to the program registry. Once submitted, the system registers the program and generates a unique program hash. This hash can be used for future proof and trace generation requests without needing to re-upload the program file, making the process more efficient for repeated queries.
- /v1/submit-program
How to use?
Upload programFile and choose cairoVersion used to compile the program. The system will generate and return unique programHash for uploaded program.
Sending request
- Query Parameters
apiKey
(string, required)
- Request Body
programFile
(file -.json
, required) - Compiled Cairo program in JSON format.cairoVersion
(string, required)
Responses
-
Success (201 created)
-
Error responses
- 400 Bad Request - Indicates that parameters are invalid not providing programFile or providing incorrect
- 500 Internal Server Error - This says error is on our side.