Since the launch of Kaia Blockchain this repository has been parked in favour of the new open-source projects in Kaia's Github. Contributors have now moved there continuing with massive open-source contributions to our blockchain ecosystem. A big thank you to everyone who has contributed to this repository. For more information about Klaytn's chain merge with Finschia blockchain please refer to the launching of Kaia blockchain - kaia.io.
Official golang implementation of the Klaytn protocol. Please visit KlaytnDocs for more details on Klaytn design, node operation guides and application development resources.
Building the Klaytn node binaries as well as utility tools, such as kcn
, kpn
, ken
, kbn
, kscn
, kspn
, ksen
, kgen
, homi
and abigen
requires
both a Go (version 1.14.1 or later) and a C compiler. You can install them using
your favorite package manager.
Once the dependencies are installed, run
make all (or make {kcn, kpn, ken, kbn, kscn, kspn, ksen, kgen, homi, abigen})
After successful build, executable binaries are installed at build/bin/
.
Command | Description |
---|---|
kcn |
The CLI client for Klaytn Consensus Node. Run kcn --help for command-line flags. |
kpn |
The CLI client for Klaytn Proxy Node. Run kpn --help for command-line flags. |
ken |
The CLI client for Klaytn Endpoint Node, which is the entry point into the Klaytn network (main-, test- or private net). It can be used by other processes as a gateway into the Klaytn network via JSON RPC endpoints exposed on top of HTTP, WebSocket, gRPC, and/or IPC transports. Run ken --help for command-line flags. |
kscn |
The CLI client for Klaytn ServiceChain Consensus Node. Run kscn --help for command-line flags. |
kspn |
The CLI client for Klaytn ServiceChain Proxy Node. Run kspn --help for command-line flags. |
ksen |
The CLI client for Klaytn ServiceChain Endpoint Node. Run ksen --help for command-line flags. |
kbn |
The CLI client for Klaytn Bootnode. Run kbn --help for command-line flags. |
kgen |
The CLI client for Klaytn Nodekey Generation Tool. Run kgen --help for command-line flags. |
homi |
The CLI client for Klaytn Helper Tool to generate initialization files. Run homi --help for command-line flags. |
abigen |
Source code generator to convert Klaytn contract definitions into easy to use, compile-time type-safe Go packages. |
Both kcn
and ken
are capable of running as a full node (default) or an archive
node (retaining all historical state).
Core Cell (CC) is a set of one consensus node (CN) and one or more proxy nodes (PNs). Core Cell plays a role of generating blocks in the Klaytn network. We recommend to visit the CC Operation Guide for the details of CC bootstrapping process.
Endpoint Node (EN) is an entry point from the outside of the network in order to interact with the Klaytn network. Currently, two official networks are available: Testnet and Mainnet (legacy names: Baobab and Cypress). Please visit the official EN Operation Guide.
Service chain node is a node for Service Chain which is an auxiliary blockchain independent from the main chain tailored for individual service requiring special node configurations, customized security levels, and scalability for high throughput services. Service Chain expands and augments Klaytn by providing a data integrity mechanism and supporting token transfers between different chains. Although the service chain feature is under development, we provide the operation guide for testing purposes. Please visit the official document Service Chain Operation Guide. Furthermore, for those who are interested in the Klaytn Service Chain, please check out Klaytn - Scaling Solutions.
The Klaytn library (i.e. all code outside of the cmd
directory) is licensed under the
GNU Lesser General Public License v3.0, also
included in our repository in the COPYING.LESSER
file.
The Klaytn binaries (i.e. all code inside of the cmd
directory) is licensed under the
GNU General Public License v3.0, also included
in our repository in the COPYING
file.
As an open source project, Klaytn always welcomes your contribution. Please read our CONTRIBUTING.md for a walk-through of the contribution process.