52 lines
1.7 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Examples
The `examples/` directory is a growing & living folder, and open for contributions.
Each example has its own isolated [StackBlitz](https://new.viem.sh) project, so folks can easily play around with the example.
The below list is not exhaustive, and is a work in progress. If you have an idea for an example that is not listed below, please open a [discussion thread](https://github.com/wevm/viem/discussions/new?category=feature-request&title=Example%20Request:) proposing your idea. If you wish to take on an example that is not completed, go ahead!
- Blocks
- [x] Fetching Blocks
- [x] Watching Blocks
- Clients
- [x] Public (w/ HTTP, WebSocket, Fallback)
- [x] Wallet – JSON-RPC Account (`window.ethereum`)
- [ ] Wallet - JSON-RPC Account (WalletConnect v2)
- [ ] Wallet – Local Account (ethers-rs + WASM)
- [ ] Test (Anvil)
- [ ] Test (Hardhat)
- Contracts
- [x] Deploying
- [x] Reading
- [x] Writing
- [x] Multicall
- [ ] Call
- [ ] Events
- [ ] Simulating Method Calls
- ENS
- [x] Address from ENS Name
- [x] ENS Name from Address
- [x] Fetch ENS Resolver
- Filters & Logs
- [x] Blocks
- [x] Pending Transactions
- [x] Events
- Anvil/Hardhat
- [ ] Impersonating Accounts
- [ ] Setting Balances
- [ ] Mining (mine, automining, interval mining, etc)
- [ ] Resetting Forks
- [ ] State (snapshot/revert)
- [ ] Tx pools
- Signatures
- [ ] Sign typed data
- [ ] + verify/recover address
- [ ] Sign message (+ recover message address)
- [ ] + verify/recover address
- Transactions
- [x] Fetching Transactions & Receipts
- [ ] Transaction Types (EIP-1559, Legacy, etc)
- [ ] Simulating Transactions
- [x] Sending Transactions (& Waiting for Receipt)