Chains
Deploy new blockchains on existing subnets
Deploy a new blockchain on an existing subnet using the chain create command.
Create a Chain
platform chain create \
--subnet-id 2QYfFcfZ9... \
--genesis genesis.json \
--name mychain \
--key-name mykeyFlags
| Flag | Description | Default |
|---|---|---|
--subnet-id | Subnet to create chain on (required) | |
--genesis | Path to genesis JSON file (required, max 1 MB) | |
--name | Chain name | mychain |
--vm-id | VM ID | Subnet-EVM |
Genesis File
The genesis file must be valid JSON and under 1 MB. For Subnet-EVM chains, you can use the standard Subnet-EVM genesis format.
{
"config": {
"chainId": 99999,
"feeConfig": {
"gasLimit": 8000000,
"targetBlockRate": 2,
"minBaseFee": 25000000000,
"targetGas": 15000000,
"baseFeeChangeDenominator": 36,
"minBlockGasCost": 0,
"maxBlockGasCost": 1000000,
"blockGasCostStep": 200000
}
},
"alloc": {
"0xYourAddress": {
"balance": "0x295BE96E64066972000000"
}
}
}Is this guide helpful?