From Explorer to Oracles: Our Long-Term Collaboration with the Somnia Network
It has been quite a journey for us at Protofire, working with the Somnia Network team. From the start, they had a vision to build a new type of Layer 1 blockchain, one capable of handling an insane amount of transactions - up to a million per second with sub-second finality. It was clear that to support this kind of performance, we had to go beyond the usual. As a key infrastructure partner, our collaboration has been about building the foundational tools that will make their mainnet a success.
Taming a Million TPS with a Better Explorer
A network that fast needs an explorer that can keep up. We knew a standard setup would buckle under the load, so we started with Blockscout, a great open-source blockchain explorer, and rebuilt it from the ground up for extreme performance. Our engineers got deep into the technical details, fine-tuning databases and optimizing queries to handle the sheer volume of data. You can actually see our work on the Somnia Blockscout GitHub repository, where we’ve made our enhancements public. This wasn't about simply throwing more servers at the problem; it was about smart engineering to ensure the explorer stays fast and reliable, no matter what.
Bringing Essential Tools to the Network
A great network needs great tools for developers. We saw what the community would need to start building, and we got to work.
First up were Subgraphs and Price Feeds. Think of a Subgraph as a super-fast index for the blockchain. Instead of a developer sifting through every block to find data, a Subgraph lets them query exactly what they need instantly, almost like calling an API. This makes building decentralized applications much easier.
We also added Price Feeds, which provide live, dependable asset data. This is crucial for things like DeFi protocols, where a constant, trustworthy price is non-negotiable. To give you a better look at how this works, we recorded a Somnia Codelab video that walks through the integration.
Our work on the subgraph brought several major benefits to the Somnia ecosystem:
-
Easier Development: By providing a readily available and optimized data layer, we removed a huge bottleneck for developers. They no longer have to run their own infrastructure to query on-chain data, which is a complex and resource-intensive task. With the subgraph, they can focus on building their applications, not on data management.
-
Enhanced User Experience: The subgraph allows for lightning-fast data retrieval. This means dApps on Somnia can provide a much smoother, more responsive user experience, with features like real-time dashboards, transaction history, and detailed analytics that load almost instantly.
-
Access to Rich, Organized Data: The subgraph organizes raw blockchain data into a logical, queryable format. This makes it simple to access crucial information for a wide range of applications, including DeFi, gaming, and analytics. For example, a gaming dApp can easily query who owns a specific in-game item or see a character's history, all powered by the subgraph.
Chainlink Oracles: Powering On-Chain Security
For a network to be truly useful, it needs to connect to the outside world in a secure way. That's where oracles come in, acting as a crucial bridge between the blockchain and real-world data and events. We’ve been working closely with the Chainlink team to bring key oracle services to Somnia, a foundational step in ensuring the network's long-term success.
Our work went far beyond a simple integration. We took on the challenge of natively deploying Chainlink's decentralized oracle networks on Somnia's testnet, with the final mainnet deployment now in progress. This process involved validating and adapting Chainlink's off-chain components to ensure they were fully compatible with Somnia's architecture. It was a meticulous process of fixing compatibility issues, preparing smart contracts to the network's specifications, and setting up the production infrastructure, including a cluster of several nodes to ensure reliability. We also developed automated tests to verify that the integration was working seamlessly, even under the high-performance conditions Somnia is built for.
These services are a game-changer for Somnia. We've delivered fully functional price data feeds for select token pairs, which are essential for any DeFi, gaming, or financial application that needs accurate, up-to-the-second pricing. We also deployed Chainlink VRF, a provably fair and secure random number generator. This is crucial for applications like NFT minting, loot box drops, or gaming outcomes where a truly random result is needed. By providing this suite of services, we're not just adding features; we're giving developers the foundational tools to build with confidence, knowing their applications are powered by secure, reliable data and a system of verifiable truth.
Our long-term collaboration with Somnia has been all about building the tools and infrastructure developers need to create the next generation of web3 experiences. We're proud to have played a part, and we can’t wait to see what they build as Somnia moves toward its mainnet launch.