Different Types of Networks
Learn about different types of networks.
You just deployed and interacted with your first local network. But what does that mean? You can interact with your network, but you will notice that no one else can. Therefore, we have to understand what different Networks are in Avalanche.
Networks
We can deploy a Subnet to a network of validators. This means we either run these validators on our own or we convince a subset of the existing validators of the Avalanche network to validate our Subnet.
These validators validate the Subnet according to our rules and will get compensated with transaction fees. A validator can validate as many Subnets as they like. However, in practice hardware usually limits it to around 5 Subnets per Validator.
Depending on our use case, we can choose a network to deploy on:
Mainnet
When our Subnet goes into production, we want to run it on mainnet. To run a validator on mainnet, we have to stake 2,000 AVAX on each.
Testnet (Fuji)
When we want to test our Subnet, we can deploy it to the Fuji Testnet. The easiest way to do this is to run a Fuji Node. On Testnet, it only costs 1 AVAX to run a node. That AVAX can be obtained for free from the Testnet Faucet we used in the Avalanche Fundamentals course. All tokens on the Testnet are valueless.
When deploying the Subnet to Fuji, anyone can interact with it, so long as at least one validator is online. This is great for more intense testing with multiple parties. Further, the Subnet can interact with other Subnets deployed in Fuji to test more complex behavior.
Local Network
For our purposes, it is sufficient to run a small local network of 5 nodes on our machine exclusive to us. This has advantages:
- It is very fast to set up
- We have full control over all tokens of the network and can arbitrarily create testnet tokens for our testing
- We can work offline, if needed
By selecting “Local Network” during your deployment earlier, you have deployed your first Subnet on the local network.