Skip to content
L1 blockchain infrastructure

Chainlink-compatible oracle infrastructure for Somnia

4
OCR price feeds in production
5
oracle nodes in OCR consensus
99.9%
uptime through initial production monitoring

Somnia is a high-throughput L1 with a growing developer ecosystem, but it had no standardized oracle layer. Without trusted price feeds and verifiable randomness on the network, teams could not safely build lending markets, DEXs, derivatives, or on-chain games, because those applications depend on external data and provably fair randomness that a chain does not produce on its own.

Somnia contracted Protofire to close that gap. Within 92 days, Protofire designed and deployed a Chainlink-compatible oracle stack: four OCR-based production price feeds, a distributed cluster of oracle nodes running OCR consensus, and VRF-based randomness infrastructure. The feeds aggregate market data from multiple external providers and write on-chain price updates on a fixed interval. The result is a shared data layer developers can build on without each team operating its own oracle infrastructure.

Snapshot
Client
Somnia
Sector
L1 blockchain infrastructure
Chains
Somnia
Engagement
Delivery contract: design, build, and production deployment
Timeline
92 days from design to production

A price feed is only useful if the whole ecosystem treats it as the reference.

01

The barrier: no shared oracle layer

A blockchain does not know the price of ETH, and it cannot generate randomness that participants can trust, so any application that prices collateral, settles a derivative, mints a random NFT trait, or runs a lottery needs an oracle to supply that data. Those are the primitives underneath most DeFi and on-chain gaming, and none were available on Somnia in production form.

The alternative to a shared layer is every team standing up its own oracle, which does not hold up on a young network: running that infrastructure means operating a cluster of nodes, reaching consensus on each reported value, aggregating several external sources so no single feed is authoritative, and keeping aggregator contracts updated on a tight interval. Duplicating that per team fragments the ecosystem and widens the security surface, because a lending market and a DEX pulling from separate, unaudited feeds can disagree on the same asset. A price feed is only useful if the whole ecosystem treats it as the reference.

02

How Protofire built Somnia's oracle infrastructure

Protofire delivered the stack Chainlink's model calls for, adapted to Somnia's operational setup. We deployed four OCR-based price feeds, each aggregating data from multiple external providers, with on-chain aggregator contracts that deliver verified prices to Somnia smart contracts every 30 to 60 seconds.

Off-chain, we ran a distributed cluster with five oracle nodes participating in OCR consensus, hosted in isolated infrastructure so a single node failure does not stop reporting. For randomness, we deployed VRF Coordinator, subscription, and wrapper contracts, giving gaming and NFT applications provably fair randomness through interfaces developers already know.

We also shipped operational tooling and documentation so operators can participate in the network over time. Because the interfaces match Chainlink's, a team already familiar with Chainlink price feeds integrates without learning a new API.

03

Results

The price feeds and node cluster ran in production under Protofire's operation after deployment.

92
days from design to production deployment
4
OCR-based production price feeds live on the network
5
oracle nodes participating in OCR consensus
04

Proof pack

The price-feed work is public: somnia-price-feeds is Protofire's Hardhat project with the feed contracts, deployment tasks, and documentation. The wider engineering history sits in the Protofire GitHub org.

Technology stack

Chainlink OCRon-chain aggregator contractsVRF Coordinator/subscription/wrapperHardhatdistributed node cluster

FAQ

Did Protofire build Chainlink?
No. Chainlink builds the oracle protocol and its OCR and VRF designs. Protofire designed, deployed, and operated a Chainlink-compatible oracle stack on Somnia: the price feeds, the oracle-node cluster, the aggregator contracts, and the VRF infrastructure. Our work is the deployment and operation on Somnia, not the Chainlink protocol.
Is this the same as the Somnia explorer case?
No. Protofire built the Somnia block explorer on Blockscout in a separate engagement. This case covers the oracle and randomness infrastructure only: OCR price feeds, a distributed oracle-node cluster, and VRF.
What did Protofire deliver?
Four OCR-based production price feeds aggregating data from multiple providers, a five-node oracle cluster running OCR consensus, VRF Coordinator, subscription, and wrapper contracts for randomness, plus the operational tooling and documentation to run it.

Book a call with Alejandro Losa

Schedule a call with our Web3 Solution Architect to receive practical recommendations and a prompt proposal for upgrading your solution.

Protofire 2026. All rights reserved

Message us on Telegram