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.

In this section you will learn how to create a blockchain record on the P-Chain. First we will learn how to use the Genesis Builder tool to configure the blockchain. 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.

Logo

Create Chain

Create a new blockchain on your subnet with custom parameters and genesis data.

For an L1 with an uncustomized EVM use srEXiWaHuhNyGwPUi444Tu47ZEDwxTWrbQiuD7FmgSAQ6X7Dy

Chain Parameters

Enter the basic parameters of your L1, such as the EVM chain ID.

Unique identifier for your blockchain. Check chainlist.org to avoid conflicts.

Permissions

By design, blockchain networks are fully permissionless, allowing anyone to transact and deploy smart contracts. However, certain use cases require permissioning to control who can participate in transactions or deploy contracts. On Avalanche, permissioning is an optional feature for Layer 1 blockchains that may or may not be activated, depending on the network's needs.

Tokenomics

Tokenomics in Layer 1 blockchains on the Avalanche network are highly flexible, allowing developers to tailor economic models to their specific needs. Each L1 can define its own native token, specifying its initial allocation, distribution mechanism, and whether it should be mintable for ongoing issuance. This enables a wide range of economic designs, from fixed-supply tokens to inflationary models that support network sustainability.

Transaction Fees & Gas

In addition to the native token, you can also configure the transaction fees (also known as gas fees). This allows Avalanche L1s to define the desired or maximal throughput of the blockchain differently.

Fill in the configuration to generate the genesis file.

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?

On this page

No Headings