Bubba🔺 Profile picture
Mar 19 25 tweets 6 min read
Thread on How to Create an $AVAX Subnet Part 1! 👇👇👇

This thread is very basic and will not cover all the processes involved.

Hopefully this thread is used strictly to gain context regarding the overview of how Subnets are created.

Please do all research possible.

1/
Before we begin, I will provide the outline of what we intend to cover.

- Demystifying Subnets
- Clarifying the term Subnet
- What is an EVM instance?
- What are validator requirements?
- How to deploy a Subnet
- Concluding Thoughts
- Links to Github repositories

2/
Let’s begin:

This is for all audiences even if you don’t have a technical background but are interested in Subnets please read this thread.

I will try my best to break this down as simply as I can.

Here's four helpful preliminary ideas for comprehension:

3/
1. Blockchains are just code.
2. Subnets are just code.
3. Code is written in programming languages.
4. This code is open for anyone to learn.

Here’s a great thread compilation by Connor Daly that outlines what you need to get started as a dev.



4/
Open-source code is made free for anyone to modify, change, alter, or implement.

Open source is how we advance. #Ethereum was made open source, same with #Bitcoin.

This is why we are able to improve upon their code. As anyone is allowed to play with it.

5/
We actually have a major shortage in blockchain devs.

As blockchains aren’t yet mainstream, most developers are learning skills to deploy Web2 applications.

But if you start today or within the next decade, you will have a distinct advantage over Web2 devs.

6/
Now let’s begin.

What is a Subnet?

Simply put, a Subnet is a set of validators.

A Subnet validates a set of blockchains Each blockchain is validated by exactly one subnet.

You can run an EVM or your own custom blockchain on a subnet.

7/
Public Subnets have built in cross subnet communication capabilities.

#Ethereum is an EVM, EVM actually stands for Ethereum Virtual Machine.

If you want to have your own Ethereum chain on a Subnet, you need to run a Subnet EVM.

8/
Think of this as an operating system, like Mac or Windows.

Subnet EVM is refined from Coreth EVM.

You don’t have to code it on your own, as the devs over at Ava-Labs have made this open source.

9/
Now with a Subnet EVM, you define your gas mechanism.

You can have a feeless EVM or implement a gas fee structure.

In this guide we won’t cover the specifics of modifying the EVM.

Let’s just focus on getting a subnet up and running.

10/
Remember we said a Subnet is a set of validators?

What's required to run a validator?

Each validator is a node. A node has low system requirements, they can actually run-on hardware as minimal as a raspberry pi.

The more validators we have = the more decentralized.

11/
To run a validator, you need 2,000 $AVAX staked and locked.

If you want to get started, then Amazon has recently offered a validator service under AWS.

Find out how the cost to run a validator in your region here:
aws.amazon.com/marketplace/pp…

12/
Currently the fastest way to create a subnet is subnet-cli (Command Line Interface).

Suppository Here:
github.com/ava-labs/subne…

This CLI simplifies the process by refining the subnet creation to a wizard tool.

13/
Now what do we do Bubba?

Follow the actual tutorial to see the in-depth processes!

- Generate the control keys
- Create the Subnet
- Verifying Success
- Adding Subnet Validators
- Issuing Validator Transaction
- Whitelisting the Subnet
- Private Subnets

14/
When a subnet is created two things are specified:

1. A Threshold
2. Set of Keys

These are created so we can add a validator using threshold signatures.

For this thread we will call them Subnet’s Control Keys.

15/
Also, for this thread we'll call a control key’s signature a Control Signature.

You can generate the control keys here:

docs.avax.network/build/tutorial…

16/
Create The Subnet:

All we have to do is call platform.createSubnet within the code, The response gives us the transaction’s ID.

Which is also the ID of the newly created Subnet.

You can create a Subnet here:

docs.avax.network/build/tutorial…

17/
Verifying Success:

To make sure we did everything right and nothing failed or resulted in error.

We can call platform.getSubnets to get all Subnets that exist.

The response we receive after the call should confirm that our subnet was created.

18/
You can verify if you successfully created a Subnet here:

docs.avax.network/build/tutorial…

19/
Now let’s add a validator to a Subnet.

Right now, you can only add validators to subnets with API calls, not with Avalanche Wallet.

Assuming you have a Subnet ID, threshold of 2, and username has at least 2 control keys.

20/
Next is to add the subnet via the API method platform.addSubnetValidator to receive a signature.

Use These Parameters:

- nodeId: The ID of the node
- subnetId: The ID of the subnet
- startTime and endTime: The set time a validator starts/stops validating

21/
- weight: the sample weight for consensus.

Weight explained:

This is very cool, I just wanted to bring context Avalanche was built with efficiency in mind.

Being one of the top eco efficient blockchains through working only when needed, not wasting any.

22/
For Example:

If sample weight is set to 1, then your validator will be included in about 1 in every 100 samples during consensus.

Not wasting resources being involved in the other 99 samples. By default, snow-sample-size is 20.

23/
Tangent over. Back to parameters:

- changeAddr: Any change resulting from this transaction will be sent to this address.

- username and password: Self-explanatory, username and password of the user that pays the transaction fee.

24/

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Bubba🔺

Bubba🔺 Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @BubbaCrypto23

Mar 19
Thread on How to Create an $AVAX Subnet Part 2! 👇👇👇

Please do all research possible.

If you haven’t read Part 1: check it out:
Date: computing the time 10 minutes and 30 days in the future.

Click here to issue a Subnet validator transaction:

Upon completion, we can check if it's successful by calling platform.getPendingValidators to see if the node is in the pending validator set.

26/
Whitelisting the Subnet:

Now that the node has been added as a validator of the Subnet, let’s add it to the whitelist of subnets.

Nodes must whitelist ID’s they want to join.

The whitelist prevents the node from validating a Subnet unintentionally.

27/
Read 13 tweets
Mar 16
Brawl of Legends Thread 👇👇👇

Here’s the hype behind #Avalanche’s first kingdom builder!

In this thread we will cover the details and technical features behind @BrawlOfLegends!

1/
There has been so many P2E games released on Avalanche this year.

An advantage for any project creator is to have the long-term perspective in mind.

In my conversations with @DianaM0on and @Projectekko_, I asked the following questions:

2/
1. Why launch a kingdom builder?

2. Are you concerned with sustainability?

3. What makes this game special?

3/
Read 12 tweets
Mar 5
$AVAX SUBNETS USE CASES THREAD 👇👇👇👇

In this thread we will explore the use cases of Subnets on $AVAX.

Hopefully these examples shed more light on the next-gen technology of subnets.

1/
$AVAX users, expect a rush of developers, users, and collaborations within #AVALANCHE due to Subnets.

For the full picture, view my first thread explaining Subnets and their impact.

Check it out here:

2/

Why is the $AVAX twitter spaces community so bullish on subnets?

Simply put $AVAX is creating the ultimate freedom for developers to create, port, fork, or spoon any protocol or blockchain.

It's called subnets.

3/
Read 17 tweets
Mar 4
$AVAX NEWS BULLETIN THREAD 👇👇👇👇

In this thread we will cover the most bullish news released recently!

We will also discuss the impact these events have on #Crypto and #Avalanche as a whole!

1/
1. Mastercard Report on $AVAX

This week Mastercard wrote an official article on @AvaLabsOffical shilling the hypergrowth of crypto through #Avalanche!

Well written article, highly advise everyone to give a quick read.


2/
Top 3 points to be bullish on #AVAX

1. Potential $AVAX Mastercard
2. Use of #AVAX as a payment gateway
3. Mainstream adoption of blockchain technology

3/
Read 20 tweets
Mar 3
#Alpha Hunting Thread 👇👇👇!

How do people keep finding these #100X Gems and sold out #NFT’s?

In this thread we’ll cover how to TUNE out noise in the market.

Let’s improve your alpha sharp shooting skills so you are in and out before it starts trending!

1/
Remember the giga whale who turned $8K into $5 Billion last year on $SHIB?

What if you bought #ShibaInu at the time he did? You’d be set for life just with a quarter of the amount invested.



2/
Alpha Hunting is very similar to sharpshooting, it is a skill that can be developed and improved over time.

Before we dive deep, let’s lay out the definitions.

Alpha Hunting:
1. Being aware of a potentially #profitable decision
2. Compounding your knowledge

3/ Image
Read 15 tweets
Feb 28
1/ Thread on $AVAX Subnets 👇👇👇

Keeping it simple, why are subnets a game changer, not only for #AVALANCHE but for every #Cryptocurrency future and present.
2/ This morning I thought about Roger Bannister, the man who broke the “4-minute mile” in 1954.

No person in history believed a human being could run a mile under 4:00.0.

Yet at age 25, Roger opened up the floodgates for more than 1,400 athletes. Image
Each one successively improves on his time.

There are moments in history where a “Change Agent” comes into play.

Completely overhauling how we do business, see the world, and interact with each other. Image
Read 17 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(