Skip to content

๐Ÿ›  Interacting with Your Smart Contracts

Scaffold-ETH 2 provides a collection of custom React hooks designed to simplify interactions with your deployed smart contracts. These hooks are wrappers around Wagmi, an easy-to-use interface with typescript autocompletions for reading from, writing to, and monitoring events emitted by your smart contracts.

To ensure autocompletions function correctly, always update the targetNetworks in scaffold.config.ts to include the relevant network/chain whenever you deploy your contract using yarn deploy --network.