Skip to main content

Connected Object

Docusaurus with Keytar


A public connected object is activated for a certain duration against payment. Such an object can be:

  • an electric vehicle supply equipment
  • an advertising display equipment (online or IRL)
  • a jukebox in a public place (café, street urban equipment, ...)
  • ...


In this DApp example, the connected object is a simple online bulb accessible on mobile device:

Docusaurus with Keytar

You may switch it on and off via the DApp's web interface by sending XTZ to the object's smart contract.


The connected object is permanently reading its state and service information in its associated smart contract.

Docusaurus with Keytar
  1. The customer interacts with the smart contract through the DApp's web interface. The contract provides two entry points:
  • start to start the service
  • interrupt to interrupt the service
  1. the connected object reads its state on a regular basis (typically every 5 seconds)
  2. the connected object may retrieve content to broadcast from a content server

Inspect the smart contract transactions in Better Call Dev:


In this DApp example, there is no need for a content server because of the simple nature of the on/off bulb service. With more sophisticated objects like advertising display equipment, the content to display is retrieved from a dedicated off-chain content server.


The use of the Tezos blockchain tremendously reduces the setup and exploitation costs, as it provides the following services:

  1. secured payment system
  2. auditable and persistent transaction system
  3. public and verifiable business logic

The setup effort is minimal:

  • the smart contract is 30 lines long and simple to deploy
  • the business logic on the connected object side basically consists in an infinite reading loop and the capacity to perform standard HTTP GET connection to read the contract's storage

The cost per transaction is the fee to call the contract, which is 0.002109 ꜩ per transaction!