Bifrost is the official Scala-based reference implementation of a full node running the Topl protocol. The Topl protocol enables a new, more inclusive and sustainable economy through purpose-built blockchain technology.
Begin interacting with Topl protocol using the latest
bifrost-node client available under Releases.
Docker containers for each release are available via Github Container Repository and Docker Hub.
We encourage all production deployments of Bifrost to make use of our Docker releases.
Tetra-eon releases of Bifrost are currently versioned on an incrementing beta version (i.e.
2.0.0-beta1). Once the implementation reaches a stable point, we will adopt semantic versioning with respect to the protocol consensus mechanism.
We chose to use semantic versioning because blockchains must maintain strict binary compatibility with all previous consensus, application, and network messages to allow trustless bootstrapping of new network participants from genesis.
We apply the following rules to our MAJOR.MINOR.PATCH versions:
MAJORindex reflects hard-forks or substantial network upgrades requiring significant community coordination
MINORindex captures soft-forks, and may include breaking API changes (to any module within the Bifrost monorepo) or significant new feature introductions
PATCHindex indicates non-breaking changes and bug fixes
Please read our Installation instructions for a step-by-step guide to installing and running a Bifrost node. At this time, we officially support the use of a Debian-based distributions such as Ubuntu only. While other platforms may function with additional effort, our documentation does not explicitly consider these targets.
Bifrost accepts the following command line arguments:
--cli <bool> An optional flag to run the CLI/Shell instead of regular node
--config <str> Zero or more config files (.conf, .json, .yaml) to apply to the
node. Config files stack such that the last config file takes
precedence. To specify an internal resource, prefix the value
--dataDir <str> The directory to use when saving/reading blockchain data
--databaseType <str> The type of data storage to use. Valid options: `levelDb-jni`
--debug An optional flag to enable debug mode on this node.
--disableGenus Disables the Genus server and Genus gRPC services
--idle <bool> An optional flag to run in no-op mode. The application will sit
idle until terminated. This is useful for creating backups of
the node's data.
--knownPeers <str> A comma-delimited list of host:port values to connect to at
launch (i.e. 22.214.171.124:9084,126.96.36.199:9084)
--logbackFile <str> An optional path to a logback.xml file to override the logging
configuration of the node.
--orientDbDir <str> The directory to use when saving/reading graph data
--orientDbPassword <str> The password to use when connecting to OrientDB
--p2pBindHost <str> The hostname to bind to for the P2P layer (i.e. localhost or
--p2pBindPort <int> The port to bind to for the P2P layer (i.e. 9084)
--p2pPublicHost <str> The hostname to bind for incoming connections for the P2P layer
(i.e. localhost or 0.0.0.0)
--p2pPublicPort <int> The port to bind for incoming connections for the P2P layer
--rewardAddress <LockAddress> The reward address for block production
--rpcBindHost <str> The hostname to bind to for the RPC layer (i.e. localhost or
--rpcBindPort <int> The port to bind to for the RPC layer (i.e. 9085)
--stakingAddress <StakingAddress> The staking address for block production
--stakingDir <str> The directory of the block producer's staking keys
--testnetStakerCount <int> The number of stakers to initialize.
--testnetStakerIndex <int> The index of the staker to launch.
--testnetTimestamp <long> A UTC Unix epoch timestamp (ms) to use when seeding a private
You may also view
sbt "node/run --help" for more information.
Additional documentation, tutorials, and code examples can be found at docs.topl.co.
The easiest way to run a Bifrost node is to use the official Docker image. To run a Bifrost node using Docker:
docker run toplprotocol/bifrost-node:2.0.0-beta1
2.0.0-beta0can be substituted with the desired version
Bifrost contains a built-in CLI that offers utilities for node operation. The CLI is available by passing
cli as the first argument to the program. The CLI is interactive and will prompt for input as needed.
For example, if using Docker, run
docker run toplprotocol/bifrost-node:2.0.0-beta1 cli.
Developers should reference the Development Setup guide for setting up a new development environment for Bifrost.
NOTE: These instructions assume a working development environment.
To run the Bifrost unit test suite from the project directory:
To publish a Docker image from the project directory for local testing:
sbt node/Docker/publishLocal. To use the locally published image, run
docker run toplprotocol/bifrost-node.
We appreciate your interest in this project and welcome contributions! You can view open issues here.
If you'd like to contribute to Bifrost, please submit pull requests so that we can review your code. For more complex changes, please contact us via Discord to ensure changes are reasonable and to receive early feedback. This will significantly expedite the process.
Please read our Contributing Guide for more information before submitting any pull requests, as the submission of any content to Topl's repositories constitutes your understanding of and agreement to our Contributor License Agreement and Code of Conduct.
Project Bifrost is licensed under the Mozilla Public License 2.0 (MPL 2.0).