The Substrate NFTs node is a specialized blockchain for testing use cases with the FRAME NFTs Pallet. 🚀
The purpose of this node is to provide developers with an easy way to experiment with the NFTs pallet in a sand-boxed environment. This node may be useful for anyone making guides, tutorials or workshops that cover use cases for the NFTs Pallet.
Checkout the
manual-seal
branch to run a version of this node that only creates a new block when the node receives a valid transaction. This makes testing faster and will cover most use cases except for setting minting deadlines.
The easiest way to launch a node is to download the node's binary from the releases page. Alternatively, you can build and launch the node locally.
Launch the chain by downloading the binary in the releases page of this repository (macOS and Linux) and running the executable.
Follow the official installation steps to set up all Substrate prerequisites.
Afterwards you can install this node using:
cargo install substrate-nfts-node --git https://github.com/sacha-l/substrate-nfts-node.git
Alternatively, you can clone this repo and build the node using this command:
cargo build --release
To launch the chain in development mode (recommended):
./target/release/substrate-nfts-node --dev
About Development mode:
- Maintains state in a
tmp
folder while the node is running. - Uses the Alice and Bob accounts as default validator authorities.
- Uses the Alice account as the default
sudo
account. - Has a preconfigured genesis state (
/node/src/chain_spec.rs
) that includes several pre-funded development accounts.
After you build the project, you can use the following command to explore its parameters and subcommands:
./target/release/node-template -h
You can generate and view the Rust Docs for this template with this command:
cargo +nightly doc --open
After you start the node template locally, you can interact with it using the hosted version of the Polkadot/Substrate Portal front-end by connecting to the local node endpoint. A hosted version is also available on IPFS (redirect) here or IPNS (direct) here. You can also find the source code and instructions for hosting your own instance on the polkadot-js/apps repository.
Instead of installing dependencies and building this source directly, consider the following alternatives.
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
.
Please follow the Substrate Docker instructions here to build the Docker container for this node.