mmc-98 / go-x1

X1 blockchain protocol secured by the Lachesis consensus algorithm

Home Page:https://docs.xen.network/x1/explore-the-network

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

X1 Blockchain

X1 is a simple, fast, and secure EVM-compatible network for the next generation of decentralized applications powered by Lachesis consensus algorithm.

Chain ID: 204005

Explore the Network (Testnet)

RPC Endpoints

Documentation

See our docs for more information on the X1 network and how to get started.

Run Full Node (Testnet)

Quick start a full node and run in the foreground

# Install dependencies (ex: ubuntu)
apt update -y
apt install -y golang wget git make

# Clone and build the X1 binary
git clone --branch x1 https://github.com/FairCrypto/go-x1
cd go-x1
make x1
cp build/x1 /usr/local/bin

# Run the node
x1 --testnet

Examples

Run with Xenblocks reporting enabled

x1 --testnet --xenblocks-endpoint ws://xenblocks.io:6668

Run an API Node (Testnet)

An API node corresponds to a full node that has the RPC server activated. To set up an API node, follow the complete node instructions mentioned earlier, but execute the process with the --http and/or --ws flags.

Examples

Run with RPC server enabled

x1 --testnet --http --http.port 8545 --ws --ws.port 8546

Run with RPC server open to the world (only run if you know what you are doing)

x1 --testnet --http --http.port 8545 --http.addr 0.0.0.0 --http.vhosts "*" --http.corsdomain "*" --ws --ws.addr 0.0.0.0 --ws.port 8546 --ws.origins "*"

Run a Validator Node (Testnet)

See here for more information on running a validator node.

About

X1 blockchain protocol secured by the Lachesis consensus algorithm

https://docs.xen.network/x1/explore-the-network

License:GNU Lesser General Public License v3.0


Languages

Language:Go 97.5%Language:Python 1.9%Language:Solidity 0.3%Language:Jinja 0.2%Language:Makefile 0.1%Language:Shell 0.0%