<?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 Anubhav Girdhar on Medium]]></title>
        <description><![CDATA[Stories by Anubhav Girdhar on Medium]]></description>
        <link>https://medium.com/@anubhavgirdhar?source=rss-f37f5d318ae------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*jix1jtdLEmi6cmgK4ZZs6Q.png</url>
            <title>Stories by Anubhav Girdhar on Medium</title>
            <link>https://medium.com/@anubhavgirdhar?source=rss-f37f5d318ae------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 19:44:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anubhavgirdhar/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[Next chapter : Announcing our $2.5M Raise]]></title>
            <link>https://medium.com/parcelhq/next-chapter-announcing-our-2-5m-raise-cfced9378913?source=rss-f37f5d318ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/cfced9378913</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[treasury-management]]></category>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[dao]]></category>
            <dc:creator><![CDATA[Anubhav Girdhar]]></dc:creator>
            <pubDate>Fri, 03 Sep 2021 15:29:52 GMT</pubDate>
            <atom:updated>2021-09-03T15:29:52.025Z</atom:updated>
            <content:encoded><![CDATA[<h3>Next chapter: Announcing our $2.5M Raise</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8rSiqvTR3b8qjTTG3A7Y_g.png" /></figure><p>We’re stoked to share that we’ve raised a $2.5M Seed Round led by <a href="https://www.dcp.capital/">Dragonfly Capital</a> with strategic investments from <a href="https://scalar.capital/">Scalar Capital</a>, <a href="https://acapital.com/">A Capital</a>, <a href="https://compound.vc/">Compound</a>, <a href="https://consensys.net/">Consensys</a>, <a href="https://www.6thman.ventures/">6th Man Ventures</a>, Cooper Turley, Leighton Cusack and Ryan Sean Adams amongst many others.</p><p>It’s such a special moment for us in our mission to build a fluid treasury management network for DAOs.</p><p>We’d like to make use of this opportunity to share some brief thoughts on how we got here, what the raise means, and what’s next for us.</p><h3>How we got here</h3><p>It all started with pain points we saw DAOs facing daily, across the board. Where others saw obstacles, we saw opportunities. The solution eventually became Parcel: a seamless platform built to simplify people management, payments, and collaboration in one place. Now, we’ve helped more than 40 DAOs to run payroll, disburse grants and airdrops with mass payouts of over $8M.</p><h3>The Raise</h3><p>Our seed round marks the next chapter for Parcel to build a network for treasury management to help DAOs with diversification, token buybacks and capital efficiency through automated asset allocation strategies.</p><p>It’s a cause for celebration; however, the journey has just begun. Armed with our speed, agile team, and ability to adapt, we’ve been able to quickly become the best. We’re excited about what the future holds and how we can grow by focusing on accelerated development and some key areas with this funding round.</p><h3>Looking Forward</h3><p>So far, we’ve been able to deliver on a seamless payout platform for DAOs but it’s just the beginning for us on this exciting journey. We’ll be sharing more about our plans to launch the network very soon.</p><p>We can’t wait for what’s next, and we couldn’t have done it without our beta partners, our mentors from <a href="https://kernel.community/en/">Gitcoin Kernel</a> and <a href="https://mesh.xyz/tachyon/">Tachyon</a> by Consensys. So thank you, thank you to everyone!</p><p>Last, we’re growing the team. We work remotely and want to keep hiring the best technical and non-technical talent around the world. <a href="https://discord.gg/mATZcMHWfp">Talk to us</a>!</p><h4>Follow Parcel</h4><p><a href="https://parcel.money/">Website</a> | <a href="https://twitter.com/parcelHQ">Twitter</a> | <a href="http://discord.gg/S35FpHJM4Y">Discord</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cfced9378913" width="1" height="1" alt=""><hr><p><a href="https://medium.com/parcelhq/next-chapter-announcing-our-2-5m-raise-cfced9378913">Next chapter : Announcing our $2.5M Raise</a> was originally published in <a href="https://medium.com/parcelhq">Parcel</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simplifying Crypto Payroll at Scale]]></title>
            <link>https://medium.com/parcelhq/simplifying-crypto-payroll-at-scale-39c91afd1e9b?source=rss-f37f5d318ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/39c91afd1e9b</guid>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[payroll]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[crypto-payroll]]></category>
            <dc:creator><![CDATA[Anubhav Girdhar]]></dc:creator>
            <pubDate>Fri, 13 Nov 2020 16:12:21 GMT</pubDate>
            <atom:updated>2020-11-13T16:12:21.913Z</atom:updated>
            <content:encoded><![CDATA[<h3>Simplifying Crypto Payroll — at scale</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2vXEfJx3YAKwzlZ9DFOqFw.png" /><figcaption>Crypto payroll is a headache as team scales</figcaption></figure><p>Having received our salaries in crypto for over a year, We realised running crypto payroll is a headache, regardless of the size of the business.</p><p>The present process involves wallets and services that are not designed to run crypto payroll leading to inefficient, expensive and manual management of payouts. As a result of which, founders/CFOs spend about <strong>15 business days each year to run crypto payroll</strong> instead of growing their business.</p><h3><strong>Crypto payroll lacks a crypto native payroll experience</strong></h3><p>The ground reality is that crypto payroll cannot scale with existing inefficient tools because of the following problems</p><ul><li><strong>Time Consuming —</strong> Keeping track of salaries, individual payouts, manual accounting is a tedious process</li><li><strong>Expensive Fees — </strong>Individual payouts means individual transaction fees for each employee which could be as high as $100 considering the high gas prices lately</li><li><strong>Error Prone Accounting — </strong>Manual Bookkeeping poses a looming risk of financial losses when reporting for financial records or statements to regulators</li><li><strong>Data Centralisation —</strong> Data stored on centralised servers are <a href="https://papayaglobal.com/blog/list-of-payroll-security-breaches/">prone to data breaches and hacks</a> which could result in <a href="https://medium.com/@GdprCash/gdpr-in-numbers-2-gdpr-fines-9450ae55fbb5">heavy penalties and fines</a></li></ul><h3>Dawn of a crypto native payroll experience</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-cAyopQFOP8f49wW0kIOJg.jpeg" /><figcaption>Crypto Payroll crafted to save time and money as you scale</figcaption></figure><p>Crypto Payroll must be crafted to save time so founders can focus on building a better workplace and growing their business.</p><ul><li><strong>One Click Mass Payouts<em> — </em></strong>Pay all team members in their preferred tokens with a single transaction.</li><li><strong>Cost Efficient Transactions — </strong>Batch payments for significantly cheaper transactions.</li><li><strong>Automated Recurring Payments</strong> — Seamlessly automate your payroll so you never have to worry about paydays for employees.</li><li><strong>Integrated Accounting — </strong>Seamless bookkeeping with CSV exports and integrations with existing industry standard tools like quickbooks.</li><li><strong>Data Privacy<em> </em>—</strong> Built in data privacy on top of distributed database viz. IPFS and Filecoin.</li></ul><h3>Who are we?</h3><p>Parcel is simplifying crypto payroll and treasury management with built in data privacy on top of <a href="https://github.com/gnosis/safe-contracts">Gnosis Safe</a>, <a href="https://ipfs.io/">IPFS</a> and <a href="https://filecoin.io/">Filecoin</a>. Our hope is to bring a fundamental change in crypto payroll. We couldn’t be more excited to announce we are coming out of stealth very soon.</p><h4><a href="http://parcel.money/"><strong>Sign up for early access</strong></a></h4><p>We look forward to hearing your suggestions and feedbacks as we refine the experience. You can find us on <a href="https://t.me/parcelHQ">telegram</a>, <a href="https://twitter.com/parcelHQ">twitter</a> and <a href="/service/mailto:hello@parcel.money">email</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0PBNb4_8CkqRdiA9AwDmYA.png" /><figcaption>Simplifying Crypto Payroll and Treasury Management</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39c91afd1e9b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/parcelhq/simplifying-crypto-payroll-at-scale-39c91afd1e9b">Simplifying Crypto Payroll at Scale</a> was originally published in <a href="https://medium.com/parcelhq">Parcel</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Biconomy announces support for DSA]]></title>
            <link>https://medium.com/biconomy/biconomy-announces-support-for-dsa-ca27d9f528ce?source=rss-f37f5d318ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca27d9f528ce</guid>
            <category><![CDATA[biconomy]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[instadapp]]></category>
            <dc:creator><![CDATA[Anubhav Girdhar]]></dc:creator>
            <pubDate>Tue, 07 Jul 2020 11:30:33 GMT</pubDate>
            <atom:updated>2020-07-07T11:30:33.960Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BJfJxWQFtVYfhRdTS5YVAQ.jpeg" /></figure><p>We are excited to announce that Biconomy will be enabling meta transactions support on DSA. Developers building DeFi applications on DSA can now offer gasless transactions to the users by integrating Biconomy, a blockchain agnostic middleware platform with a vision to onboard a billion users to blockchain.</p><p>DSA eliminates the process it takes to launch a decentralized application by removing the need to learn solidity or go through the tedious process of endless debugging and allows users and developers to innovate and execute rapidly.</p><p>Biconomy shares InstaDapp’s vision to make DeFi <strong>easier, scalable, and more secure for users, developers, and protocols alike</strong>. As DApps on DSA gain adoption, it becomes quintessential for developers to provide a seamless experience, similar to the web2 experience. By integrating Biconomy, DSA developers enable better user experience through abstraction of transaction fees from their DeFi applications.</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><p><strong>About DSA</strong></p><p>DSA platform is designed to allow developers to build extensible products and business models on top of DeFi with maximum security and composability. Build compelling use-cases and monetize their models to earn money by serving your users with high reliability.</p><p><strong>Website</strong>: <a href="https://docs.instadapp.io/">https://docs.instadapp.io</a></p><p><strong>Telegram: </strong><a href="https://t.me/instadapp">https://t.me/instadapp</a></p><p><strong>Twitter:</strong> <a href="https://twitter.com/instadapp">https://twitter.com/instadapp</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca27d9f528ce" width="1" height="1" alt=""><hr><p><a href="https://medium.com/biconomy/biconomy-announces-support-for-dsa-ca27d9f528ce">Biconomy announces support for DSA</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[How to Integrate Native Meta Transactions in your DeFi DApp]]></title>
            <link>https://medium.com/biconomy/how-to-integrate-native-meta-transactions-in-your-defi-dapp-3054272f14f1?source=rss-f37f5d318ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/3054272f14f1</guid>
            <category><![CDATA[biconomy]]></category>
            <category><![CDATA[dapps]]></category>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[meta-transactions]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[Anubhav Girdhar]]></dc:creator>
            <pubDate>Mon, 18 May 2020 14:41:57 GMT</pubDate>
            <atom:updated>2020-05-18T19:28:52.125Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This is the third article in a three part series to get you started with building DApps on Ethereum</em></p><p><strong><em>Part 1 : </em></strong><a href="https://medium.com/biconomy/how-to-build-your-first-dapp-75877671e653"><strong><em>How to build a DApp</em></strong></a></p><p>-<em>get started with building your first DApp on Ethereum</em></p><p><strong><em>Part 2 : </em></strong><a href="https://medium.com/biconomy/how-to-build-your-first-defi-dapp-95abeb2d26b7"><strong><em>How to build a DeFi Ap</em></strong></a><strong><em>p</em></strong></p><p><strong><em>-</em></strong><em> build a decentralized finance DApp on Ethereum</em></p><blockquote><a href="https://github.com/bcnmy/compound-demo"><strong><em>Github Repo</em></strong></a><strong><em> </em></strong><em>and </em><a href="https://compound-demo.biconomy.io/"><strong><em>Working Demo</em></strong></a><strong><em> </em></strong><em>of this article</em></blockquote><h3>High Level Overview of Meta transaction</h3><p>A transaction on Ethereum requires users to pay fees (gas) on every transaction in the form of ether. This leads to a complicated UX as users have to understand the inner workings of public blockchains and market dynamics for transaction fees.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2FRbX6nld35ih963.png" /><figcaption>Anatomy of a DApp without Meta transactions</figcaption></figure><h3>Enter Meta Transactions</h3><p>Instead of sending the transaction directly to the blockchain, the user <strong>signs</strong> the transaction and the off-chain relayer <strong>sends</strong> the transaction to the blockchain while paying gas fees for the user.</p><p>Signing a message/transaction using <strong><em>Public</em></strong>-<strong><em>key cryptography</em></strong>, or asymmetric <em>cryptography</em><strong><em> </em></strong><em>does not cost any fees for the user</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BQAJ6d7Nx3HI6EmO.png" /><figcaption>Anatomy of a DApp with Meta Transactions</figcaption></figure><h3>Contract Setup with Signature Verification on chain</h3><h3>What are Signatures?</h3><p>Ethereum uses the <a href="https://en.wikipedia.org/wiki/Elliptic-curve_cryptography">Elliptic Curve Digital Signature Algorithm (ECDSA)</a> to validate the origin and integrity of messages.</p><p>Elliptic Curve Cryptography (ECC) and ECDSA are a specific flavour of asymmetric cryptography. They are widely used in blockchain technology because of three reasons:</p><ul><li>Their computational performance is economical compared to a lot of other algorithms</li><li>The keys that are generated are relatively short</li><li>Bitcoin started it, so most new blockchain projects have copied it</li></ul><p>Solidity provides a globally available method ecrecover that returns an address given the three parameters. If the returned address is the same as the signer’s address, then the signature is valid.</p><ul><li>The keys that are generated are relatively short</li><li>Bitcoin started it, so most new blockchain projects have copied it</li></ul><h3>How to implement EIP712</h3><p>This new standard introduces several concepts which developers must be familiar with, so this section will zoom in on what you need to know to implement it in dApps.</p><p>Take for instance that you are building a decentralised auction dApp in which bidders sign bids off-chain, and a smart contract verifies these signed bids on-chain.</p><h3>Contract Setup with Signature Verification on chain</h3><p>Solidity provides a globally available method ecrecover that returns an address given the three parameters. If the returned address is the same as the signer’s address, then the signature is valid.</p><p>Before a wallet provider signs EIP712-typed data, it first formats and hashes it. As such, your contract needs to be able to do the same in order to use ecrecover to determine which address signed it, and you have to replicate this formatting/hash function in your Solidity contract code. This is perhaps the trickiest step in the process, so be precise and careful here.</p><h3>1. Design your domain separator</h3><blockquote><strong><em>Domain Separator is a mandatory field</em></strong></blockquote><p>‌This helps to prevent a signature meant for one dApp from working in another. As EIP712 <a href="https://github.com/ethereum/EIPs/blob/master/EIPS/eip-712.md#rationale">explains</a>:</p><ul><li><em>It is possible that two DApps come up with an identical structure like Transfer(address from,address to,uint256 amount) that should not be compatible. By introducing a domain separator the dApp developers are guaranteed that there can be no signature collision.</em></li></ul><pre>struct EIP712Domain {<br>    string name;<br>    string version;<br>    uint256 chainId;<br>    address verifyingContract;<br>  }</pre><ul><li><em>It is possible that two DApps come up with an identical structure like Transfer(address from,address to,uint256 amount) that should not be compatible. By introducing a domain separator the dApp developers are guaranteed that there can be no signature collision.</em></li></ul><p><strong>name</strong>: <em>the dApp name, e.g. “Compound-DApp”</em></p><p>‌<strong>version</strong>: <em>The current version number of your dApp or platform. It prevents signatures from one dApp version from working with those of others.</em></p><p>‌<strong>chainId</strong>:<em> Network Id e.g. Kovan Testnet = 42; Main Network = 1</em></p><p>‌<strong>verifyingContract</strong>: <em>The contract address that will verify the resulting signature.</em></p><h3>1. Design your data structures</h3><p><em>this is the structure you intend users to sign</em></p><pre>//This struct verifies transaction data<br>struct MetaTransaction {<br>    address holder;<br>    uint256 nonce;<br>  }</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/409/1*i57GA45pfPq_6ph5JfBBfQ.png" /><figcaption>Glimpse of the metamask popup for signature</figcaption></figure><p><em>Add nonce for replay protection</em></p><pre>mapping(address =&gt; uint256) public nonces;</pre><p><em>Next, define the type hashes to fit your data structures.</em></p><blockquote><strong>Note that there are no spaces after commas and brackets.</strong></blockquote><pre>bytes32 internal constant EIP712_DOMAIN_TYPEHASH =   keccak256(bytes(&quot;EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)&quot;));</pre><pre>bytes32 internal constant META_TRANSACTION_TYPEHASH = keccak256(bytes(&quot;MetaTransaction(address holder,uint256 nonce)&quot;));</pre><h3>3. Modify the respective function</h3><blockquote>Note : Kindly refer to the previous article for continuity of this smart contract</blockquote><p><strong>Make a function to withdraw cEth from the contract</strong></p><pre>function withdraw(address userAddress, uint256 nonce, bytes32 r, bytes32 s, uint8 v) external  {}</pre><p><em>r,s,v are part of the signature formed off-chain which can be used to verify signatures on-chain</em></p><p><strong>Define the hash to verify signature on chain</strong></p><pre>bytes32 digest = keccak256(<br>        abi.encodePacked(<br>        &quot;\x19\x01&quot;,<br>        DOMAIN_SEPARATOR,<br>        keccak256(abi.encode(META_TRANSACTION_TYPEHASH, userAddress, nonce))));</pre><p><strong>Verify signatures on chain</strong></p><pre>require(userAddress != address(0), &quot;invalid-address-0&quot;);<br>require(userAddress == ecrecover(digest, v, r, s), &quot;invalid-signatures&quot;);</pre><p><strong>Check for cEth balance in the contract and transfer to the user</strong></p><pre>uint amount = cEth.balanceOf(address(this));<br>cEth.transfer(userAddress, amount);</pre><p><strong>Increment the nonce after successful transaction</strong></p><pre>nonces[userAddress]++;</pre><p><strong><em>That’s it for the smart contract code!</em></strong></p><blockquote>Deploy the contract on Kovan Network and copy the contract address and abi</blockquote><blockquote>Warning : This is not a safe or secure smart contract, everything has been simplified to not deviate from learning about meta transaction integration. It is advised to not reuse the smart contract code.</blockquote><h3>How to Set Up the frontend to take user’s signatures</h3><h3>1. Write signing code for your dApp</h3><p>Your JavaScript dApp needs to be able to ask MetaMask to sign your data. d</p><p><em>Define data types as defined in the smart contract</em></p><pre>const domainType = [<br>  { name: &quot;name&quot;, type: &quot;string&quot; },<br>  { name: &quot;version&quot;, type: &quot;string&quot; },<br>  { name: &quot;chainId&quot;, type: &quot;uint256&quot; },<br>  { name: &quot;verifyingContract&quot;, type: &quot;address&quot; }<br>];</pre><pre>const metaTransactionType = [<br>  { name: &quot;holder&quot;, type: &quot;address&quot; },<br>  { name: &quot;nonce&quot;, type: &quot;uint256&quot; }<br>];</pre><p>Our domain separator would look like this:</p><blockquote>Note : Use your deployed contract address in the verifyingContract field</blockquote><pre>let domainData = {<br>name: &quot;Compound-DApp&quot;,<br>version: &quot;1&quot;,<br>chainId : &quot;42&quot;, // Kovan<br>verifyingContract: &quot;0x23a950252a89e46c5aB63e8F7906974F5d3d0330&quot; <br>};</pre><p><strong>Fetch nonce from the contract</strong></p><pre>const nonce = await contract.methods.nonces(window.ethereum.selectedAddress).call();</pre><p><strong>Assign values to the JSON signing message</strong></p><pre>let message = {<br>  holder: window.ethereum.selectedAddress,<br>  nonce: parseInt(nonce),<br>};</pre><p><strong>Define data to Sign</strong></p><pre>const dataToSign = JSON.stringify({<br>types: {<br>EIP712Domain: domainType,<br>MetaTransaction: metaTransactionType<br>},<br>domain: domainData,<br>primaryType: &quot;MetaTransaction&quot;,<br>message: message<br>});</pre><p><strong>Next, make the eth_signTypedData_v4 signing call to web3:</strong></p><p><em>Signatures produced by web3.js are the concatenation of r, s, and v, so a necessary first step is splitting those parameters back out.</em></p><pre>web3.currentProvider.sendAsync(<br>{jsonrpc: &quot;2.0&quot;,<br>id: 999999999999,<br>method: &quot;eth_signTypedData_v4&quot;,<br>params: [window.ethereum.selectedAddress, dataToSign],<br>from: signer<br>},<br>function(err, result) {<br>if (err) {<br>return console.error(err);<br>}<br>const signature = result.result.substring(2);<br>const r = &quot;0x&quot; + signature.substring(0, 64);<br>const s = &quot;0x&quot; + signature.substring(64, 128);<br>const v = parseInt(signature.substring(128, 130), 16);<br>}<br>);</pre><p><strong>Call the respective meta transaction enabled function</strong></p><pre>(async function withdraw() {<br>const result = await contract.methods.withdraw(         window.ethereum.selectedAddress, nonce, r, s, v)<br>.send({ from: window.ethereum.selectedAddress })<br>console.log(result)})();</pre><p><strong>Sweet! We just integrated meta transaction in our DeFi DApp.</strong></p><blockquote>The last step is the integration of a relayer who would relay the signed messages by the user and send it to the blockchain.</blockquote><h3>Introducing Biconomy</h3><p><em>Biconomy is a relayer infrastructure network and transaction platform enabling you to build applications easily and reduce the friction between decentralized applications built on the blockchain and end-users.</em></p><h4>Integrating Biconomy is a two step process</h4><ol><li><strong><em>Register your DApp on Biconomy Dashboard</em></strong></li></ol><ul><li>Register your DApp on Biconomy Dashboard</li><li>Upload your Smart Contracts</li><li>Select method to enable Meta Transactions</li></ul><blockquote>Head over to <a href="https://docs.biconomy.io/biconomy-dashboard">Biconomy Docs </a>for step-by-step tutorial to register your dapp</blockquote><p>2) <strong><em>Integrate Mexa SDK</em></strong></p><blockquote>Mexa can be installed either via npm repository or using standalone javascript file using html &lt;script/&gt; tag</blockquote><h4>Install Mexa via npm</h4><pre>npm install @biconomy/mexa</pre><h4>Import and Initialize Mexa</h4><pre>import Biconomy from &quot;@biconomy/mexa&quot;;<br>const biconomy = new Biconomy(window.ethereum,{apiKey: &quot;q9oEztJM8.e8ed08a7-5b38-48e3-b4c0-f66e6b66f407&quot;});<br>web3 = new Web3(biconomy);</pre><h4>Initialize DApp after Mexa initialization</h4><pre>biconomy.onEvent(biconomy.READY, () =&gt; {<br>// Initialize your dapp here like getting user accounts etc<br>await window.ethereum.enable();<br>contract = new web3.eth.Contract(config.contract.abi, config.contract.address);<br>startApp();<br>}).onEvent(biconomy.ERROR, (error, message) =&gt; {<br>// Handle error while initializing mexa<br>console.log(error)<br>});</pre><p>Congratulations 👏</p><p>You have now enabled meta transactions in your DApp. Interact with web3 the way you have been doing it.</p><blockquote><strong>Now whenever there is a write transaction action(registered in mexa dashboard also) initiated from the user , Mexa will ask for user’s signature in an </strong><a href="https://github.com/ethereum/EIPs/blob/master/EIPS/eip-712.md"><strong>EIP-712</strong></a><strong> format and handle the transaction rather than sending signed transaction directly to blockchain from user’s wallet.</strong></blockquote><p>Check out<strong> </strong><a href="https://github.com/bcnmy/compound-demo"><strong>Github Repo</strong></a> and<strong> </strong><a href="https://compound-demo.biconomy.io/"><strong>Working Demo</strong></a><strong> </strong>of this article here.</p><h3>About Biconomy</h3><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>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><p>Discord : <a href="https://discord.gg/dUDTab">https://discord.gg/dUDTab</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IiB7RK86nCeyfATa08D-YQ.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3054272f14f1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/biconomy/how-to-integrate-native-meta-transactions-in-your-defi-dapp-3054272f14f1">How to Integrate Native Meta Transactions in your DeFi DApp</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[How To Build Your First DeFi DApp]]></title>
            <link>https://medium.com/biconomy/how-to-build-your-first-defi-dapp-95abeb2d26b7?source=rss-f37f5d318ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/95abeb2d26b7</guid>
            <category><![CDATA[dapps]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[meta-transactions]]></category>
            <category><![CDATA[biconomy]]></category>
            <dc:creator><![CDATA[Anubhav Girdhar]]></dc:creator>
            <pubDate>Mon, 18 May 2020 14:27:14 GMT</pubDate>
            <atom:updated>2020-05-18T14:48:36.009Z</atom:updated>
            <content:encoded><![CDATA[<p>This article is the second part in a series of articles creating DApps that have awesome user experiences. It is recommended to read the first part of this series before diving into DeFi DApp development</p><blockquote><strong><em>Part 1: </em></strong><a href="https://medium.com/biconomy/how-to-build-your-first-dapp-75877671e653"><strong><em>How to build a DApp</em></strong></a></blockquote><blockquote><strong><em>-</em></strong><em> build your first DApp on Ethereum</em></blockquote><blockquote><strong><em>Part 3 : </em></strong><a href="https://medium.com/biconomy/how-to-integrate-native-meta-transactions-in-your-defi-dapp-3054272f14f1"><strong><em>How to integrate meta transactions in a DeFi DApp</em></strong></a></blockquote><blockquote><em>-integrate gasless transactions in your DApp or DeFi DApp</em></blockquote><h3>What’s DeFi?</h3><p><strong><em>Decentralized Finance</em></strong><em> (DeFi) aims to provide a suite of globally accessible financial tools and services like savings, loans, insurance and more to anyone in the world.</em></p><p><em>In a nutshell, DeFi, also known as Open Finance, deals with new forms of money and value built on public blockchains.</em></p><p><strong><em>For the sake of simplicity, this DApp deposits ether into compound finance and gets cEth tokens in return, deployed on Kovan Network.</em></strong></p><h3>What’s Compound Finance Protocol?</h3><p><a href="https://compound.finance/"><em>Compound</em></a><em> is an algorithmic, autonomous interest rate protocol built for developers, to unlock a universe of open financial applications.</em> <em>By allowing the creation of money markets on Ethereum, Individuals are able to earn interest on digital assets that they supply to the protocol.</em></p><h3>Prerequisites</h3><ul><li><a href="https://devdocs.io/javascript/">Javascript</a></li><li>Basic <a href="https://solidity.readthedocs.io/en/v0.5.0/resources.html">Solidity</a></li></ul><h3>Smart Contract</h3><p><strong>It is recommended to use </strong><a href="https://remix.ethereum.org/"><strong>Remix</strong></a><strong> to create and deploy smart contracts quickly</strong></p><p><strong>Note</strong> : <em>To learn more about Remix and how to use it, refer to the </em><a href="https://www.dropbox.com/scl/fi/7ffqska9k1rszi64gy03b/How-to-build-Your-First-DApp.paper?dl=0&amp;rlkey=r2zewmcgl4uje46fknjnxmnew"><em>first</em></a><em> article of this series</em></p><p><strong>Declare compiler version</strong></p><p>pragma solidity ^0.5.0;</p><p><strong>Declare contract statement</strong></p><p>contract Zap {}</p><p><strong>Declare your interface</strong></p><p><em>Interface lets a smart contract call other smart contracts</em></p><pre>interface CtokenInterface {<br>  function mint() external payable;<br>  function transfer(address, uint256) external returns (bool);<br>  function balanceOf(address owner) external view returns (uint256);<br>}</pre><p><strong>Declare an instance of cEth</strong></p><pre>address cEthAddress = 0xf92FbE0D3C0dcDAE407923b2Ac17eC223b1084E4;<br>CtokenInterface cEth = CtokenInterface(cEthAddress);</pre><p><strong>Deposit Function</strong></p><p><em>mints cEth and stores it in the contract</em></p><pre>function deposit() external payable {<br>  cEth.mint.value(msg.value)();<br>}</pre><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/da71264fa4e3e27d870e53a7de0acc1d/href">https://medium.com/media/da71264fa4e3e27d870e53a7de0acc1d/href</a></iframe><blockquote>Deploy the contract on kovan network and copy the contract address and ABI.</blockquote><h3>Client Side</h3><h4>Install web3</h4><pre>npm install web3<br>const Web3 =  require(&quot;web3&quot;);</pre><h4>Declare Contract Address</h4><p>const contractAddress = &quot;0x722870Eca028c681994c4d82DA3b82f1263Ca07e&quot;;</p><h4>Declare Contract Abi</h4><pre>const contractAbi = [{&quot;constant&quot;:true,&quot;inputs&quot;:[{&quot;internalType&quot;:&quot;address&quot;,&quot;name&quot;:&quot;owner&quot;,&quot;type&quot;:&quot;address&quot;}],&quot;name&quot;:&quot;balanceOf&quot;,&quot;outputs&quot;:[{&quot;internalType&quot;:&quot;uint256&quot;,&quot;name&quot;:&quot;&quot;,&quot;type&quot;:&quot;uint256&quot;}],&quot;payable&quot;:false,&quot;stateMutability&quot;:&quot;view&quot;,&quot;type&quot;:&quot;function&quot;},{&quot;constant&quot;:false,&quot;inputs&quot;:[{&quot;internalType&quot;:&quot;address&quot;,&quot;name&quot;:&quot;&quot;,&quot;type&quot;:&quot;address&quot;},{&quot;internalType&quot;:&quot;uint256&quot;,&quot;name&quot;:&quot;&quot;,&quot;type&quot;:&quot;uint256&quot;}],&quot;name&quot;:&quot;transfer&quot;,&quot;outputs&quot;:[{&quot;internalType&quot;:&quot;bool&quot;,&quot;name&quot;:&quot;&quot;,&quot;type&quot;:&quot;bool&quot;}],&quot;payable&quot;:false,&quot;stateMutability&quot;:&quot;nonpayable&quot;,&quot;type&quot;:&quot;function&quot;}]</pre><h4>Form a Contract</h4><p>const myContract = new web3.eth.Contract(contractAbi, contractAddress);</p><h4>Send Transaction to Smart Contract</h4><p><em>depositing 1 ether into compound</em></p><pre>(function deposit(){await myContract.methods.deposit().send({<br>  from : window.ethereum.selectedAddress,<br>  value : 1000000000000000000})<br>})();</pre><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f57c35d1fec3c4c686d811a1539fb738/href">https://medium.com/media/f57c35d1fec3c4c686d811a1539fb738/href</a></iframe><p><strong><em>After making the changes, on reload, a metamask transaction would pop up to send the transaction</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SZeUw4jOP5ZZqp5d.PNG" /></figure><p><strong><em>after confirming the metamask popup,the transaction should look like this</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SUWa0aXp2zBHx-WE.PNG" /><figcaption>Final Transaction on Etherscan</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*5bcyP_krxEOQ2uDG.gif" /></figure><h3>What’s Next?</h3><p>The requisite for the users to pay for gas fees on each transaction to the blockchain hampers the user experience of a DApp. Head over to our next article to integrate gasless or meta transactions and offer a smoother UX for your DApp</p><p><strong>Article 3</strong> : <a href="https://medium.com/biconomy/how-to-integrate-native-meta-transactions-in-your-defi-dapp-3054272f14f1">How to Integrate Native Meta Transactions in your DeFi Dapp</a></p><h3>External Links</h3><p><a href="https://remix-ide.readthedocs.io/en/latest/">Remix IDE</a></p><p><a href="https://solidity.readthedocs.io/en/v0.5.0/resources.html">Solidity</a></p><p><a href="https://web3js.readthedocs.io/en/v1.2.6/">web3</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95abeb2d26b7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/biconomy/how-to-build-your-first-defi-dapp-95abeb2d26b7">How To Build Your First DeFi DApp</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[How to build Your First DApp]]></title>
            <link>https://medium.com/biconomy/how-to-build-your-first-dapp-75877671e653?source=rss-f37f5d318ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/75877671e653</guid>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[biconomy]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[meta-transactions]]></category>
            <category><![CDATA[dapps]]></category>
            <dc:creator><![CDATA[Anubhav Girdhar]]></dc:creator>
            <pubDate>Mon, 18 May 2020 14:22:56 GMT</pubDate>
            <atom:updated>2020-05-18T19:26:12.552Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This article is a quick guide to get started with tools and architecture for building a DApp on Ethereum.</em></p><p><strong>This is a 3 part series to get you started with building DApps on Ethereum:</strong></p><blockquote><strong><em>Part 2 : </em></strong><a href="https://medium.com/biconomy/how-to-build-your-first-defi-dapp-95abeb2d26b7"><strong><em>How to build a DeFi DApp</em></strong></a></blockquote><blockquote><strong><em>-</em></strong><em> </em>build a decentralized finance DApp on Ethereum</blockquote><blockquote><strong><em>Part 3 : </em></strong><a href="https://medium.com/biconomy/how-to-integrate-native-meta-transactions-in-your-defi-dapp-3054272f14f1"><strong><em>How to integrate meta transactions in a DeFi DApp</em></strong></a></blockquote><blockquote>-integrate gasless transactions in your DApp or DeFi DApp</blockquote><h3>Introduction</h3><h4>What’s a DApp</h4><p><em>DApps or Decentralized Apps are applications built on a public blockchain to leverage secure and open systems for protecting against centralized points of failure, attacks and frauds</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0IC_eBFK9P9moXlq.png" /></figure><p><strong>To get started, we will be deploying a Quotes DApp to store a quote* and its respective owner* on the Blockchain and provide interface for the same on client side</strong></p><p><strong>quote</strong>* : <em>a string of words</em></p><p><strong>owner</strong>* : <em>the account sending the quote to the blockchain</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SclJzbkW8D3WDtTf.PNG" /><figcaption>Glimpse of the DApp</figcaption></figure><h4>Prerequisites</h4><ul><li><a href="https://devdocs.io/javascript/">Javascript</a></li><li>Basic <a href="https://solidity.readthedocs.io/en/v0.5.0/resources.html">Solidity</a></li><li><a href="https://metamask.io/">Metamask</a></li></ul><h3>Get Started</h3><p>To make a DApp, We need a smart contract and client side with web3</p><h4>Smart Contract</h4><p><a href="https://remix.ethereum.org/"><strong>Remix</strong></a> is a powerful, open source tool that helps you write Solidity contracts straight from the browser. Remix also supports testing, debugging and deploying of smart contracts and much more.</p><blockquote><strong>It is recommended to use </strong><a href="https://remix.ethereum.org/"><strong>Remix</strong></a><strong> to create and deploy smart contracts quickly</strong></blockquote><p>Head over to<strong> </strong><a href="https://remix.ethereum.org/"><strong>https://remix.ethereum.org/</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sCAzVa7x_VxrKCVA.PNG" /></figure><p>On top-left, click on + and name your file as <strong>quotes.sol</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/416/0*104wSYnMW3y6D9tL.PNG" /></figure><p>Boom! You’re all set to write your first line of smart contract code</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VqIfGHk83GaZ0xYtokqh5w.png" /></figure><h3>Let’s Code!</h3><p><em>Make sure the solidity version declared in the contract matches your compiler version</em></p><p><strong>Mention Compiler Version</strong></p><p>pragma solidity ^0.5.0;</p><p><strong>Declare Contract Statement</strong></p><p><em>All the logic of the contract goes inside these curly braces</em></p><p>contract Quote { }</p><p><strong>Add Public Variables</strong></p><p><strong><em>quote</em></strong><em> is used to store the current quote in our smart contract</em></p><p><strong><em>owner</em></strong><em> is used to store the owner of the current quote</em></p><pre>string public quote;<br>address public owner;</pre><p><strong>Setter Function</strong></p><p><em>updates the current quote and the current owner of the quote</em></p><pre>function setQuote(string memory newQuote) public {<br>quote = newQuote;<br>owner = msg.sender;<br>}</pre><p><em>Note : msg.sender is a global variable in solidity which is the address sending the transaction to the blockchain</em></p><p><strong>Getter Function</strong></p><p><em>returns</em> <em>the current quote and the current owner of the quote</em></p><pre>function getQuote() public view returns(string memory currentQuote, address currentOwner) {<br>   currentQuote = quote;<br>   currentOwner = owner;<br>}</pre><p><strong>That’s it for the smart contract code!</strong> 😊</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/02c66328585480614ade5b7926dab2e2/href">https://medium.com/media/02c66328585480614ade5b7926dab2e2/href</a></iframe><h3>Three important steps before we go to the client side code</h3><ol><li><a href="https://remix-ide.readthedocs.io/en/latest/run.html"><em>Deploy</em></a><em> the smart contract to</em><a href="https://kovan-testnet.github.io/website/"><em> kovan</em></a><em> network*</em></li></ol><ul><li>select the compiler version as stated in our smart contract</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/0*FMgGJC-tOOAyjlce.PNG" /></figure><ul><li>inject web3 and set metamask to kovan</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/407/0*rUYFXNk8pEsgPTtc.PNG" /></figure><p>Note : Your metamask account should be funded before deploying the smart contract.</p><ul><li>Request test ether on kovan <a href="https://gitter.im/kovan-testnet/faucet">here</a></li><li>compile quotes.sol</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/0*8dI6NwF4sX4Ne19x.PNG" /></figure><ul><li>deploy quotes.sol</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/0*5bRHLV5aY4G1KIF4.PNG" /></figure><p><em>2. Copy the deployed contract’s address</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/0*5h00oaGmiwK-_wWP.PNG" /></figure><p><em>3. Copy the ABI ( Application Binary Interface )</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/0*7hEXQOBJYxUiyalO.PNG" /></figure><p><strong>kovan</strong>* — <em>a test network for ethereum blockchain, all assets are test assets and have no market value</em></p><h3>Client Side</h3><p><strong>Set up a modern web app by running one command</strong></p><pre>npx create-react-app quotes-dapp<br>cd quotes-dapp<br>npm start</pre><p><strong>It should load the environment like this on your browser</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Fm3-C67FCGoFbwfy.PNG" /></figure><p><strong>Next step is to install web3</strong></p><p>npm install web3</p><p><strong>Lets move to src/App.js where all the action is happening</strong></p><p>Add</p><pre>import React from &quot;react&quot;;<br>import React, { useState, useEffect } from &quot;react&quot;;<br>import Web3 from &#39;web3&#39;;</pre><p>Declare the necessary variables in the <strong>App Function</strong></p><pre>let web3;<br>let userAccount;</pre><p>Add this in the <strong>App Function to initialize web3</strong></p><p>As per the <a href="https://docs.metamask.io/guide/ethereum-provider.html">Metamask API documentation</a>:</p><ul><li><em>MetaMask injects a global API into websites visited by its users at </em><strong><em>window.ethereum</em></strong><em> (</em><strong><em>Also available at window.web3.currentProvider for legacy reasons</em></strong><em>). This API allows websites to request user login, load data from blockchains the user has a connection to, and suggest the user sign messages and transactions. You can use this API to detect the user of a web3 browser.</em></li></ul><pre>useEffect(() =&gt; {(<br>async function () {</pre><pre>// Modern dapp browsers...<br>if (window.ethereum) {<br>web3 = new Web3(window.ethereum);<br>try {<br>// Request account access if needed<br>await window.ethereum.enable();<br>userAccount = (await web3.eth.getAccounts())[0];<br>startApp();<br>} catch (error) {<br>// User denied account access...<br>}<br>}<br>// Legacy dapp browsers...<br>else if (window.web3) {<br>window.web3 = new Web3(web3.currentProvider);<br>userAccount = (await web3.eth.getAccounts())[0];<br>startApp();<br>}</pre><pre>// Non-dapp browsers...<br>else {<br>console.log(&quot;Non-Ethereum browser detected. You should consider trying MetaMask!&quot;);<br>}<br>})()<br>}, [])</pre><p><strong>After initializing web3, we are calling the startApp function</strong></p><p>First, declare the function</p><p>async function startApp() {}</p><p><strong>Add contract address</strong></p><p><em>deployed contract address from remix</em></p><blockquote>replace the contract address from your deployed contract address on remix</blockquote><p>const address = &quot;0x2Fb33202f99510FD2d1f7522d8709889b7858024&quot;;</p><p><strong>Add ABI</strong></p><p><em>ABI copied from remix</em></p><pre>const abi = [{&quot;constant&quot;:false,&quot;inputs&quot;:[{&quot;internalType&quot;:&quot;string&quot;,&quot;name&quot;:&quot;newQuote&quot;,&quot;type&quot;:&quot;string&quot;}],&quot;name&quot;:&quot;setQuote&quot;,&quot;outputs&quot;:[],&quot;payable&quot;:false,&quot;stateMutability&quot;:&quot;nonpayable&quot;,&quot;type&quot;:&quot;function&quot;},{&quot;constant&quot;:true,&quot;inputs&quot;:[],&quot;name&quot;:&quot;getQuote&quot;,&quot;outputs&quot;:[{&quot;internalType&quot;:&quot;string&quot;,&quot;name&quot;:&quot;currentQuote&quot;,&quot;type&quot;:&quot;string&quot;},{&quot;internalType&quot;:&quot;address&quot;,&quot;name&quot;:&quot;currentOwner&quot;,&quot;type&quot;:&quot;address&quot;}],&quot;payable&quot;:false,&quot;stateMutability&quot;:&quot;view&quot;,&quot;type&quot;:&quot;function&quot;},{&quot;constant&quot;:true,&quot;inputs&quot;:[],&quot;name&quot;:&quot;owner&quot;,&quot;outputs&quot;:[{&quot;internalType&quot;:&quot;address&quot;,&quot;name&quot;:&quot;&quot;,&quot;type&quot;:&quot;address&quot;}],&quot;payable&quot;:false,&quot;stateMutability&quot;:&quot;view&quot;,&quot;type&quot;:&quot;function&quot;},{&quot;constant&quot;:true,&quot;inputs&quot;:[],&quot;name&quot;:&quot;quote&quot;,&quot;outputs&quot;:[{&quot;internalType&quot;:&quot;string&quot;,&quot;name&quot;:&quot;&quot;,&quot;type&quot;:&quot;string&quot;}],&quot;payable&quot;:false,&quot;stateMutability&quot;:&quot;view&quot;,&quot;type&quot;:&quot;function&quot;}]</pre><p><strong>Form an instance of the contract</strong></p><p>the standard way of forming an instance of a contract in web3</p><p>const contract = new web3.eth.Contract(abi, address);</p><p><strong>Send the setQuote function to set the quote and the current owner</strong></p><p>passing the quote as an argument to setQuote()</p><blockquote>calling setQuote should pop up the metamask</blockquote><p>await contract.methods.setQuote(&quot;This is the best tutorial in the history of tutorials ever!&quot;).send({ from: userAccount });</p><p><strong>Call the getQuote function to fetch the current quote and the current owner from the blockchain</strong></p><pre>const result = await contract.methods.getQuote().call({ from: userAccount })<br>console.log(result);</pre><p><strong>That’s all for the front end!</strong> 😊</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0996469feec2f5a3b6a6866d2ed12985/href">https://medium.com/media/0996469feec2f5a3b6a6866d2ed12985/href</a></iframe><p><strong><em>After making the changes, on reload, a metamask transaction would pop up to send the transaction</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SZeUw4jOP5ZZqp5d.PNG" /></figure><p><strong><em>and the quote will be logged in the console</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/0*kJmCdUbpEZbAkFie.PNG" /></figure><p><strong>Congratulations! You just created your first DApp</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/0*atibq4EJvstZBpHy.gif" /></figure><p><em>Note : This article does not focus on the UI/UX of the DApp, the reader is free to play with the front end</em></p><blockquote><strong><em>Part 2 : </em></strong><a href="https://medium.com/biconomy/how-to-build-your-first-defi-dapp-95abeb2d26b7"><strong><em>How to build a DeFi DApp</em></strong></a></blockquote><blockquote><strong><em>-</em></strong><em> </em>build a decentralized finance DApp on Ethereum</blockquote><blockquote><strong><em>Part 3 : </em></strong><a href="https://medium.com/biconomy/how-to-integrate-native-meta-transactions-in-your-defi-dapp-3054272f14f1"><strong><em>How to integrate meta transactions in a DeFi DApp</em></strong></a></blockquote><blockquote>-integrate gasless transactions in your DApp or DeFi DApp</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75877671e653" width="1" height="1" alt=""><hr><p><a href="https://medium.com/biconomy/how-to-build-your-first-dapp-75877671e653">How to build Your First DApp</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>