Skip to main content

Payments Platform

The technical stack for stablecoin-powered treasury operations.

The ABCD Payment Stack

LayerFunctionPayment Application
A (AI)Optimize routingMEV algorithms, FX timing, risk scoring
B (Blockchain)Prove settlementImmutable records, atomic execution
C (Crypto)Align incentivesStablecoin liquidity, solver competition
D (DePIN)Physical reachPOS terminals, ATMs, off-ramp networks

The synthesis: AI decides → Stablecoin executes → Blockchain proves → DePIN distributes.


Architecture Pattern

┌─────────────────────────────────────────────┐
│ EXPERIENCE LAYER │
│ Treasury Dashboard, Payroll, Commerce │
├─────────────────────────────────────────────┤
│ DOMAIN SERVICES │
│ ScheduleDisbursement(policy, context) │
│ ExecutePayment(intent, constraints) │
├─────────────────────────────────────────────┤
│ ROUTING LAYER │
│ Rail selection, compliance, FX, risk │
│ (Your telco LCR expertise lives here) │
├─────────────────────────────────────────────┤
│ INFRASTRUCTURE ADAPTERS │
│ Solana | Base | Tron | SWIFT | Bank rails │
└─────────────────────────────────────────────┘

Hex architecture principle: Rails are adapters. Routing and experience are where defensibility lives.


Layer Details

A — AI Layer (Routing Intelligence)

The "MEV" opportunity in payments.

ComponentFunctionImplementation
Cost OracleReal-time rail pricingAPI aggregation, ML pricing
RouterOptimal path selectionConstraint optimization
FX TimingWhen to convert currenciesTime series prediction
Risk ScoringCounterparty, complianceRule engine + ML

Gap status: 🔴 — No dominant player. This is the build opportunity.

B — Blockchain Layer (Settlement)

ChainStrengthsPayments Use Case
SolanaSpeed, cost, stablecoin depthHigh-volume B2B
BaseCoinbase ecosystem, complianceUS-centric treasury
TronUSDT dominance, Asia corridorsEmerging market flows
EthereumSecurity, ecosystemHigh-value, infrequent

The principle: Chains are adapters. Don't couple to one.

C — Crypto Layer (Stablecoins)

AssetIssuerMarket CapBest For
USDCCircle$30B+Compliance, US-centric
USDTTether$100B+Asia corridors, liquidity
EURCCircleGrowingEU treasury
PYUSDPayPalGrowingConsumer integration

Key insight: Stablecoins aren't volatile. The exposure window is hours.

D — DePIN Layer (Physical Distribution)

InfrastructureStatusPayments Role
Off-ramp networks🟢 GrowingLast mile to bank accounts
POS terminals🟡 EmergingConsumer checkout (future)
ATM networks🔴 EarlyCash in/out
Edge compute🟡 EmergingLocal compliance, latency

Integration Architecture

ERP Integration

┌─────────────────────────────────────────────┐
│ ERP SYSTEM │
│ (SAP, Oracle, NetSuite, QuickBooks) │
├─────────────────────────────────────────────┤
│ AP MODULE │
│ Payment instruction → API call │
├─────────────────────────────────────────────┤
│ ROUTING SERVICE │
│ Evaluate rails → Select optimal → Execute │
├─────────────────────────────────────────────┤
│ SETTLEMENT LAYER │
│ SWIFT adapter | Stablecoin adapter │
├─────────────────────────────────────────────┤
│ RECONCILIATION │
│ Status → ERP update → GL posting │
└─────────────────────────────────────────────┘

API Structure

POST /payments
{
"intent": {
"amount": 50000,
"currency": "USD",
"recipient": {
"name": "Supplier Co",
"bank_account": "...",
"country": "MX"
},
"deadline": "2025-02-15"
},
"constraints": {
"max_cost_bps": 100,
"compliance": ["ofac", "aml"],
"preferred_rail": null // let router decide
}
}

Response:
{
"payment_id": "pay_123",
"selected_rail": "stablecoin_bridge",
"estimated_cost_bps": 65,
"estimated_arrival": "2025-02-12T14:00:00Z",
"status": "pending_confirmation"
}

Tools and Services

Stablecoin Infrastructure

ServiceFunctionIntegration
Circle MintUSDC mint/redeemAPI, bank connection
BridgeOrchestration + off-rampAPI
BVNKB2B payments, 100+ countriesAPI
FireblocksCustody, signingWallet infra

Routing and Optimization

ServiceFunctionIntegration
Li.FiCross-chain routingAggregator API
SocketBridge aggregationAPI
0xDEX aggregationAPI
CoW ProtocolMEV protectionIntent-based

Compliance

ServiceFunctionIntegration
ChainalysisOn-chain analyticsAPI
EllipticTransaction monitoringAPI
TRM LabsRisk intelligenceAPI
OFAC listsSanctions screeningData feed

Data Model

Payment Intent

FieldTypeDescription
intent_idUUIDUnique identifier
amountDecimalPayment amount
source_currencyStringe.g., USD
dest_currencyStringe.g., MXN
recipientObjectBank details, country
deadlineDateTimeRequired arrival
constraintsObjectMax cost, compliance rules

Rail Selection

FieldTypeDescription
rail_idStringe.g., stablecoin_bridge
estimated_costDecimalBasis points
estimated_timeDurationSettlement time
compliance_statusStringCleared, pending, blocked
fx_rateDecimalApplied rate

Settlement Record

FieldTypeDescription
settlement_idUUIDUnique identifier
on_chain_txStringBlockchain transaction hash
off_ramp_refStringProvider reference
actual_costDecimalRealized cost
arrival_timeDateTimeConfirmed delivery
audit_trailArrayCompliance checkpoints

Build vs. Buy

ComponentBuildBuy
Routing intelligenceYour differentiation
Treasury UICustom for CFO personaGeneric dashboards exist
Settlement railsBridge, BVNK (proven)
CustodyFireblocks, Anchorage
ComplianceChainalysis, TRM
ERP connectorsCustom per ERPSome exist (Coupa, SAP add-ons)

The strategy: Build routing + experience. Buy everything else.


Standards

StandardPurposeRelevance
ISO 20022Financial messagingSWIFT replacement, interop
EIP-4337Account abstractionUser experience, gasless
EIP-3009Transfer with authorizationPermit patterns
GENIUS ActUS stablecoin frameworkRegulatory compliance
MiCAEU crypto regulationEuropean treasury ops

Context