Skip to content

Writing to a contract (from the browser)

Course: Client side ETH - chapter 6

The **[useWriteContract](https://wagmi.sh/react/api/hooks/useWriteContract)** Hook allows you to mutate data on a smart contract, from a payable or nonpayable (write) function. These types of functions require gas to be executed, hence a transaction is broadcasted in order to change the state.

$1b