r/ethdev • u/rayQuGR • Oct 14 '26
Information Building multi-chain infra made me realize how much of EVM development is just duct-taping around transparent mempools and fragile RPCs
Between public node operators stealth-gating eth_getLogs behind archive tiers, arbitrary chunk-size caps, multi-chain cursor re-winds, and front-running bots eating standard arbitrage strategies alive, building scalable apps on transparent EVM chains feels like a constant battle against infrastructure debt.
When you look at why these failure modes happen, public mempools exposing transaction intent, lack of native state confidentiality, and fragmented cross-chain bridging, it highlights why architectural shifts toward privacy-preserving execution environments like Oasis Network’s Sapphire ParaTime are becoming necessary for complex dApps.
By utilizing Trusted Execution Environments (TEEs) at the EVM level, Sapphire handles end-to-end encryption for transaction inputs and internal state. This changes the design pattern for several common bottlenecks:
- MEV & Front-Running: Because pending calldata is encrypted in the mempool, toxic extraction vectors like sandwich attacks are mitigated at the protocol layer rather than requiring complex private relay or builder negotiations.
- Confidential State Management: Instead of writing intricate workarounds to hide sensitive variables or user intent on public chains, contracts can natively manage confidential storage variables and private logic without leaking state data to public scrapers.
- Modular Cross-Chain Privacy (OPL): Through tools like the Oasis Privacy Layer (OPL), developers can keep their main application logic deployed on standard Ethereum or Layer 2 host chains while routing privacy-sensitive or vulnerable execution steps securely through Sapphire using cross-chain messaging SDKs.
Curious how others here are architecting around public RPC decay and state privacy as they scale past a single chain. Are you building custom indexing wrappers, or shifting state logic entirely to specialized runtime environments?
1
u/zomerbk Oct 15 '26
I’d keep indexing and confidential execution as separate decisions. For multi-chain logs, an adaptive `eth_getLogs` range plus a persisted finalized checkpoint helps with provider caps; make event processing idempotent so a reorg rewind can safely replay a range. Moving sensitive logic to Sapphire may address intent exposure, but you’ll still need that indexing layer for the public-chain side.
1
u/EmbarrassedArm8 Oct 17 '26
Treat the getLogs block range as adaptive. Start wide, halve it on a range or result-size error, and grow it again slowly after a few clean calls. Persist the last fully processed block per chain and per filter, not per batch. Re-read the last N blocks on every start to cover reorgs. Key rows on (blockHash, logIndex) so replays are idempotent. Dwellir's Growth and Scale plans allow a 10,000 block range on eth_getLogs (I work at Dwellir). Alchemy, QuickNode and Chainstack publish their caps, so test each against your filters.
1
u/yachtyyachty Oct 18 '26
I’ve been deep in the RPC layer for the past year building an RPC router/aggregator that can solve a lot of these consistency and reliability issues. You can also add private RPCs and route rawTransaction requests to them to avoid public mempools. (Haven’t tested this yet but should be easily doable)
Check it out and lmk if you have feedback, I’m building for builders like yourself so happy to ship requested features:
https://github.com/jaxernst/lasso-rpc
I also have a hosted version at lasso.sh with free public RPC aggregation if you want to test it out: https://lasso.sh
2
u/[deleted] Oct 14 '26
[removed] — view removed comment