Build Web3 apps with Javascript

Rate this content
Bookmark

The workshop is designed to help Web2 developers start building for Web3 using the Hyperverse. The Hyperverse is an open marketplace of community-built, audited, easy to discover smart modules. Our goal - to make it easy for JavaScript developers to build Web3 apps without writing a single line of smart contract code. Think “npm for smart contracts.”

Learn more about the Hyperverse here.

We will go over all the blockchain/crypto basics you need to know to start building on the Hyperverse, so you do not need to have any previous knowledge about the Web3 space. You just need to have JavaScript experience.

FAQ

Hyperverse is a community-built, open, and audited platform of modular on-chain smart contracts for all major blockchains. It simplifies blockchain development by allowing developers to build Web3 applications using familiar languages like JavaScript, without needing to write smart contract code themselves.

No, you do not need to know smart contract coding to use Hyperverse. The platform is designed to allow Web2 developers to build Web3 apps using JavaScript, leveraging pre-built smart modules for various functionalities.

With Hyperverse, you can build various types of Web3 apps, such as NFT minting sites and community-based platforms like Tribes, where users can create, join, or leave groups. The platform uses JavaScript for all front-end development, simplifying the process for developers familiar with Web2 technologies.

In Hyperverse, once smart contract developers create smart modules, they are sent to registrars who validate their documentation and metadata. After validation, these modules are reviewed by auditors who examine the code for security and reliability, staking tokens as a form of assurance and creating an insurance layer.

Yes, Hyperverse enables you to build Web3 apps without any blockchain-specific knowledge. By using JavaScript and accessing pre-built smart modules, developers can focus on the application's functionality rather than the complexities of blockchain technology.

To start building a Web3 app on Hyperverse, you need basic knowledge of HTML, CSS, and JavaScript. The platform provides all the necessary tools and libraries to connect and use smart modules like building blocks, simplifying the development process.

Hyperverse offers several benefits for Web3 development, including ease of use, no requirement for smart contract coding knowledge, and a supportive community. It also provides a modular approach, allowing developers to easily integrate various functionalities into their applications.

Hyperverse ensures the trustworthiness of its smart modules through a rigorous process involving community registrars and auditors. Auditors review the modules and stake tokens on them, providing an insurance layer that boosts trust and reliability.

Shain Dholakiya
Shain Dholakiya
49 min
04 Jul, 2022

Comments

Sign in or register to post your comment.

Video Summary and Transcription

Hyperverse simplifies blockchain development by providing modular on-chain smart contracts for all major blockchains. Fungible tokens are interchangeable, while non-fungible tokens have unique characteristics. Developers can build Web3 apps using JavaScript libraries and connect wallets using RainbowKit for UI. Interacting with contracts is done through imported modules and the Hyperverse provider. The ERC721 smart module allows for NFT minting and token transfers. The Hyperverse documentation provides step-by-step guides for building Web3 apps and integrating modules like stake and rewards. Joining Discord and fast camps are available for support and learning opportunities.

1. Introduction to Hyperverse and Web3 Development

Short description:

Hi, everyone. I'm Shane, the developer advocate for Decentology. Today, we'll talk about building Web3 apps with just JavaScript. Our mission is to onboard 10 million devs to Web3 using Hyperverse. Hyperverse simplifies blockchain development by providing modular on-chain smart contracts for all major blockchains. It allows web2 devs to build apps without writing smart contract code, using JavaScript libraries to connect and build Web3 applications. Hyperverse is like NPM for smart contracts. You can build Web3 apps with HTML, CSS, and JavaScript.

Hi, everyone. I'm Shane, and I'm the developer advocate for Decentology. And today, we're going to be talking about how you can build Web3 apps with just JavaScript. So, no smart contract code knowledge needed at all. And that's exactly what I'll be showing after this PowerPoint. So let's go ahead and get started.

So first, our company, we obviously love developers. So we make products that make their lives simpler, which is exactly what I'll show you today, which will be the Hyperverse. So our mission is that we want to onboard 10 million devs from Web2 to Web3. So obviously, you guys will be a part of that mission. And then our product, which I'll talk about even more after is Hyperverse, which accelerates and simplifies your blockchain development journey so that you don't have to worry about all the blockchain specific stuff.

So our agenda for today, I'll go over a little bit about Hyperverse and then go into some blockchain and crypto basics, and then start building some Hyperverse dApps. So I'll show two examples. One will be ERC-721, which is essentially an NFT. So how you can create an NFT minting site using just JavaScript. And then Tribes will be the other example, which I'll get into as well. So let's go ahead and get started.

So what is Hyperverse? So Hyperverse is a community-built, open, and audited modular on-chain smart contracts for all major blockchains. So I know that's a big blurb and a mess, but I'll break it down. So, you know, today in the web3 world, if you want to build an application, you need to build a smart contract layer and then as well as the client side application. Now, obviously for smart contracts, you would have to pick up a whole different coding language, whether it be Solidity, Cadence, whatever blockchain that you want to build for. But also it's a totally different paradigm than the web2 world, right? You have to think of code being immutable. You have to think of storage costs, all these things that are totally different than the web2 world. So we wanted to make it super simple for web2 devs to build apps without writing a single line of smart contract code and write with something that they're familiar with, which would be JavaScript.

So here would be an architecture of the hyperverse. So let's just break it down into three sections. So first, we would have smart contract developers who would build what we call smart modules. And essentially, these smart modules are just packaged up a single purpose, you know, on chain contracts. So they're all meant for, you know, single functionalities instead of having a full smart contract doing multiple different functionalities. And then once the smart contract developer has built these smart modules, it would then be sent off to our community of registrars, where they would actually validate the smart module, making sure that they have the proper metadata documentation, examples, whatnot in them. And then once that is validated, it would then be sent to our community of auditors. So this is where the auditors would actually look at the smart contract code and make sure that, you know, there's no funny stuff going on in there. Make sure that they trust this code and they would actually stake their tokens to confirm that, hey, this is trustful. So you can think on the JavaScript side of things, you know, if they're looking at a bunch of different smart modules, they see one smart module that does a similar functionality to another. One of the smart modules has, you know, 10, 20, 30 auditors that have actually staked tokens on them. Obviously that one would be, you know, more trustful and they would go and use that smart module. So this stake actually acts as an insurance layer as well, just in case something does occur. So now for most of you guys, the Web2 developers would actually just use our built, you know, JavaScript libraries to build these Web3 applications just by connecting their smart modules, kind of like Lego blocks, right? So you're choosing which functionalities you want, and you would put them into your Web3 application and built it how you wish. And, you know, if this sounds familiar to you, it's because it is, right? So if you have a payment layer in Web2World, you wouldn't, you know, go make it from scratch obviously. You would just use Stripe. So you'd use that functionality, submit it into your Web3 application, and use that. And if you have, you know, if you need notifications, you would use Twilio. You would take that API, use it in your application how you wish. So that is very similar to what is happening here. You would have a bunch of different smart modules, all with different functionalities that you can use throughout your application to build and connect and update stuff on the blockchain. So what we are essentially building is the NPM for a smart contract. So it is really that easy. And if you're wondering now, or if you're wondering before, you know, do I even have the proper skill set to build, you know, Web3 applications, and I'm here to tell you that you do. You absolutely do. You know, all you need to know really is HTML, CSS and JavaScript with the hyperverse.

2. Blockchain Basics and Crypto

Short description:

You can tap into smart modules built by smart contract developers and build client-side applications using these modules. Blockchain basics include the difference between web2 and web3 architectures and the workflow of blockchain transactions. Private keys are derived from random numbers and should not be shared, while public keys can be shared. Blockchain accounts are derived from public and private keys. Wallets are tools for securing private keys and signing transactions. Blockchain fees, also known as gas, include transaction fees, gas prices, and transaction speed. Transactions with low gas may be ignored.

You can just tap into the smart modules that are have already been built by the smart contract developers and use that as you wish, and built the client-side application with several different features using all the smart modules.

So now let's go ahead and get into some blockchain basics. So here we have a diagram of the web2 architecture. So we have someone trying to access a website on their mobile device or desktop, which then a request would be sent to the web server, which then would be sent to the API server, which then would be sent to the database server. Once this data has been accessed, it would then be sent back down the line to the API server, web server and then show up on the user's page, whether it be on their mobile or desktop or whatever.

So now let's look at the web three application. So now we have a user trying to access a decentralized application on their mobile or desktop device that was built using HTML, JavaScript and CSS. So what happens is that that request is then sent to a computer or a node on the blockchain. And then once that data has been accessed, it would then appear on the user's mobile or desktop device.

So now we have a quick high level overview of the architecture between Web 2 and Web 3. We can get into some of the blockchain workflow. So here we have a diagram where someone requests a transaction, which is then broadcasted to a network consisting of computers, which are also known as nodes. And then once these nodes validate the transaction, it would then be sent onto a block of data along with other users' transactions as well. And then it would be that whole block would then be attached to the blockchain where it stays forever. It's permanent and cannot be changed. And that is when the transaction would be complete.

So now let's get into some crypto basics. And the first thing we should go over is public and private keys. So how the private key is derived is using some large random number with some fancy, mad stuff which we won't get into for simplicity's sake. But the important thing to note is that private keys are not meant for sharing. So this is where your private key gets exploited by someone or you accidentally sign a transaction, which is actually showing your private key or anything like that. This is where hackers can technically get in and basically do whatever they want with your wallet if they have your private key. So it's very important that you do not share a private key.

Now, how your public key gets derived is using a private key with some even more fancy math stuff. But it's important to note that your public key can be shared with anyone if you wish. And it's also important to know that, you know, obviously, blockchain accounts are very different than user accounts in Web2. So you can see here that, you know, blockchain accounts are derived from, you know, your public and private keys that are randomly generated. So here would be a quick diagram of Bob and Alice who are, you know, signing in and receiving messages. So this is kind of like a workflow diagram. So here we have Bob who creates his message for Alice. So you can see that Bob uses an app to sign his message with his private key, which creates a signature and sends it to Alice. So it's important to know it's the signature that is being sent to Alice. It is not, you know, his private keys that is being sent to Alice. So then once Alice receives Bob's signed message, Alice can then use the app to verify that this message does in fact belong to Bob using his public key. So this is where Bob can send Alice, you know, their public key, and then Alice can put the public key in and be like, OK, this message does belong to Bob. So now that we had a quick overview of signing and receiving messages, it's time to talk about the tool that's actually doing all this, which is wallets. So it's important to know that wallets are only meant for two things. It is to secure storage for your private keys and a tool to sign transactions. So, again, those are the only two reasons that the wallet would be there. There is no money in the wallet. There's no crypto in the wallet. It's only there for those two reasons, securing storage for your private keys and the tool to sign transactions.

So now that we're talking about transactions, we can get into blockchain fees, which are often called gas. So I'll go into the three main concepts, which would be the transaction fees themselves, the gas price and how it fluctuates, and then the transaction speed. So the transaction fee itself, often called gas, you can actually specify which amount you wish, but transactions with very low gas are likely to be ignored. And then you'll see how speed will also differ in the gas price itself as well. And then the gas price itself, you're probably wondering how is the gas price determined? So it is very dynamic and varies accordingly to how many other people are submitting transactions at that specific time. And then the transaction speed itself, transactions with higher gas fees are likely to be processed faster than than those with lower fees. So obviously, then if it's too low, it could be ignored, like I mentioned earlier.

So now we can talk a little bit about fungible versus non fungible tokens.

Watch more workshops on topic

Web3 Workshop - Building Your First Dapp
React Advanced Conference 2021React Advanced Conference 2021
145 min
Web3 Workshop - Building Your First Dapp
Top Content
Featured WorkshopFree
Nader Dabit
Nader Dabit
In this workshop, you'll learn how to build your first full stack dapp on the Ethereum blockchain, reading and writing data to the network, and connecting a front end application to the contract you've deployed. By the end of the workshop, you'll understand how to set up a full stack development environment, run a local node, and interact with any smart contract using React, HardHat, and Ethers.js.
Using CodeMirror to Build a JavaScript Editor with Linting and AutoComplete
React Day Berlin 2022React Day Berlin 2022
86 min
Using CodeMirror to Build a JavaScript Editor with Linting and AutoComplete
Top Content
WorkshopFree
Hussien Khayoon
Kahvi Patel
2 authors
Using a library might seem easy at first glance, but how do you choose the right library? How do you upgrade an existing one? And how do you wade through the documentation to find what you want?
In this workshop, we’ll discuss all these finer points while going through a general example of building a code editor using CodeMirror in React. All while sharing some of the nuances our team learned about using this library and some problems we encountered.
Testing Web Applications Using Cypress
TestJS Summit - January, 2021TestJS Summit - January, 2021
173 min
Testing Web Applications Using Cypress
WorkshopFree
Gleb Bahmutov
Gleb Bahmutov
This workshop will teach you the basics of writing useful end-to-end tests using Cypress Test Runner.
We will cover writing tests, covering every application feature, structuring tests, intercepting network requests, and setting up the backend data.
Anyone who knows JavaScript programming language and has NPM installed would be able to follow along.
Build a powerful DataGrid in few hours with Ag Grid
React Summit US 2023React Summit US 2023
96 min
Build a powerful DataGrid in few hours with Ag Grid
WorkshopFree
Mike Ryan
Mike Ryan
Does your React app need to efficiently display lots (and lots) of data in a grid? Do your users want to be able to search, sort, filter, and edit data? AG Grid is the best JavaScript grid in the world and is packed with features, highly performant, and extensible. In this workshop, you’ll learn how to get started with AG Grid, how we can enable sorting and filtering of data in the grid, cell rendering, and more. You will walk away from this free 3-hour workshop equipped with the knowledge for implementing AG Grid into your React application.
We all know that rolling our own grid solution is not easy, and let's be honest, is not something that we should be working on. We are focused on building a product and driving forward innovation. In this workshop, you'll see just how easy it is to get started with AG Grid.
Prerequisites: Basic React and JavaScript
Workshop level: Beginner
0 to Auth in an Hour Using NodeJS SDK
Node Congress 2023Node Congress 2023
63 min
0 to Auth in an Hour Using NodeJS SDK
WorkshopFree
Asaf Shen
Asaf Shen
Passwordless authentication may seem complex, but it is simple to add it to any app using the right tool.
We will enhance a full-stack JS application (Node.JS backend + React frontend) to authenticate users with OAuth (social login) and One Time Passwords (email), including:- User authentication - Managing user interactions, returning session / refresh JWTs- Session management and validation - Storing the session for subsequent client requests, validating / refreshing sessions
At the end of the workshop, we will also touch on another approach to code authentication using frontend Descope Flows (drag-and-drop workflows), while keeping only session validation in the backend. With this, we will also show how easy it is to enable biometrics and other passwordless authentication methods.
Table of contents- A quick intro to core authentication concepts- Coding- Why passwordless matters
Prerequisites- IDE for your choice- Node 18 or higher
Build a Powerful Datagrid With AG Grid
React Summit 2024React Summit 2024
168 min
Build a Powerful Datagrid With AG Grid
WorkshopFree
Brian Love
Brian Love
Does your React app need to efficiently display lots (and lots) of data in a grid? Do your users want to be able to search, sort, filter, and edit data? AG Grid is the best JavaScript grid in the world and is packed with features, highly performant, and extensible. In this workshop, you’ll learn how to get started with AG Grid, how we can enable sorting and filtering of data in the grid, cell rendering, and more. You will walk away from this free 3-hour workshop equipped with the knowledge for implementing AG Grid into your React application.

Check out more articles and videos

We constantly think of articles and videos that might spark Git people interest / skill us up or help building a stellar career

Scaling Up with Remix and Micro Frontends
Remix Conf Europe 2022Remix Conf Europe 2022
23 min
Scaling Up with Remix and Micro Frontends
Top Content
Do you have a large product built by many teams? Are you struggling to release often? Did your frontend turn into a massive unmaintainable monolith? If, like me, you’ve answered yes to any of those questions, this talk is for you! I’ll show you exactly how you can build a micro frontend architecture with Remix to solve those challenges.
Full Stack Components
Remix Conf Europe 2022Remix Conf Europe 2022
37 min
Full Stack Components
Top Content
Remix is a web framework that gives you the simple mental model of a Multi-Page App (MPA) but the power and capabilities of a Single-Page App (SPA). One of the big challenges of SPAs is network management resulting in a great deal of indirection and buggy code. This is especially noticeable in application state which Remix completely eliminates, but it's also an issue in individual components that communicate with a single-purpose backend endpoint (like a combobox search for example).
In this talk, Kent will demonstrate how Remix enables you to build complex UI components that are connected to a backend in the simplest and most powerful way you've ever seen. Leaving you time to chill with your family or whatever else you do for fun.
Making JavaScript on WebAssembly Fast
JSNation Live 2021JSNation Live 2021
29 min
Making JavaScript on WebAssembly Fast
Top Content
JavaScript in the browser runs many times faster than it did two decades ago. And that happened because the browser vendors spent that time working on intensive performance optimizations in their JavaScript engines.Because of this optimization work, JavaScript is now running in many places besides the browser. But there are still some environments where the JS engines can’t apply those optimizations in the right way to make things fast.We’re working to solve this, beginning a whole new wave of JavaScript optimization work. We’re improving JavaScript performance for entirely different environments, where different rules apply. And this is possible because of WebAssembly. In this talk, I'll explain how this all works and what's coming next.
Debugging JS
React Summit 2023React Summit 2023
24 min
Debugging JS
Top Content
As developers, we spend much of our time debugging apps - often code we didn't even write. Sadly, few developers have ever been taught how to approach debugging - it's something most of us learn through painful experience.  The good news is you _can_ learn how to debug effectively, and there's several key techniques and tools you can use for debugging JS and React apps.
Webpack in 5 Years?
JSNation 2022JSNation 2022
26 min
Webpack in 5 Years?
Top Content
What can we learn from the last 10 years for the next 5 years? Is there a future for Webpack? What do we need to do now?
Towards a Standard Library for JavaScript Runtimes
Node Congress 2022Node Congress 2022
34 min
Towards a Standard Library for JavaScript Runtimes
Top Content
You can check the slides for James' talk here.