Polkadot. Parachains. Moonbeam

I think that each of you has heard about Polkadot, about its parachains, but I often come across the fact that people are limited only by the knowledge of the name of these terms. I would like to provide basic information in the abstract, as well as tell you how you can run your node.

Parachains.

sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install build-essential -y
apt install git -y
apt install fail2ban -y
git clone https://github.com/PureStake/moonbeam 
cd moonbeam
git checkout tags/$(git tag | tail -1)
curl https://getsubstrate.io -sSf | bash -s -- --fast
./scripts/init.sh
cd moonbeam
cargo build --release
source $HOME/.cargo/env
adduser moonbase_service --system --no-create-home
mkdir /var/lib/alphanet-data
chmod 0755 /var/lib/alphanet-data
chown moonbase_service /var/lib/alphanet-data
cp ./target/release/moonbeam /var/lib/alphanet-data
nano /etc/systemd/system/moonbeam.service
[Unit]
Description="Moonbase Alpha systemd service"
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=on-failure
RestartSec=10
User=moonbase_service
SyslogIdentifier=moonbase
SyslogFacility=local7
KillSignal=SIGHUP
ExecStart=/var/lib/alphanet-data/moonbeam \
--parachain-id 1000 \
--port 30333 \
--rpc-port 9933 \
--ws-port 9944 \
--pruning=archive \
--unsafe-rpc-external \
--unsafe-ws-external \
--rpc-methods=Safe \
--rpc-cors all \
--log rpc=info \
--base-path /var/lib/alphanet-data \
--chain alphanet \
--name "YOUR_USERNAME" \
-- \
--port 30334 \
--rpc-port 9934 \
--ws-port 9945 \
--pruning=archive \
--name="YOUR_USERNAME"
[Install]
WantedBy=multi-user.target
systemctl enable moonbeam.service 
systemctl start moonbeam.service
journalctl -f -u moonbeam.service

--

--

Blockchain enthusiast

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store