WhiteFlow

Gasless USDT payments for merchants, with instant settlement and on-chain revenue financing.

WhiteFlow

Created At

ETHGlobal Mumbai

Project Description

Whiteflow is a stablecoin payment gateway built for merchants who sell internationally. It lets businesses accept USDT through payment links, hosted payment pages, invoices and QR codes without requiring customers to hold native gas tokens or understand blockchain transactions.

Businesses increasingly have customers who want to pay using stablecoins but accepting these payments is still unnecessarily complicated. Merchants need to deal with wallets, blockchain networks, checkout integrations, transaction verification, payment monitoring and reconciliation. Most businesses do not want to build and maintain an entire crypto payment stack just to collect money from customers.

Whiteflow removes this complexity by providing a stablecoin payment gateway that connects merchant operations, AI assistants and on-chain settlement. Merchants can create payment requests, manage collections and retrieve payment information through a dashboard, API or AI assistants such as Claude using our Model Context Protocol (MCP) integration.

Imagine a merchant asking an AI assistant: "Create a payment link for my $10 subscription."

Whiteflow creates a checkout that the merchant can share with a customer. The customer opens the link, reviews the payment details and explicitly authorizes the USDT transaction. Our relayer submits the signed authorization on-chain and pays the network gas fee. Once confirmed the payment is settled directly into the merchant's wallet and recorded in the merchant dashboard. The merchant can also retrieve the payment status through the AI assistant.

This connects the entire experience from a natural language instruction to customer authorization, on-chain settlement and merchant records.

  1. The Payment Platform - Whiteflow provides multiple ways for merchants to collect stablecoin payments without building their own blockchain payment infrastructure.

Payment links: Merchants can generate shareable checkout links for products, services and subscriptions. Hosted payment pages: Customers are directed to a dedicated checkout page where they can review the amount, merchant details and authorize their payment. Invoices: Merchants can create payment requests with line items and connect them to financing workflows. QR checkout: Payment requests can be shared through QR codes for physical and digital customer touchpoints. Payment buttons and SDK: Businesses can integrate Whiteflow into existing websites and applications. Our demo shop demonstrates a complete integration in approximately 20 lines of code. Signed webhooks: Merchant applications receive payment events through signed webhooks, allowing them to update orders and trigger their own business workflows. Multi-currency pricing: Merchants can quote prices in USD, EUR, GBP, INR, SGD and AED while settling in USDT. Exchange rates are used to calculate the exact USDT amount, with quotes locked for 10 minutes. Discount vouchers: Merchants can issue discount codes backed by Arkiv entities. Checkout verifies the live entity before applying a voucher. Payment reports: Merchants can monitor transactions, settlements, fees and sales through a dashboard, with CSV exports for reconciliation.

  1. AI-Assisted Merchant Operations One of Whiteflow's key differentiators is its Model Context Protocol integration.

We built a TypeScript MCP server that connects AI assistants such as Claude to the actual merchant payment infrastructure. It exposes 12 tools and four prompt templates for interacting with payment operations.

Merchants can use natural language to:

  • Create checkout sessions and payment requests.
  • Retrieve checkout details and payment statuses.
  • List payment records.
  • Retrieve sales summaries.
  • Access merchant payment information without constantly switching between applications.

The MCP integration is not simply a chatbot placed on top of a payment dashboard. It connects the assistant to the merchant gateway through actual tools and APIs.

We also implemented an optional payer-side tool that allows an AI agent to pay a checkout when explicitly configured with a payer key. It has a limit of 10 USDT per payment and 25 USDT per day with a spending report to track payments. This is separate from the merchant tools and is disabled unless configured.

The important distinction is that AI can initiate merchant operations and retrieve information but customer payments still require explicit authorization. The actual movement of funds is handled by the payment contracts rather than the AI assistant.

  1. Gasless USDT Payments and Instant Settlement Whiteflow is built on Whitechain and uses Solidity-based MerchantPay contracts for on-chain settlement.

We use EIP-3009 signed transfer authorizations with EIP-712 typed data. The customer signs an authorization for an exact USDT amount and our relayer submits the transaction while paying the network fee in WBT, Whitechain's native gas token.

This means customers do not need to acquire WBT or understand blockchain gas fees just to make a payment.

The settlement happens in a single transaction:

  • The customer signs the payment authorization.
  • The relayer validates the signature, balance, authorization window and replay protection.
  • The relayer simulates the transaction and submits it on-chain.
  • MerchantPay transfers the USDT, including the relayer fee and any applicable financing repayment.
  • The merchant receives the remaining funds directly in their wallet.

We charge a flat 0.10 USDT fee inside each payment to cover the relayer's gas costs. At the configured 6 gwei gas cap, this fee covers approximately 208,000 gas.

Why this matters: Whiteflow never holds merchant payment funds. Settlement happens directly on-chain with verifiable transaction receipts. The merchant receives their funds in the same transaction rather than waiting for an intermediary to process a payout.

  1. Capital+: Programmable Merchant Financing Payments are only the starting point of Whiteflow. We also built Capital+, a financing layer that connects merchant payments with investor funding and automated repayment.

Traditional merchant financing often requires separate loan agreements, repayment schedules and manual collections. Whiteflow explores a different approach: connecting financing obligations directly to the payments a merchant receives.

There are two primary financing workflows -

  • Revenue advances: Investors fund a merchant in exchange for an agreed share of future sales. When the merchant receives a payment, the smart contract automatically allocates the agreed repayment amount to the investor in the same transaction.

  • Invoice financing: Merchants can raise funds against unpaid invoices. Multiple investors can fund portions of an invoice and when the debtor pays, the contract distributes the repayment among the investors according to their agreed shares.

The financing infrastructure includes:

  • CapitalMarket contracts for financing and repayment rules.
  • ERC-1155-based financing claim tokens.
  • ERC-7943-inspired transfer restrictions and eligibility controls.
  • Investor allowlists with simulated KYC.
  • Maturity locks and administrative freeze functionality.
  • Financing offers published as Arkiv entities.
  • An investor offer book that retrieves live financing offers.

For example, in our tested invoice financing flow, two investors fund a 100 USDT invoice with 58.84 USDT and 39.23 USDT respectively. When the debtor pays 100.10 USDT the contract distributes 60 USDT and 40 USDT to the respective investors in the same transaction.

This is what makes Whiteflow different from a conventional payment gateway: the payment itself can enforce financial agreements without relying on the merchant to manually forward repayments.

  1. Privacy and Developer Infrastructure We also focused on privacy and the developer experience.
  • Anon-RPC integration: Browser-side blockchain reads go through Anon-RPC by default, using Nym infrastructure with a Tor fallback. In our browser tests we verified 12 runs with zero direct RPC requests.

  • Non custodial architecture: Payment authorization keys remain with the user. The default checkout uses a guest wallet created in the browser without requiring an email address or seed phrase.

  • Relayer protection: The relayer includes transaction simulation, signature validation, gas limits, replay protection, per-payer and per-IP rate limits a daily gas budget and a shared database-backed sending lock.

  • Developer APIs and SDK: We provide merchant APIs, a lightweight SDK, a payment button, signed webhooks and integration documentation.

The architecture separates the frontend, merchant gateway, relayer, AI interface and settlement contracts. This keeps conversational operations separate from the actual execution of financial transactions.

  1. Technical Architecture Whiteflow is a full-stack application built using:

Frontend: Next.js 16 and TypeScript. Backend: Two TypeScript services for the merchant API and transaction relayer. Smart contracts: Solidity 0.8.38 with Foundry and OpenZeppelin. Blockchain: Whitechain Sepolia, using USDT for payment settlement. Database: PostgreSQL for checkout sessions, rate limits and relayer coordination. AI integration: TypeScript MCP server for Claude Code and Claude Desktop. Privacy: Anon-RPC through Nym. Decentralized data: Arkiv for financing offers and discount vouchers. Developer integration: Lightweight SDK, merchant APIs and signed webhooks. The contracts hold the core payment and financing rules, while the backend handles checkout creation, merchant operations and secure transaction submission.

  1. Market and Business Model Whiteflow initially targets internet-native businesses that serve customers internationally. These include SaaS companies, hosting and infrastructure providers, developer tools, digital agencies, subscription businesses and independent online service providers.

Our proposed business model is freemium SaaS. Merchants can start with a limited payment quota and upgrade to paid plans for higher limits and additional capabilities.

Our go-to-market approach focuses on developer-led adoption, merchant referrals and education around stablecoin payments. We want businesses to start accepting stablecoins without needing to understand the underlying blockchain infrastructure.

  1. Current Status and What's Next Whiteflow currently runs on Whitechain Sepolia testnet. The core payment gateway, relayer, financing contracts, merchant workflows and AI integration have been implemented and tested.

There are still important limitations. The testnet uses simulated investor eligibility rather than production KYC. The relayer's collected USDT fees are converted back into WBT manually rather than through an automated swap. Some financing features, including default handling and recourse, remain future work. Official USDT is not yet available on Whitechain mainnet, so production deployment requires further infrastructure and integration work.

Our next priorities include testing a cross-chain payment corridor, expanding merchant account capabilities, improving financing lifecycle management and making the AI integration more useful for everyday merchant operations.

Our long-term goal is to make stablecoin payments as easy as accepting a card payment while making the underlying payment infrastructure programmable enough to support financing, automated collections and AI-assisted business operations.

How it's Made

How We Built WhiteFlow

We built WhiteFlow around AI assistants as the interface for merchant payment collection. Instead of making merchants learn another crypto dashboard, we wanted them to be able to create payment links, check payment status and view collection summaries through a conversation.

The idea was to keep the experience familiar while making the actual payment flow verifiable onchain.

Architecture WhiteFlow connects four main components: a merchant gateway, a TypeScript MCP server, a transaction relayer and Solidity payment contracts deployed on Whitechain Testnet.

  1. MCP Server -

We built a TypeScript-based Model Context Protocol server with 12 tools and four prompt templates. It exposes merchant operations to compatible AI assistants, including creating checkouts, retrieving checkout information, listing payments and viewing sales summaries.

The MCP server communicates with our merchant gateway. It does not handle payment execution itself. This keeps the AI interface separate from the underlying payment logic.

  1. Merchant Gateway -

The gateway handles requests from the MCP server and connects them to the payment infrastructure. It manages the payment collection workflow and provides a consistent HTTP interface for the merchant application and other components.

The implemented testnet workflows cover payment links, payment records and collection summaries.

  1. Solidity Contracts and Whitechain -

Onchain settlement is handled by our Solidity-based MerchantPay contracts on Whitechain Testnet.

For checkout authorization, the payer signs an EIP-712 typed-data authorization using the test token's EIP-3009 support. This lets the payer explicitly authorize the token transfer without having to submit the blockchain transaction themselves.

  1. Transaction Relayer -

Once the authorization is received, our relayer submits the transaction onchain and pays the gas fee in WBT, Whitechain's native gas token.

This means the customer does not need to acquire WBT just to make a payment. They still review and sign the payment authorization themselves. The relayer handles transaction submission and gas.

Some Engineering Decisions One useful thing we built was a local simulator behind the same HTTP contract as the merchant gateway. It allowed us to test payment workflows without moving real funds or depending on an onchain transaction for every test.

We used it to exercise duplicate events, invalid signatures, underpayments and invoice workflows. Keeping the same interface between the simulator and gateway made it easier to test different scenarios without changing how the rest of the system communicates.

We also built a journal for write-request identifiers. When a request needs to be retried, it can reuse the same idempotency key. This helps avoid duplicate operations caused by network failures or repeated requests.

Another detail was how we handled money. We represent monetary amounts using integer minor units instead of floating-point numbers, avoiding precision issues when calculating payment amounts and conversions.

Putting It All Together

The final flow starts with a merchant asking an AI assistant to create a payment link. The MCP server passes the request to the gateway, which prepares the checkout. The customer opens the link and authorizes the payment using a signed EIP-712 message. Our relayer submits the authorized transaction to Whitechain and pays the gas fee.

Once the transaction is confirmed, the merchant can inspect the payment through the dashboard or retrieve its records through the assistant.

Whitechain provides the settlement layer, while MCP gives merchants a conversational way to interact with the payment infrastructure.

We are currently demonstrating this flow on Whitechain Sepolia and focusing on reliability and the merchant experience.

The goal was to make collecting an onchain payment feel as straightforward as asking an assistant to create a payment link.

background image mobile

Join the mailing list

Get the latest news and updates

WhiteFlow | ETHGlobal