Learn how to load a smart contract and call its functions from a DApp using the web3.js library.
- [Instructor] The next thing we can do is use web3.js…to start interacting with our smart contract,…and this is where DApps really shine,…this is the power of DApps,…because the smart contract is our back end,…and we're plugging in the user interface.…So let's go ahead and get things set up here.…The first thing we're going to need to do…is get what's called the ABI.…The ABI stands for Application Binary Interface.…This is a JSON encoding of the smart contract,…and it's used in a similar way…that you'd use like a client stub in a Web service.…
There are a few different ways we can get this,…one is, we can get the ABI property…from something like Etherscan.…If you go to a contract in Etherscan,…you can see there's an ABI right here,…and I can export it, or I can copy it directly.…You can also use the Remix IDE.…In Remix, it will actually output…an ABI that you can grab, so that's another way.…The final way is that we can get it…in the build directory for our contract…and that's where we're gonna look.…
So if I go into the command line interface,…
- How the Ethereum blockchain differs from bitcoin
- What smart contracts are and how they work
- Creating a smart contract from scratch in Solidity
- Using Truffle to test smart contracts
- Using web3.js to interact with the blockchain
- Deploying resources in Swarm
Skill Level Intermediate
1. Getting Set Up
2. Introduction to DApps and Ethereum
3. Writing a Smart Contract
4. Building a DApp
5. Deploying to the Ethereum network
Deploying resources in Swarm3m 42s
Next steps1m 24s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.