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 state
  • query: read state
  • verify: validate a business condition

Example actions:

  • CreateAsset (invoke)
  • GetAsset (query)
  • VerifyAssetOwner (verify)

Logic#

Add simple rules to protect state.

Examples:

  • Require id and owner
  • Allow transfer only for current owner
  • Block invalid status transitions

Connections#

Link models for richer reads.

Examples:

  • Asset belongs to Batch
  • Batch belongs to Shipment

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.