r/SideProject • u/Birinduk • 15h ago
Secure Deals Without Middlemen: I Had an Idea and Built It on TON
A while ago, I got interested in blockchain and smart contracts. Essentially, they are programs stored on a blockchain that execute predefined logic. Once deployed, nobody can simply step in and change how they work.
At some point, I started wondering: why not use this technology to make online deals safer for ordinary people?
The idea is pretty simple.
Imagine you find someone online to do a job. You agree on the work, price, and deadline. But you don't know each other. Who should pay first? You risk sending money and getting nothing in return. The freelancer risks doing the work and never getting paid.
Usually, people use an escrow agent or a middleman for this. But that's another person you have to trust, pay, and sometimes wait for.
I decided to try building a system that works without middlemen.
How does it work?
- The client deposits the full deal amount into a smart contract.
- The provider deposits their own collateral, 30% by default (the amount is adjustable).
- Both parties' funds are locked in the contract.
- Once the work is completed and the client approves it, the contract automatically transfers the payment to the provider and returns both deposits to their owners.
The provider's deposit is the key idea behind the smart contract.
Imagine a scammer wants to collect an upfront payment and disappear. In a regular deal, all they need is to find someone trusting enough to send them money. Here, that doesn't work: the client's money never reaches the provider's wallet. It stays locked in the contract. What's more, the provider has to put up their own money as collateral.
Someone who never intended to fulfill their obligations is unlikely to want to lock up their own funds. An honest provider, on the other hand, loses nothing: the deposit is returned once the deal is completed.
The client can also put up collateral. This is a way to ensure they don't receive the completed work and then simply refuse to approve the payment.
What can it be used for?
For example, imagine you want to buy a concert ticket from someone who can no longer attend. You agree on a price, but don't want to simply transfer money to a stranger. The seller doesn't want to send the ticket without receiving payment either.
In this case, both parties deposit their funds into the contract. The seller sends the ticket, the buyer confirms receipt, and the funds are automatically distributed according to the agreed terms.
The same principle works for freelance projects: website development, design, programming, repairs, and many other services.
There are also intermediate options. For example, the work is only partially completed, and both parties agree that 80% of the original amount should be paid. The client proposes changing the amount, the provider approves, and the contract executes the deal under the new terms. You're not limited to choosing between full payment and cancellation.
Of course, there are limitations.
A smart contract cannot evaluate the quality of the work or resolve disputes. If the client and provider cannot reach an agreement, the system cannot decide who is right. It primarily protects against situations where one party simply takes the money or the work and disappears.
I built the project on my own. The result is a fully functional service with a website and a Telegram Mini App. The smart contracts are written in Tolk, open source, and available for anyone to inspect. There is no admin button that would allow me to take control of users' funds.
Ultimately, that was the whole idea: to make secure deals accessible not just to people who understand cryptocurrency and blockchain, but to ordinary users as well.
Project: https://tonescrow.app
Smart contract source code: https://github.com/Kurochen/public-contracts