Skip to content

Get Started

The following sections provide hands-on tutorials for building a parachain with the Polkadot SDK. Each tutorial runs locally and focuses on one part of the development workflow: setting up the template, building a runtime with FRAME and pallets, testing, upgrading, and enabling cross-chain messaging.

Install and Run the Template

Start by installing the Polkadot SDK toolchain, then set up the Polkadot SDK Parachain Template and run it locally with the Polkadot Omni Node.

Tutorial Tools Description
Install Polkadot SDK Rust, Polkadot SDK Install the toolchain and dependencies needed to build Polkadot SDK chains
Set Up the Parachain Template Polkadot SDK Learn how to set up and run the Polkadot SDK Parachain Template locally

Build a Runtime

Build custom functionality for your parachain by composing FRAME pallets and creating your own.

Title Description Difficulty
Add Existing Pallets Integrate pre-built pallets from the FRAME ecosystem. 🟡 Intermediate
Add Multiple Instances of a Pallet Configure and use multiple instances of the same pallet. 🟡 Intermediate
Add Smart Contract Functionality Enable smart contract capabilities with pallet-revive. N/A
Add pallet-revive to Your Runtime Integrate pallet-revive and its runtime APIs into a runtime. N/A

Pallet Development

Create, test, and benchmark custom pallets for your runtime.

Title Description Difficulty
Create a Custom Pallet Build a pallet from scratch with custom logic. 🟢 Beginner
Mock Your Runtime Set up a mock runtime environment for testing. 🟡 Intermediate
Unit Test Pallets Write comprehensive tests for your pallet logic. 🟡 Intermediate
Benchmark a Custom Pallet Measure and optimize pallet performance with benchmarking. 🔴 Advanced

Test Your Parachain

Run your parachain alongside a local relay chain to test it end to end.

Title Description Difficulty
Run a Parachain Network Launch a complete parachain test network with Zombienet. 🟡 Intermediate
Test XCM Test cross-chain messages in Rust with xcm-simulator mock runtimes or xcm-emulator real runtimes, assert on destination events, and dry-run XCM in tests. N/A
Write Network Tests Write end-to-end tests for Polkadot SDK networks with the Zombienet test DSL or the zombienet-sdk Rust crate, and run them locally or in CI. N/A

Upgrade and Maintain Your Runtime

Ship new runtime logic with forkless upgrades and migrate on-chain storage safely.

Title Description Difficulty
Runtime Upgrades Perform a forkless runtime upgrade on a local chain. 🟡 Intermediate
Storage Migrations Safely migrate storage when updating runtime logic. N/A
Test Runtime Upgrades Dry-run runtime upgrades and migrations before you ship them. N/A
Multi-Block Migrations Migrate large storage safely across multiple blocks. N/A

Enable Interoperability

Configure your parachain for cross-chain communication using Cross-Consensus Messaging (XCM). To set up the XCM executor, pallet-xcm, and message queues in your runtime, see Configure XCM in Your Runtime.

Title Description Difficulty
Get Started Unlock blockchain interoperability with XCM — Polkadot's Cross-Consensus Messaging format for cross-chain interactions. N/A
Configure XCM Configure the XCM executor, pallet-xcm, XCMP and message queues, and the XCM dry-run and fee runtime APIs in a Polkadot SDK parachain runtime. N/A

Reference

The Polkadot SDK reference explains the concepts behind these tutorials, including the node and runtime architecture, accounts, blocks, transactions and fees, consensus, and data encoding.

Deploy to a Live Network

To register your parachain on a relay chain and obtain coretime, see Deploy on Polkadot on the Polkadot Developer Docs.

Additional Resources

Last update: November 17, 2026
| Created: November 17, 2026