EscrowX
Making payments safe and secure
The problem EscrowX solves
๐ฏ The Problem & Our Solution
๐ด The Core Problem: The "Freelance Trust Gap"
In the digital economy, trust is the most expensive commodity. Every year, billions of dollars are lost due to:
- Non-Payment Risk: Freelancers complete work, only for clients to disappear or refuse payment for subjective reasons ("ghosting").
- Delivery Risk: Clients pay upfront, and the "expert" disappears or delivers substandard work that doesn't match the brief.
- The Middleman Tax: Centralized platforms like Upwork or Fiverr charge 10% to 20% fees just to act as a "trusted" intermediary.
- International Friction: Cross-border bank transfers take 3-5 days and lose value through multiple conversion fees.
๐ข The EscroX Solution: Code-Governed Trust
EscroX replaces the middleman with a Smart Contract, turning "Trust" into "Logic."
1. Locked Funds (Non-Custodial Security)
Instead of relying on a platform's bank account, funds are locked in a transparent Smart Contract.
- For Freelancers: You can verify that the money is already there before you write a single line of code.
- For Clients: You know the money isn't gone; it's just "on hold" until you're happy.
2. Evidence-Based Milestones
We break projects into verifiable steps.
- A logo isn't "done" until the high-res file is uploaded to the portal.
- A website isn't "shipped" until the URL and code repository are submitted.
- Payment is released only when the work is proven.
3. Stability in Volatility
With our USDC Stablecoin integration, you get the speed of blockchain without the price swings of Crypto. If you agree on $1,000, you get exactly $1,000โnot $800 because the market dipped.
4. AI-Powered Guardrails (Featherless AI + Gemini)
Our AI Milestone Architect, powered by Featherless AI (Llama 3) and Google Gemini, helps you write fair and realistic contracts.
- Intelligent Drafting: It suggests realistic timelines and budget splits based on project descriptions.
- Verification Engine: Uses AI to analyze work evidence (deliverables, code, or shipment tracking) before releasing funds, ensuring neither party is over-leveraged.
๐ Why EscroX Wins
| Feature | Legacy Platforms | EscroX |
|---|---|---|
| Fees | 10% - 20% | Gas Fees Only (Minimal) |
| Speed | 3-5 Business Days | Instant (Block Time) |
| Trust | Centralized Support | Immutable Code |
| Control | Platform Can Freeze Funds | User-Owned (Non-Custodial) |
| Setup | Hours of manual forms | Seconds via AI Drafting |
EscroX transforms high-risk digital collaboration into a safe, automated, and low-cost experience.
Challenges we ran into
๐ง Technical Challenges & Lessons Learned
Developing a hybrid Web2/Web3 platform like EscroX presented several unique engineering hurdles. Below are the key challenges we encountered and how we engineered our way through them.
1. The "Two-Step" Token Approval Flow โ๏ธ
Challenge: Unlike ETH, which can be sent alongside a function call (msg.value), ERC-20 tokens like USDC require a two-step process: Approve followed by Transfer.
- User Friction: Users often forget they need to approve the contract to spend their tokens first.
- Solution: We implemented an "Atomic-style" UI flow that checks the user's
allowancein real-time. If insufficient, the "Fund" button automatically switches to an "Approve USDC" step before proceeding to the actual escrow deposit.
2. Bridging the State Gap (On-Chain vs. Off-Chain) ๐
Challenge: Users expect Web2-like speed, but blockchain transactions can take 10-15 seconds to confirm.
- Problem: If a user refreshes the page before the transaction is mined, the UI might show stale data.
- Solution: We built a Real-Time Listener system. The frontend listens for smart contract events (
ProjectCreated,MilestoneApproved). As soon as an event hits the blockchain, we trigger a "Mirror Update" to our Firebase Firestore database, ensuring the UI stays perfectly in sync with the ledger.
3. Precision in Multi-Currency Accounting ๐น
Challenge: Projects are priced in USD, but the blockchain operates in ETH wei.
- Problem: Volatility means the ETH price can change between the time a contract is drafted and the time it's funded.
- Solution: We integrated a Price Feed logic within the smart contract. The contract calculates the required ETH at the moment of transaction submission, adding a small "slippage buffer" to ensure the escrow is fully funded even with minor price fluctuations.
4. The "No-Crypto" Onboarding Path ๐ณ
Challenge: Not every client has a crypto wallet or understands "Gas Fees."
- Solution: We simulated a Fiat-to-Escrow Bridge using Razorpay. This allows clients to pay in traditional currency (INR/USD), while the backend handles the mapping to the project's milestones, effectively "virtualizing" the escrow for non-crypto users.
5. Structuring Chaos with AI ๐ค
Challenge: Large language models often return conversational text instead of structured data.
- Problem: We needed raw JSON milestones (title, amount, deadline) to feed into our smart contract creation form.
- Solution: We developed strict System Prompts and JSON-repair logic. By using "Few-Shot Prompting," we trained the AI to act as a "Milestone Architect," ensuring its output is always programmatic and valid for our frontend state management.
6. Repository Consolidation & Technical Debt ๐งน
Challenge: Transitioning from a legacy master branch to a modern main branch without disrupting existing deployments or losing years of commit history.
- Solution: We performed a surgical remote branch sweep, updating the GitHub default branch settings programmatically and verifying commit parity to ensure a zero-loss transition.
๐ก๏ธ Summary
The biggest lesson learned was that User Experience (UX) is the hardest part of Web3. By hiding the complexity of smart contracts behind intuitive UI patterns and real-time data syncing, we made EscroX feel like a modern app, rather than a "crypto tool."
Tracks Applied (1)
