Unified onchain payments for people and AI agents: USDT billing, x402 APIs, and CCIP bridging.
What happens to your business billing infrastructure when half of your paying customers are human subscribers, and the other half are autonomous AI agents consuming APIs programmatically? Today, crypto commerce is fundamentally broken for both. When a human customer purchases software with tokens, the transaction is treated as a final, one-way push. There is no concept of an invoice lifecycle, no reserve accounting, and no verifiable refund primitive. If a customer legitimately requests their money back, the merchant has to manually hunt through block explorers and execute ad-hoc transfers from hot wallets, risking insolvency if incoming revenues were already swept. Meanwhile, autonomous software agents such as data scrapers or LLM pipelines crash the moment they hit traditional Web3 checkouts because the entire landscape relies on DOM rendering, browser extensions, and MetaMask popups. Handing an AI agent an unrestricted private key is equally dangerous, as an infinite loop or prompt-injection attack can completely drain a treasury wallet in seconds.
PulsePay bridges this gap by creating a unified onchain financial operating system that handles human stablecoin billing, autonomous agent micropayments, and cross-chain liquidity across two dedicated rails. For human commerce, PulsePay runs on Whitechain using official USDT. When an invoice is paid, our smart contract automatically locks a 20% slice into a dedicated refund reserve pool while releasing the remaining 80% to the merchant's available balance. If a dispute or return occurs, the merchant issues a partial or full refund with one click; the contract guarantees funds are pulled from the reserve first and routed strictly back to the original customer's wallet. It also manages recurring subscriptions with bounded billing intervals and transparent onchain cancellation rights.
For autonomous AI agents, PulsePay implements a native HTTP 402 Payment Required paywall on Hedera. When an agent queries a protected API endpoint, the server returns a cryptographic challenge. Built with the official Hedera Agent Kit v4, the agent evaluates the price against its local spend limit policy hence enforcing per-request caps, daily budgets, and merchant allowlists and submits a native HBAR transfer without human intervention. The payment hash is embedded directly in the transaction memo, verified by the server through the Hedera Mirror Node, and recorded immutably to a Hedera Consensus Service topic for auditability. o ensure customers and agents aren't trapped by chain silos, Chainlink CCIP 2.0 acts as our cross-chain liquidity rail, allowing users to bridge tokens seamlessly across Ethereum Sepolia, Arbitrum, and Hedera with zero callback execution risk so their destination wallets are funded for checkout.
We built PulsePay as a full-stack monorepo managed with Turborepo and pnpm. The smart contracts are written in Solidity, tested with Foundry, and compiled using OpenZeppelin v5 primitives. We deployed PulsePayMerchantHub on Whitechain Sepolia and PulsePayHederaMerchantHub on Hedera EVM (Chain 296). The frontend operations console is written in SvelteKit 5 with Tailwind CSS 4, Viem, GSAP, and Three.js shaders, communicating directly with browser wallets and reading contract states and receipts through Blockscout and Hedera Mirror Node REST APIs. The backend runs on Node.js 22, hosting our HTTP 402 challenge gateway, atomic state persistence, and automated accountant CSV export engine.
A central architectural decision was figuring out why and how we bridge tokens across networks. In real-world commerce, merchants strongly prefer receiving revenue in stablecoins like USDT on high-throughput, low-fee enterprise networks like Whitechain .
Each partner technology provided crucial infrastructure that made the project possible. Whitechain gave us sub-second block times and near-zero gas fees paid in native WBT, which makes high-frequency business invoices, micro-refunds, and subscription renewals economically viable; having the official testnet USDT deployed natively allowed us to build production-grade allowance and reserve-segregation flows without relying on mock tokens. Hedera provided the predictability and speed required for machine-to-machine micro-commerce. We built our agent directly on the official Hedera Agent Kit v4.
We implemented several notable and hacky engineering solutions to make the system resilient. First, on Hedera's native agent rail, we avoided deploying any Solidity contracts whatsoever. Instead, our server provisions a 32-character hex challenge, and the agent's X402PayTool hashes this ID directly into the public memo field of a native HBAR CryptoTransfer using the prefix PULSEPAY. When the agent retries the API with its transaction proof, the server decodes the consensus memo from the Hedera Mirror Node, validates the exact tinybar transfer to the merchant, and unlocks the resource. This achieves cryptographic, tamper-evident payment gating using purely native Hedera SDKs with zero smart contract overhead. Second, to prevent autonomous agents from double-spending after network dropouts, we built an atomic disk journaling engine with OS-level process locks. The agent writes its pending transaction intent to disk before broadcasting; if the process crashes mid-flight, on reboot it reconciles the transaction status via the Mirror Node and retries proof submission rather than initiating a second payment. Third, on Whitechain, we built an onchain liquidity waterfall where the contract automatically splits incoming USDT into a 20% locked refund reserve, enforcing that any subsequent refund programmatically drains the reserve first before touching the merchant's available balance, mathematically preventing merchants from rug-pulling customer return liquidity. Finally, on our Hedera EVM hub, recurring subscriptions bypass off-chain cron bots by calling directly into Hedera's Schedule Service system contract.

