Skip to main content

LayerProtocol blockchain

Project description


Layernode is a peer-managed node that extends the functionality of the Layer Protocol and the LRX token. It caches data from the Layer network, performs computations, handles LRX token staking and more.

Local MySQL server

  • Install mysql server
sudo apt-get update
sudo apt-get install mysql-server
  • Logon to MySQL using root user, and run the following sql
CREATE USER 'layer_user'@'%' IDENTIFIED BY 'layer_password';  
GRANT ALL PRIVILEGES ON layernode.* TO 'layer_user'@'%';

IPFS setup

  • ipfs setup
sudo apt-get update
sudo apt-get install golang-go -y
tar xvfz go-ipfs_v0.4.10_linux-386.tar.gz
sudo mv go-ipfs/ipfs /usr/local/bin/ipfs
  • ipfs config creation
ipfs init
ipfs daemon
  • ipfs service
cp ./ipfs.service /etc/systemd/system/ipfs.service
systemctl daemon-reload
systemctl enable ipfs.service
systemctl start ipfs
service ipfs status

Install dependency and create python3 virtual environment

Layernode only works and tested on Python 3 and above.

sudo apt-get install build-essential
sudo apt-get install python3-dev
sudo apt-get install python3-setuptools

git clone
cd layernode
virtualenv venv -p python3
source venv/bin/activate
pip install layernode

Create and update config

  • create config to ~/.layernode
layernode -h
  • update config


How to run module offers a cool CLI to interact with the blockchain engine. When you install this package, you can call this module by 'layernode' executable.

You can start the client by running

layernode start

Every service associated with blockchain runs at startup. This implies that your client will immediately start synchronizing with p2p network. Initial peer list is hard-coded into client but you can update this list by updating your config file. Config file can be specified at startup or can be edited manually after first start. Default data folder is inside your home directory and named .layernode.

run layernode service on terminal

  • run layernode on console
layernode start
  • show layernode commands
layernode -h
  • stop layernode service
layernode stop

run layernode service by daemon

This daemonize will be updated later just like bitcoind.

layernode start > /dev/null 2>&1 &

This project is maintained by the @LayerProtocol team, with specific development inquiries directed to:

  • @gedanziger
  • @oleg-baturov
  • @ohtayoshida

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for Layernode, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size Layernode-0.0.3-py3-none-any.whl (34.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size Layernode-0.0.3.tar.gz (27.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page