5 min read

Why You Need an Internal Ledger When Building on the Stablecoin Chain

A USDC coin recorded into a ledger with debit and credit columns
On this page

Gregory lives in San Diego and needs to send $500 to Mateo, his supplier in Mexico. He uses Coastline, a cross-border payments company that moves money in stablecoins.

When Gregory initiates the payment, Coastline debits $500 from his customer balance and sends 500 USDC from its wallet to the wallet of its local payment partner on Solana. The transaction is confirmed on the blockchain and the USDC arrives in the partner's wallet.

Meanwhile, Mateo is still waiting for his pesos.

Coastline now needs to convert the USDC into Mexican pesos and arrange the payout to Mateo. Its local partner handles the conversion and pays Mateo from its local peso liquidity. Coastline tracks the transaction from Gregory's initial debit through to Mateo receiving the money.

What the chain records

When Coastline sends USDC to its partner, Solana records the transaction. This includes:

  • The sending wallet
  • The receiving wallet
  • The asset transferred
  • The amount transferred
  • The transaction signature and confirmation status

Anyone with the transaction signature can look up the transaction and verify that 500 USDC moved between the two wallets.

The Bank of England describes these ledgers as the infrastructure that records a stablecoin moving from one holder to another. That is how the transfer function gets done, the job a payment-system operator or a bank's internal ledger performs in other payment systems.

A stablecoin payment involves several financial events

Gregory's $500 payment moves through five stages before Mateo receives his pesos. Each stage is a record Coastline keeps.

StageWhat happensWhat Coastline records
Customer debitCoastline debits $500 from Gregory's customer balanceThe customer debit and payment reference
Stablecoin transferCoastline sends 500 USDC to its partner's wallet on SolanaThe amount transferred, wallet addresses and blockchain transaction signature
ConversionThe partner converts the 500 USDC into Mexican pesos, after applicable feesThe amount converted, fees charged and exchange rate
Payout processingCoastline instructs its partner to pay Mateo using its local peso liquidityThe payout instruction, partner reference and expected payout amount
Beneficiary payoutMateo receives the pesos in his accountThe amount paid, payout confirmation and final status

Coastline's local partner handles the conversion and payout, while Coastline's internal ledger connects those stages to Gregory's original payment.

What happened to Gregory's $500?

The amount Gregory sends and the amount Mateo receives will differ because the payment involves conversion costs and fees.

For this example, assume Coastline sends 500 USDC to its local partner. The partner charges a $0.50 fee, while the conversion includes a $0.40 spread. Coastline also pays a $0.10 network fee separately.

This example uses an illustrative exchange rate of MXN 20 per dollar and treats 1 USDC as $1.

TransactionAmountWhat it means
USDC sent to partner$500.00The amount transferred on Solana
Network fee$0.10Paid separately by Coastline
Partner fee$0.50Charged by the local payment partner
Conversion spread$0.40Cost included in the conversion
Amount available for conversion$499.10The amount remaining after the partner fee and spread
Exchange rateMXN 20/$Illustrative rate applied to the conversion
Amount payable to MateoMXN 9,982The expected beneficiary payout

If Gregory asks why Mateo received MXN 9,982 instead of the equivalent of $500, Coastline can trace the amount through the conversion rate and fees.

These figures need to be recorded against the same payment. An illustrative view of Coastline's internal ledger could look like this:

EntrySourceDestinationAmount / status
Customer debitGregory's balancePayment in progress$500.00 · Debited
USDC sentPayment in progressDue from partner500 USDC · Confirmed · Solana signature
Network feeCoastline's USDC walletNetwork fee expense$0.10 · Paid by Coastline
Partner feeDue from partnerPartner fee expense$0.50 · Recorded
Conversion spreadDue from partnerFX spread expense$0.40 · Recorded
PayoutDue from partnerPayable to MateoMXN 9,982 · Pending

Gregory's $500 leaves payment in progress when the USDC is sent, and that entry stores the Solana signature. The partner fee and the spread come out of the amount due from the partner. What remains is MXN 9,982 payable to Mateo, still pending. Solana confirmed the send. It did not confirm Mateo's payout.

The transfer can be confirmed while the payment is still outstanding

Now imagine Gregory's payment has progressed through the conversion stage. His customer account has been debited, the USDC transfer is confirmed, and the partner has converted the funds into pesos.

Coastline has instructed the partner to pay Mateo, but the payout hasn't been completed. Mateo checks his account and the money hasn't arrived.

Coastline can verify that the USDC reached its partner and that the conversion took place. It can also see that the payout is still pending.

The MXN 9,982 remains an outstanding payout in Coastline's internal ledger. The payment stays open until the partner confirms that Mateo has received the funds or the payout is reversed and the relevant records are adjusted.

A confirmed blockchain transfer can still leave Mateo waiting for his money. Coastline needs its internal ledger to see that the payout remains outstanding, identify where the payment needs attention and follow up with its partner. It also gives customer support the information needed to answer Gregory when he asks about the status of his transfer.

Keep the chain. Keep your ledger.

As you build a stablecoin payment product, the blockchain becomes part of your payment infrastructure. Your business also needs to manage customer balances, track fees, account for conversions, reconcile partner activity and maintain an accurate record of its financial position. These responsibilities grow alongside your payment volume.

Your team needs a consistent financial record that connects customer payments, on-chain transfers, partner transactions and payouts. This gives you a clear view of the money moving through your business and helps you account for the financial activity your product creates.

An internal ledger gives you that record. It connects the financial activity behind your payment product while the blockchain handles the movement and verification of stablecoins.

With Blnk, you can build and maintain the internal ledger behind your stablecoin payment flows, linking customer balances, fees, conversions and payout obligations to the on-chain transactions they relate to.