Difference between revisions of "Avalanche subnet create"

From wikieduonline
Jump to navigation Jump to search
 
(19 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
  [[avalanche subnet create --help]]
 
  [[avalanche subnet create --help]]
  
 +
== 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
 
  avalanche subnet create
 
  Error: accepts 1 arg(s), received 0
 
  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
 
   
 
   
* [[avalanche subnet]] deploy
+
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 ==
 +
* <code>[[avalanche subnet deploy]]</code>
 
* [[ChainID]]
 
* [[ChainID]]
 +
* <code>[[subnet-evm]]</code>
 +
* <code>[[~/.avalanche-cli/subnets/genesis.json]]</code>
 +
* <code>[[~/.avalanche-cli/subnets/sidecar.json]]</code>
 +
* [[Avalanche subnets]]
 +
* [[op-deployer init]]
  
 
== See also ==
 
== See also ==
 +
* {{avalanche subnet create}}
 +
* {{avalanche subnet}}
 
* {{avalanche-cli}}
 
* {{avalanche-cli}}
* {{Avalanche}}
 
  
 
[[Category:Crypto]]
 
[[Category:Crypto]]

Latest revision as of 17:03, 30 October 2024

avalanche subnet create
avalanche subnet create --help

Options[edit]

     --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[edit]

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

Example[edit]

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[edit]

See also[edit]

Advertising: