/v1/trace-generation
How to use?
This endpoint has two ways how you can use it:- Using
programFile
programFile
parameter.
- Using
programHash
inputFile
parameter which is private input data for the Cairo program.
Sending Request
Note: Remember not to useprogramHash
and programFile
at the same time.
- Query Parameters
apiKey
(string, required)
- Request Body
- For Option 1 (
programFile
)programFile
(file -.json
, required) - A compiled Cairo program in JSON format.
- For Option 2 (
programHash
)programHash
(string, required) - A unique hash representing Cairo program, which has been previously registered in program registry.
- In addition for both options
inputFile
(file -.json
, optional) - Input data for Cairo program if used.cairoVersion
(string, required, default:0
) - For now only version0
is supported
- For Option 1 (
Responses
- Success (201 created)
- Content-Type:application/json
- Response Body
- You can use this
atlanticQueryId
to check status of that request.
- Error Responses
- 400 Bad Request - Indicates that parameters are invalid such as providing
programFile
withprogramHash
at the same request. - 500 Internal Server Error - This says error is on our side.
- 400 Bad Request - Indicates that parameters are invalid such as providing
Example Requests
-
using
programFile
-
using
programHash