Demo: https://voucher-84h8hn.spheron.app/
- Login using your Metamask wallet.
- Generate payment vouchers (it will lock your funds in the smart contract).
- Send link or show QR-code to make a payment.
Step 0: Prerequisites: Make sure you've installed Node.js ≥ 12
yarn install
or npm install
yarn deploy:mumbai
or npm deploy:mumbai
yarn start
or npm start
As you can see in package.json
, this does two things:
- builds & deploys smart contract to Mumbai TestNet
- builds & run frontend code on localhost
Go ahead and play with the app and the code. As you make code changes, the app will automatically reload. Every smart contract in Polygon has
its [own associated account]. When you run deploy:mumbai
, your smart contract gets deployed to the Mumbai Test Network TestNet with a throwaway account.