Do you want to get into Web 3.0 as a web developer and take the next step on your awesome journey?

Awesome! Time for a small introduction to Web 3.0 development with JavaScript and ethers.js!

🧵👇🏻
0️⃣ What Is ethers.js?

ethers.js is a JavaScript library that allows you to interact with the Ethereum blockchain, as well as its ecosystem.

Simply stated: You can access your wallet, send transactions, and interact with smart contracts through it.
1️⃣ Installation

Let's assume that you already have a JavaScript (frontend) project of any kind set up. If not, do that first.

Before you now install ethers, you should get one last prerequisite: MetaMask.
MetaMask is a browser extension that allows you to interface with Ethereum and other blockchains right from your browser.

You can get it at the link below. Install it before you go on. It makes the next steps possible and easier than the alternatives.

metamask.io
The next thing is to actually install ethers into your project by using either npm or yarn. I use npm in the example below.
2️⃣ Basic Usage Of ethers.js

You can use ethers.js like you'd use any other package you can get through npm. Simply import ethers and you have an object at hand that provides the full API you need.
With the 'ethers' object you can now get yourself a provider. The latter is nothing else than an API object that allows you to interact with the blockchain itself.

The provider in this case is backed by MetaMask.
Ethereum stores its data publicly. This means that you can actually access every wallet and see how much currency it has stored. The only thing you need for this is the address of the wallet.
Before you now jump right into it and try to withdraw each and every Ether from all wallets you can find: This won't work. Without the wallet's private keys, you won't be able to transact anything. Sorry!
ethers does, however, allow you to send transactions from your own wallet through MetaMask.

You need a so-called "signer" that holds your private keys and can sign the transactions for you. When you already have a provider at hand, you can use it to create your signer.
With that signer, you can now send transactions to whatever wallet you want to.

What you always have to take care of, though, is to send the amount in Wei, and not in ETH itself. Ethereum does only know Wei, so ethers provides a conversion function for your convenience.
And this is how you can interact with Ethereum through ethers on a basic level.

ethers has more APIs than only those to interact with a wallet. It does also let you interact with tokens which are what altcoins on Ethereum are based on, e.g.
I will surely cover those in the future and give you a broader idea of what you could actually do with this library.
3️⃣ Before You Leave

If you liked this thread, a like would mean the world to me. Retweets are appreciated if your audience also likes this type of content. 😊

And if you want to see more content like this regularly, feel free to follow me for more! 💛🙏🏼
4️⃣ Want More?

I posted another thread, covering the basics of interacting with tokens through ethers.js!❤️

• • •

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

Keep Current with Oliver Jumpertz

Oliver Jumpertz 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 @oliverjumpertz

23 Apr
From time to time you read the term Web 3.0. For many of us, however, this term is still mysterious.

Time to shed some light on it and explain what it actually is all about!

🧵👇🏻
0️⃣ The Web Today

The web as we know it today is actually already Web 2.0. It is an extension of the original Web (1.0). In the beginning, the web was meant for websites to provide the information and users to consume it.

Web 2.0 changed this and brought the user into the game.
Users started to create the content themselves while websites became the platform to distribute this new type of content instead of only consuming information.

Especially social media made Web 2.0 a reality and kick-started an evolution that still goes on today.
Read 22 tweets
21 Apr
Consensus algorithms are actually a necessity for blockchains to function properly and are at the heart of any implementation.

And did you know that there are actually quite a few of them? Let's take a look at some interesating ones!

🧵👇🏻
0️⃣ What Is A Consensus Algorithm?

Blockchains are decentralized. There is never a central entity that can decide what is true and what is not. Instead, in a blockchain network, a variety of nodes interact with each other.
As a blockchain usually stores data in a chain of blocks (hence the name), the network must decide what the actual truth is together, This is where consensus algorithms come in. Everyone can append a block. If two participants do it at the same time, the chain is forked.
Read 23 tweets
15 Apr
I'm not an HR pro, but I take part in the hiring process, look at CVs and lead interviews with candidates.

Let me give you some advice on your CV, especially if you have not that much or no prior experience at all.

🧵⬇️
1️⃣ Basic Structure Of A CV

I'm pretty sure that most of you know the basic structure of a CV. Your personal details at the top, and then your:

- education
- skills
- work experience
- projects
- sometimes a few hobbies

in some order, and that's it then.
2️⃣ The Issue

At least in my experience, people with little to no experience often leave out the "projects" part because they argue that they haven't done any, yet.

That is a huge mistake. If you don't have that much experience, yet, you may still compete with people ...
Read 18 tweets
14 Apr
You don't know how to get into crypto or you simply don't want to spend any money? Do you still want a piece of the cake?

Here is a short 101 on how to get your hands on some crypto and even #BTC.

🧵👇🏻
1️⃣ Download Brave

The Brave browser is based on Chromium, and designed with privacy in mind. If you are unsure, Brendan Eich (yes, exactly, him) is the CEO of Brave Software Inc., the company creating the browser.

brave.com
2️⃣ Enable Brave Rewards

Brave blocks ads on websites by default but it comes with its own blockchain-based ad system. Instead of putting them everywhere on websites, however, they come in the form of system notifcations, sent by your browser.
Read 9 tweets
13 Apr
Here are five tips that helped me to grow as a developer.

They aren't complicated and can be implemented directly. I'm sure there is something in it for you!

🧵🔽
1️⃣ Learn To Listen

Listening is more important than talking. If someone has something to say, listen to them. Don't interrupt them. If you have questions about certain aspects of what they say, write them down. Then ask those questions later and talk about it together.
2️⃣ Accept You Don't Know Everything

Software engineering is too broad and too deep as if anyone could really know everything.

You need to accept that and understand that your peers all have their own experiences. Use this to your advantage. If you're stuck, ask for help.
Read 10 tweets
5 Apr
You don't know how to get started with AWS?

I can relate!
When I started, AWS already offered so much that I literally couldn't find an entry point.

If you still feel this way, let me give you a little guide.

🧵⏬
1️⃣ Foreword

Before we're going in, let me tell you this:

AWS is huge, and the chance that you'll ever be able to call yourself an expert in every product and service it offers is...well, low.
To be honest, I wouldn't even aim for that goal. It simply doesn't make sense. Better aim to become good at a few products and then at all the supporting ones that fit.

You'll specialize, gather deep knowledge about a few products, and be a valuable expert in that area.
Read 23 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

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

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!