Wagmi
Wagmi is a popular React Hooks library for Ethereum and compatible blockchain networks, enabling developers to create seamless and responsive decentralized applications (dApps). Viem is an underlying
npm install wagmi viemimport { createClient, WagmiConfig } from 'wagmi';
import { lycan } from 'viem/chains'; // or import { lycan } from 'wagmi/chains'
const client = createClient({
autoConnect: true,
chains: [lycan]
});
function App() {
return (
<WagmiConfig client={client}>
{/* Your app components */}
</WagmiConfig>
);
}
export default App;Last updated