On-chain
Transactions, wagers and outcomes are recorded and settled directly on a blockchain. Custody and finality are on-chain, lowering trust but adding block latency and fees.

Choose where to put trust: on-chain for auditable money movement, off-chain for instant play.
In a product review, stakeholders demand ‘verifiable' settlement while growth wants frictionless onboarding. That tension is the core: trustless, auditable settlement (on-chain) versus instant, low-cost UX (off-chain). Frame the decision as three questions: how much money per bet, how many transactions, and how critical impartial settlement is. If bets are large or regulatory scrutiny high, lean on on-chain; if high-frequency micro-bets with low margin, off-chain wins.
On-chain
Transactions, wagers and outcomes are recorded and settled directly on a blockchain. Custody and finality are on-chain, lowering trust but adding block latency and fees.
Off-chain
Bets and matches happen off-ledger (central servers or P2P). Fast and cheap, but settlement requires trusting an operator or counterparty.
Hybrid
Combines off-chain execution with on-chain dispute or finalization (state channels, custodial nets, oracle writes). Balances speed and cost with verifiable on-chain fallback.
Settlement locus
On-chain: blockchain. Off-chain: operator servers or channel state. Hybrid: day-to-day off-chain, on-chain for disputes.
Custody
On-chain: user-held keys. Off-chain: operator/escrow custody. Hybrid: channel or operator custody with on-chain fallback.
Latency & fee profile
On-chain: higher latency and gas fees. Off-chain: low latency, low cost. Hybrid: low-latency normally, occasional on-chain cost.
Estimate average bets per user and typical stake size; compute peak concurrency. If bets are frequent and low-value, off-chain usually wins; sparse, high-value events lean on-chain for settlement security.
Define required trustlessness: is cryptographic finality mandatory, or is operator-escrow acceptable? Record permitted dispute windows and the role of arbitration.
Translate user latency expectations into maximum confirmation time and a per-bet fee ceiling. Use these thresholds to rule out architectures that cannot meet SLAs.
Confirm legal custody, KYC/AML obligations and partner SLAs. Some jurisdictions or liquidity providers mandate on-chain settlement or prohibit certain off-chain custody models.
Model cost per bet at expected volume, compare revenue scenarios, then pilot the chosen mode. Iterate using the cost-per-bet calculator.
Start with four common patterns and the product types that benefit most from each.
Fully on-chain keeps matching and settlement in smart contracts — maximum trustlessness and verifiability at the cost of higher latency and fees. Best for high‑stakes markets, provably fair contests, and products that need public audit trails.
Order matching happens off‑chain; only final payouts hit the blockchain. This gives fast UX and lower cost while keeping settlement trust minimized. Common for sportsbooks and high‑volume exchanges; combine with gasless flows and meta‑transactions to hide gas from users.
Channels enable instant, cheap microbets between consenting parties with occasional on‑chain anchoring. Ideal for head‑to‑head microbet apps and social wagering where participants stay online.
L2 rollups batch many bets on‑chain to cut fees and increase throughput — a practical scale solution for high‑frequency markets. Explore specific low‑fee options in the rollup product roundup.
Hybrids often deliver the best UX but add operational burden: dispute handling, operator staking, and longer withdrawal paths. Match complexity to expected volume and trust model.
Use hybrids when user experience and cost both matter — for example, centralized matching plus on‑chain settlement. Expect extra operational work: monitors for fraud, faster rollback procedures, and clear user messaging about finality.
On‑chain VRF is best when verifiable, trustless randomness matters — it publishes proofs to the ledger but costs gas and increases latency. External RNG oracles are cheaper and faster but require cryptographic commitments or operational safeguards; compare concrete tradeoffs in the blockchain randomness options overview.
VRF makes outputs auditable but doesn't remove all influence: block producers can affect timing and some inputs on weak-finality chains. Mitigate by adding commit–reveal windows, economic stakes, or cross-checks against independent sources.
Push sends updates as events happen for lowest latency but requires high availability; pull polls oracles on demand to reduce provider load at the cost of latency; batching groups many events to save gas while trading off settlement timeliness — see practical patterns in oracle delivery strategies for live sports.
Pause affected markets, switch to a vetted secondary feed or cached-state mode, and open a manual settlement window with human review if needed. Keep an on‑call runbook and automated reconfigure scripts ready; operational steps are expanded in oracle failover strategies.
Verify secondary provider credentials and latency.
Ensure cached event timestamps map to on-chain settlement rules.
Communicate a clear pause/reopen policy to users and ops.
Public mempool enables MEV and front‑running.
Visibility allows reordering.
Requires custody, fraud proofs, and dispute handling.
Centralized components can be hacked or misbehave.
Audits help but don't stop MEV, replay, or oracle exploits.
Economic and runtime protections remain necessary.
See front‑running prevention guidance.
Run fuzzing and adversarial tests.
Begin with the smart contract audit checklist for sportsbook‑specific tests and common attack vectors.
Mainstream users expect betting apps to feel like any web product: no gas jargon, minimal wallet setup, and fast confirmation feedback. Start with progressive onboarding that reveals crypto concepts only when necessary—see common on-chain UX flows for non-crypto users for pattern examples.
Implementation levers include meta‑transactions (relayers submit transactions), sponsored gas (platform pays fees), and account‑abstraction patterns that let users interact without managing native gas. These improve UX but add relayer infrastructure and potential centralization/trust tradeoffs.
On the contract side, reduce per‑bet costs with storage packing, fewer external calls, batched settlements and signature‑based actions. For concrete techniques and benchmarks, consult practical guidance on cutting contract gas costs. Note that deep gas optimizations can increase code complexity and audit effort.
A sensible path: hide gas first to grow adoption, then invest in relayers and contract optimizations while monitoring cost and security.
Better UX costs ops. Sponsored gas and meta‑txes reduce friction but require relayer ops and trust; contract optimizations save fees but complicate audits.
Instrument finality, mempool depth, oracle liveness, and fee spikes with alerts and dashboards.
Define per-asset confirmation waits and show them to users; use the confirmation guidance when setting counts.
Batch payouts in scheduled windows to reduce costs and allow dispute intake before settlement.
Publish SLA, evidence formats, and an on-chain challenge path; automate escalation timers.
Log proofs, reconcile balances, and run periodic integrity checks to catch edge cases.
Longer waits raise perceived security but hurt immediacy. Short waits speed UX but require stronger dispute tooling.
Show a clear pending state and ETA. Offer partial instant credits only if backed by reliable off-chain guarantees. Communicate finality milestones to reduce chargeback anxiety.Recommendations by archetype: Microbet products: prioritize low latency and minimal per-bet cost — off‑chain or hybrid settlement with relayers is appropriate. High‑stakes markets: favor on‑chain finality, audited custody and verifiable oracles despite higher fees. Pooled casual betting: optimize UX with off‑chain aggregation and periodic on‑chain settlement. Marketplaces and exchanges: adopt hybrid architectures to balance custody, liquidity and dispute resolution. Next step: run the checklist, estimate per‑bet cost with the linked model, select an architecture pattern and follow the recommended technical reads.