This project provides a decentralized escrow service implemented using TEALScript, a TypeScript library for building Algorand smart contracts. The contract enables secure transactions between two parties by locking funds until specific conditions are met. It ensures transparency and accountability while facilitating efficient fund transfers in Web3 applications.
- Escrow Creation: Initialize the escrow with the payment amount, worker (receiver), and admin addresses.
- Add Funds to Escrow: Deposit the agreed payment amount to the escrow account.
- Set Condition Met: Admin or the creator can confirm the conditions for releasing the funds.
- Release Funds: Automatically transfer funds to the worker when the conditions are met.
- Cancel Escrow: The creator can cancel the escrow and reclaim any remaining funds.
- Secure Transactions: Ensures that all actions are authorized and verifiable.
- paymentAmount: The agreed cost of the asset or service.
- worker: The address of the worker (asset receiver).
- conditionMet: Boolean indicating whether the release condition is met.
- admin: Admin address for additional control.
-
createApplication(worker: Address, adminAddress: Address)
- Initializes the escrow contract.
-
addFundsToEscrow(ebaTxn: PayTxn)
- Adds the payment amount to the escrow.
-
setConditionMet()
- Sets the condition to true, allowing funds release.
-
releaseFunds()
- Transfers funds to the worker if conditions are met.
-
deleteApplication()
- Cancels the escrow and deletes the application, refunding the creator.
- Install Node.js and npm.
- Install TEALScript:
npm install @algorandfoundation/tealscript
- AlgoKit (v2.4.2+)
- Algorand Sandbox or a similar local test environment for testing smart contracts.
- Clone the Repository:
git clone https://github.com/Srikarnivas/Decentralized_ecrow_service.git
follow the link for clear instructions https://drive.google.com/file/d/1y2BnuitiimDfqQinP5N-RocTBoyaHzvj/view?usp=sharing

