You have probably heard about Web3 and decentralisation. Decentralization means you have the complete right to your own content. It means instead of centralized entities; ownership gets distributed amongst users. Every user that the ownership over their content.
Now let's go through the architecture of a Web3 dApp and how they works?
The heart of Web3 dApps are smart contracts, they are program that responds to events by executing business logic and they run on a Blockchain.
Think of smart contract as a backend code, where the logic for the application happens. These smart contract should be compiled into the binary format and then deployed on any blockchain. The complied file or ABI can be used in the frontend to interact with smart contracts.
We also have EVM which executes the logic defined in the smart contracts. To get or post any data on the smart contract which is deployed on a blockchain, we should be using a Node. You can either deploy our own node or use any node providers such as Chinstack, Alchemy.
Every Ethereum provider implements a JSON-RPC to connect to blockchain, and then you can read the stored data on blockchain. However if you want to store anything on blockchain, you need to submit a signature using your wallet.
Coming to storage, popular storage solutions are IPFS and Arweave. IPFS is a distributed file system for storing and accessing data which means instead of storing your files on a centralized database, IPFS stores them on a peer-to-peer network.
Now let's talk about querying the data. You can either use smart contract events with help of packages like ethers.js or you can use @graphprotocol.The Graph is an off-chain indexing solution which can help you query data in a much easier way. It uses GraphQL query language.
So, we have talked about many things such as Querying data, Sign ing transactions, storages, providers but there is one more important thing that we need to consider. Scaling!!!
As you know Ethereum doesnβt scale properly. There are a few problems with Ethereum scaling, due of so many transactions, it is a bit slow and have high gas fees.
Here is why, @0xPolygon comes in. Polygon is a L2 scaling solutions that is fast and cheap than Ethereum.
Conclusion
Of course this is such an overview of it and it is just the beginning of Web3. I believe that we might see many better tooling in the future. I didn't mention anything about Oracles, because I have another separate thread for it, stay tuned :)
β’ β’ β’
Missing some Tweet in this thread? You can try to
force a refresh
β We all know that 1 + 1 = 2, and 1-1=0 but how does the JavaScript Engine compute give the first answer 11 and the second answer 0.
β In computer programming, concatenation is the operation of joining two strings together. The term"concatenation" literally means to merge two things together.
What you will learn:
After creating a blog from scratch, you will learn about styled-components, routing in Next JS, implementing MDX, and using dynamic routes.
2/ Weather App
What you will learn:
After creating a weather app, you will learn about fetching data from API, posting data to API, mapping data, and creating dynamic pages.
13 Projects you can build to become a web3 and blockchain master - including tech stack
β
Learning to code can be difficult and confusing, especially if you aren't sure where to start. The greatest approach to improving your Web3 skills is to use them to create projects.
In this thread, I will be sharing 13 projects that you can build to increase your Web3 and Blockchain skills, whether you're a novice or returning to coding.
Before getting into Web3 and Blockchain development, It is better to have good knowledge about the basics and fundamentals of computer science and blockchain.
Here is a video from Coding Tech that explains blockchain technology
Ethereum processes over 1,00,000 transactions per day making it the most popular Blockchain.
Here is a complete guide to Ethereum β
- What is Ethereum?
- Why do many Web3 applications use it?
- How does it work (its architecture)
- How secure it is?
A thread π§΅
Let's start with Ethereum
Ethereum is a decentralized blockchain that runs smart contract applications. Smart contracts are codes that are programmed without any possibility of downtime, censorship, fraud, or third-party interference.
1/9
Many Web3 developers have chosen to build on Ethereum because of its inherent decentralization. This means anyone can use the service and permission is not required.
No one can block nor deny you access of this blockchain.
2/9