hackquest logo

Block-Sure

BlockSure is a decentralized escrow service built on the blockchain. It provides a secure and transparent way for two parties (sender and receiver) to complete transactions.

Description

BlockSure - Blockchain Escrow Service

About BlockSure

BlockSure is a decentralized escrow service built on the blockchain. It provides a secure and transparent way for two parties (sender and receiver) to complete transactions. With the help of smart contracts, BlockSure ensures that funds are held securely until predefined conditions are met, protecting both parties from fraud and disputes.

Contract Details

  • Contract Address: 0x3C0316e139D4D15Fa0daFC03A253D714Aed0eC19

  • Network: Educhain Testnet

Features

  • Set Participants: Allows the sender and receiver to be set before the deposit is made.

  • Deposit Funds: The sender deposits the agreed amount of funds to the contract.

  • Release Funds: The receiver can release the funds once they fulfill the terms.

  • Refund Funds: If the conditions are not met, the sender can refund the funds.

  • Reset: Resets the contract for new participants after funds are released or refunded.

Deployment

How It Works

  1. Set Participants: The sender and receiver's Ethereum addresses are set using the setParticipants function.

  2. Deposit: The sender deposits an agreed amount of GAS to the contract using the deposit function.

  3. Release/Refund: Based on the agreement, the receiver can release the funds, or the sender can request a refund if the conditions are not met.

  4. Reset: After the transaction has been completed (released or refunded), the contract can be reset for new participants.

Progress During Hackathon

During the hackathon, our team developed "BlockSure," a blockchain-based escrow service designed to enhance transaction security between two parties. We successfully deployed a smart contract on the Educhain Testnet, which fundamentally supports the secure holding and conditional release of funds. Here’s an overview of our achievements and the progress made during the event: Smart Contract Implementation: We coded and deployed the BlockSure smart contract, which incorporates essential functions such as setting participants, depositing funds, releasing funds, refunding, and resetting the contract. This allows users to conduct transactions securely, with the blockchain ensuring transparency and immutability. Feature Integration: We implemented several key features: Set Participants: This function allows both the sender and receiver to be securely identified before any funds are transferred. Deposit Funds: We enabled senders to deposit funds directly into the smart contract, which holds the assets securely until all contractual conditions are met. Release and Refund Functions: Receivers can release the funds upon meeting the terms of the agreement. Conversely, senders can reclaim their funds if the terms are not satisfied, ensuring protection against non-fulfillment. Reset Functionality: After a transaction is completed, the contract can be reset, allowing new participants to utilize the service without any legacy issues. Testing and Validation: Throughout the hackathon, we conducted rigorous testing to ensure that each function of the smart contract operated correctly under various scenarios. This included testing for security vulnerabilities and ensuring that the contract could handle edge cases effectively. User Interface Development: We developed a simple yet functional user interface that allows users to interact with the smart contract easily. The UI includes forms for entering participant addresses, depositing funds, releasing, refunding, and resetting the contract.

Tech Stack

Web3
Ethers
Solidity
HTML
CSS
JavaScript