Evaluate rholang code online

This tutorial should help you to build Dapps by your own and deploy them to the network with the use of Codesandbox.io. Use this codesandbox template to start.

Codesandbox.io advantages for your Dapp development:

  • free to use for everybody
  • no login required
  • evaluate your rholang code (read only) for free on the rchain testnet
  • evaluate your rholang code (rev cost) on the rchain mainnet

Write rholang code

The language in which you write your Dapp ist rholang, which is beeing executed decentralized on the rchain network.


  1. Go to codesandbox.io and use the rholang template
  2. Under the folder rholang, select the rho.js file
  3. Insert your rholang code after the key 'template:'
    1. If you have variables, which you want to fill from an ui and should be inserted into the rholang code, write this variable after the key 'fileds:'

Execute your rholang code on the rchain network

To execute you rholang code on the rchain network you can run choose between testnet or mainnet:

After that you can use Explore or Deploy.

Explore runs your code on the network (on a read only node). You can deploy a contract which is reading some state of a contract on the network. This execution is free to use.

Deploy runs your code on the network and mutates the state of some contract. This execution costs rev (use metamask for signing the transaction).


The returned result will be displayed after the execution in the ui.

Make your code searchable for others

To let others discover your rholang code, please edit the title of your codesandbox.

⚠️ your title of the sandbox has to beginn with: rholang-
example title: rholang-helloworld, rholang-liquid-democracy ...
otherwise your sandbox will not be found by codesandbox by others.


With this your codesandbox is searchable under the search query: rholang

see here: search rholang dapps


Edit this page on GitHub