Introduction to Interacting with Contracts Using web3.js
How JavaScript applications use web3.js to work with Ethereum: providers and JSON-RPC, units and BigInt, accounts, signing and transactions, contract instances, calls and transactions, events and logs, and how web3.js compares with ethers.js and viem now that it has been archived.
- 5 lessons
- Module quiz
Applications reach contracts through client libraries, and the exam objective names web3.js. This module covers providers and JSON-RPC, units and accounts, transactions, contract calls, events, and the current status of web3.js alongside ethers.js and viem.
What the exam expects
Expect questions on choosing a provider, converting units, signing messages and transactions, the difference between call() and send(), handling reverts, querying and subscribing to events, and what replaced web3.js after it was archived.
How this module is organized
web3.js Fundamentals and Providers covers connections. Accounts, Units and Transactions covers keys, signing and receipts. Contract Instances, Calls and Transactions covers contract interaction. Events and Logs covers reading activity. Ethereum Client Libraries compares web3.js with its successors.