How-to quick reference guides
Substrate How-to quick reference guides provide instructions for achieving specific goals. Each guide explains how to perform a specific task with the assumption that you are already familiar with Substrate and programming in Rust.
See the following guides to learn common patterns in runtime development.
- Import a pallet
- Configure runtime constants
- Configure genesis state
- Customize a chain specification
- Use helper functions
See the following guides for best practices on building pallets using FRAME.
- Implement lockable currency
- Incorporate randomness
- Configure crowdfunding
- Create a storage structure (struct)
- Use tight pallet coupling
- Use loose pallet coupling
See the following guides for help with benchmarking and weight configurations.
See the following guides for help with testing pallets and runtime logic.
See the following guides for help with a storage migration.
See the following guides to implement consensus mechanisms in your runtimes.
See the following guides for help working with Substrate parachains.
- Convert a solo chain
- Connect to a relay chain
- Select collators
- Prepare to launch
- Upgrade a parachain
- Auctions and crowdloans
- Add HRMP channels
See the following guides for add-on tools that help you manage Substrate chains in production.
- Use try-runtime
- Create a txwrapper for a chain
- Use REST endpoints to get chain data
- Verify a Wasm binary
See the following guides for help working with offchain data.