Skip to content
CRegi

CRegi

Seamless multi-chain crypto checkout

Created on 20th April 2026

•

CRegi

CRegi

Seamless multi-chain crypto checkout

The problem CRegi solves

CRegi (Regulated Onchain Settlement) bridges the gap between digital asset payments and traditional business reliability. While stablecoins like USDC offer 24/7 liquidity, businesses often struggle with the complexity of multi-chain management, gas fees, and the lack of auditable, transparent settlement records.

  1. Eliminating Multi-Chain Complexity
    Existing crypto payment tools often force users to think about "Which chain?" or "Do I have gas for fees?". CRegi abstracts this:

For Customers: They simply scan a QR code and pay in native USDC from their preferred wallet.
For Merchants: There is no need to maintain separate gas wallets on multiple networks. The terminal handles routing behind the scenes.
2. Trustless, Auditable Payouts
Traditional payment processors are "black boxes"—you trust them to pay you out. CRegi makes this auditable:

Avalanche-Backed Records: Every merchant payout is recorded on Avalanche, creating a permanent, immutable log of successful settlements.
Transparency: Payouts are triggered and verified onchain, making it nearly impossible to have "lost" or "stuck" transactions that aren't immediately visible to both parties.
3. Real-Time Liquidity (No T+3)
Standard credit card processing takes 3–5 days to settle into a bank account.

CRegi leverages Circle’s native Mint/Burn and Solana’s sub-second finality to move funds in real-time.
A merchant can receive their funds and have them settled almost as soon as the customer clicks "Approve."
4. Premium responsive Experience
Most crypto tools are built for desktop-native "power users." CRegi is designed for the modern world:

Mobile-First Terminal: Optimized for tablets and phones, allowing a merchant to launch a checkout terminal from anywhere—a pop-up shop, a physical storefront, or a remote event.
Glassmorphic UI: High-contrast, accessibility-focused design ensures that payment amounts and statuses are visible even in bright sunlight or high-glare environments.
Who is it for?
Global Freelancers: Accept stable payments from international clients with zero bridge fees.
Physical Retailers: A sleek web-based terminal that replaces expensive credit card hardware.
Web3 Developers: Integration-ready API for adding premium checkout flows to dApps without writing complex smart contracts.

Challenges I ran into

Handling Asynchronous Finality Across Different Chains
One of the biggest hurdles we faced was building a unified checkout and settlement interface (CregiSettlement) that operates across entirely different blockchain architectures—specifically Solana (high throughput, fast block times) and Avalanche (EVM compatibility, different finality guarantees)—while using Circle's infrastructure for USDC.

The Bug/Hurdle:
When processing transactions, our Next.js API routes (/api/invoices/[id]/settle) would occasionally timeout or provide false-positive confirmations because we were initially using synchronous polling to wait for transaction finality. On Vercel's serverless functions, this approach hit the 10-second execution limit, causing the UI to hang even if the on-chain transaction was actually successful.

How we got over it:
Instead of awaiting finality within the edge function, we overhauled our payment verification flow to be fully asynchronous:

We abstracted the settlement logic (payments.ts and settlement.ts) to return immediate transaction hashes to the client.
We moved the heavy lifting to robust client-side polling paired with a dedicated /api/invoices/[id]/receipt endpoint.
On the backend, we utilized Drizzle ORM to aggressively cache invoice states, ensuring that once a transaction was verified, subsequent database reads were lightning-fast and didn't spam our RPC nodes with redundant requests.

Serverless Bundle Sizes and Dependency Clashes
Integrating multiple Web3 SDKs (Solana Web3.js, EVM ethers/viem) alongside Drizzle ORM inside the Next.js 15 App Router presented a massive challenge during deployment.

The Bug/Hurdle:
During our initial deployments to Vercel, the build would succeed, but the API routes would crash at runtime with module resolution errors or out-of-memory (OOM) exceptions. The serverless functions were bloating past the 50MB limit because the bundler was trying to package large, native cryptography dependencies for all chains into a single route.

How we got over it:
We had to dive deep into our next.config.ts and Webpack configuration. We isolated our chain-specific logic into dedicated files (settlement.ts, etc.) and dynamically imported them only when a user selected a specific chain for checkout. By optimizing our imports and marking certain Node.js native crypto modules as serverComponentsExternalPackages, we slashed the function size and got our API routes running blazing fast.

Tracks Applied (3)

Programmable Money for Humans & Agents

Circle

Circle

Best Use of Solana

Solana

Solana

Agentic Payments on Avalanche

Avalanche

Avalanche

Cheer Project

Cheering for a project means supporting a project you like with as little as 0.0025 ETH. Right now, you can Cheer using ETH on Arbitrum, Optimism and Base.

Discussion

Builders also viewed

See more projects on Devfolio