Whenever we're building a dapp we have to consider the feasibility of the current web3 ecosystem. If we're doing a lot of write operations or we need close to real time network speeds, then we should probably step back and question whether blockchain technologies are appropriate for our use-case. It's important to remember that reading data from the blockchain is free, but writing data to it incurs a fee. This means users would be able to view Listings for free, but writing their own would cost them
wagmi wagmi is a collection of React Hooks containing everything you need to start working with Ethereum. wagmi makes it easy to "Connect Wallet," display ENS and balance information, sign messages, interact with contracts, and much more — all with caching, request deduplication, and persistence.
set up a local Ethereum environment with hardhat. Hardhat will enable us to run, test and deploy solidity contracts by means of running a local Ethereum network directly on our machine.
wagmi will help us manage wallet sign-in. We'll use several wagmi hooks including useConnect, useAccount, and useContract all of which will help us interact with wallets we'll just be connecting via MetaMask
Mutations are intended for async actions that mutate data such as inserts, updates, and deletes whereas queries are intended for read-only async actions.
Mutations are intended for async actions that mutate data such as inserts, updates, and deletes whereas queries are intended for read-only async actions.