Build a Collator
At this moment, Shiden is an Aura PoS network. To run a collator, please join our discord and tag @coreteam. Discord: https://discord.gg/sTbJMSg

Build from Source

Overview

Before building your collator, make sure you understand the role of collators in the Shiden Network and you have experience with running a node. If you don't have the experience you can learn by launching a node for our testnet Dusty.

Building Shiden collator

Make sure your server is ready to build a Shiden collator:
1
## Install Rust
2
##
3
curl https://sh.rustup.rs -sSf | sh
4
source $HOME/.cargo/env
5
rustup update nightly
6
rustup target add wasm32-unknown-unknown --toolchain nightly
7
8
## Compile needed software
9
##
10
bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)"
11
sudo apt install cmake
12
sudo apt install git
13
sudo apt install build-essential
14
sudo apt update
15
sudo apt install clang
Copied!
Download everything from our Github and use the Shiden branch:
1
git clone https://github.com/PlasmNetwork/Astar.git
2
cd Astar
3
git checkout development/shiden
Copied!
Make sure you have the latest commits in place:
1
git checkout
2
git pull
Copied!
Build your node from source:
1
cargo build --release
Copied!
Start Collator using screen or nohup:
1
cd /target/release/
2
./astar-collator --validator --name NODENAME --rpc-cors all --telemetry-url 'wss://telemetry.polkadot.io/submit/ 0' --execution wasm
Copied!
Get session key:
1
curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "author_rotateKeys", "params":[]}' http://localhost:9933
Copied!
Make sure you set your session key before register to become a collator!

Build with Docker or use binaries

Docker

You can download the docker here.

Binaries

You can download the latest binary from here.
1
wget https://github.com/PlasmNetwork/Plasm/releases/download/shiden-6/astar-collator-2.3-ubuntu-x86_64.tar.gz
2
tar -xf astar-collator-2.3-ubuntu-x86_64.tar.gz
Copied!

Kusama Relay Chain snapshot

If you run your collator it not only needs to sync the Shiden Network chain but also the complete relay chain from Kusama. This can take up to 3-4 days. You can also use a snapshot of Kusama. You can download this here and will save a lot of time.
NOTE: know what you are doing!
Last modified 1mo ago