<?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 Divya on Medium]]></title>
        <description><![CDATA[Stories by Divya on Medium]]></description>
        <link>https://medium.com/@divyan73?source=rss-6a2ef63ccc65------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*mk6ftTXcqEHBQsUW.jpg</url>
            <title>Stories by Divya on Medium</title>
            <link>https://medium.com/@divyan73?source=rss-6a2ef63ccc65------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 06:05:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@divyan73/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[Gas Saving By Biconomy]]></title>
            <link>https://medium.com/biconomy/gas-saving-by-biconomy-ea67d7e64d0c?source=rss-6a2ef63ccc65------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea67d7e64d0c</guid>
            <category><![CDATA[gas-saving]]></category>
            <category><![CDATA[biconomy]]></category>
            <category><![CDATA[chi]]></category>
            <category><![CDATA[gastoken]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[Divya]]></dc:creator>
            <pubDate>Wed, 23 Sep 2020 14:56:10 GMT</pubDate>
            <atom:updated>2020-09-23T15:00:42.779Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nlTlmzVYBDB45Qse9JAA8w.jpeg" /></figure><p>Ethereum gas fees are once again the talk of the town! With average transaction fees accumulating to millions of dollars worth of income for miners on a daily basis, developers have started questioning the scalability and economic viability of the Ethereum network.</p><p>Gas is a pseudo currency reflecting the number of computational steps performed by a miner (and other network nodes) while executing a transaction. Since Ethereum contracts may contain a variety of complex logic, the exact consumption of gas can be determined once you’re executing a transaction. Currently, Ethereum’s existing gas prices respond to the relatively limited number of transactions that can be filled in a single block. Miners, in such a scenario, choose the highest-priced transactions as their priority, which means the more the demand for block space, the higher the increase in effective gas prices.</p><p>In the previous article, we looked at how Biconomy is saving up to 30% of transaction fees by modelling “ Just the right price” needed for the transaction. Transactions relayed by Biconomy save on an average of 109 gwei per transaction.</p><p>Moving forward, we are super excited to announce our relayers at Biconomy will come with gas token support that can further optimize transaction fees! This uses a<a href="https://cointelegraph.com/news/a-new-token-lets-you-save-on-ethereum-fees-by-storing-gas"> mechanism</a> that refunds gas when storage space is freed on the Ethereum Virtual Machine.</p><h3>How does a Gas Token save gas?</h3><p>The basic concept of Gas tokens is that it takes advantage of the Ethereum storage refund where Ethereum provides a refund for each zeroed element, to encourage smart contract developers to erase unnecessary storage.</p><p>This means that when you mint (deploy) a gas token Contract at low prices (or stable periods of congestion) and burn (destroy) them in a transaction at a higher price (or high periods of congestion), gas gets refunded and is then included in the current transaction and ultimately reduces the overall gas used and the transaction cost.</p><p>Biconomy is using the <a href="https://medium.com/@1inch.exchange/1inch-introduces-chi-gastoken-d0bd5bb0f92b"><em>Chi Gas token by 1inchExchange</em></a><em> </em>in its infrastructure because of its efficiency.</p><h3>How does it work?</h3><p>The working is quite simple as explained above, you mint at a lower price and burn them at a higher price. The only thing to keep in mind is at what price the Chi token should be burned to make it efficient and to take the maximum benefit from it.</p><p><strong>Calculate Efficiency</strong></p><p>The efficiency can be calculated as below</p><p>y = (24000 * x / (35678 + 6053 * x) ) * 100</p><p>where y is the <em>efficiency</em> &amp; x is the ratio of <em>current gas price/token mint price</em>.</p><p>Let’s take an <strong>example</strong>.</p><p>Suppose the current gas price is 100Gwei and you have minted the Chi tokens at 60 Gwei.</p><p>y = (24000 * (100/60)/ (35678 + 6053 * (100/60))) * 100</p><p>y = 87.4 (approx)</p><p>If the efficiency is &gt;100 then only the maximum benefit of the gas refund can be redeemed. Hence, in the above example, <em>it will be inefficient for the user to burn the token as minting cost will be higher than the burning benefit</em>.</p><p><strong>Calculate the number of tokens to be burn</strong></p><p>Similar to efficiency, it is important to find how much Chi gas tokens should be burned to get the maximum refund as we can only get up to 50% of the gas refund in a transaction.</p><p>GasSpent = 21000 + gasStart — gasleft() + 16 * msg.data.length;</p><p>Total no. of tokens to be burned = (gasSpent + 14154) / 41947);</p><p>The above calculation is already being done in Chi’s “<em>discountCHI” </em>modifier which users only need to include in their smart contracts.</p><p>We made a cool Chi gas token calculator which you can access here:<a href="https://docs.google.com/spreadsheets/d/1DMGqpLTBAqBYti43z_UopZyB5Ydm26MOMB-53v7lcXI/edit#gid=0"> <em>Gas Saving Model</em></a>. Just add your transaction-related data and you can check how much gas can be saved by using Chi gas Token in that transaction.</p><h3><strong>Why are we using a Gas Token at Biconomy?</strong></h3><p>Since we are optimising transactions, the gas token has growing demand in helping to reduce gas fees. Developers across a number of projects are attempting to implement gas tokens internally. The biggest issue and question they face is <strong><em>When </em></strong>to mint Gas tokens because, for that, one needs to constantly monitor the market and actually spend time to come up with a solution to automate the token minting/burning process in a timely and efficient manner. All this overhead a developer would have to undertake is being handled by Biconomy, including:</p><p>1. Deciding when to Mint the token</p><p>2. Deciding when to Burn the Token</p><p>3. Monitoring the market price continuously</p><p>4. Coming up with more efficient and better solutions to decide the Average Mint Price</p><p>We believe while building a DApp and your job should be to grow your user base and your platform, not worry about gas tokens and other infra bottlenecks.</p><p><strong>Approach 1 (Current System):</strong></p><p>As per the current approach, we “set” the mint gas price as per our understanding of the market and what we think is the low gas price. The cron job keeps tracking the current price and if the price goes below or becomes equal to the “set” price then it automatically starts minting the gas token. It will also manage and stop the minting automatically when the current price goes above the “set” price.</p><p><strong>Approach 2</strong></p><p>Moving forward the plan is to keep track of <em>current gas price (spot gas price), last 30 days average gas price and last 90 days average gas price</em> and if the spot gas price falls between the 30 days and 90 days average or goes further down the 90 days average, we consider it a good time to buy the gas tokens.</p><p>We are planning to mint 100000 gas tokens over a 2 month period to support transactions going via Biconomy on Ethereum Network.</p><p>Minting will also be dependent on when we think it’s affordable to mint gas tokens and when the number of transactions increases.</p><h3><strong>What’s Next?</strong></h3><p>Biconomy is laser-focused on building the first chain agnostic optimized transaction highway.</p><p>Our support of the gas token marks the second out of three approaches we have to help reduce gas prices on Ethereum.</p><p>Additional explorations in our roadmap include the research we have made showing how high gas fees paid for some priority transactions can possess potential security risks on Ethereum for front running, also known as miner extractable value (MEV).</p><p>We are very excited and head down to release our next module called “Bunch” that can further optimise the transactions via transaction batching.</p><p>We are big fans of some of the layer 2 solutions such as Matic, optimism, xDai but moving assets on layer 2 give birth to a plethora of other problems. While we are huge fans of Layer 2 and as a result have already ensured Biconomy is compatible with xDai and Matic Network, we believe it is important to solve the gas problem on layer 1 and our results clearly demonstrate that up to 30–40% of gas fees can be saved via transaction batching. Thus with all the measures and approaches, we are taking, Biconomy can save up to 50% of gas fees going forward.</p><p><strong>About Biconomy:</strong></p><p>At Biconomy, our mission is to make next-generation technologies simple to use. We are building a smart relayer infrastructure network for blockchain transactions that reduces the friction between applications built on the blockchain and the end-users. Biconomy’s relayer network comprises a suite of SDKs and APIs that simplify the DApp development process for developers as well as abstracting many of the blockchain complexities, vastly enhancing the end-user experience for DApps and wallets.</p><p>Website: <a href="https://biconomy.io/">https://biconomy.io</a></p><p>Twitter: <a href="https://twitter.com/biconomy">https://twitter.com/biconomy</a></p><p>Telegram: <a href="https://t.me/biconomy">https://t.me/biconomy</a></p><p>Discord: <a href="https://discord.gg/X2EGFBx">https://discord.gg/X2EGFB</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea67d7e64d0c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/biconomy/gas-saving-by-biconomy-ea67d7e64d0c">Gas Saving By Biconomy</a> was originally published in <a href="https://medium.com/biconomy">Biconomy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Biconomy Supports xDai Chain]]></title>
            <link>https://medium.com/biconomy/biconomy-supports-xdai-chain-4d21d1f70222?source=rss-6a2ef63ccc65------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d21d1f70222</guid>
            <category><![CDATA[poa]]></category>
            <category><![CDATA[xdai]]></category>
            <category><![CDATA[biconomy]]></category>
            <category><![CDATA[meta-transactions]]></category>
            <category><![CDATA[blockchain-agnostic]]></category>
            <dc:creator><![CDATA[Divya]]></dc:creator>
            <pubDate>Fri, 15 May 2020 16:10:07 GMT</pubDate>
            <atom:updated>2020-05-15T16:10:07.256Z</atom:updated>
            <content:encoded><![CDATA[<p>Yes, you heard it right ;)</p><p>As per our blockchain agnostic architecture, we have been working hard to provide support on more and more Blockchains. After supporting Ethereum and Matic chain, now we have successfully supported the xDai Stable Chain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HtbVTaGBJhK1xCEibIPvgA.jpeg" /></figure><p>If you have a Dapp on xDai Chain and looking for meta-transaction services to improve your UX, <em>your search has ended</em>.</p><h3>A Quick intro about xDai chain</h3><p>The xDai chain is an EVM sidechain created by <strong>POA Network</strong> in partnership with MakerDAO. Its underlying architecture is the same as Ethereum 1.0, which means that smart contracts can be written and deployed in exactly the same way as we do on Ethereum.</p><p>The reasons to use xDai Stable Chain are</p><ul><li>Fast transactions</li><li>Low transaction fees</li><li>Wide-ranging Community Support</li><li>Compatibility with other EVM-based chains like Ethereum, Ethereum Classic and others.</li></ul><h3>Smart Contract deployment on xDai Testnet</h3><p>There is <em>no current xDai Testnet</em> for Smart contract deployment and testing. However, the POA Sokol network is available for the testing and deployment of the smart contract.</p><blockquote>POA Sokol: A test network requiring POA Sokol token.</blockquote><p>Go to <a href="https://faucet-sokol.herokuapp.com/"><em>Faucet</em></a> to get some POA test tokens</p><ul><li><strong>RPC: </strong><a href="https://sokol.poa.network/">https://sokol.poa.network</a></li><li><strong>Network_ID: </strong>77</li></ul><p>Check out <a href="https://kauri.io/poa-part-1-develop-and-deploy-a-smart-contract/549b50d2318741dbba209110bb9e350e/a">this detailed article</a> on POA Sokol network smart contract deployment.</p><h3>Smart Contract deployment on xDai Mainnet</h3><p>After functionality is tested and confirmed, you will also need a <a href="https://www.xdaichain.com/for-users/get-xdai-tokens">small amount of xDai</a> to deploy a contract.</p><ul><li><strong>RPC: </strong><a href="https://dai.poa.network/">https://dai.poa.network</a></li><li><strong>Network_ID: </strong>100</li></ul><p>After smart contract deployment, let&#39;s move on to <strong>Biconomy Integration</strong> in your Dapp to enable a seamless and Gasless UX.</p><p>Step 1: Register / Login to <a href="https://dashboard.biconomy.io/">Biconomy Dashboard</a>.</p><p>Step 2: Verify your account.</p><p>Step 3: Click on “Register” and create your Dapp</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*UTczmvYl5U4BYISa2R2qXQ.png" /></figure><p>Step 4: Select “xDai Mainnet” while selecting the network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/514/1*XcvpJWcZtU7TYjOXHVWVvg.png" /></figure><p>Your Dapp is created on the Dashboard and now you just have to register your smart contracts, and register methods on which you want to enable meta-transaction.</p><p>Step 5: <a href="https://docs.biconomy.io/biconomy-sdk-mexa">Integrate our SDK</a>, and relay your transactions via Biconomy Relayers.</p><p>For Step by step process, check out our <a href="https://docs.biconomy.io/biconomy-dashboard">documentation</a>.</p><h3>Important Links</h3><ul><li><strong>Biconomy Documentation</strong>: <a href="https://docs.biconomy.io/biconomy-dashboard">https://docs.biconomy.io/biconomy-dashboard</a></li><li><strong>xDai Documentation</strong>: <a href="https://www.xdaichain.com/">https://www.xdaichain.com/</a></li><li><strong>POA Documentation</strong>: <a href="https://www.poa.network/">https://www.poa.network/</a></li></ul><p>If you have any questions, comments, or feedback, please do contact us!</p><p><strong>About Biconomy:</strong></p><p>At Biconomy, our mission is to make next-generation technologies simple to use. We are building a smart relayer infrastructure network for blockchain transactions that reduces the friction between applications built on the blockchain and the end-users. Biconomy’s relayer network comprises a suite of SDKs and APIs that simplify the DApp development process for developers as well as abstracting many of the blockchain complexities, vastly enhancing the end-user experience for DApps and wallets.</p><p>Website: <a href="https://biconomy.io/">https://biconomy.io</a></p><p>Twitter: <a href="https://twitter.com/biconomy">https://twitter.com/biconomy</a></p><p>Telegram: <a href="https://t.me/biconomy">https://t.me/biconomy</a></p><p>Discord: <a href="https://discord.gg/X2EGFBx">https://discord.gg/X2EGFBx</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d21d1f70222" width="1" height="1" alt=""><hr><p><a href="https://medium.com/biconomy/biconomy-supports-xdai-chain-4d21d1f70222">Biconomy Supports xDai Chain</a> was originally published in <a href="https://medium.com/biconomy">Biconomy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Biconomy Supports Native Meta Transactions]]></title>
            <link>https://medium.com/biconomy/biconomy-supports-native-meta-transactions-243ce52a2a2b?source=rss-6a2ef63ccc65------2</link>
            <guid isPermaLink="false">https://medium.com/p/243ce52a2a2b</guid>
            <category><![CDATA[gasless-transactions]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[biconomy]]></category>
            <category><![CDATA[web3j]]></category>
            <category><![CDATA[native-meta-transaction]]></category>
            <dc:creator><![CDATA[Divya]]></dc:creator>
            <pubDate>Mon, 03 Feb 2020 16:30:04 GMT</pubDate>
            <atom:updated>2020-04-03T10:08:29.495Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Frequently used terms :</em></p><blockquote><strong>Relayer</strong>: Any address which signs and relays the transaction on behalf of the user.</blockquote><blockquote><strong>Proxy contract</strong>: Smart Contract, owned by user’s external account, capable of relaying transactions received by it to any contract address.</blockquote><h3>Two ways to do Gasless transactions</h3><ol><li><strong>With Proxy Contract (Meta Transaction)</strong><em>:</em> It is similar to regular network transactions. The only difference is the transaction is signed via Relayer (third party or otherwise) and sent to the receiving contract via a Proxy contract to resolve the <em>msg.sender</em> problem. <em>Creating a proxy contract for each and every user is an expensive process.</em></li></ol><p><em>Checkout </em><a href="https://medium.com/biconomy/the-meta-transaction-flow-ed98cd750ef0"><em>The Meta Transaction Flow — Biconomy</em></a></p><p><strong>2. Without Proxy Contract (Native Meta Transaction)</strong>: Biconomy is now supporting Native Meta transactions, which will directly Relay user signed transactions to the receiving contract. This will resolve the msg.sender problem as the receiving Smart Contract will extract sender information from the signature parameter and hence remove the need for a Proxy contract.</p><h3>How Native meta transactions work?</h3><p>To enable native meta-tx in your Dapp, the developer needs to extract the <strong><em>signer</em> <em>address</em></strong> through the signature in the smart contract itself rather than using <em>msg.sender</em>.</p><p>In this way, when the Relayer relays the <strong>Signed</strong> transaction, on behalf of the user, the transaction data and the signer can be verified. Hence, this removes the dependency of proxy contract mapping for user identity and makes third-party relayers completely trustless.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*32ps3zo6dtCD8gfwYNBQqQ.png" /><figcaption>Native meta-transaction flow via Biconomy</figcaption></figure><h3>How to enable this in Smart Contracts?</h3><ol><li>Inherit <a href="https://github.com/bcnmy/metatx-standard/blob/master/src/contracts/EIP712MetaTransaction.sol">EIP712MetaTransaction</a> contract or use your own implementation.</li><li>Use msgSender() method where ever you were using msg.sender.</li><li>(Optional) Use msgRelayer() method to get the relayer address who paid for transaction gas fees That’s it. Pretty simple :)</li></ol><h3>How to enable this in client code?</h3><p>In order to execute meta transactions you just need to call executeMetaTransaction(address userAddress, bytes memory functionSignature, bytes32 sigR, bytes32 sigS, uint8 sigV) inherited from EIP712MetaTransaction.sol</p><p>userAddress =&gt; externally owned address of the user eg the user address in his metamask wallet</p><p>functionSignature =&gt; ABI encoding of function name with its parameter. Use web3 <a href="https://web3js.readthedocs.io/en/v1.2.4/web3-eth-contract.html#methods-mymethod-encodeabi">encodeABI</a> method here</p><p>sigR =&gt; 32 bytes r part of the signature</p><p>sigS =&gt; 32 bytes s part of the signature</p><p>sigV =&gt; integer v part of the signature</p><p>r,s,v can be calculated using web3 <a href="https://web3js.readthedocs.io/en/v2.0.0-alpha/web3-utils.html#getsignatureparameters">getSignatureParameters</a> utility method.</p><p>Since this standard supports <a href="https://eips.ethereum.org/EIPS/eip-712">EIP-712</a> so signature parameters should be generated using eth_signTypedData_v3 or eth_signTypedData_v4 JSON RPC method.</p><p>Check out the GitHub <a href="https://github.com/bcnmy/metatx-standard">repository</a> for the example codes</p><p>Stay Tuned for our next article.</p><p><strong>Thanks for reading! :)</strong></p><p><em>Thanks to </em><a href="https://medium.com/@sachin.arox"><em>Sachin Tomar</em></a><em> and </em><a href="https://medium.com/@balaghi">Ahmed Al-Balaghi</a> <em>for their contribution to this article!</em></p><p>Github: <a href="https://github.com/bcnmy/mexa-sdk">https://github.com/bcnmy/mexa-sdk</a></p><p>Telegram Channel: <a href="https://t.me/biconomy">https://t.me/biconomy</a></p><p>Website: <a href="https://biconomy.io/">https://biconomy.io</a></p><p>Twitter: <a href="https://twitter.com/biconomy">https://twitter.com/biconomy</a></p><p>Email: support@biconomy.io</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=243ce52a2a2b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/biconomy/biconomy-supports-native-meta-transactions-243ce52a2a2b">Biconomy Supports Native Meta Transactions</a> was originally published in <a href="https://medium.com/biconomy">Biconomy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>