<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ethan on Medium]]></title>
        <description><![CDATA[Stories by Ethan on Medium]]></description>
        <link>https://medium.com/@ethanlavanet?source=rss-5251cc0622ed------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*WUBsV6WLIlJCPjfB</url>
            <title>Stories by Ethan on Medium</title>
            <link>https://medium.com/@ethanlavanet?source=rss-5251cc0622ed------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 05:50:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ethanlavanet/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Lava Network: the access layer for blockchains]]></title>
            <link>https://medium.com/cosmos-blockchain/lava-network-the-access-layer-for-blockchains-b3e8f4f01f2c?source=rss-5251cc0622ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3e8f4f01f2c</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[decentralization]]></category>
            <category><![CDATA[interchain-stack]]></category>
            <category><![CDATA[rpc]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[Ethan]]></dc:creator>
            <pubDate>Mon, 05 Aug 2024 13:55:06 GMT</pubDate>
            <atom:updated>2024-08-05T13:55:06.166Z</atom:updated>
            <content:encoded><![CDATA[<p>Providing fast, reliable and decentralized read/write for the interchain and beyond</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mbR2MTsqbgRjJ2De" /></figure><p>Blockchains are, in their purest forms, decentralized databases which allow users to read data and write data by sending requests to nodes. Read and write — in other words, access the database. This is the most crucial infrastructure needed by crypto users. Today, access is unreliable, limited and too often consolidated in the servers of only a few node providers.</p><p>Lava Network is building the modular and decentralized access layer, so you can use and build on any blockchain. After 2 years of building through the bear market, Lava has announced their Public Mainnet, with a long term plan to support every appchain and rollup, from Ethereum L2s to the interchain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oogUQBAH80VVpKKEDStmaQ.png" /></figure><h4><strong>We lava the Interchain Stack</strong></h4><p>Lava chose the Cosmos SDK and the IBC standard because they are the most battle tested solutions for interoperability and launching a proof of stake network. Initially, Lava was conceived as a minimalist appchain built using the Cosmos SDK, simultaneously providing a registration layer for RPC providers and a settlement layer for providers to claim payment from RPC consumers.</p><p>As the network has evolved, it grew from primarily selling subscriptions to consumers to access providers, and now focuses on working directly with blockchains themselves to subsidize usage for consumers. This requires creating incentive pools with tokens from other chains, a function which the IBC standard can provide with total reliability.</p><h4><strong>Why Lava is crucial for every appchain, rollup and blockchain</strong></h4><p>If you have ever used a wallet to buy a token, minted an NFT, claimed an airdrop or deployed a smart contract — you will have needed to both read and write to the underlying blockchain. Think of this like a request/response. You make the request: “I want to sell this token for this token” and a node provider responds: “This has been finalized. You now have this token, and no more of this other token.” This is a simple and plain English version of a Remote Procedure Call (RPC), where a user action triggers an RPC request which is subsequently handled by an entity (or individual) running an RPC node. There are trillions of RPC requests handled every month across all blockchains.</p><p>Every chain requires RPC providers and theoretically, you can run your own — verifying your own data and responses, depending on your copy of the state. Very few users can or want to do this. Instead, on more established ecosystems like Ethereum, the majority of RPC requests are handled by a small number of major providers. These providers have proven reliable over time and have accrued the most mindshare through effective marketing, but they represent a centralized chokepoint. Meanwhile, on smaller ecosystems such as one of the many appchains enabled by the Interchain stack, providers are less sophisticated, unreliable and very limited in numbers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ITuG7piFrSS78gesOzHjGw.png" /></figure><p>Lava is a protocol which chains can use to quickly attract, aggregate and coordinate a network of RPC providers. This makes the users and developer experience much more reliable, scalable and decentralized. One of the most unique features of Lava is its ability to host incentive pools, with tokens from other chains. For example, Evmos and Axelar, both appchains, have incentive pools on Lava where RPC providers have the potential to earn EVMOS and AXL tokens for the number of requests served and the quality of that service. These pools are enabled by IBC and make Lava a hub for infrastructure providers looking to offer services for newly launched chains.</p><h4><strong>To the future</strong></h4><p>After launching Public Mainnet, Lava plans to onboard more chains and open up more incentive pools. Steered by the DAO, this will enable appchains and rollups to easily bootstrap their critical infrastructure. While Lava will begin with RPC, in the future, providers will be able to join for services such as oracles, indexing, sequencing and LLM query routing.</p><p>The floor is Lava!</p><p>Twitter: <a href="https://x.com/lavanet.xyz">https://x.com/lavanet.xyz</a><br>Website: <a href="https://www.lavanet.xyz/">https://www.lavanet.xyz</a><br>Discord: <a href="https://discord.gg/4GJbnzSU4w">https://discord.gg/4GJbnzSU4w</a><br>Blog: <a href="https://www.lavanet.xyz/blog">https://www.lavanet.xyz/blog</a><br>Whitepaper: <a href="https://avanet.xyz/whitepaper">https://lavanet.xyz/whitepaper</a><br>Documentation: <a href="https://docs.lavanet.xyz/">https://docs.lavanet.xyz</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3e8f4f01f2c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cosmos-blockchain/lava-network-the-access-layer-for-blockchains-b3e8f4f01f2c">Lava Network: the access layer for blockchains</a> was originally published in <a href="https://medium.com/cosmos-blockchain">Cosmos Community Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tutorial: Using Lava gateway for Ethereum RPC Access (ethers.js)]]></title>
            <link>https://medium.com/lava-network/tutorial-using-lava-gateway-for-ethereum-rpc-access-ethers-js-7ad82293e37d?source=rss-5251cc0622ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ad82293e37d</guid>
            <category><![CDATA[lava-network]]></category>
            <category><![CDATA[ethereum-blockchain]]></category>
            <category><![CDATA[ethersjs]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[web3-development]]></category>
            <dc:creator><![CDATA[Ethan]]></dc:creator>
            <pubDate>Thu, 23 Feb 2023 18:41:51 GMT</pubDate>
            <atom:updated>2023-02-23T18:41:51.091Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*07lrO_3oLHnpKJceQb9i6Q.jpeg" /></figure><p>Ethereum RPC (Remote Procedure Call) service is an essential part of the technology stack for decentralized applications built on Ethereum. RPC allows developers to communicate with the Ethereum blockchain and interact with smart contracts, send transactions, and retrieve information from within their own applications. Chances are if you’ve used any dapp or smart contract, you’ve touched RPC in some ways. Ordinarily it’s a behind-the-scenes operation that’s happening, but here we’ll be working explicitly to access blockchain data.</p><p>In this tutorial, I will demonstrate how to use the Lava gateway with ethers.js to do easy interaction with RPC. For those who don’t already know, ethers.js is a JavaScript library designed to work with Ethereum blockchain networks, including Ethereum mainnet and testnets like Sepolia, Goerli, and Holesovice. Ethers.js provides an easy-to-use interface to interact with smart contracts on the blockchain. It also allows developers to create decentralized apps (dapps) in a JavaScript environment, making it accessible for web developers and other users less familiar with blockchain technology. As it is a common framework for web3 development, I’ll show how it can be used with Lava’s gateway here.</p><p>Before going forward, it would be best if you familiarize yourself with the Lava gateway. If you’re not already familiar with the gateway and how to set up RPC endpoints, take a look at our <strong>Getting Started</strong> guide. Otherwise, take your first steps in using Lava to access Ethereum blockchain information below!</p><p>✔️ To complete this tutorial you will need the following</p><ul><li>An active Lava gateway account — sign up <a href="https://gateway.lavanet.xyz/">here</a></li><li>node.js &amp; npm (node.js package manager) — <a href="https://docs.npmjs.com/downloading-and-installing-node-js-and-npm">https://docs.npmjs.com/downloading-and-installing-node-js-and-npm</a></li></ul><p>That’s it! Let’s get started. There are a few steps we need to take together 🚀</p><h4>1.</h4><p>Install ethers.js with the following command:</p><pre>npm install --save ethers</pre><h4>2.</h4><p>Next, access the Lava gateway and create ETH1 API access. This will provision a JSONRPC endpoint which you can access. JSONRPC is the default interface for Ethereum RPC nodes, but it is not the only one Lava provides! Locate your JSONRPC endpoint within your project and copy it into the clipboard. It should look something like the address pictured below below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/434/1*8vR18dCRhowDlxfkRpWAJg.png" /></figure><h4>3.</h4><p>Open your index.js file or create a new one. We need to require “ethers” in order to use it in our project. This requires node.js. It is possible to import { ethers } from &quot;ethers&quot;; instead, but it is not recommended for security reasons.</p><pre>const ethers = require(&quot;ethers&quot;);</pre><h4>4.</h4><p>Now, that we have required ethers.js, we can set our Web3 Provider like so:</p><pre>//using StaticJsonRpcProvider confers certain performance benefits<br>//when the network being connected to is not changing (as in Lava gateway!)<br>const rpcEndpoint = &#39;https://endpoint-from-lava-gateway-goes-here&#39;;<br>const provider = new ethers.providers.StaticJsonRpcProvider(rpcEndpoint);</pre><p>Note that it is perfectly possible and even desirable to use websockets if you need to maintain a persistent connection and get more immediate responses. The Lava gateway supports both JSONRPC (HTTP) and JSONRPC (WSS) connections.</p><h4>5.</h4><p>To get the proper endpoint, you will have to return to the gateway and retrieve the websocket endpoint URL from the Ethereum API Access panel. Once you have done so, you can put it to work as illustrated here:</p><pre>//make sure the rpcEndpoint URL that is used corresponds to JSONRPC/WEBSOCKET<br>//on the Lava gateway - your address should start with wss://<br>const rpcEndpoint = &#39;wss://endpoint-from-lava-gateway-goes-here&#39;;<br>const provider = new ethers.providers.WebSocketProvider(rpcEndpoint)</pre><p>That’s it! Now we can do something interesting like query for balances.</p><pre>let block = await provider.getBlockNumber();<br>// returns the block number</pre><pre>let exampleBalance = await provider.getBalance(&quot;example.eth&quot;);<br>//returns the balance</pre><pre>console.log(block,exampleBalance);</pre><p>To get a full list of possible queries that a provider can perform in ethers.js take a look at the attached list: <a href="https://docs.ethers.org/v5/api/providers/provider/">https://docs.ethers.org/v5/api/providers/provider/</a></p><p>Lava gateway can be used in powerful ways with ethers.js to build dApps with beautiful frontends. I encourage you to explore ethers.js and try building your Ethereum dapp using Lava RPC !</p><p>Did you enjoy this tutorial? Share &amp; tag me on twitter @kagemnikarimu 🌋 for more Web3 educational content!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ad82293e37d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lava-network/tutorial-using-lava-gateway-for-ethereum-rpc-access-ethers-js-7ad82293e37d">Tutorial: Using Lava gateway for Ethereum RPC Access (ethers.js)</a> was originally published in <a href="https://medium.com/lava-network">Lava Network</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lava Testnet: Phase I is live!]]></title>
            <link>https://medium.com/lava-network/lava-testnet-phase-i-is-live-55495c5e29d5?source=rss-5251cc0622ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/55495c5e29d5</guid>
            <category><![CDATA[decentralization]]></category>
            <category><![CDATA[blockchain-api]]></category>
            <category><![CDATA[blockchain-development]]></category>
            <category><![CDATA[lava-network]]></category>
            <category><![CDATA[web3]]></category>
            <dc:creator><![CDATA[Ethan]]></dc:creator>
            <pubDate>Wed, 22 Feb 2023 15:49:47 GMT</pubDate>
            <atom:updated>2023-02-22T17:02:40.542Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Mwz0na3lXFpMK012" /></figure><h4><strong>The first omnichain, decentralized RPC network is one step closer 🌐</strong></h4><p>For the last year, we’ve been working towards this moment — the first time any developer can start testing out Lava and get RPC for 10+ blockchains from a decentralized network of providers.</p><h4><strong>Building the best tools to access blockchains, the Lava way 🛠️</strong></h4><p>Lava Network is now open to all developers and primarily accessible through our easy-to-use hosted front-end — the Gateway.</p><p>We’re building the open standard for blockchain RPC and APIs. That means equipping developers who are building apps of all shapes and sizes — large enterprises, small projects, front-ends, back-ends — with the best tools to access blockchains, in an open-source and community-led way.</p><p>To that end, we’ve designed the Gateway powered by the Lava Access Server Kit, our solution for building self-hosted gateways, and will later release the Lava Access SDK, our primary package for developers building with Lava which is soon to be open-sourced.</p><p>Today, you can already use the Lava Gateway to test and build your applications with ease. For those looking for maximum decentralization, the SDK will offer direct access to the network, empowering developers to build multichain and unstoppable web3 apps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RcUDB9fAdb2ex1G7" /></figure><h4><strong>Benefits of the Gateway and the Lava Access SDK ⚡</strong></h4><p>The Gateway offers developers:</p><ul><li><strong>Multi-chain Support</strong> — Access to chains where developers are typically reliant on rate-limited public RPC e.g. Cosmos Hub, Osmosis, Juno etc</li><li><strong>Rapid Onboarding</strong> <strong>— </strong>your app will be up and running in 5 minutes with an RPC endpoint of your choice</li><li><strong>Unstoppable Performance</strong> — By being connected to multiple leading RPC providers, apps benefit from 99.99% uptime as well as the best latency, freshness, and availability.</li><li><strong>Consensus-Based Data Integrity</strong> — Data accuracy, consistency and freshness are preserved by a consensus mechanism which detects and resolves conflicts. Poor service or attempts to manipulate data are caught and disincentivized, with providers staking and signing responses so that they can be held accountable.</li><li><strong>Private relays</strong> — Relay requests are routed per epoch to a random and constantly shuffled list of providers, so any user RPC queries going through the network cannot be profiled.</li><li><strong>Open-Source</strong> — The Lava protocol is <a href="https://github.com/lavanet/lava">open-source </a>and transparent, with a community-led approach that centers around the DAO. Anyone can contribute to the protocol and the appchain, as well as verify that the network is secure and reliable.</li></ul><p>The Lava Access SDK will offer all the benefits of the above, with maximum decentralization.</p><h4><strong>How can you start building with Lava? (Clue: it’s really easy 👀)</strong></h4><p>You can use Lava today!</p><p>We’ve created easy to use Getting Started documentation, which you can access <a href="http://docs.lavanet.xyz/">here</a>. The Gateway supports RPC and APIs for many top chains and is now ready for you to build your apps. You can ask for support in <a href="https://discord.gg/lavanetxyz">our Discord</a>, where we have a growing community of developers building across many different ecosystems e.g. Cosmos and Ethereum. We’ll see you there!</p><p><a href="https://discord.com/invite/SBzPyHXc"><strong>Vote now for the next chain to be added</strong></a><strong>!</strong></p><p>Today we’re also launching a new way for the community to vote on the next chain to be added. In the future, new chains will be up to the Lava DAO. But before the DAO is launched, we want to make sure the community’s voice is heard. You can vote on the next chain in our Discord — <a href="https://discord.com/invite/SBzPyHXc">#Next-chain-vote</a>.</p><p>If you’re planning to become a Lava Provider, we’d also love to see you in the Discord and will soon have clearer processes about how you can join the Network. Did someone mention an incubation program… 👀</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1RNttK1OkfSR950P" /></figure><h4><strong>The vision 🔭</strong></h4><p>Blockchain data should be trustless, universally accessible and always available.</p><p>Lava is building the open standard for blockchain RPC and APIs.</p><h4><strong>Join as an early design partner: become a Lava Voyager today⚡️</strong></h4><p>We are looking for developer teams building dapps to join the network as early design partners — Lava Voyagers. You’ll be eligible for benefits including co-marketing and credits at mainnet. Apply <a href="https://1grww0esi6a.typeform.com/to/V26UtNum?utm_medium=content&amp;utm_content=testnetmedium">here</a>.</p><h4>Contribute as a Developer Champion 📣</h4><p>If you’re keen to work closely with our DevRel Engineer to create content, provide product feedback, build tools, spread the Lava vision and take our open-source ecosystem to next level — you’re already a winner in our eyes 🤩</p><p>You can apply to become a Champion <a href="https://1grww0esi6a.typeform.com/to/pN1wl7Yt">here</a>. Let the data flow 🌋</p><h4><strong>Learn more 📚</strong></h4><p>There are plenty of places to learn more about what Lava is building. Check us out below 👇</p><p>Discord: <a href="https://discord.gg/lavanetxyz">https://discord.gg/lavanetxyz</a><br>Twitter: <a href="http://twitter.com/lavanetxyz">twitter.com/lavanetxyz</a><br>Website: <a href="http://lavanet.xyz/">lavanet.xyz</a><br>Litepaper: <a href="https://lavanet.xyz/assets/lava_litepaper_v0_1.pdf">https://lavanet.xyz/assets/lava_litepaper_v0_1.pdf</a><br>Docs: <a href="http://docs.lavanet.xyz/">docs.lavanet.xyz</a><br>Github: <a href="http://github.com/lavanet">github.com/lavanet</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55495c5e29d5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lava-network/lava-testnet-phase-i-is-live-55495c5e29d5">Lava Testnet: Phase I is live!</a> was originally published in <a href="https://medium.com/lava-network">Lava Network</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lava Network supports StarkNet RPC]]></title>
            <link>https://medium.com/lava-network/lava-protocol-supports-starknet-rpc-708ae06a426f?source=rss-5251cc0622ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/708ae06a426f</guid>
            <category><![CDATA[lava-protocol]]></category>
            <category><![CDATA[starkware]]></category>
            <category><![CDATA[starknet]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[rpc]]></category>
            <dc:creator><![CDATA[Ethan]]></dc:creator>
            <pubDate>Fri, 25 Nov 2022 17:00:32 GMT</pubDate>
            <atom:updated>2022-12-11T16:15:32.597Z</atom:updated>
            <content:encoded><![CDATA[<p>Dear Lava community, we’re proud to announce that StarkNet RPC is now supported by Lava Network! StarkNet is one of the best Layer 2 scaling solutions on Ethereum. Developers on our private testnet can now get a reliable and accountable RPC endpoint for accessing the StarkNet chain through Lava.</p><p>We are excited to be empowering builders in the StarkNet ecosystem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QpfnvGUf_Tov160eRhr4Vg.png" /></figure><h3>What is StarkNet?</h3><p>StarkWare is leading the way in scaling Ethereum. It has built Validity-based scaling solutions: <a href="http://starkware.co/starkex">StarkEx</a> and <a href="http://starkware.co/starknet">StarkNet</a>. StarkEx scales more transactions than all other ‘Layer 2’ solutions combined. StarkNet (Alpha) is a decentralized permissionless Validity-Rollup. The company pioneered the STARK proof and made this groundbreaking cryptographic system accessible through the Cairo programming language.</p><p>StarkWare’s solutions, which rely on Ethereum’s security, have settled over $750B, and over 270M transactions, minted more than 85M NFTs, and serving hundreds of thousands of users. StarkNet, a permissionless general-purpose scaling solution, is live (Alpha) on Ethereum Mainnet. StarkEx, a SaaS-based scaling service, has been powering applications since 2020, including dYdX, Immutable X, Sorare, and DeversiFi.</p><h3>How is Lava supporting StarkNet?</h3><p>Developers on our private testnet will now be able to access a StarkNet RPC endpoint supported by Lava Protocol. StarkNet RPC endpoints are used by developers to fetch data from StarkNet, without needing to run their own nodes, compromise with rate-limited public endpoints or rely on centralized providers.</p><p>Here’s a sneak peek of how developers will be able to generate a StarkNet endpoint within the Lava Gateway. In the future, Lava will also facilitate RPC access through a permissionless, open-source SDK:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*9t0I5wg0dFGD209DPK8sxA.gif" /></figure><p>We are onboarding developers and you can apply for our Testnet now via <a href="https://discord.com/invite/Tbk5NxTCdA">our Discord</a>.</p><h3>The benefits of Lava RPC</h3><p>By decentralizing RPC, Lava creates many benefits for developers:</p><ul><li>High uptime — Lava incentivizes network redundancy and allows applications to plug into a trustless sea of nodes. This means you can be confident in reliable, high availability service</li><li>100% correct data — API endpoints are sampled randomly, comparing JSON-RPC responses across multiple node runners. If a conflict is detected, a resolution process is initiated on-chain, rewarding node runners who provide the most up-to-date and accurate responses to user queries.</li><li>Increased privacy — Node runners are only paired with applications for a short session, and pairings are randomized to eliminate any ability to target a specific user ahead of time. The combination of these mechanisms means <a href="https://twitter.com/lavanetxyz/status/1595808060647145472?s=20&amp;t=7qe0ddVoV1hLxoHIECD6Hw">end users of applications build on Lava are able to make RPC queries with much improved privacy compared to centralized providers</a>.</li><li>Lightning response times — Relay service between node runners and applications are conducted off-chain, meaning there is no increased latency in responses. This means developers and end-users can enjoy the full benefits of decentralization, high network redundancy, while maintaining quality of service.</li><li>Censorship-resistance — Lava will be governed by a DAO, which will be able to propose and vote for new specifications (blockchains and API interfaces e.g. Ethereum JSON-RPC). Diversity among specifications and node runners, means that in the future, applications will be able to take advantange of RPC service which is compliant with the regulations of their jurisdiction.</li></ul><h3>About Lava</h3><p>Lava is an open-source protocol for unstoppable access to blockchain data. Users access the state of any blockchain by interacting peer-to-peer with a network of independent RPC node runners, each incentivized to uphold a high quality of service. Lava is the foundation upon which developers can build and scale web3 applications, so that anyone can exchange value permissionlessly, privately and reliably.</p><p>The Lava Appchain acts as a scalable settlement layer for payments made to node runners by developers. It is built using the Cosmos SDK and Ignite, the industry standards for building custom blockchains.</p><p>You can follow Lava’s future announcements on <a href="https://twitter.com/lavanetxyz?s=20&amp;t=O6CgAY8RUcVSbVgMDJcnaQ">our Twitter</a> and <a href="https://discord.gg/Tbk5NxTCdA">our Discord</a>. You can also read Lava’s Litepaper on <a href="http://lavanet.xyz/">our website</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=708ae06a426f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lava-network/lava-protocol-supports-starknet-rpc-708ae06a426f">Lava Network supports StarkNet RPC</a> was originally published in <a href="https://medium.com/lava-network">Lava Network</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A developer’s guide to accessing blockchain data — with Cosmos RPC examples]]></title>
            <link>https://medium.com/lava-network/a-developers-guide-to-accessing-blockchain-data-with-cosmos-rpc-examples-f86bc62e1f91?source=rss-5251cc0622ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/f86bc62e1f91</guid>
            <category><![CDATA[osmosis]]></category>
            <category><![CDATA[rpc]]></category>
            <category><![CDATA[cosmos]]></category>
            <category><![CDATA[cosmos-sdk]]></category>
            <category><![CDATA[blockchain-api]]></category>
            <dc:creator><![CDATA[Ethan]]></dc:creator>
            <pubDate>Fri, 14 Oct 2022 13:59:01 GMT</pubDate>
            <atom:updated>2022-10-14T15:49:35.239Z</atom:updated>
            <content:encoded><![CDATA[<h3>A developer’s guide to accessing blockchain data — with Cosmos RPC examples</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GunuXkmTCp5lv44KyHPYMQ.png" /></figure><h3>Summary</h3><ul><li>For tasks like deploying a smart contract or retrieving a wallet balance, developers send requests to and receive responses from a node. The standard set of procedures required for this comprises a communication protocol called Remote Procedure Call (RPC)</li><li>Full, archival and trace nodes on Cosmos run Tendermint Core (‘Tendermint nodes’), which consists of a consensus algorithm and P2P networking for data replication across nodes. A Cosmos chain’s data can be commonly accessed through the RPC endpoints exposed by that chain’s Tendermint nodes</li><li>Currently, developers building applications on Cosmos primarily access blockchain data through altruistically-run public nodes, which are rate-limited and insufficient for production grade projects</li><li>Lava Protocol provides scalable, private and uncensored access to accurate blockchain data</li></ul><h3>Recap — What is RPC?</h3><p>In the same way that web2 applications like Facebook communicate with backend servers and then databases to store and access data, web3 front-ends need a way to access blockchain data. The fundamental idea of blockchain is that each client can run its own node, which maintains a copy of the latest State.</p><p>To access the State, nodes expose RPC endpoints. RPC nodes can be run locally or accessed remotely. Due to the impracticality of running and maintaining nodes, blockchain data is typically accessed through node provider services or public endpoints supported by ecosystem grants.</p><p>RPC nodes are required for applications to:</p><ol><li><strong>Read</strong> data from the blockchain and present it to the users.</li><li><strong>Receive signed user transactions</strong> from wallets and <strong>propagate</strong> these to the rest of the p2p network, to be used by validators in block building</li></ol><p>Applications access blockchain data using nodes, and communication with these nodes works through <strong>RPC:</strong></p><figure><img alt="How RPC nodes provide access to blockchain data" src="https://cdn-images-1.medium.com/max/1024/1*beZtHEpEkVbklcjlbZkxgQ.png" /><figcaption>Web2 vs. Web3</figcaption></figure><p>RPC allows one computer to remotely execute functions (procedures) on another computer. RPC is a form of client-server request-response interaction — the client sends a request and the server replies with a response to that request.</p><p>These are the sequence of events when making an RPC method call:</p><ol><li>A client is interested in running a function on a remote server</li><li>An RPC call is initiated by the client with all the relevant data (function name, params, etc.)</li><li>The call is sent to the target remote server which processes the request and executes the procedure</li><li>The remote server sends a response to the client</li><li>The client is now able to use the response in order to run its application logic</li></ol><h3>The Tendermint RPC</h3><p>In the Cosmos ecosystem, developers use the Cosmos Software Development Kit (SDK) to build appchains. These appchains implement a consensus engine, Tendermint Core, which includes a Byzantine-Fault Tolerant consensus algorithm for ensuring that the same transactions are recorded on every machine in the same order.</p><p>In addition, every appchain requires nodes to expose RPC endpoints to serve client queries for blockchain data, as well as propogate transactions to other nodes in the network. On Cosmos, a commonly used endpoint is the Tendermint RPC endpoint, which is independent from the Cosmos SDK. Every node in the network can choose whether to expose their Tendermint RPC endpoints, which will be served by default on port 26657.</p><p>Clients can use this endpoint to retrieve up-to-date State data in 3 different ways:</p><p>1. URI over HTTP:</p><pre>curl localhost:26657/block?height=5</pre><p>2. JSON-RPC over HTTP (post request):</p><pre>curl --header &quot;Content-Type: application/json&quot; --request POST --data &#39;{&quot;method&quot;: &quot;block&quot;, &quot;params&quot;: [&quot;5&quot;], &quot;id&quot;: 1}&#39; localhost:26657</pre><p>3. JSON-RPC over WebSocket (for async functions):</p><pre>ws ws://localhost:26657/websocket<br>&gt; { &quot;jsonrpc&quot;: &quot;2.0&quot;, &quot;method&quot;: &quot;subscribe&quot;, &quot;params&quot;: [&quot;tm.event=&#39;NewBlock&#39;&quot;], &quot;id&quot;: 1 }</pre><p>It’s worth noting that another common way to interact with a node on Cosmos is to use <a href="https://grpc.io/">gRPC</a>, a language agnostic, high-performance Remote Procedure Call (RPC) framework. The differences between gRPC and RPC will be explored in later articles.</p><h3>Blockchain case study: Osmosis RPC</h3><p>Using RPC, clients (e.g. wallets and apps) are able to send transactions and query blockchains for information like block height, blocks, wallet balance, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*cy-w_PvgOdrWnqX2kVwiPw.png" /></figure><p>For example, let’s say that you want to develop a dapp on the Osmosis chain. Since the Osmosis chain is built using the Cosmos SDK, the first thing that you have to do is import the cosmWasm library. Then you will have to connect to an RPC Node so your dapp can receive data:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a90109d9bb18ed43bbc32a4a4f05f8b6/href">https://medium.com/media/a90109d9bb18ed43bbc32a4a4f05f8b6/href</a></iframe><p>rpcEndpoint - The RPC URL of an Osmosis node</p><p>client - A CosmWasm client object that will let us interact and retrieve data from Osmosis. Note we will only be reading data, if we wanted to make a transaction we would need to configure a signer with a mnemonic.</p><p>Moving on, let’s play with the client object:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dfdf083bacbfcc5fe9776147dc8208dd/href">https://medium.com/media/dfdf083bacbfcc5fe9776147dc8208dd/href</a></iframe><p>Once we have a client object configured with an RPC node, we can start to query the node for information from the blockchain. In the example above, we checked the balance of Cosmostation, which is <a href="https://www.mintscan.io/cosmos/proposals/66">one of the largest validators on the Osmosis chain</a>. Try running the code again using your own wallet address or another valid address on Osmosis and make sure you get a result similar to this one:</p><pre>{ denom: &#39;uosmo&#39;, amount: &#39;17134426559&#39; }</pre><p>As you can see the call resulted in the number 17134426559 which represents the balance of the address osmo1khp3a8edarjaxfvlgdrcwthnjp3vdr3ez6p3xe.</p><p>In the examples above, all the requests generated using the client object, are <strong>routed</strong> to the Blockchain RPC node through <strong>JSON-RPC</strong>.</p><h3>JSON-RPC</h3><p>JSON-RPC is a stateless, lightweight remote procedure call (RPC) protocol, which uses JSON (RFC 4627) as its data format. In other words, JSON-RPC is an RPC protocol encoded in JSON format, allowing:</p><ol><li>Normal calls (Request — Response form)</li><li>Notifications (data sent to the server that does not require a response)</li><li>Multiple calls to be sent to the server which may be answered asynchronously</li></ol><p>JSON-RPC is popularly used for client-server communication in the Cosmos ecosystem and across web3. Most chains have a <strong>JSON-RPC specification</strong> which describes all the functions that this particular blockchain supports, similar to an API. For example, you can find the Osmosis chain specification in their documentation <a href="https://rpc-docs.osmosis.zone/">here</a>.</p><h3>JSON-RPC Examples</h3><h3>Retrieving Wallet Balances</h3><p>In the previous section, we were able to retrieve the balance of a specific wallet on the Osmosis chain using the Javascript library CosmWasmClient. When we execute the function client.getBalance(string address, string searchDenom) the library implements in the background the JSON-RPC protocol and sends a JSON-RPC <strong>request</strong> that looks like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7d5234aab656dee6f3373531ebfc6c0e/href">https://medium.com/media/7d5234aab656dee6f3373531ebfc6c0e/href</a></iframe><p>Breaking down the JSON-RPC request above:</p><ol><li><strong>jsonrpc:</strong> The protocol version we’re using 2.0</li><li><strong>method:</strong> The method we are calling. In our example, we want to retrieve the address’s balance using the method balance</li><li><strong>params:</strong> Parameters that will be sent to the method that we are calling. In our example, we are requesting the balance of the token uosmo for the address osmo1khp3a8edarjaxfvlgdrcwthnjp3vdr3ez6p3xe</li><li><strong>id:</strong> Identification of the client sending the call</li></ol><p>The server/node will reply with the following JSON-RPC <strong>response</strong>:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dd9b62b2c7e275f746cc6700b6357092/href">https://medium.com/media/dd9b62b2c7e275f746cc6700b6357092/href</a></iframe><p>Breaking down the JSON-RPC response above:</p><ol><li><strong>id:</strong> Client identification</li><li><strong>jsonrpc:</strong> Protocol version</li><li><strong>result:</strong> The result of the executed function</li></ol><h3>Retrieving Block Data</h3><p>Another useful example is getting a specific block from the chain. When a client (wallet, dapp, etc..) wants to get the <strong>block data</strong> at a specific block number (height) of the Osmosis chain, it sends the following JSON-RPC <strong>request</strong>:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fb8c1f980f66a4763d21636d5d5f9a06/href">https://medium.com/media/fb8c1f980f66a4763d21636d5d5f9a06/href</a></iframe><p>Breaking down the JSON-RPC request above:</p><ol><li><strong>jsonrpc:</strong> The protocol version we’re using 2.0</li><li><strong>method:</strong> The method we are calling. In our example, we want to get the latest block number using block</li><li><strong>params:</strong> Parameters to be sent to the method that we are calling. In our example, we are requesting information for block number 5347769</li><li><strong>id:</strong> Identification of the client sending the call</li></ol><p>The server/node will reply with the following JSON-RPC <strong>response</strong>:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ff0c85237c9d2fbd1e42fe07f11cabe0/href">https://medium.com/media/ff0c85237c9d2fbd1e42fe07f11cabe0/href</a></iframe><p>Let’s break down the JSON-RPC response above:</p><ol><li><strong>id:</strong> Client identification</li><li><strong>jsonrpc:</strong> Protocol version</li><li><strong>result:</strong> The result of the executed function</li></ol><p>In order to learn more about the supported Osmosis and Cosmos RPC methods, check out the <a href="https://rpc-docs.osmosis.zone/">Osmosis RPC docs</a> and the <a href="https://v1.cosmos.network/rpc/v0.45.1">Cosmos Tendermint RPC docs</a>.</p><h3>Accessing RPC endpoints on Cosmos</h3><p>In more mature ecosystems like Ethereum, RPC service is well provided for by centralized offerings e.g. Alchemy, Infura. However, due to its relative infancy and diversity of clients across its different blockchains, Cosmos is relatively underserved for RPC. The majority of RPC relays made in the Cosmos ecosystem are facilitated by public endpoints, often run by chains themselves.</p><p>It is possible to find all the available endpoints for Cosmos chains in the <a href="https://github.com/cosmos/chain-registry">Cosmos chain registry</a>, which provides information about RPC access for chains including Osmosis, Akash, Stride and Secret Network.</p><p><a href="http://lavanet.xyz/">Lava Network</a> offers accountable RPC node infrastructure for the Cosmos ecosystem. Applications can permisionlessly access blockchain data through a network of node providers who are rewarded for high quality service and punished for poor service. Service quality is agreed upon by decentralized consensus and also captured by peer-to-peer performance scores. In this way, the protocol ensures censorship-resistance, low latency, maximum uptime, high availability and data integrity.</p><h3>Conclusion</h3><p>The RPC infrastructural layer of web3 enables any application to access blockchain data. RPC is used to query blockchain State e.g. a wallet balance, or block data. A common RPC format used across web3 is JSON-RPC.</p><p>In more nascent ecosystems like Cosmos, many RPC endpoints are run altruistically by chains themselves. This is unsustainable and does not scale for production grade applications. Lava is a more sustainable solution, providing RPC access for all chains and built with the web3 values of decentralization and censorship-resistance from day 1.</p><p>Follow <a href="https://twitter.com/lavanetxyz">Lava on Twitter</a> to keep updated on our latest developments in this space. You can also learn more at <a href="http://lavanet.xyz/">lavanet.xyz</a>.</p><h3>About Lava</h3><p>Lava is a protocol that provides applications with scalable, private and uncensored access to accurate blockchain data. Using cryptography and token-aligned incentives, the protocol holds RPC nodes accountable for data integrity and performance quality. Node runners earn rewards for providing robust RPC service, while contributing towards decentralization.</p><p>Accountability, not trust 🌋</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f86bc62e1f91" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lava-network/a-developers-guide-to-accessing-blockchain-data-with-cosmos-rpc-examples-f86bc62e1f91">A developer’s guide to accessing blockchain data — with Cosmos RPC examples</a> was originally published in <a href="https://medium.com/lava-network">Lava Network</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing Lava]]></title>
            <link>https://medium.com/lava-network/introducing-lava-a1597b244b9f?source=rss-5251cc0622ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1597b244b9f</guid>
            <category><![CDATA[rpc-node]]></category>
            <category><![CDATA[blockchain-api]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[node-infrastructure]]></category>
            <category><![CDATA[cosmos-network]]></category>
            <dc:creator><![CDATA[Ethan]]></dc:creator>
            <pubDate>Tue, 27 Sep 2022 11:38:22 GMT</pubDate>
            <atom:updated>2022-09-27T15:00:28.856Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-DAe6YJ2-od14rlY9MEbKQ.png" /></figure><h3>Accessing blockchain data</h3><p>Across Web3, node infrastructure follows a predictable lifecycle.</p><p>The core tenet of a decentralized web is that every individual should run their own node to validate state and send transactions to the blockchain. As Vitalik wrote, today this idea is closer to a <a href="https://twitter.com/VitalikButerin/status/873177382164848641?s=20&amp;t=qC5-MuXHnvhBlmLfx8lOOA">“weird mountain man fantasy”</a> than it is reality. In search of more scalable solutions, users moved to rate-limited public endpoints, altruistically provided by chains themselves. The drawbacks of this include persistent throttling issues and a tragedy of the commons problem where usage is adversarial and downtime is common.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*s_hzepxjL9V-ZHvJ" /></figure><p>Trusted third party node operators filled the gap, providing a crucial service. Although useful, the limitations of centralized providers are clear. In early 2022, Venezuelan users were censored from accessing MetaMask after their node operator accidentally blocked IP addresses in the area. Moreover, concerns over data integrity have led many developer teams to use multiple node providers at once, cross-referencing responses to protect themselves from acting on stale data.</p><p>This should not be the case.</p><p>As the drawbacks of centralized node infrastructure become more apparent, other parts of blockchain infrastructure are progressing towards decentralization. Middleware services like data indexing and storage are powered by peer-to-peer markets coordinated by code and cryptoeconomics — game theoretic incentives, disincentives and cryptography — similar to those which govern block building and validation. Using cryptographically signed messages for accountability and token-aligned incentives, we can create trustless markets connecting applications with reliable, robust and decentralized middleware. We call these decentralized coordination systems for public infrastructure cryptomarkets.</p><p>We introduce the Lava Protocol, the cryptomarket which powers a decentralized RPC layer for Web3.</p><p>Lava powers a trustless market for RPC data access. The protocol governs peer-to-peer and private Provider-Application pairings, ensuring high quality RPC service while confirming consensus on data served. Payments are conducted off-chain and settled on-chain in aggregate for efficiency. Node runners earn income by providing RPC service and contributing towards decentralization; developers access accurate blockchain data, without fear of scalability issues, privacy exploitation or censorship.</p><h3>Decentralized, performant infrastructure</h3><p>We believe decentralizing public infrastructure can improve performance and reliability, a potentially controversial view. The Lava Network encourages high quality node service by holding providers to account using cryptographically signed messages and aligned token incentives; removes censorship concerns by eliminating trust requirements and using an open source protocol; and introduces robustness and uptime by incentivizing network redundancy. Consensus is created around data integrity, ensuring accuracy and freshness.</p><p>It is also apparent that Web3 is not yet ready for mainstream adoption. Poor UX and unclear regulations in a nascent field make it difficult even for the crypto-native. How do we bring Web3 to the next billion users?</p><p>Scalability is at the heart of this conversation. Much research and development has gone into building modular layer 2 solutions for improving blockchain throughput and latency, so usage can scale without downtime or high gas fees.</p><p>One area which has not received due attention is the middleware layer. Middleware infrastructure is the set of protocols and services which allow applications to connect to and use blockchains. This layer must also scale with Web3. Lava implements novel innovations such as its Lazy Blockchain configuration to create technological scalability, while the protocol’s cryptoeconomic incentives ensure node runners provide the same high level of service, at scale.</p><h3>Starting with Cosmos</h3><p>The Cosmos ecosystem is particularly underserved by RPC providers and today, it is the chains themselves which are altruistically providing their own public endpoints. On the application side, developer teams highlight the limitations of public RPCs, which often throttle traffic. The result is unnecessary DevOps resource consumption for chains and a poor experience for Web3 users as public endpoints grind to a halt under a tragedy of the commons. To address these issues, the Lava team is initially focusing on serving Cosmos chains and has already begun working with top teams in the ecosystem.</p><h3>Vision and Mission</h3><p>The problem of RPC level censorship and third party control has been a major point of discussion for nearly a decade in the blockchain community. We believe blockchain data should be accurate. We believe access to this data should be scalable, private, and uncensored.</p><p>Our mission is to power a market for blockchain data with aligned token incentives and an open-source protocol for RPC nodes and APIs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*An0wBdApF_dbszaxXDbV3g.png" /></figure><h3>Community and Roadmap</h3><p>Lava is over 6 months old now and has starting working with many top partners across all of Web3. While our initial focus is Cosmos, we are speaking to new chains every day.</p><p>Ultimately, the RPC support provided by the protocol is only limited by the range of chains Lava providers choose to run nodes for. We are building a fully decentralized, peer-to-peer RPC network supporting all of Web3.</p><p>Follow our progress on <a href="https://discord.gg/5VcqgwMmkA">Discord</a> and <a href="https://twitter.com/lavanetxyz">Twitter</a> to stay up to date. The technical breakdown of the protocol can be found in our <a href="https://lavanet.xyz/assets/lava_litepaper_v0_1.pdf">litepaper</a>.</p><p>Roadmap:</p><ul><li>Private testnet: Now! You can apply<a href="https://forms.gle/MXZxApjGQpDmPT2z5"> here</a>.</li><li>Public testnet: Q4 2022 until mainnet launch</li><li>Mainnet: H1 2023</li></ul><p>Lava is a public good, creating a Web3 accessible to all.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1597b244b9f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lava-network/introducing-lava-a1597b244b9f">Introducing Lava</a> was originally published in <a href="https://medium.com/lava-network">Lava Network</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>