Creating UIs
We've interacted with our contract through the Injective CLI, but this is not ideal for most dApp users. A web UI can provide a much better experience! Rather than sending transaction messages through injectived
, we can abstract away the complexity and provide the user with two buttons—one to increment the count, and one to reset the count.

For example, see the counter website. A high level guide on developing the frontend using Vue and the Injective TS SDK can be found in the website repo here. For a React implementation, see here.
Now, interacting with the contract is as simple as clicking a button and signing with MetaMask (make sure the account is set to Ethereum Goerli Testnet or you will receive a chain ID mismatch error).
Last updated