A stablecoin on/off-ramp, built and tested in four weeks.

EUR in, USDC out, and back again, on Stellar, Ethereum and Solana testnets. DFNS orchestrates every transfer and keeps the keys in MPC wallets. Swan runs the bank side, Circle supplies the liquidity, Sumsub and OpenSanctions run compliance. One back office reconciles every coin.

Built7 Nov to 5 Dec 2026
Typetracee reference build
StatusLive sandbox, testnet only
Built with
  • DFNS
  • Swan
  • Circle
  • Sumsub
  • OpenSanctions
  • 10orders completed end to end, 8 buys and 2 sells
  • 22sfrom bank payment matched to coins confirmed on chain
  • 2sfrom deposit confirmed to SEPA payout settled
  • 0reconciliation breaks on 5 December, 22 balances checked
At a glance
What
A fiat to stablecoin on/off-ramp: customer app, embeddable partner widget and API, back office
Coins
USDC and EURC
Networks
Stellar Testnet, Ethereum Sepolia, Solana Devnet
Rails
EUR by SEPA and SEPA Instant, EUR by card, USD by wire on a sandbox bank
Partners
DFNS for orchestration and MPC custody, Swan for the EUR bank, Circle for liquidity, Sumsub for KYC, KYB, KYT and Travel Rule, OpenSanctions for AML
Runs on
Cloudflare Workers, D1 database, Workflows
Limits
Testnet coins and sandbox bank money only. No licence, no real customers.
Results
  • 327.51USDC delivered on chain through DFNS, in 8 transfers
  • EUR 231.46paid out by SEPA through Swan, for 260.01 USDC received
  • 30nightly reconciliation runs. Every break traced to a real movement.
  • 8,183audit log entries, hash-chained. The chain verifies.
  • 65automated tests, about 37,000 lines of TypeScript
01 · The brief

Most ramp demos stop at the happy path.

A quote, a payment, coins arrive. The hard part sits behind it. Who holds the keys. Where the float comes from. How a bank payment finds its order. What happens when a customer forgets a memo. Whether the books still match the chain a month later.

We built the whole loop on testnets to answer those questions with working software and real transactions. It is our own build, run the way we run a client engagement.

02 · Five decisions

Five decisions before any code.

Every ramp sits on the same five decisions. They set the architecture, so we took them first.

DecisionOur answer for this build
LicenceNone for the sandbox. A live EU launch needs a MiCA authorisation, ours or a partner's.
ArchitectureBuild the core: orders, ledger, treasury, compliance logic, back office. Buy custody, banking, liquidity and screening.
PartnersDFNS, Swan, Circle, Sumsub, OpenSanctions.
ProductBuy and sell for individuals, plus a widget and API for partners. Coins go straight to the customer's own wallet. No customer balance is held.
Business modelFee by payment method (1% bank transfer, 3.99% card, EUR 1.99 minimum), 0.30% spread on the mid rate, optional partner fee on widget orders. Sandbox defaults, set in the back office.
03 · Architecture

We built the core. We bought the rest.

Three front ends share one core. The core runs on Cloudflare and owns orders, the ledger and every decision. Each partner does one job behind it.

RolePartnerWhat it does hereOn 5 Dec
OrchestrationDFNSBuilds, signs, broadcasts and tracks every transfer we request by API, with a webhook for every wallet eventLive on testnets
CustodyDFNSMPC wallets. Our app never holds a key.Live on testnets
EUR bankSwanA virtual IBAN per customer, SEPA in, SEPA Instant payoutsLive in sandbox
LiquidityCircle MintUSDC and EURC float, withdrawn to our hot walletsLive in sandbox
Cross-chain USDCCircle CCTP V2Moves USDC float between networksAdapter built
ComplianceSumsubKYC, KYB, wallet and transaction monitoring (KYT), Travel RuleLive
Person screeningOpenSanctionsSanctions and PEP check on every approved customerLive
Wallet screeningOFAC SDN listEvery destination and deposit addressLive
Sign-inBetter AuthEmail and password, Google, SSO, TOTP, passkeysLive
InfrastructureCloudflareWorkers, D1, Workflows, cronLive
  • Every provider sits behind a port with a mock twin.One interface per capability, a mock that behaves like the real thing, and a live adapter that switches on when its key is set. The full flow ran on mocks on day one. We changed KYC provider on day three without touching the order flow.
  • Every order is a durable workflow.A Cloudflare Workflow runs each order. It sleeps while it waits for a bank or chain event, and resumes where it stopped after a restart.
  • The books are double-entry.A database trigger rejects any journal entry that does not balance per currency. Entries cannot be edited or deleted.
04 · How an order runs

Two real orders, step by step.

Every order goes through the same four moves: quote, check, execute, settle. Below are the first live buy and the largest sell, with the timestamps from the database.

BuyEUR 10.00 to 8.905245 USDC on Stellar8 Nov 2026, first live buy
  1. 11:57:26 UTCQuotetracee

    Mid rate from the ECB, spread and fee applied, quote locked.

  2. Before paymentChecktracee

    KYC tier and limits, destination wallet screened, Travel Rule record written.

  3. 11:57:34PaySwan

    SEPA transfer to the customer's virtual IBAN, matched by IBAN and reference.

  4. 11:57:35ExecuteDFNS

    DFNS signs and sends the USDC from our Stellar hot wallet.

  5. 11:57:56SettleDFNS, ledger

    The DFNS webhook confirms, the ledger posts, the order completes.

30 sfrom order to coins confirmed22 sfrom payment matched to coins confirmed
Sell250.0077 USDC to EUR 224.5320 Nov 2026, largest sell
  1. 17:49:24 UTCQuotetracee

    The order asks for an exact amount, 250.0077 USDC. The last four decimals identify the order.

  2. 17:51:07DepositDFNS

    The customer sends to our Stellar hot wallet. DFNS reports it, the app matches it to the order.

  3. On depositChecktracee

    Sending address screened, Travel Rule record written.

  4. 17:51:09PayoutSwan

    SEPA Instant payout of EUR 224.53, consent signed by our server.

2 sfrom deposit confirmed to payout settled
tracee ramp · Checkout
ScreenshotBuy form with amount, network, fee, spread and USDC received
The quote. Fee and spread shown before the customer pays.
tracee ramp · Order
ScreenshotFirst live buy, activity timeline, link to stellar.expert
The order page. Every step, with the on-chain proof.
tracee ramp · Sell
Screenshot"Exact amount, do not round": 250.0077 USDC, address and memo
The sell. The exact amount is how the deposit finds its order.
05 · Orchestration and custody

DFNS moves the coins. We never touch a key.

DFNS does two jobs. Its orchestration layer builds, signs, broadcasts and tracks every transfer the app asks for. Its custody layer keeps the keys in MPC wallets. Our app asks DFNS to send, and DFNS tells us what landed.

  • One service account signs every API call with its own key, kept in Cloudflare's secret store.
  • One hot wallet per network, created by our bootstrap through the API. On Stellar, the bootstrap funds the account and opens the USDC and EURC trustlines, one DFNS signature each.
  • 84 webhook events received and verified: every deposit and every transfer status.

The 10-wallet limit changed the design. The DFNS trial allows 10 wallets per organisation. A deposit wallet per order would have run out within days, and every deposit wallet needs its own gas to sweep coins on. So sells pay the hot wallet directly and are matched by exact amount, and by memo on Stellar. No deposit wallets, no sweeps, no gas to manage.

Two things we hit. DFNS's firewall rejects requests with no User-Agent, and Cloudflare Workers send none: one header fixed it. Two Stellar transactions sent back to back from one wallet fail on sequence numbers: the bootstrap now waits for each one to settle.

DFNS dashboard · Wallets
ScreenshotThe three hot wallets, Ethereum Sepolia, Solana Devnet and Stellar Testnet, with balances
One hot wallet per network, created through the API.
06 · Back office

One back office for every coin and every euro.

Staff sign in with a second factor, TOTP or passkey. Settings changes and treasury sends go through approvals: a second person in production, self-approved and logged in the sandbox.

SectionWhat staff do there
OverviewOrders, float and open cases at a glance
OrdersEvery order with its timeline, screening and Travel Rule record
CustomersIdentity status, risk, wallets, banks, AML results
CasesScreening hits, suspense and reconciliation breaks to clear
TransactionsEvery chain and bank transfer, both ends named. Unmatched deposits settled here.
TreasuryBalances per wallet, on chain against the books, float rules, send from treasury
LedgerAccounts and sealed journal entries
ReconciliationNightly and on-demand checks, with every break listed
PartnersPartner accounts, API keys, fees
ProvidersWhich adapter runs live and which runs on its mock
SettingsPricing, limits, compliance switches, treasury rules
Audit logEvery action, hash-chained, with a verify button
OutboxEvery email the system sent
Back office · Treasury
ScreenshotOne row per hot wallet and coin, on chain against the books, difference at zero
Treasury. The chain and the books, side by side.
Back office · Transactions
ScreenshotChain and bank transfers with named ends, and the settle actions on an unmatched deposit
Transactions. Both ends of every transfer, named.
Back office · Reconciliation
ScreenshotThe 5 December run at 12:22 UTC: 22 checks, 0 breaks
Reconciliation. The clean run on 5 December.
Back office · Audit log
ScreenshotRecent entries and the "chain ok" result
Audit log. Hash-chained, verified from the page.
07 · Real tests

Real tests, real transactions.

Every completed order below is a testnet transaction you can open in a block explorer.

DateOrderPaidReceivedNetworkTransaction
8 NovBuy, SEPAEUR 10.008.905245 USDCStellared9aff…18be
8 NovBuy, SEPAEUR 5.003.339466 USDCStellaraadd7e…1ceb
8 NovBuy, cardEUR 10.008.905245 USDCStellarca95a9…0a65
8 NovSell10 USDCEUR 6.93Stellar8f8fe9…5318
13 NovBuy, SEPAEUR 5.003.314340 USDCStellarfd665f…0d7d
20 NovBuy, SEPAEUR 250.00270.640513 USDCEthereum Sepolia0xd8834b…3e44
20 NovSell250.0077 USDCEUR 224.53Stellar5e13f0…6e15
30 NovBuy, SEPAEUR 15.7415.009864 USDCStellarf841a4…e5cc
30 NovBuy, SEPAEUR 10.008.739368 USDCStellar380bb0…623f
3 DecBuy, SEPAEUR 10.008.658819 USDCStellar422298…1233

Treasury float came from Circle Mint, withdrawn to our Ethereum hot wallet on 20 November: 8,892.39 USDC (0x3f9168…4bdb) and 7,000 USDC (0xf4ffa5…7d57).

We tested the paths that go wrong, too.

  • A refund. A EUR 50 buy was returned, and Swan paid the money back by SEPA.
  • A forgotten memo. A customer's first transfer on Stellar had no memo. The app kept it as unmatched, opened a suspense case, and staff settled it from the Transactions page.
  • No float. A card buy came in while the Stellar hot wallet was empty. The order waited for liquidity for 20 minutes and delivered once the wallet was refilled.
  • A screening hold. A USD buy is held at screening for review. Nothing moves until staff clear it.
  • No deposit. Three sells expired after an hour with no coins received.
sepolia.etherscan.io
ScreenshotThe 270.64 USDC buy, from our hot wallet to the customer's MetaMask
On chain. The largest buy, on Etherscan.
Customer wallets
ScreenshotUSDC arriving in Varial on Stellar and MetaMask on Sepolia
In the wallet. What the customer sees.
Swan dashboard · Payouts
ScreenshotThe SEPA payouts for the two sells and the refund
At the bank. The euro side, at Swan.
08 · Reconciliation

Reconciliation told us the truth.

Every night at 03:17 UTC, the app compares each hot wallet's balance on chain, Circle's balance and the bank with what the books say. Any difference opens a case.

Breaks found, per runBreaksClean
30 runs, 7 November to 5 December 2026. The last bar is the run at 12:22 UTC on 5 December, after the corrections.

The breaks were not bugs in the order flow. Each was a real movement the books had not recorded:

  • Faucet top-ups to the Stellar wallet, sent before the app kept unmatched deposits.
  • 7,000 USDC sent to Circle straight from the DFNS dashboard, outside the app.
  • Circle's opening balance of 8,892.39 USDC, never booked.
  • A 100 USDC cross-chain transfer from Stellar to Ethereum that arrived as 99.944839 USDC after fees.

On 5 December each one was booked with a sealed correcting entry. The 12:22 UTC run checked 22 balances and found 0 breaks.

The lesson

A custody provider's dashboard is a second door into your treasury. Restrict who can use it, and rely on reconciliation to catch what goes through it.

09 · New DFNS organisation

A new DFNS organisation, in one day.

On 5 December the DFNS trial organisation was two days from closing. We moved to a new one the same day, with no code change.

  1. New organisation, a service account with the same signing key, an admin role and a webhook. Two secrets updated.
  2. The bootstrap created three hot wallets through the API and prepared the Stellar account: XLM, then the USDC and EURC trustlines.
  3. Balances moved from the old wallets to the new ones: 7 transfers.
  4. Old wallets retired in the books, six sealed entries posted, reconciliation run.
Result on 5 December

20,433.9 USDC and 100 EURC across three hot wallets. The books equal the chain on every line.

10 · Not done

What is not done yet.

  • No licence. Testnet coins and sandbox bank money only.
  • Card payments use a sandbox acquirer until Swan opens card acquiring on the project.
  • USD runs on a sandbox bank. Swan is EUR only.
  • Automatic rebalancing from Circle is blocked by an address book error on Circle's side. The hot wallets have to be registered in the Circle console first.
  • One buy waits for a refund. It was placed on Base Sepolia, which we retired mid-test.
11 · Lessons

What we would tell a team building one.

  1. Decide licence and partners before writing code. They set the architecture.
  2. Put every provider behind an interface with a mock. You test on day one and change partners in a day.
  3. Build the ledger and reconciliation first. They are what tell you the truth.
  4. Design deposit matching for how people really send. They forget memos, round amounts and send twice.
  5. Expect provider limits to shape the design: wallet caps, signature quotas, faucets, address books.
Building a ramp?

We run this as an engagement.

The decisions, partner selection, the build and the back office, with the same method and the same evidence.

Book a callPayment partners

Read the method: Stablecoin Ramp Architecture