-
Not sure how to connect to a local-running Anvil connection, nothing in the docs. All of the following do NOT work:
The result is always a generic list of eth/goerli chains: |
Beta Was this translation helpful? Give feedback.
Answered by
zkovac58
Nov 12, 2024
Replies: 1 comment
-
In the latest version (v2), Anvil can be imported from 'wagami/chains' ...
and then added to the chains array...
This worked for me. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
DanielSinclair
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the latest version (v2), Anvil can be imported from 'wagami/chains' ...
import { mainnet, polygon, optimism, arbitrum, base, anvil, } from 'wagmi/chains';
and then added to the chains array...
const config = getDefaultConfig({ appName: 'myapp', projectId: 'projectId', chains: [mainnet, polygon, optimism, arbitrum, base, anvil], ssr: false, });
This worked for me.