Contract Builder#
Builder is where you define how your contract behaves.
Open: Contracts -> Your Contract -> Builder
Data#
Create your models and fields.
Example model:
Asset- fields:
id,owner,status
Actions#
Create callable functions.
Function types:
invoke: write/update statequery: read stateverify: validate a business condition
Example actions:
CreateAsset(invoke)GetAsset(query)VerifyAssetOwner(verify)
Logic#
Add simple rules to protect state.
Examples:
- Require
idandowner - Allow transfer only for current owner
- Block invalid status transitions
Connections#
Link models for richer reads.
Examples:
Assetbelongs toBatchBatchbelongs toShipment
Builder checklist before deploy#
- All required fields are set
- Function inputs are clear
- Rules cover invalid operations
- Function names are final
What just happened#
- You defined data and behavior in one place.
- You created runtime-ready functions through the UI.
- Your contract is ready for deployment.
