Skip to content

A specialized blockchain for testing use cases with the FRAME NFTs Pallet.

License

Notifications You must be signed in to change notification settings

sacha-l/substrate-nfts-node

Repository files navigation

Substrate NFTs Node

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.

Launch the chain

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.

Download using release binaries

Launch the chain by downloading the binary in the releases page of this repository (macOS and Linux) and running the executable.

Build the node locally

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.

Embedded Docs

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

Connect with Polkadot-JS Apps Front-End

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.

Alternatives Installations

Instead of installing dependencies and building this source directly, consider the following alternatives.

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.

Docker

Please follow the Substrate Docker instructions here to build the Docker container for this node.

About

A specialized blockchain for testing use cases with the FRAME NFTs Pallet.

Resources

License

Stars

Watchers

Forks

Packages

No packages published