Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Hands-On Blockchain for Python Developers
  • Table Of Contents Toc
Hands-On Blockchain for Python Developers

Hands-On Blockchain for Python Developers - Second Edition

By : Arjuna Sky Kok
close
close
Hands-On Blockchain for Python Developers

Hands-On Blockchain for Python Developers

By: Arjuna Sky Kok

Overview of this book

We are living in the age of decentralized fi nance and NFTs. People swap tokens on Uniswap, borrow assets from Aave, send payments with stablecoins, trade art NFTs on OpenSea, and more. To build applications of this kind, you need to know how to write smart contracts. This comprehensive guide will help you explore all the features of Vyper, a programming language designed to write smart contracts. You’ll also explore the web3.py library. As you progress, you’ll learn how to connect to smart contracts, read values, and create transactions. To make sure your foundational knowledge is strong enough, the book guides you through Ape Framework, which can help you create decentralized exchanges, NFT marketplaces, voting applications, and more. Each project provides invaluable insights and hands-on experience, equipping you with the skills you need to build real-world blockchain solutions. By the end of this book, you’ll be well versed with writing common Web3 applications such as a decentralized exchange, an NFT marketplace, a voting application, and more.
Table of Contents (27 chapters)
close
close
Lock Free Chapter
1
Part 1:Blockchain and Smart Contract
5
Part 2: Web3 and Ape Framework
9
Part 3: Graphical User Interface Applications
12
Part 4: Related Technologies
16
Part 5: Cryptocurrency and NFT
19
Part 6: Writing Complex Smart Contracts
23
Part 7: Building a Full-Stack Web3 Application

Lending application

As discussed previously, lending can be combined with a vault, meaning the pooled resources can be used for lending.

Everyone knows what lending is. You lend money to your friend, or in other words, your friend borrows money from you. You charge interest to this lending process. After a certain period of time, your friend pays back the money to you with the interest.

You may lend money to your friend out of kindness, but banks lend money to companies for profit. Companies borrow money so they can expand their businesses.

You can also create a lending application on top of the blockchain. So, users can borrow assets from smart contracts. Later, borrowers need to return the assets with the interest. If not, their collateral will be liquidated.

You can visualize a lending protocol in the following image where User A provides 4000 USDT as an asset in the lending protocol so User B can borrow 1000 USDT.

Figure 15.2: A lending protocol

Figure 15.2: A lending protocol...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Hands-On Blockchain for Python Developers
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon