How to run a polket node
The goal of Polket is to create more commercial application scenarios for NFTs and connect to the Polkadot/Kusama network in a parachain manner. Based on the Polket chain, we will develop a smart fitness-type Web3 application. We will name it ToEarnFun.
Getting Started
Using Nix
Install nix and optionally direnv and lorri for a fully plug and play experience for setting up the development environment. To get all the correct dependencies activate direnv direnv allow and lorri lorri shell.
Rust Setup
First, complete the basic Rust setup instructions.
Clone Source Code
Clone the latest source code from github.
git clone https://github.com/polketio/polket-node.gitBuild
make buildIf this error message appears when compiling the source code:
Rust WASM toolchain not installed, please install it!
# Plesae install toolchain nightly
rustup target install wasm32-unknown-unknown --toolchain nightly-2022-08-30
rustup target add wasm32-unknown-unknown --toolchain nightly-2022-08-30
Single-Node Development Chain
This command will start the single-node development chain with persistent state:
Purge the development chain's state:
Start the development chain with detailed logging:
Testing
Connect with Polkadot-JS Apps Front-end
Once the node template is running locally, you can connect it with Polkadot-JS Apps front-end to interact with your chain. Click here connecting the Apps to your local node template.
Multi-Node Local Testnet
If you want to see the multi-node consensus algorithm in action, refer to our Start a Private Network tutorial.
Run in Docker
First, install Docker and Docker Compose.
Then run the following command to start a single node development chain.
This command will firstly compile your code, and then start a local development network. You can also replace the default command (cargo build --release && ./target/release/polket-node --dev --ws-external) by appending your own. A few useful ones are as follow.
Run Full Node on testnet
Last updated