This script will work like Upwork escrow. Every escrow has an expiration time. The buyer will create an escrow which will be shown in the buyer and seller dashboard as pending. The buyer can release payment anytime. If any dispute occurs then the buyer will request to admin to refund that escrow. Admin will investigate the issue and refund if needed before the expiration time. The seller can also refund. After the expiration time, if no dispute or release payment happens, the seller can claim the escrow funds by himself.
When the smart contract deployer logs into the app then he will get a search box, where he can search by escrow id. He will be able to see all the escrows and can refund any escrow still in the pending state before the expiration date or seller claim occur.
On the create escrow popup, the system will show the estimated fee amount and escrow amount calculated from the entered amount by the buyer before creating. While creating, the app will receive the whole amount (fee+escrow amount) from the escrow creator wallet. When the escrow receives the delivered status or seller claim status the fee will be transferred to the admin/owner/contract deployer wallet and the main escrow amount will be transferred to the seller. But, on refund, the whole amount (fee+escrow amount) will be refunded.
Last Update | 8 October 2024 |
Published | 15 September 2022 |
Compatible Browsers | IE11, Firefox, Safari, Opera, Chrome, Edge |
Files Included | JavaScript JS, JavaScript JSON, CSS, Layered PNG |
Software Version | ReactJS, Node.js, Other |
Tags | binance, blockchain, crypto, dapp, decentralization, Defi, escrow, ethereum, fintech, solidity, web3 |