Quick Start
Overview
This is a quick start guide. If you have a vague idea about how CometBFT works and want to get started right away, continue.Install
See the install guide.Initialization
Running:$HOME/.cometbft:
Local Node
Start CometBFT with a simple in-process application:Note:and blocks will start to stream in:kvstoreis a non persistent app, if you would like to run an application with persistence run--proxy_app=persistent_kvstore
Sending Transactions
With the KVstore app running, we can send transactions:Cluster of Nodes
First create four Ubuntu cloud machines. The following was tested on Digital Ocean Ubuntu 16.04 x64 (3GB/1CPU, 20GB SSD). We’ll refer to their respective IP addresses below as IP1, IP2, IP3, IP4. Then,ssh into each machine and install CometBFT following the instructions.
Next, use the cometbft testnet command to create four directories of config files (found in ./mytestnet) and copy each directory to the relevant machine in the cloud, so that each machine has $HOME/mytestnet/node[0-3] directory.
Before you can start the network, you’ll need peers identifiers (IPs are not enough and can change). We’ll refer to them as ID1, ID2, ID3, ID4.
genesis.json) have come online.
Persistent peers can also be specified in the config.toml. See here for more information about configuration options.
Transactions can then be sent as covered in the single, local node example above.