Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.3k
TypeScript Interface for Ethereum
License
NotificationsYou must be signed in to change notification settings
wevm/viem
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
TypeScript Interface for Ethereum
- Abstractions over theJSON-RPC API to make your life easier
- First-class APIs for interacting withSmart Contracts
- Language closely aligned to officialEthereum terminology
- Import your Browser Extension, WalletConnect or Private Key Wallet
- Browser nativeBigInt, instead of large BigNumber libraries
- Utilities for working withABIs (encoding/decoding/inspection)
- TypeScript ready (infer types from ABIs and EIP-712 Typed Data)
- First-class support forAnvil,Hardhat &Ganache
- Test suite running againstforked Ethereum network
... and a lot more.
// 1. Import modules.import{createPublicClient,http}from'viem';import{mainnet}from'viem/chains';// 2. Set up your client with desired chain & transport.constclient=createPublicClient({chain:mainnet,transport:http(),});// 3. Consume an action!constblockNumber=awaitclient.getBlockNumber();
Head to the documentation to read and learn more about viem.
Check out the following places for more viem-related content:
- Follow@wevm_dev,@_jxom, and@awkweb on Twitter for project updates
- Join thediscussions on GitHub
- Share your project/organization that uses viem
If you're interested in contributing, please read thecontributing docsbefore submitting a pull request.
MIT License
About
TypeScript Interface for Ethereum
Topics
Resources
License
Code of conduct
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.