Build Application Logic
Demonstrates how you can add pallets to customize the Substrate runtime environment.
Last updated
Demonstrates how you can add pallets to customize the Substrate runtime environment.
Last updated
The Build application logic tutorials focus on how you can customize the runtime using pallets, including how to add simple and complex pallets to the runtime and how to use pallets in combination with smart contracts. You'll learn how to:
introduces the common steps for adding a simple predefined pallet to the node template runtime.
illustrates how to create a custom pallet using macros.
demonstrates how you can specify the account to use as the originator of a function call.
illustrates how to modify a pallet to include an offchain worker and configure the pallet and runtime to enable the offchain worker to submit transactions that update the on-chain state.
illustrates how to publish custom pallets and crates so they are available to the community.
If you want to experiment with smart contract development for your blockchain, you should use the preconfigured instead of the standard node template. There are compatibility issues between the pallets that support smart contracts and the current node template. To resolve these compatibility issues would require extensive changes to the configuration of the standard node template, including using older versions of all crates and modifying multiple files.