# Parachain from scratch

{% embed url="<https://github.com/chungquantin/parachain-from-scratch?tab=readme-ov-file>" %}

## Create a Parachain from scratch

<figure><img src="/files/CscoaVFUitlGjnoduKzJ" alt=""><figcaption></figcaption></figure>

The repository contains two nodes \`parachain-node\` and \`solochain-node\` and one \`runtime\`. The goal of this tutorial is to help you convert your Substrate runtime to be compatible with the \`parachain-node\` and register a new parachain on the PASEO testnet.&#x20;

### Getting started

First step is to follow all the TODOs in the repository and convert your \`solochain-runtime\` to a \`parachain-runtime\` until it works with the \`parachain-node\`. To test the the local relaychain network, run the below command:

```
pop up parachain -f ./network.toml
```

If you are not familiar with the \`pop-cli\` tool, learn more in here: <https://github.com/r0gue-io/pop-cli>&#x20;

{% content-ref url="/pages/Ccn8Z3WhlT0GIhx04EXm" %}
[Break down the node architecture](/building-a-blockchain-with-polkadot-sdk/polkadot-sdk/substrate/create-a-new-blockchain/break-down-the-node-architecture.md)
{% endcontent-ref %}

#### Sharded network design and block production / finalization mechanism

<figure><img src="/files/hPC0hXuCfvUBtEZhZ5Gq" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://bootcamp.openguild.wtf/building-a-blockchain-with-polkadot-sdk/polkadot-sdk/cumulus/introduction-to-cumulus/parachain-from-scratch.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
