1. sudo apt install build-essential
2. sudo apt install --assume-yes git clang curl libssl-dev protobuf-compiler
3. curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
4. source $HOME/.cargo/env
5. rustc --version
6. rustup default stable
7. rustup update
8. rustup update nightly
9. rustup target add wasm32-unknown-unknown --toolchain nightly
1. wsl --install
This command enables the required WSL 2 components that are part of the Windows operating system, downloads the latest Linux kernel, and installs the Ubuntu Linux distribution by default.
For More Info Go to https://learn.microsoft.com/en-us/windows/wsl/setup/environment
1. sudo apt update
2. sudo apt install --assume-yes git clang curl libssl-dev llvm libudev-dev make protobuf-compiler
3. curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
4. source ~/.cargo/env
5. rustc --version
6. rustup default stable
7. rustup update
8. rustup update nightly
9. rustup target add wasm32-unknown-unknown --toolchain nightly
subkey
is a tool for generating and managing cryptographic keys used in Substrate and Polkadot networks:
cargo install subkey --force --locked
1. git clone --branch chainspec-modified https://github.com/Devolved-AI/Argochain.git
2. cd Argochain
3. cargo build --release
subkey generate --scheme Sr25519 --password-interactive
Secret phrase: fog nature review grass dune lunar load pattern blood measure orphan board
Network ID: substrate
Secret seed: 0xdb71292267b812eb5d23c906d923dde25a22883635a79545268897807c05e327
Public key (hex): 0x3af78e69eb6c75d416bc5a78ce77a9053feef4ecb2cffd5ff91b2dbb9c04525e
Account ID: 0x3af78e69eb6c75d416bc5a78ce77a9053feef4ecb2cffd5ff91b2dbb9c04525e
Public key (SS58): 5DQ2B3n7gPtGXbdUHyYSaiWerE63nWbnB6MtsRTZfHW8jBr6
SS58 Address: 5DQ2B3n7gPtGXbdUHyYSaiWerE63nWbnB6MtsRTZfHW8jBr6
./target/release/argochain key insert --base-path /tmp/node05 \
--chain ./customSpecRaw.json \
--scheme Sr25519 \
--suri <Secret Seed> \
--password-interactive \
--key-type babe
subkey generate --scheme Ed25519 --password-interactive
./target/release/argochain key insert --base-path /tmp/node05 \
--chain ./customSpecRaw.json \
--scheme Ed25519 \
--suri <Secret Seed> \
--password-interactive \
--key-type gran
subkey generate --scheme Sr25519 --password-interactive
./target/release/argochain key insert --base-path /tmp/node05 \
--chain ./customSpecRaw.json \
--scheme Sr25519 \
--suri <Secret Seed> \
--password-interactive \
--key-type imon
subkey generate --scheme Sr25519 --password-interactive
./target/release/argochain key insert --base-path /tmp/node05 \
--chain ./customSpecRaw.json \
--scheme Sr25519 \
--suri <Secret Seed> \
--password-interactive \
--key-type audi
nohup ./target/release/argochain \
--base-path /tmp/<Give path> \
--chain customSpecRaw.json \
--port <Give your desired Port Number> \
--rpc-port <Give your desired Rpc Port Number> \
--telemetry-url "wss://telemetry.polkadot.io/submit/ 0" \
--name <Validator Name>
--validator \
--rpc-methods Unsafe \
--unsafe-rpc-external \
--rpc-max-connections 15000 \
--rpc-cors all &
nohup ./target/release/argochain \
--base-path /tmp/node05 \
--chain ./customSpecRaw.json \
--port 30345 \
--rpc-port 9955 \
--name MyNode06 \
--validator \
--rpc-methods Unsafe \
--unsafe-rpc-external \
--rpc-max-connections 15000 \
--rpc-cors all &
curl -H "Content-Type: application/json" --data '{"jsonrpc":"2.0", "method":"author_rotateKeys", "params":[], "id":1}' http://localhost:9950
Here http://localhost:your rpc port
- Example :
{"jsonrpc":"2.0","result":"0x53f1c4efcf83e0d80f44d49be724faa18998ec6ebed8b5c79f936af1bc16d31730c9adf49829c42333d6e32fe858b682bcc0dbe8f2ead6be4dd5ac85a400c12d12ec9ae40f71222c087f4eadede7086b5bbb5102676ce64eac8e1daf8499921d04ceb33b8c112517f8052ea2e4e0b7d9a1f291e054c831724ca9dd555fed4f77","id":1}ronnie
Copy the result
section and paste it to rotatekeys
section