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 chainsubnetID
: The ID of the Subnet you want to add the chain tovmID
: The ID of the Virtual Machine that will be used to run the chain. For standard Subnet-EVM chains, use the default VM IDsrEXiWaHuhNyGwPUi444Tu47ZEDwxTWrbQiuD7FmgSAQ6X7Dy
.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
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?