Skip to content
forked from wevm/viem

TypeScript Interface for Ethereum

License

Notifications You must be signed in to change notification settings

plumenetwork/viem

This branch is 6 commits behind wevm/viem:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Mar 21, 2025
f99fae1 · Mar 21, 2025
Mar 21, 2025
Mar 18, 2025
Aug 5, 2024
Feb 2, 2025
Feb 27, 2025
Feb 27, 2025
Jul 24, 2024
Mar 19, 2025
Mar 21, 2025
Mar 13, 2025
Nov 21, 2024
Mar 18, 2025
Feb 2, 2025
Jun 6, 2024
Aug 26, 2024
Sep 24, 2023
Sep 24, 2023
Mar 19, 2025
Mar 13, 2025
Mar 21, 2025
Feb 27, 2025
Jun 6, 2024
Jan 14, 2025
Jul 24, 2024

Repository files navigation


viem logo

TypeScript Interface for Ethereum

Version Code coverage MIT License Downloads per month Best of JS


Features

  • Abstractions over the JSON-RPC API to make your life easier
  • First-class APIs for interacting with Smart Contracts
  • Language closely aligned to official Ethereum terminology
  • Import your Browser Extension, WalletConnect or Private Key Wallet
  • Browser native BigInt, instead of large BigNumber libraries
  • Utilities for working with ABIs (encoding/decoding/inspection)
  • TypeScript ready (infer types from ABIs and EIP-712 Typed Data)
  • First-class support for Anvil, Hardhat & Ganache
  • Test suite running against forked Ethereum network

... and a lot more.

Overview

// 1. Import modules.
import { createPublicClient, http } from 'viem';
import { mainnet } from 'viem/chains';

// 2. Set up your client with desired chain & transport.
const client = createPublicClient({
  chain: mainnet,
  transport: http(),
});

// 3. Consume an action!
const blockNumber = await client.getBlockNumber();

Documentation

Head to the documentation to read and learn more about viem.

Community

Check out the following places for more viem-related content:

Support

Sponsors

paradigm logo ithaca logo
family logo context logo WalletConnect logo PartyDAO logo Dynamic logo Sushi logo Stripe logo Privy logo pancake logo celo logo rainbow logo pimlico logo zora logo lattice logo supa logo ZKsync logo syndicate logo reservoir logo linea logo uniswap logo biconomy logo thirdweb logo polymarket logo routescan logo sequence logo

Contributing

If you're interested in contributing, please read the contributing docs before submitting a pull request.

Authors

License

MIT License



Powered by Vercel

About

TypeScript Interface for Ethereum

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 97.7%
  • MDX 2.0%
  • Other 0.3%