Templates#
Templates help you start quickly with working models and functions.
Open: Contracts -> Create Contract -> Choose Template
Template: Asset Tracking#
Common generated functions:
CreateAsset(invoke)GetAsset(query)VerifyAssetOwner(verify)
Sample calls:
bashcurl -X POST https://api.velarics.com/v1/projects/YOUR_PROJECT_ID/contracts/YOUR_CONTRACT_ID/invoke/CreateAsset \ -H "X-API-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"params":{"id":"asset-1001","owner":"alice"}}'
bashcurl -X GET "https://api.velarics.com/v1/projects/YOUR_PROJECT_ID/contracts/YOUR_CONTRACT_ID/query/GetAsset?id=asset-1001" \ -H "X-API-Key: YOUR_API_KEY"
Template: Supply Chain#
Common generated functions:
CreateShipment(invoke)UpdateShipmentStatus(invoke)GetShipment(query)VerifyShipmentState(verify)
Sample call:
bashcurl -X POST https://api.velarics.com/v1/projects/YOUR_PROJECT_ID/contracts/YOUR_CONTRACT_ID/invoke/CreateShipment \ -H "X-API-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"params":{"shipmentId":"ship-2001","origin":"Chennai","destination":"Singapore"}}'
How to choose#
- Start with the template closest to your domain.
- Deploy once before heavy customization.
- Add or rename functions in Builder after first working flow.
What just happened#
- You saw real starter contracts and function sets.
- You learned how templates map directly to runtime endpoints.
- You can now choose a template and start integrating faster.
