Create a Blockchain

Create a blockchain on the P-Chain.

Now we can add a blockchain to the Subnet that you've created earlier. You will do this by issuing a CreateChainTx on the P-Chain. This will create the P-Chain record for your blockchain and associate it with the Subnet. The CreateChainTx transaction has 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. For standard Subnet-EVM chains, use the default VM ID srEXiWaHuhNyGwPUi444Tu47ZEDwxTWrbQiuD7FmgSAQ6X7Dy.
  • genesisData: The genesis configuration of the chain

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

Creating Your Blockchain

Use the interactive tool below to complete the blockchain creation process:

Create Chain

⚠️Please generate genesis data first usingthe Genesis Builder tool.

When the transaction was submitted successfully, you can head to the P-Chain Explorer for the Fuji testnet and search for the transaction hash to verify the creation of the blockchain.

An endpoint to query the blockchain details via the Avalanche API will be available shortly.

Is this guide helpful?

On this page