avalanche subnet create

From wikieduonline
Jump to navigation Jump to search

Options

     --custom              use a custom VM template
     --evm                 use the Subnet-EVM as the base template
 -f, --force               overwrite the existing configuration if one exists
     --genesis string      file path of genesis to use
 -h, --help                help for create
     --latest              use latest VM version, takes precedence over --vm-version
     --spacesvm            use the SpacesVM as the base template
     --vm string           file path of custom vm to use
     --vm-version string   version of vm template to use

Errors

avalanche subnet create
Error: accepts 1 arg(s), received 0

Example

avalanche subnet create mySubnet
Use the arrow keys to navigate: ↓ ↑ → ←
? Choose your VM:
  ▸ Subnet-EVM
    SpacesVM
    Custom

Enter your subnet's ChainId. It can be any positive integer.
ChainId: 12312432123123231312
Select a symbol for your subnet's native token
✗ Token symbol: █
Token symbol: MYSYMBOL
Use the arrow keys to navigate: ↓ ↑ → ←
? What version of Subnet-EVM would you like?:
  ▸ Use latest version
? How would you like to set fees:
  ▸ Low disk use    / Low Throughput    1.5 mil gas/s (C-Chain's setting)
    Medium disk use / Medium Throughput 2 mil   gas/s
    High disk use   / High Throughput   5 mil   gas/s
    Customize fee config
    Go back to previous step
? How would you like to distribute funds:
  ▸ Airdrop 1 million tokens to the default address (do not use in production)
    Customize your airdrop
    Go back to previous step
? Advanced: Would you like to add a custom precompile to modify the EVM?:
  ▸ No
    Yes
    Go back to previous step
Successfully created subnet configuration


Related

See also

Advertising: