Skip to content

Viem

Viem is a TypeScript interface for Ethereum that provides low-level stateless primitives for interacting with Ethereum.

Features

  • Comprehensive Tooling: Offers utilities for ABI encoding/decoding, contract interaction, and transaction signing with high precision and accuracy.

  • Improved Developer Experience: Provides excellent TypeScript support, intuitive APIs, and enhanced error handling for smoother development workflows.

Quickstart

  1. Install the package:

    Terminal window
    npm install viem
  2. Import the necessary libraries into your project:

    Example

    import { createWalletClient , custom , http , createPublicClient } from 'viem'