Service Initialization
Integrate with Snarkify SDK
Switch to your project root directly, and run the following command:
snarkify initIt is simply a shortcut for:
Add
snarkify-sdkcargo dependency to Cargo.tomlCreate a template
snarkify.rsfile under/src/bin, in which you have to implement theProofHandlerwith your own proof generation logic.
Create your new service
Once your code is ready, running the following command will create a new service on Snarkify platform:
snarkify service create {service_name}The new service will automatically link to your current project directory, ensuring that all future build and deploy commands seamlessly synchronizes the changes from your working directory to the cloud.
Query your service
You can use the snarkify service info command to check the status of your service and get the RPC endpoint (service url field) once the deployment is done. Below is an example output:
ββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β service id β 6b72fa8b01bc4d968f49658e6cf2f5f2 β
β service name β poseidon_test β
β team name β test β
β state β READY β
β created β 2024-01-22T23:16:51 β
β service url β https://2omfk53be1.execute-api.us-west-2.amazonaws.com/v1/services/6b72fa8b01bc4d968f49658e6cf2f5f2 β
β image tag β feature_a β
ββββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββLast updated