Skip to main content

How to build the Substrate Kitties Chain

kitties

Welcome to the Substrate Kitties tutorial. Designed to teach how to build a blockchain that handles the creation and ownership management of NFT Kitties.

It will cover various aspects of building the Kitties pallet, including creation, breeding, transfer, price setting, and purchasing kitties. Additionally, it will provide guidance on developing the front-end UI for interaction with the chain.

This tutorial is an updated/adapted version of two previous tutorials, the CryptoKitties on Substrate and the Build the Substrate Kitties Chain. The current tutorial uses the polkadot-v0.9.39 version of the Substrate Node Template. It was also added some extra sections exploring the node template and the polkadot-js javascript console.

What we will build?

A substrate based blockchain for Kitties, where you can:

  • Create or breed Kitties.
  • Sell them at a price set by their owner.
  • Transfer them from one owner to another.

Time of completion

  • It should take between 4 - 8 hours to complete this tutorial.

What you'll learn?

  • Learn patterns for building and running a Substrate node.
  • Write and integrate a custom FRAME pallet to your runtime.
  • Learn how to create and update storage items.
  • Write pallet extrinsics and helper functions.
  • Use the PolkadotJS API to connect to a Substrate node.

Prerequisites

Author

Walquer Valles

grillchat icon