Skip to content

Chainlink-compatible oracle infrastructure for Somnia

L1 blockchain infrastructure

5
oracle nodes in OCR consensus
3
mainnet price feeds: USDC, ETH, BTC

In 2025 Somnia was a new high-throughput L1 with a growing developer ecosystem and 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: OCR-based price feeds for USDC, ETH and BTC on mainnet, a cluster of five oracle nodes running OCR consensus, and VRF-based randomness infrastructure.

The feeds aggregated market data from multiple external providers into on-chain prices. It gave developers a shared data layer without each team operating its own oracle infrastructure, and Protofire operated it after launch until the engagement ended in late 2025.

Snapshot
Client
Somnia
Sector
L1 blockchain infrastructure
Chains
Somnia
Engagement
Delivery contract: design, build, production deployment and operation after launch (2025)
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 at the time.

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 OCR-based price feeds for USDC, ETH and BTC, each aggregating data from multiple external providers, with on-chain aggregator contracts that delivered prices to Somnia smart contracts.

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

We also shipped operational tooling and documentation for the operators. Because the interfaces matched Chainlink's, a team familiar with Chainlink price feeds could integrate without learning a new API.

03

Results

Protofire operated the price feeds and the node cluster after launch until the engagement ended in late 2025.

92
days from design to production deployment
3
OCR-based price feeds on Somnia mainnet: USDC, ETH and BTC
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 in 2025: the price feeds, the oracle-node cluster, the aggregator contracts, and the VRF infrastructure. Our work was 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, an oracle-node cluster, and VRF.
What did Protofire deliver?
OCR-based price feeds for USDC, ETH and BTC on mainnet, 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.

Get a proposal

Tell us what you are building. An engineer reads it, we have a short call, and the written proposal follows within one business day.

Luis MedeirosField CTO, reads every request · LinkedIn

A demo or repository link also works.