Use Rust's native cargo
command to build and run
cargo run -- --dev --tmp --offchain-worker Never
In your web browser, navigate to https://polkadot.js.org/apps/?rpc=ws%3A%2F%2F127.0.0.1%3A9945#/explorer .
The cargo run
command will perform an initial build. Use the following command to build the node
without launching it:
cargo build --release
Once the project has been built, the following command can be used to explore all parameters and subcommands:
./target/release/tfchain -h
The chainspecs need to be updated if you want to start a new chain.
The provided cargo run
command will launch a temporary node and its state will be discarded after
you terminate the process. After the project has been built, there are other ways to launch the
node.
Build it in debug mode first:
cargo build
This command will start the single-node development chain with persistent state:
./target/debug/tfchain --dev
Purge the development chain's state:
./target/debug/tfchain purge-chain --dev
Start the development chain with detailed logging:
RUST_LOG=debug RUST_BACKTRACE=1 ./target/debug/tfchain -lruntime=debug --dev