Package Exports
- @web3modal/ethereum
- @web3modal/ethereum/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@web3modal/ethereum) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@web3modal/ethereum
Getting Started
Our ethereum/evm package is based on @wagmi/core. However in order to support multiple frameworks and chains in the future, we had to make some changes to how we handle internal store, chain id's etc. Due to this make sure that you use imports from @web3modal packages.
Web3Modal uses CAIP-10 chain format instead of common integer one. This means that when working with our libraries you need to provide chainId's like this eip155:1
(ethereum mainnet) instead of 1
. All @web3modal/ethereum
compatable chains will start with eip155:
. You can see list of chain id's at https://chainlist.org
We highly recomend reading through wagmi if you want to understand how this package works under the hood.
Configuration
Option | Description | Required | Default |
---|---|---|---|
appName | String containing your app name | YES | |
autoConnect | Boolean indicating whether user should be re-connected when they re-visit your app | NO | true |
chains | Array of chains supported from your app | NO | mainnet |
chains | Array of providers supported from your app | NO | publicProvider |
Imports
import { chains, providers } from '@web3modal/ethereum'