project screenshot 1
project screenshot 2
project screenshot 3

CryptoGCard

CryptoGift enables users to send digital greeting cards containing Ether or ERC20 tokens. Users create cards, attach crypto, and send a message in a seamless and innovative way, combining heartfelt traditional greetings with the modern world of cryptocurrencies.

CryptoGCard

Created At

ETHGlobal New York

Project Description

Overview: CryptoGift is a decentralized application (dApp) that combines the charm of traditional greeting cards with the innovative world of blockchain technology. This project allows users to send digital greeting cards with cryptocurrency (Ether or ERC20 tokens) attached, transforming the simple act of gift-giving into a seamless, secure, and modern experience.

Functionality: Users can create personalized greeting cards, attach a message, and send a specified amount of cryptocurrency to a recipient's Ethereum address. The recipient can claim the attached crypto amount, receiving both the heartfelt message and the crypto gift.

Components: Smart Contract: The Ethereum-based smart contract, written in Solidity, is the backbone of CryptoGift. It handles the creation of cards, storing the sender's message, the recipient's address, and the amount of crypto attached. It ensures secure and transparent transactions, allowing only the intended recipient to claim the gift.

Frontend Interface: The user-friendly frontend interface, developed using HTML, CSS, and JavaScript, allows users to interact with the smart contract easily. It enables users to input the recipient's address, the message, and the amount of crypto to be sent, and it facilitates the creation and sending of the digital greeting card.

Workflow: Card Creation: Users design their greeting card using the frontend interface, entering the recipient's Ethereum address, their message, and the amount of crypto they wish to send.

Transaction Initiation: Upon the user's confirmation, a transaction is initiated, and the specified amount of crypto is sent to the smart contract, along with the recipient's address and the user's message.

Card Claiming: The recipient, upon receiving notification of the card, interacts with the smart contract via the dApp to claim the attached crypto gift, receiving both the heartfelt message and the cryptocurrency.

Use Case: CryptoGift is especially useful for those who wish to send gifts to loved ones in a unique and modern way. It leverages the power of blockchain to make gift-giving more secure, transparent, and versatile, allowing users to send greetings and gifts across the globe without the constraints of traditional methods.

Innovation: CryptoGift marries the sentimentality of traditional greeting cards with the revolutionary aspects of cryptocurrencies. It is not just a way to send funds but a medium to convey emotions, wishes, and thoughts, wrapped in the secure and transparent envelope of blockchain technology.

Conclusion: CryptoGift is an innovative solution, aiming to enrich the act of gift-giving with the benefits of blockchain technology. It offers a secure, transparent, and heartfelt way to send greetings and gifts, making it a pioneering step towards integrating emotions and values into the digital currency space.

How it's Made

Technologies Used: Solidity: Solidity was used to write the Ethereum smart contract, the core component of CryptoGift. It handles the logic for creating cards, transferring, and managing funds securely.

Hardhat: Hardhat was the development environment of choice for compiling, testing, and deploying the smart contract. It helped in setting up a local Ethereum environment and simplifying the development process.

Ethers.js: Ethers.js was used to interact with the Ethereum blockchain from the frontend. It facilitated the communication between the user interface and the smart contract, allowing users to send transactions and interact with the blockchain.

HTML, CSS, and JavaScript: These were used to create a simple, user-friendly frontend interface allowing users to input the necessary details to create a CryptoGift card.

Lite-server: A lightweight development node server to serve the HTML, CSS, and JavaScript files.

How it's Pieced Together: Smart Contract Development and Deployment: The smart contract, written in Solidity, was developed using Hardhat. It was compiled and deployed to the local Ethereum network created by Hardhat. This contract manages the creation of CryptoGift cards, securely stores funds, and handles the claiming process.

Frontend Development: The frontend was developed using simple HTML for structuring, CSS for styling, and JavaScript for functionality. Ethers.js was integrated to allow the frontend to communicate with the Ethereum blockchain and interact with the deployed smart contract.

Interaction Between Frontend and Smart Contract: Users interact with the smart contract through the frontend interface, creating cards by sending transactions to the smart contract. The interface displays the necessary information and guides users through the process of creating and sending a CryptoGift card.

background image mobile

Join the mailing list

Get the latest news and updates