Payments

What is a ledger database?

A ledger database is a database purpose-built to store financial transaction records with immutability, double-entry accounting constraints, and a complete audit trail. It is the technical infrastructure layer that a payment ledger runs on. Where a general-purpose database stores and updates data, a ledger database only appends. No record can be modified or deleted once written.

This matters because financial data has different integrity requirements than most other data. A corrupted transaction record is not just a bug. It is a lost fund, an incorrect balance, or a compliance violation.

How does a ledger database differ from a regular database?

Standard relational databases like PostgreSQL or MySQL can be used for financial record-keeping, and many early fintechs start this way.

The problem is that these databases do not enforce financial accuracy natively. Immutability, idempotency, and double-entry constraints have to be implemented in application code, where they can be bypassed by a bug or eroded as the codebase grows.

A purpose-built ledger database enforces these properties at the infrastructure level:

  • The application cannot write a non-double-entry transaction
  • No record can be overwritten or deleted
  • Duplicate transactions are rejected by design

The correctness guarantee moves from application-layer convention to database-layer enforcement.

What are the core properties of a ledger database?

Here are the main properties 

Immutability: The database is append-only. New transactions create new records. No existing record can be overwritten or deleted. This produces a tamper-evident history of every financial event, which is essential for audits and dispute resolution.

Idempotency: Duplicate transactions are prevented by design. If the same payment instruction is submitted twice due to a network retry or a bug, only one transaction is recorded. Most ledger databases implement this via idempotency keys on each write.

Double-entry bookkeeping: Every transaction credits one account and debits another by the same amount. Enforcing this at the database layer means no partial failure or race condition can produce an unbalanced entry.

Concurrency controls: A ledger database handles high volumes of simultaneous writes without allowing operations to interfere in ways that produce incorrect balances.

What is the difference between a ledger database, a payment ledger, and a general ledger?

These three terms are related but describe different things.

Term What it is
Ledger database The technical infrastructure: the database system with immutability and accounting constraints
Payment ledger The record built on top: entries tracking payment transactions, balances, and positions
General ledger The accounting record for financial reporting, maintained in software like NetSuite or QuickBooks

A ledger database is what you build on. A payment ledger is what you build. A general ledger is what the payment ledger feeds into.

Is a ledger database the same as a blockchain?

No. A blockchain is a specific type of distributed ledger database where records are organized in cryptographically linked blocks and validated by a decentralized network.

It shares the immutability property but adds decentralization, which most enterprise financial applications do not need. Most payment platforms use a centralized ledger database for their core financial records. Blockchains are used for on-chain settlement of crypto assets including stablecoins, where decentralization and public verifiability are the point.

Why do payment platforms use dedicated ledger databases?

As payment platforms scale, general-purpose databases create operational problems that ledger-specific infrastructure solves:

  • Balance accuracy: Race conditions in a standard database can produce incorrect balances at high volumes. Ledger databases with proper concurrency controls prevent this
  • Audit trails: Regulators and auditors expect a complete, tamper-evident transaction history. An append-only ledger makes reconstruction trivial
  • Reconciliation: Double-entry enforcement at the database layer means every transaction is guaranteed to balance before it is written, which simplifies downstream reconciliation
  • Virtual accounts: Platforms holding funds for multiple clients in pooled accounts use ledger databases to track each client's sub-balance with the accuracy required for pass-through FDIC insurance and regulatory compliance

Commercial options include Modern Treasury Ledgers, Twisp's Financial Ledger Database, and Tigerbeetle, an open-source high-performance financial database. Amazon QLDB was deprecated in 2025. Most larger fintechs build proprietary ledger systems on top of Postgres, accepting the tradeoff of custom enforcement over out-of-the-box guarantees.

Continue learning

Ledger sharding

Category
Read more

Reconciliation API

Category
Read more

ACH debit

Category
Read more

Ledger database

Category
Read more

Stablecoin reserves

Category
Read more

Transaction reconciliation

Category
Read more

Closed loop payments

Category
Read more

Open loop payments

Category
Read more

Stablecoin sandwich

Category
Read more

ACH reversal

Category
Read more

Layer 2 blockchain

Category
Read more

Layer 1 blockchain

Category
Read more

FedNow API

Category
Read more

eCheck

Category
Read more

Payment controls

Category
Read more

Faster Payment System (FPS)

Category
Read more

Request for payment (RfP)

Category
Read more

Stablecoin orchestration

Category
Read more

ACH API

Category
Read more

BACS

Category
Read more

ACH payment returns

Category
Read more

Stablecoin yield

Category
Read more

Cash float

Category
Read more

BAI2

Category
Read more

Compliance risk management

Category
Read more

ACH transfer limit

Category
Read more

Deposit Account Control Agreement (DACA)

Category
Read more

Currency Transaction Report (CTR)

Category
Read more

Crypto faucet

Category
Read more

FBO account

Category
Read more

OTC trading

Category
Read more

Virtual IBAN

Category
Read more

Third-party payment

Category
Read more

Ledger balance

Category
Read more

Issuer Identification Number (IIN)

Category
Read more

CASPs (Crypto-Assets Service Providers)

Category
Read more

Section 314(b)

Category
Read more

OFAC (Office of Foreign Assets Control)

Category
Read more

Penny test

Category
Read more

Cash pooling

Category
Read more

Money transmission

Category
Read more

Core banking

Category
Read more

Sweep account

Category
Read more

Flow of funds

Category
Read more

Cash application

Category
Read more

Bank Reconciliation

Category
Read more

Clearing account

Category
Read more

Cash reconciliation

Category
Read more

Take rate

Category
Read more

CHAPS (Clearing House Automated Payment System)

Category
Read more

The Clearing House (TCH)

Category
Read more

A2A payments

Category
Read more

Bulk Electronic Clearing System (BECS)

Category
Read more

Real-time gross settlement (RTGS)

Category
Read more

Same-day ACH

Category
Read more

ACH return codes

Category
Read more

PYUSD (PayPal USD)

Category
Read more

Sort Code

Category
Read more

Atomic settlement

Category
Read more

Payment orchestration

Category
Read more

T2

Category
Read more

Financial Crimes Enforcement Network (FinCEN)

Category
Read more

Unified Payments Interface (UPI)

Category
Read more

Programmable money

Category
Read more

QR code payments

Category
Read more

CHIPS (Clearing House Interbank Payments System)

Category
Read more

Nacha

Category
Read more

FedACH

Category
Read more

XRP (Ripple)

Category
Read more

EURC (Euro Coin)

Category
Read more

USDC (USD Coin)

Category
Read more

USDT (Tether)

Category
Read more

Fedwire

Category
Read more

On-Demand Liquidity (ODL)

Category
Read more

Payment ledger

Category
Read more

Treasury management

Category
Read more

Blockchain

Category
Read more

Liquidity management

Category
Read more

Virtual Asset Service Provider (VASP)

Category
Read more

Fiat money

Category
Read more

Custodial vs Non-Custodial Wallets

Category
Read more

On/Off Ramps

Category
Read more

Payment reconciliation

Category
Read more

Payment Service Provider (PSP)

Category
Read more

Payment API

Category
Read more

Ethereum Virtual Machine (EVM)

Category
Read more

Stablecoin

Category
Read more

KYC (Know Your Customer)

Category
Read more

DEX (Decentralized Exchange)

Category
Read more

CEX (Centralized Exchange)

Category
Read more

Virtual account

Category
Read more

SPEI (Sistema de Pagos Electrónicos Interbancarios)

Category
Read more

Pix (Brazilian Instant Payment)

Category
Read more

RTP (Real-Time Payments)

Category
Read more

SWIFT

Category
Read more

ACH (Automated Clearing House)

Category
Read more

Electronic Funds Transfer (EFT)

Category
Read more

Wire transfer

Category
Read more

SEPA (Single Euro Payments Area)

Category
Read more

FedNow

Category
Read more
Download Due & Move Money Without Borders