PaisaLink

Send a link, get paid in USDT. Your client pays no fees, and you can sell the invoice for cash.

PaisaLink

Created At

ETHGlobal Mumbai

Project Description

Indian freelancers and small businesses who bill clients abroad lose several percent of every invoice to bank fees and currency conversion, and then wait days for the money. Digital dollars (USDT) arrive in seconds and cost almost nothing to send. The catch is that they push crypto hassle onto the client: special fee tokens, choosing a network, managing a wallet. Most clients won't bother.

PaisaLink removes that hassle. The freelancer creates an invoice and gets a payment link to send on WhatsApp or email. A shop can instead add a small "Pay" button to its website. The client opens the link on their phone, taps Pay and approves. That's it. We pay the network fee for them, so they never have to buy crypto tokens or understand how the blockchain works. Payments run on Whitechain.

The freelancer's dashboard updates the moment money arrives. From there they can:

  • see every payment, with a public proof link,
  • refund all or part of a payment, which can only ever go back to the person who paid,
  • download a spreadsheet for their accountant,
  • keep a permanent PDF receipt for each invoice.

All invoice records live on Arkiv, and the receipts are stored on Swarm, so they don't depend on our server staying online.

PaisaLink also helps with cash flow. A client might pay in 30 days while the freelancer needs money now. The freelancer can sell that unpaid invoice to an approved investor at a small discount and get cash today. When the client pays later, the money goes safely to the investor, who earns the difference. The rules are built into the code itself, so no one can bend them:

  • only approved investors can buy,
  • the investment can't be traded after its due date,
  • the investor is paid in full at the end.

We cover everyone's network fees, so we have to stop people from abusing them with fake accounts. Each freelancer proves once with World ID that they are a real, unique person: one human, one fee budget. If they skip this step, their clients can still pay, just without the free fees.

How it's Made

PaisaLink has two Solidity 0.8.28 contracts built with Foundry. PaymentRouter accepts the official Whitechain USDT through receiveWithAuthorization (EIP-3009): the client signs a message and our relayer pays the gas. The nonce is tied to the invoice, so a signed payment can't be redirected. Refunds can only go back to the payer. Merchants can also create invoices, refund and withdraw without holding gas, by sending signatures through the relayer. InvoiceNote lets an allowlisted investor buy an unpaid invoice at a discount. It holds the client's later payment in escrow, blocks transfers after maturity (MaturityPassed) and settles face value in USDT. There are 79 unit and fuzz tests and 5 fork tests against the real USDT, and both contracts are verified on the explorer.

The API is Hono on Bun with viem. It simulates every transaction before sending it, gates gas sponsorship behind World ID, a daily gas budget per merchant and rate limits, and gives each key its own send queue to avoid nonce clashes. The frontend uses Vite, React 19, Tailwind v4, Magic UI and Motion. Checkout is a React component or a one-line embed.js, and the demo shop adds it in 19 lines.

Arkiv is our only database. Invoices, payments and notes are entities whose expiry follows the invoice's life, and watchEntityEvents keeps the dashboard live. Each PDF receipt is stored on Swarm, and its swarm_ref is saved on the Arkiv entity. World IDKit 4.6.0 gives one human one gas budget. We verify proofs on our server, store nullifiers and bind each proof to the merchant's wallet.

Hacky bits: the testnet USDT has no version() or eip712Domain(), so we recovered its signing domain by testing candidate versions against DOMAIN_SEPARATOR. Arkiv's rate limit can lock you out for about 27 minutes, so we built a breaker that backs off first. IDKit 4 had no server-side verify for our stack, so we wrote our own. Everything runs in one container on our own server (Dokku and Tailscale Funnel).

background image mobile

Join the mailing list

Get the latest news and updates

PaisaLink | ETHGlobal