← All courses

viem and ethers.js: Talking to Ethereum from TypeScript

A two-library tour — viem >=2.0 and ethers v6 — covering when to pick each, what their APIs look like, and what the Ethereum-client primitives (BigInt math, ABI encoding, EIP-712, RLP, log decoding) actually do under the hood. Exercises practice the underlying primitives the libraries are built on; readings show the library APIs side by side. Ends with a from-primitives transaction-request builder and a viem/ethers migration cheatsheet.

  • TypeScript
  • 77 lessons
  • ~15 hours
  • Free
  • by Fishbones

Learn TypeScript for free on Libre Academy with the viem and ethers.js: Talking to Ethereum from TypeScript course: 77 interactive lessons you complete by writing real code in a built-in editor, graded instantly by hidden tests. No paywall, no sign-up. It's part of the free, open-source desktop app for macOS, Windows and Linux.

What you get

  • Hands-on lessons with a real editor and instant, test-graded feedback.
  • Free and open source, with no account required to start.
  • Works offline in the free desktop app for macOS, Windows and Linux.
  • TypeScript runs instantly in the app.

What's inside

  • Two libraries, one job
  • Bytes, hex, numbers
  • Units and BigInt math
  • Addresses
  • Providers and clients
  • Reading on-chain state
  • Writing transactions
  • ABI encoding deep dive
  • Events, logs, filters
  • EIP-712 typed signatures
  • Capstone

Download to start viem and ethers.js: Talking to Ethereum from TypeScript →   More free TypeScript courses

Helpful reading

Why passive video doesn't make you a programmer  ·  Bring Your Own Book: turning any PDF into a course