Demonstration showing how audio can be sent over the blockchain.
Play with the live app deployed on kovan network.
These notes should play on most broswers and without connecting your wallet.
The notes are stored on the blockchain. Anyone can read the notes into their app/site for free.
Clone the repo:
git clone https://github.com/chrontast/BlockPiano.git
cd BlockPiano
Install dependencies:
yarn install
Start frontend
cd BlockPiano
yarn start
In a second terminal window, start a local blockchain
yarn chain
🔏 Edit your smart contract BlockPiano.sol
in packages/hardhat/contracts/BlockAudio.sol
Change the _owner address in the constructor argument.
In a third terminal window, deploy contracts:
yarn deploy
#Add sound to to each note:
On the contrat page the owner can set the audio for each note.
Convert an mp3 audio file into base64(Needs to be less than 3 seconds). There are free online converters.
Paste the base64 data into the desired note field. Click send and approve the transaction.
🌍 You need an RPC key for production deployments/Apps, create an Alchemy account and replace the value of ALCHEMY_KEY = xxx
in packages/react-app/src/constants.js
📝 Edit your frontend App.jsx
in packages/react-app/src
💼 Edit your deployment scripts in packages/hardhat/deploy
📱 Open http://localhost:3000 to see the app
Join the telegram support chat 💬 to ask questions and find others building with 🏗 scaffold-eth!