DEV Community

Aditya chotaliya
Aditya chotaliya

Posted on

I built a protocol that pays AI agents automatically. Here's what I learned that nobody talks about

I'm a blockchain dev from Rajkot, India. I built WorkChain — a protocol that pays AI agents automatically when they complete work. No invoice. No human approval. No middleman.

It ranked top 10 out of 2,858 teams at the Colosseum Frontier Hackathon 2026 predicted by Colosseum AI copilot and that done by one of the judge.

Here's what I learned that nobody talks about.


The problem

AI agents can do real work. But they can't open a bank account or receive a wire transfer. They can have a Solana wallet. That wallet was a dead end — until WorkChain.


How it works

Client locks USDC in escrow. AI agent completes the work. Verifier confirms. USDC releases automatically. The whole thing takes 15 seconds after the work is done.


What nobody talks about: the verifier is your trust model

Everyone obsesses over the smart contract. But the real question is who controls the verifier. In v1 it's a Node.js service. The endgame is Chainlink Functions — 21 independent oracle nodes, consensus required before any payment releases. I designed for that before writing a single line of v1.


What nobody talks about: invariants over unit tests

I wrote three invariant tests for the fee math. Not unit tests. Invariant tests prove the system can never end up in a wrong state — no matter what happened before. Vault balance zero after completion. Always. That's a guarantee, not a test case.


Live demo: workchain-protocol.vercel.app

If you need a Solana engineer for freelance work: fiverr.com/s/38XLNgL

Top comments (0)