Sintingale

Sintingale: stablecoin SaaS checkout on Whitechain, with Arkiv billing records and ENS teams

Sintingale

Created At

ETHGlobal Mumbai

Project Description

Sintingale is a Stripe-style payment gateway for SaaS builders who want to accept stablecoins without building their own billing system. A merchant connects a wallet, creates a product or invoice, and gets a checkout link. A customer opens the link, connects any wallet, and pays in USDT on Whitechain. No account and no ENS name are needed to pay. The money goes straight to the merchant's wallet, and Sintingale never holds funds.

The difference is where billing state lives. Every invoice, receipt, and access record is stored as a queryable, wallet-owned entity on Arkiv, so merchants and their own backends can look up "who has paid" or "does this customer have access" with one query instead of trusting our database. Unpaid invoices carry an expiry and disappear on their own after the due date. Access records last exactly one billing period, so access lapses without webhooks or cron jobs. Every receipt includes a transaction hash, so anyone can check it against Whitechain.

ENS is an optional upgrade. A merchant who proves they own a name like acme.eth gets a verified identity on checkout ("Paying acme.eth ✓"), which makes lookalike payment links harder to pass off. They can also invite teammates through expiring invite links, issue them subnames like alice.acme.eth, and set a revenue split for each project (for example 50/30/20). When a customer pays

How it's Made

Stack: Next.js and Tailwind for the checkout and merchant dashboard (mobile-first, since checkout links are usually opened on a phone), wagmi/viem for wallets, and a small Node relayer service. Contracts are written in Solidity and tested with Foundry.

Settlement (Whitechain): a PaymentRouter contract pulls the stablecoin from the payer and forwards it to the merchant in the same transaction, so it never holds funds. A ProjectSplitter contract credits each team member's share as a claimable balance (in basis points, with rounding dust going to the project owner). We used pull payments so one payment never loops over many recipients. Whitechain is an OP Stack L2 with fast blocks and low fees, which suits small recurring payments.

Ledger (Arkiv): we use Arkiv as the billing database. Invoices, plans, receipts, access entitlements, team invites, and agent grants are entities with attributes as query indexes, and amounts and timestamps are numeric so we can run range queries. We use Arkiv's expiry as real application logic: pending invoices expire at their due date, invites expire in 48 hours, agent grants expire on a timer, and access records expire when the billing period ends. The dashboard and the SDK function hasAccess() are just Arkiv queries, with no separate indexer or backend database for payment state.

Identity (ENS on Sepolia): we resolve names, check ownership of wrapped and unwrapped names, and issue team subnames through the NameWrapper. ENS is used only for identity and permissions. Payments never touch it.

Notable hacks and trade-offs:

  • Whitechain and Arkiv are separate chains, so a relayer bridges them. It polls Whitechain logs (the public RPC has limited log ranges and no websocket), checks that each payment matches its Arkiv invoice, then writes the receipt. Receipts hold the tx hash so they can be verified against Whitechain, but this is not a trustless bridge. Our apps only trust records created by the relayer's address.
  • A Whitechain contract can't read ENS, so we resolve names to addresses off-chain when a split is saved and store the addresses on-chain, with a "re-sync" action if a member changes wallets.
  • We did not lock subnames with ENS fuses, so a merchant can always remove a member. We avoided locking because ENS recommends waiting for ENSv2.
  • Invoice status is derived (a receipt exists means paid) so we don't rely on editing entities in place.
  • [If true: we deployed a mock USDT on testnet because we could not confirm an official one.]
background image mobile

Join the mailing list

Get the latest news and updates

Sintingale | ETHGlobal