Greetings to all readers. I was trained at Figure Learn, where I studied the Avalanche network.
These lessons included connecting to an Avalanche node using DataHub, after which I was taught how to create an Avalanche account. I sent requests and subsequent transactions.
And I learned all this in just a day of classes.
In this article, I will tell you in more detail and share my emotions from this training!

What is Avalanch?

Avalanche is an open source platform that allows you to create decentralized applications, blockchain networks, digital assets, and smart contracts.
In other words, Avalanche is a complete analog of Ethereum with the exception that Avalanche has better scalability. According to the developers, the throughput of Avalanche reaches thousands of transactions per second. The cost of these transactions is near zero.
Ethereum at the moment still has the POW consensus algorithm, which slows it down a lot, and the transition to Ethereum 2.0 will last for several more years. Avalanche is built on the basis of two different consensus mechanisms, but the basis is the PoS consensus algorithm. Hence this network bandwidth. Plus Avalanche has subnets:
* Platform Chain — a chain for metadata.
* Exchange Chain — the main blockchain.
* Contract Chain-allows you to create smart contracts that are compatible with Ethereum.
We will not go into technical details. The point is. Avalanche is the same Ethereum, but very fast and cheap. And Avalanche is compatible with Ethereum.

Avalanche has its own native AVAX coin. AVAX is needed for paying commissions and staking. A distinctive feature of AVAX staking is that the more coins are in the deposit contract and the longer they are there, the higher the annual rate. The maximum you can get is up to 10% per annum. Another feature of AVAX is that transaction fees are burned. AVAX has a maximum emission threshold of 720 million. It is impossible to change it, but it is possible to change the rate of appearance of new coins. In the first block, half of the 720 million coins were created at once. The rest appear gradually.
AVAX was introduced in September 2020, and the Avalanche network was launched at the same time.

Beginning.

To get started, I created an account on datahub.figment.io, selected the Avalanche protocol
Here we will see a list of available training tasks.
After each task, you must support it.

To complete all the tasks, we will need certain programs, such as Node.js and Visual Studio Code.
Node.js-JavaScript code execution environment outside the browser. This platform allows you to write server-side code for dynamic web pages and web applications, as well as for command-line programs. Using Node.js implements the “JavaScript for everything” paradigm. It involves using a single programming language to develop web applications instead of using different languages to work on the frontend and backend.
Node.js is not a separate programming language, but a platform for using JavaScript on the server side. If we talk about the language, then both the frontend and the backend use the same JavaScript. The only difference is in the set of APIs that frontenders and backenders use.
Browser-based JavaScript uses Web APIs that provide access to the DOM and user interface of pages and web applications. Server-side JavaScript uses APIs that provide access to the application file system, http requests, and streams.
That is, Node.js is a technology for using JS on the backend. The features and prospects of the development of the JavaScript language can be found in the corresponding article, and here we are talking about one of the technologies of this language.
Visual Studio Code is a development environment from Microsoft, created recently using new technologies (for example Node.js). Unlike the full Visual Studio package, this environment is a text editor with the ability to connect a huge number of plugins. It is designed for development in different programming languages and for different platforms. Not only Windows, but also Linux and macOS are supported.
By default, the environment is just a very advanced text editor. Therefore, it will need to be configured for full operation. In this article, I will tell you how to use Visual Studio Code and how to set up a full-fledged environment for web development. And to be more precise-for beeknd development. Let’s talk about the appearance, Russification and, of course, useful extensions.
In Visual Studio Code, you can open an integrated terminal, initially starting at the root of your workspace. This can be handy because you don’t need to switch windows or change the state of an existing terminal to perform a quick task from the command line.
In Visual Studio Code, I used the built-in terminal to execute commands
Each posterior has a manual, you can read it by clicking on the task.

Then, following the instructions in the task, I connected to the Avalanche node.

After that, I confirmed the task and within 5–10 minutes it was confirmed to me, and I was able to proceed to the next task.
Creating my First Avalanche Account

Using this training course, I was able to create my first Avalanche account.
When creating an account for this tutorial, I learned that Avalanche, has 3 chains: X, P, C.
X is responsible for token transfer, P is responsible for validators and stacking, and with C you can execute a smart contract.

Request to the Avalanche network
After learning the next part of the lesson, I learned how to extract information from the X/P chain, as well as using Curl to send network calls directly to the DataHub.
After putting this puzzle together in code, I finally got to one of the funniest! I start the first transaction using the transfer node.js command

The first transaction on the Avalanche network.

I learned how to create simple transactions, sign them, and broadcast them to the Avalanche network.
It’s only been a few hours since I’ve been introduced to the Alavanche network, and I’m already starting to create my first transaction on the Avalanche network.
After studying the next part of the lesson, I learned how to create simple transactions, sign them, and broadcast them to the Avalanche network.
While studying the creation of a transaction, I learned that the method of building transactions automatically calculates the transaction fee, which is also very cool, although it is in many blockchains.
Avalanche has a very fast transaction processing time, usually it takes a little time to confirm a single transaction, within a few seconds, which makes it great for processing payments almost in real time, like with a bank card.
After putting this puzzle together in code, I finally got to one of the funniest! I start the first transaction using the transfer node.js command
In less than an hour, I have already sent my first transaction online!

Transfers of tokens between chains
AVAX tokens exist in the X-Chain, where they can be sold, in the P-Chain, where they can be provided as a bid when verifying the Primary Network, and in the C-Chain, where they can be used in smart contracts or to pay for gas. Avalanche supports AVAX movement between these chains, and in the future Avalanche will support more general atomic swaps between chains. In this tutorial, we will send AVAX tokens from X-Chain to C-Chain.
Cross-chain transfers are carried out using a 2-step process:
Creating an X-Chain Export Transaction
Create a C-Chain Import transaction
When I finished all the export and import methods, I put them all together and started running the decoding code!
When I saved everything, I used the node interchain_transfer command.js and here’s what I have:

I recognized all the main functions of the Avalanche network so quickly and easily.
After completing all the tasks, we will be offered a reward, we will need to fill out a form.
I created an AVAX wallet on the site https://wallet.avax.network/wallet

Next, I was verified in the BrightID app.
BrightID is a public good that exists for the benefit of humanity. It is an unobtrusive, decentralized, open-source technology aimed at reforming identity verification and thus laying the foundation for a free and democratic society.

BrightID is a social identity network that allows people to prove to apps that they are not using multiple accounts. It solves a unique identity problem by creating and analyzing a social graph.
Personally, I really liked it, in the future I will definitely develop in this direction!
The most important difference between avalanche and other decentralized networks is the consensus protocol. Over time, people have come to the conclusion that blockchains should not be slow and scalable. The Avalanche protocol uses a new consensus approach to achieve robust security guarantees, fast completion, and high throughput without compromising on decentralization.
Avalanche.js is a JavaScript client package that facilitates interaction with Avalanche blockchain nodes, requests data, sends transactions, and offers many other features. This is an official package developed by Avalanche, and is the preferred method of communicating with nodes on private or public networks. for network development purposes.

Well, this is where my story about my experience of participating in the Avalanche team and Figment io comes to an end, I told only a small part of all the real advantages of this network, all additional information can be found on the official website of Avalanche or ask the admins in Discord.

At the end of my story, I can’t ignore the Figure Learn command, without them I wouldn’t have tried working with the Avalanche network.
Below you can see the idea and tasks of the Figment team!

Links:

Avalanche main site;
Avalanche pros;
Avalanche in DataHub;
Figment Discord;
Ask me a question.

--

--