sudo apt update
sudo apt upgrade
sudo apt install build-essential
sudo apt install pkg-config
sudo apt install libssl-dev
sudo apt install clang
sudo apt install protobuf-compiler
curl https://sh.rustup.rs -sSf | sh
source $HOME/.cargo/env
sudo apt install git-all
sudo apt install docker.io
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
git clone https://github.com/karnotxyz/madara-cli
cd madara-cli
cargo build --release
https://docs.availproject.org/about/faucet/
./target/release/madara init
screen -S run
cd madara-cli
./target/release/madara run
./madara-cli/target/release/madara explorer --host=$(wget -qO- eth0.me)
Optionally, explore the StarkCompass explorer. Accessible at http://localhost:4000.
That's it, your madara app is running
https://app-id-gen.vercel.app/
You can import your Avail wallet to Polkadot.js or Talisman extension wallet to continue.(Select wallet which you use for the "Clash Of Nodes" event)
appname="Your appname goes here"
nano /root/.madara/app-chains/$appname/da-config.json
https://www.uuidgenerator.net/
{
"name": "my_app_chain",
"logo": "https://placehold.co/400x400",
"rpc_url": "http://ipv4:9944",
"explorer_url": "http://ipv4:4000",
"metrics_endpoint": "http://ipv4:9615/metrics",
"id": "942ff35e-f048-4d10-ae61-6cb970cad2f0"
}
To create a json "Your id".json file run:
sudo touch "Your uid"
name: The name of your app chain.
logo: A image link for the logo of your app chain
rpc_url: A public endpoint for your app chain to make RPC calls (port 9944 by default)
explorer_url: A public endpoint where your app chain explorer is visible
metrics_endpoint: A public endpoint for your prometheus metrics (port 9615 by default)
id: Your node id
rpc-url format: "http://ipv4:9944"
explorer_url: "http://ipv4:4000"
metrics_endpoint: "http://ipv4:9615/metrics"
https://github.com/karnotxyz/avail-campaign-listing
This configuration file includes essential details about your appchain, such as its name, logo URL, RPC endpoint, explorer URL, metrics endpoint, and a unique identifier. Ensure all information is accurate and up-to-date to facilitate smooth registration and participation in the campaign. Once the PR is merged, the appchain will appear on the Clash of Nodes Leaderboard.
ver="1.21.6"
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz"
rm "go$ver.linux-amd64.tar.gz"
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile
go version
git clone https://github.com/sarox0987/avail-madara
cd avail-madara
nano rpc.json
go mod tidy
screen -S tx
go run main.go