Create a Blockchain

Learn how to configure a blockchain and create a record for it on the P-Chain by issuing a CreateChainTx transaction using the Builder Tooling.

Now that you have Core wallet set up and some AVAX on the P-Chain you can create a Subnet. You will do this by issuing a CreateSubnetTx transaction. This will create a Subnet that is uniquely identified by the transaction hash of the CreateSubnetTx transaction.

The CreateSubnetTx transaction only has a single parameter: The owner of the Subnet. The owner can add blockchains to the Subnet and convert it to an L1. With the conversion to an L1 the owner will loose it's privileges. Therefore, the owner is only relevant during the creation time and does not have to be secured by a mulit-sig if a immediate conversion to an L1 is planned. We will just use your P-Chain address as the owner.

Then you will issue the CreateChainTx on the P-Chain to create the blockchain record. The CreateChainTx transaction as the following parameters:

  • name: The name of the chain
  • subnetID: The ID of the Subnet you want to add the chain to
  • vmID: The ID of the Virtual Machine that will be used to run the chain.
  • genesisData: The genesis configuration of the chain

The Genesis Builder tool allows us to configure many aspects of the blockchain like permissioning, it's tokenonomics and the transaction fee mechanism.

Feel free to browse through the different configuration options, but for now don't change any of the defaults and just click the View Genesis JSON button.

Then click Create Chain This will create the P-Chain record for your blockchain and associate it with the Subnet created in the previous step.

The blockchain will be uniquely identified by the transaction hash of the CreateChainTx transaction.

Congratulations! You have successfully created a blockchain record on the P-Chain. The blockchain does not have any validator nodes yet, so we can't connect our wallet to it or issue any transactions just yet. You will learn how to do that in the next section.

Is this guide helpful?

Report Issue

On this page

No Headings