Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/priyaksing/buymeacoffee-defi

Decentralized "Buy me a coffee" App
https://github.com/priyaksing/buymeacoffee-defi

alchemy ethersjs hardhat nextjs solidity tailwind

Last synced: 8 days ago
JSON representation

Decentralized "Buy me a coffee" App

Awesome Lists containing this project

README

        

# Buy me a Coffee - DeFi

This project is a decentralized 'Buy Me A Coffee' smart contract that allows visitors to leave tips and messages for the owner, utilizing Solidity, Hardhat, Ethers.js, Next.js and Alchemy.

This includes 3 main functions:

**buyCoffee(name, message)** : to send 0.001 ETH(test) to the deployed smart contract
**withdrawCoffee()** : for the owner to withdraw the tips sent
**getMemos()** : to retrieve the memos left by the visitors

Contract owner view:
![Screenshot (68)](https://github.com/user-attachments/assets/3a89cbac-1079-4685-9aa0-927956f8e4e3)

Visitor view:
![Screenshot (69)](https://github.com/user-attachments/assets/d025916f-b0c5-40f6-9786-3434c9898c4c)