Skip to main content

Overview

The EVM wallet provider supports Ethereum and all EVM-compatible chains including Arbitrum, Optimism, Base, Polygon, and more. It uses wagmi v2 for wallet connections and supports MetaMask, WalletConnect, Coinbase Wallet, and other EVM wallets.

Installation

Wagmi is a React Hooks library for Ethereum. Viem is a low-level TypeScript Interface for Ethereum that enables developers to interact with the blockchain. TanStack Query is an async state manager that handles fetching, caching, synchronizing and more.

Basic Usage


Configuration

WalletConnect Configuration

The EVM provider requires WalletConnect configuration:
Get your WalletConnect project ID at WalletConnect Cloud.

Advanced: EVM Modules

Extend the EVM provider with network-specific functionality using modules:

Available Modules

  • zkSyncModule - Adds zkSync-specific balance providers and multi-step transaction handlers
  • LoopringModule - Adds Loopring-specific balance providers and multi-step transaction handlers

Integration with Existing Wagmi

If your application already uses wagmi, see the Partial Integration guide for details on integrating Layerswap with your existing wagmi setup.