Vigyata.AI
Is this your channel?

Day 2 of Blockchain | Run your First Decentralized Application on a Devnet

3.2K views· 103 likes· 14:37· Jan 2, 2022

🛍️ Products Mentioned (7)

So it turns out - blockchain is actually pretty cool. I’m super excited to be partnering with Reach and Algorand to create a YouTube series that tackles how to create decentralized applications with blockchain technology. In 10 Days of Blockchain, you’ll learn what a blockchain is, build a decentralized application, and deploy it to the Algorand blockchain. With Day 2 specifically, we'll create our first decentralized application and run it on a private local devnet. Thank you for watching! ✅ NOTE: Reach documentation at the time of your viewing may be slightly different than when I recorded. When in doubt, follow the documentation, and if you have questions, connect with the Reach community in Discord. In this particular video, we use the deploy and attach functions to deploy the contract. These have been deprecated and later in the video, we replace these with the contract function. ⛓ Discord Community! Reach HQ: https://discord.gg/reachsh Got a question? Ask it here: https://discord.com/channels/628402598663290882/912484855789518848 ⛓ More about Reach! Website: http://reach.sh Links: https://reach.crd.co/ Documentation: https://docs.reach.sh Questions & Support: help@reach.sh ⛓ More about Algorand! Website: https://www.algorand.com/ My courses on LinkedIn Learning! https://www.linkedin.com/learning/instructors/kathryn-hodge Support me on Patreon! https://www.patreon.com/blondiebytes

About This Video

Welcome back to Day 2 of my blockchain series—this is where we run our first decentralized application on a private local devnet. The app we’re building throughout the series is a Rock Paper Scissors game where two players (Alice and Bob) can wager on the outcome without a third party in the middle. And yeah, you might be thinking, “Isn’t a third party what makes it fair?” But that’s the point: the third party can be unfair too, so why trust them when they don’t add real value and you don’t have to. In this video I scaffold the Reach backend in an index.rsh file by exporting a main Reach app and defining two participants: Alice and Bob. I also set up the frontend in JavaScript (index.mjs): I load the Reach standard library, create test accounts with a starting balance (using parseCurrency and newTestAccount), deploy the contract from Alice’s account, and connect Bob by attaching using the contract info. Along the way we hit real engineer stuff—like a tiny syntax bug (comma vs semicolon), setting the REACH_CONNECTOR_MODE for Algorand devnet via reach configure, and swapping deprecated deploy/attach calls for the newer contract API. By the end, the app doesn’t “do” much yet, but the full pipeline is running—and that’s the foundation we’ll build Rock Paper Scissors logic on next.

Frequently Asked Questions

🎬 More from blondiebytes