
{"id":84887,"date":"2025-07-30T05:50:46","date_gmt":"2025-07-30T05:50:46","guid":{"rendered":"https:\/\/mycryptomania.com\/?p=84887"},"modified":"2025-07-30T05:50:46","modified_gmt":"2025-07-30T05:50:46","slug":"somnia-is-now-natively-supported-in-thirdweb-heres-why-that-matters","status":"publish","type":"post","link":"https:\/\/mycryptomania.com\/?p=84887","title":{"rendered":"Somnia is Now Natively Supported in Thirdweb Here\u2019s Why That Matters"},"content":{"rendered":"<p>If you\u2019re building on <strong>Somnia Network<\/strong> using <strong>Thirdweb<\/strong>, there\u2019s a small but powerful update you might\u2019ve\u00a0missed:<\/p>\n<p><em>somniaTestnet<\/em> is now officially available as a native import from <em>thirdweb\/chains<\/em>.<\/p>\n<p>That means:<\/p>\n<p>No more defining the chain manually using <em>defineChain()<\/em> just import, plug, and\u00a0go.<\/p>\n<p>This update not only simplifies development but also signals something much bigger <strong>Somnia is becoming part of the Web3 dev mainstream.<\/strong><\/p>\n<p>\u2014 &#8211;<\/p>\n<p><strong>Background: Working with Somnia on Thirdweb\u00a0Before<\/strong><\/p>\n<p>Let\u2019s be honest integrating custom EVM chains into Thirdweb used to be a bit of a\u00a0chore.<\/p>\n<p>Before this update, developers needed to define Somnia\u2019s configuration manually like\u00a0this:<\/p>\n<p>import { defineChain } from &#8220;@thirdweb-dev\/chains&#8221;;<\/p>\n<p>const somniaTestnet = defineChain({<br \/>  id: 50312,<br \/>  name: &#8220;Somnia Testnet&#8221;,<br \/>  nativeCurrency: {<br \/>    name: &#8220;Somnia Testnet&#8221;,<br \/>    symbol: &#8220;STT&#8221;,<br \/>    decimals: 18,<br \/>  },<br \/>  rpcUrls: {<br \/>    default: {<br \/>      http: [&#8220;https:\/\/dream-rpc.somnia.network&#8221;],<br \/>    },<br \/>  },<br \/>  blockExplorers: {<br \/>    default: {<br \/>      name: &#8220;Shannon Explorer&#8221;,<br \/>      url: &#8220;http:\/\/shannon-explorer.somnia.network&#8221;,<br \/>    },<br \/>  },<br \/>});<\/p>\n<p>This worked fine,\u00a0but:<\/p>\n<p>It added repetitive boilerplate to every\u00a0projectIt had to be maintained manuallyIt was easy to break across teams or environments<\/p>\n<p>\u2014 &#8211;<\/p>\n<p><strong>The New Native\u00a0Import<\/strong><\/p>\n<p>Now that Thirdweb has added Somnia as a supported chain, all of that manual config becomes unnecessary. You can\u00a0simply:<\/p>\n<p>import { somniaTestnet } from &#8220;thirdweb\/chains&#8221;;<\/p>\n<p>And then pass <em>somniaTestnet<\/em> directly to your SDK or\u00a0hooks.<\/p>\n<p>\u2014 &#8211;<\/p>\n<p><strong>Example: Clean SDK Initialization<\/strong><\/p>\n<p>Here\u2019s how your updated Thirdweb setup might look\u00a0now:<\/p>\n<p>import { ThirdwebSDK } from &#8220;@thirdweb-dev\/sdk&#8221;;<br \/>import { somniaTestnet } from &#8220;thirdweb\/chains&#8221;;<br \/>const sdk = new ThirdwebSDK(somniaTestnet);<br \/>const contract = await sdk.getContract(&#8220;0xYourContractAddress&#8221;);<\/p>\n<p>No more manual chain\u00a0objects.<\/p>\n<p>No need to remember RPC URLs or explorer\u00a0links.<\/p>\n<p>Just import what\u2019s already configured and let Thirdweb handle the\u00a0rest.<\/p>\n<p>\u2014 &#8211;<\/p>\n<p><strong>Why This Update Matters (Beyond Just Convenience)<\/strong><\/p>\n<p>This might seem like a minor improvement, but it carries serious implications for the <strong>developer experience<\/strong> and the <strong>growth of Somnia<\/strong> as a\u00a0network.<\/p>\n<p><strong>Here\u2019s why:<\/strong><\/p>\n<p><strong>mFaster setup:<\/strong> Great for hackathons, rapid prototyping, or onboarding new\u00a0devs<strong>Consistency:<\/strong> No risk of misconfigured RPCs or mismatched chain\u00a0IDs<strong>Future-proofing:<\/strong> Updates to Somnia\u2019s network will now be reflected directly via\u00a0Thirdweb<strong>Ecosystem signal:<\/strong> Thirdweb\u2019s native integration means they see long-term value in\u00a0Somnia<\/p>\n<p>\u2014 &#8211;<\/p>\n<p><strong>About Somnia Network (for the uninitiated)<\/strong><\/p>\n<p>Somnia is a Layer 1 blockchain focused on real-time, high-throughput use cases especially for <strong>Web3 gaming<\/strong>, <strong>AI-driven NPCs<\/strong>, <strong>metaverse platforms<\/strong>, and other virtual social ecosystems.<\/p>\n<p>Key features\u00a0include:<\/p>\n<p>1M+ transactions per second on\u00a0testnetExtremely low gas fees (near-zero)Real-time streaming supportBuilt for composable virtual experiences<\/p>\n<p>With support from platforms like Thirdweb and infrastructure giants like Google Cloud, Somnia is positioning itself to onboard the next generation of developers and\u00a0users.<\/p>\n<p>\u2014 &#8211;<\/p>\n<p>Sometimes, the best updates aren\u2019t flashy they just remove friction.<\/p>\n<p>By including Somnia as a native chain, Thirdweb just made it easier to build, test, and deploy on one of the most forward-thinking Layer 1 networks in the\u00a0space.<\/p>\n<p>So if you\u2019ve been curious about Somnia or already working on it now\u2019s a good time to start (or restart) building.<\/p>\n<p><strong><em>Links: <\/em><\/strong><a href=\"https:\/\/somnia.network\/\"><strong>Website<\/strong><\/a><strong> | <\/strong><a href=\"https:\/\/x.com\/Somnia_Network\"><strong>X (Twitter)<\/strong><\/a><strong> | <\/strong><a href=\"https:\/\/quest.somnia.network\/referrals\/0F6091D2\"><strong>Join\u00a0Quest<\/strong><\/a><\/p>\n<p><a href=\"https:\/\/medium.com\/coinmonks\/somnia-is-now-natively-supported-in-thirdweb-heres-why-that-matters-790ea18d48f8\">Somnia is Now Natively Supported in Thirdweb Here\u2019s Why That Matters<\/a> was originally published in <a href=\"https:\/\/medium.com\/coinmonks\">Coinmonks<\/a> on Medium, where people are continuing the conversation by highlighting and responding to this story.<\/p>","protected":false},"excerpt":{"rendered":"<p>If you\u2019re building on Somnia Network using Thirdweb, there\u2019s a small but powerful update you might\u2019ve\u00a0missed: somniaTestnet is now officially available as a native import from thirdweb\/chains. That means: No more defining the chain manually using defineChain() just import, plug, and\u00a0go. This update not only simplifies development but also signals something much bigger Somnia is [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-84887","post","type-post","status-publish","format-standard","hentry","category-interesting"],"_links":{"self":[{"href":"https:\/\/mycryptomania.com\/index.php?rest_route=\/wp\/v2\/posts\/84887"}],"collection":[{"href":"https:\/\/mycryptomania.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mycryptomania.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/mycryptomania.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=84887"}],"version-history":[{"count":0,"href":"https:\/\/mycryptomania.com\/index.php?rest_route=\/wp\/v2\/posts\/84887\/revisions"}],"wp:attachment":[{"href":"https:\/\/mycryptomania.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=84887"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mycryptomania.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=84887"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mycryptomania.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=84887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}