On-Chain Voting Costs
On-Chain Voting Costs documents the economics of blockchain-based voting for the Sanctuary Protocol, comparing L1, L2, and Merkle-anchored approaches.
Current Conditions (Feb 2026)
| Metric | Value |
|---|---|
| | ETH Price | ~$2,250 |
| | L1 Gas | ~0.5-1 gwei (sometimes <0.1 gwei off-peak) |
| | L2 Transaction (Base/Arbitrum) | ~$0.005-0.01 |
Per-Vote Gas Estimate
The Vote struct requires approximately 3-5 storage slots on-chain:
- issueID
- optionID
- weight
- proximity
- signature
This translates to roughly 100,000 gas per vote cast.
Cost Per Single Vote
| Chain | Gas Price | Cost/Vote |
|---|---|---|
| | Ethereum L1 | 1 gwei | $0.22 |
| | Ethereum L1 | 0.5 gwei | $0.11 |
| | Ethereum L1 | 0.03 gwei (off-peak) | $0.007 |
| | Base / Arbitrum | N/A | $0.005 - $0.01 |
Cost Per Issue (At Scale)
| Voters/Issue | L1 (1 gwei) | L2 (Base) |
|---|---|---|
| | 100 | $22 | $0.50 - $1 |
| | 1,000 | $220 | $5 - $10 |
| | 10,000 | $2,200 | $50 - $100 |
| | 100,000 (regional) | $22,000 | $500 - $1,000 |
| | 1,000,000 (national) | $220,000 | $5,000 - $10,000 |
Monthly Estimate
Assuming 50 active issues with an average of 1,000 voters each:
| Approach | L1 | L2 |
|---|---|---|
| | Fully on-chain | $11,000/mo | $250-500/mo |
| | Commit-reveal (private voting) | $22,000/mo | $500-1,000/mo |
The Cheaper Option: Merkle Root Anchoring
Individual votes don't need to be on-chain. Omxus already has the Bitcoin anchoring service that commits Merkle Mountain Range roots via OP_RETURN. The same pattern works for votes:
How It Works
- Votes cast off-chain through the mesh, signed with Ed25519 from HER
- Each epoch, all votes are hashed into a Merkle tree
- One root is committed on-chain (or on Bitcoin)
- Any voter can verify their vote is included via Merkle proof
Merkle Anchoring Costs
| Approach | Cost/Issue | Cost/Month (50 issues) |
|---|---|---|
| | Merkle root on L1 | $0.22 | $11 |
| | Merkle root on L2 | $0.01 | $0.50 |
| | Merkle root on Bitcoin | ~$1-5 (OP_RETURN) | $50-250 |
The cost is the same whether 100 or 1,000,000 people vote.
Recommended Architecture
┌─────────────────────────────────────────────────────────────────┐
│ VOTERS │
│ Sign votes with HER Ed25519 keys │
└─────────────────────────────────┬───────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ MESH NETWORK │
│ Votes distributed across mesh nodes │
│ (no single point of failure) │
└─────────────────────────────────┬───────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ MERKLE AGGREGATION │
│ All votes hashed into Merkle tree per epoch │
└─────────────────────────────────┬───────────────────────────────┘
│
┌─────────────┴─────────────┐
▼ ▼
┌───────────────────────────┐ ┌───────────────────────────────┐
│ L2 (Base/Arbitrum) │ │ Bitcoin (via OP_RETURN) │
│ ~$0.01/epoch │ │ ~$1-5/epoch │
│ Fast finality │ │ Permanent, immutable │
└───────────────────────────┘ └───────────────────────────────┘
Verification
Any voter can independently verify their vote was counted:
- Request their vote record from any mesh node
- Request the Merkle inclusion proof
- Verify the proof against the on-chain root
- The on-chain root is immutable and timestamped
This provides verifiability without per-vote gas costs.
Why Not Full On-Chain?
| Concern | On-Chain | Merkle Anchored |
|---|---|---|
| | Cost at national scale | $220,000/issue | $0.01-5/issue |
| | Privacy | All votes public | Votes can be encrypted |
| | Scalability | Limited by block space | Unlimited |
| | Verifiability | Direct | Via Merkle proof (equally secure) |
| | Censorship resistance | High | High (distributed mesh + anchor) |
Implementation Status
The components for this architecture already exist:
- Mesh network:
services/mesh/- operational - HER signatures: Ed25519 signing built into identity layer
- Bitcoin anchoring:
services/anchor/bitcoin.go- operational - Merkle aggregation: Needs to be added (straightforward)
Total infrastructure cost for voting at any scale: under $50/month.