Inspiration

Wouldn't it be cool if the city is one big playground? Interact with monuments, billboards, change the color of the city fountain etc. Sounds great. But what's in it for the city? If we charge a small amount of money for each interaction, we can limit the number of interactions (so it won't become one big disco show), and at the same time raise money for the maintenance of these objects.

What it does

This proof of concept allows you to interact with a (virtual) monument. This is targeted at a fountain found in Reno, Nevada. It's not an interactive fountain yet, so I simulated that with a picture of the fountain (and with my lights at home).

How I built it

I created a smart contract that uses Chainlink to call an external API. That was version 1. But normal users can't trigger smart contract functions, it's too technical. That's why I created a webpage with MetaMask integration, so everyone with a browser and MetaMask can use the smart contract.

Accomplishments that we're proud of

Getting the full loop working. From website, to MetaMask, to smart contract, to Chainlink, to API and back to the website using websockets.

What I learned

I learned more about Solidity, Chainlink, MetaMask and ether.js. It was a great experience to actually use these products!

What's next?

Transactions on Ethereum's mainnet are too expensive for small interactions like this. I need to find another blockchain with less fees and the same usability from the browser with a plugin like MetaMask

Built With

Share this project:

Updates