The Cocol Project has the goal to lower the entry barrier for developers interested in building blockchains and dApps. There is still a long way to go and your help is needed.
After setting up Crystal you can clone the Cocol repository and install the dependencies:
> git clone https://github.com/cocol-project/cocol.git > cd cocol > shards install
Make your changes to the code-base and than build Cocol
> crystal build -Dpreview_mt src/cocol.cr
./bin/cocol offers the following CLI options
Options: -p --port The port your Cocol node is going to run on -m --master Making this node a master (there can only be one) --max-connections Setting the max-connections for peers. --miner Making this node a miner --update Triggering an update on launch (will catch up with the current height)
There is also a script that starts multiple nodes and the master for you
> ./script/start.sh 66 5
First number is the amount of nodes and the second max-connections per node.
It will start the master node with the port
3000 and every other node with
3000 + n
You can now start one or several miner like this:
> ./cocol -p 4100 --max-connections 5 --miner
Now go ahead and open the explorer in a browser:
> open ./explorer/index.html
You should see 66 nodes and a miner (red border)
Each one of the nodes has a REST API on the corresponding port (e.g.
You can create transactions or query the current ledger
Cocol is in a very early stage. Expect changes, bugs and messy code.
Mozilla Public License 2.0