Wagmi
Integrate with Wagmi
Config wagmi with Chains and providers
// config.ts file
import { http, cookieStorage, createConfig, createStorage } from 'wagmi'
import { flowMainnet, flowTestnet} from 'wagmi/chains'
export function getConfig() {
return createConfig({
chains: [flowMainnet, flowTestnet],
connectors: [
injected(),
],
storage: createStorage({
storage: cookieStorage,
}),
ssr: true,
transports: {
[flowMainnet.id]: http(),
[flowTestnet.id]: http(),
},
})
}
Connect injected wallet with Flow EVM
See more detail on https://github.com/Outblock/wagmi-project
Last updated