<?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 Aniket Sharma on Medium]]></title>
        <description><![CDATA[Stories by Aniket Sharma on Medium]]></description>
        <link>https://medium.com/@aniket965?source=rss-8ffc6b6b6eaf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8Bj-iPFK9NhFCFXweGqF-w.jpeg</url>
            <title>Stories by Aniket Sharma on Medium</title>
            <link>https://medium.com/@aniket965?source=rss-8ffc6b6b6eaf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 19:05:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aniket965/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[Bridge Widget: How to add a Multichain Gateway to bridge right inside your dApp!]]></title>
            <link>https://medium.com/socketdottech/bridge-widget-how-to-add-a-multichain-gateway-to-bridge-right-inside-your-dapp-f863ebfd0b30?source=rss-8ffc6b6b6eaf------2</link>
            <guid isPermaLink="false">https://medium.com/p/f863ebfd0b30</guid>
            <category><![CDATA[bridge]]></category>
            <category><![CDATA[multichain]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[sockets]]></category>
            <category><![CDATA[bridge-widget]]></category>
            <dc:creator><![CDATA[Aniket Sharma]]></dc:creator>
            <pubDate>Mon, 27 Feb 2023 13:53:23 GMT</pubDate>
            <atom:updated>2023-03-03T07:06:09.964Z</atom:updated>
            <content:encoded><![CDATA[<h4>Cross Chain Bridge Widget Integration Tutorial</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QTtX93mDabSeliGG_QJn1w.png" /><figcaption>Socket plugin</figcaption></figure><p>Today, we live in a multichain world. Apps, assets, and users are all fragmented across different chains. You too are probably building a DApp on a specific chain.</p><p>But assets and users are spread across chains, making it hard for users to check out apps present on other chains. In fact, users will face two challenges:</p><ol><li>Bridging tokens to the app’s chain</li><li>Getting the right token for interacting with the app</li></ol><p>To solve this challenge, DApps can integrate bridging and swapping interfaces into their frontend. To do this, you have to first answer a few questions:</p><h3>Which bridge is right for you?</h3><p>There is a long list of bridges to choose from. Each bridge comes with its pros and cons (see comparison chart <a href="https://l2beat.com/bridges/risk">here</a>) but choosing the right bridge is hard. As bridge prices and bridging times keep fluctuating, there is never a permanent “right” bridge for your DApp.</p><p>Hence the best option is to integrate a bridge aggregator, and you can find the smoothest bridging experience with Socket. <a href="https://bungee.exchange/">Bungee</a>, built on Socket, is the most loved DApp in the bridging community. It shines compared to others as it is powered by super-fast Socket APIs.</p><h3>Which DEX or DEX aggregator is right for you?</h3><p>Choosing a DEX and implementing it can take some time, and integrating a DEX aggregator will require either contract integration or a two-transaction flow, both of which result in a bad user experience. Additionally, sticking to one provider will rarely give you the best results.</p><p>Don’t worry though, Socket APIs have inbuilt DEX support so we are good to go! 🚀</p><h3>What if I made my own bridging component?</h3><p>Building bridge widgets and bridging infrastructure is a lengthy task in itself. Bridging widgets have various elements like:</p><ul><li>Maintaining quotes (updated every few seconds)</li><li>Token lists, and</li><li>User transactions status, since these elements will have their own nuances</li></ul><p>These things are not easy to make and will take up a week’s worth of valuable developer bandwidth.</p><p>if you want a fully-functional custom bridge widget integration that follows your style guide and design, you should definitely head toward the Socket Liquidity Layer APIs <a href="https://docs.socket.tech/">docs</a>. In this article, we will explore a widget for bridging provided by Socket (<a href="https://www.notion.so/Socket-Plugin-b39279f5ca0b4beaab5cce09fa0bc51b">Socket Plugin</a>) which is easy to integrate into React component.</p><h3>Integrating the bridging widget — Socket Plugin</h3><ol><li>First, add the Socket plugin package.</li></ol><pre>  npm install @socket.tech/plugin</pre><p>2. We will need an API key for using Socket. You can grab the public testing key 645b2c8c-5825-4930-baf3-d9b997fcd88c for now. For official access, fill out this <a href="https://forms.gle/Ura3RfDvHuZA5kbD8">form</a>.</p><p>3. Now, simply use the component Socket provides with a web3 <a href="https://docs.ethers.org/v5/api/providers/">provider</a> and API key. Voila, the bridge widget is ready!</p><pre><br>function SocketBridge() {<br>    return (<br>       &lt;Bridge<br>          provider={web3Provider} // web3 provider can be passed<br>          API_KEY={&quot;645b2c8c-5825-4930-baf3-d9b997fcd88c&quot;} <br>        /&gt;<br>    )<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*30cw2Q2vJKtC09um3sH8qw.png" /><figcaption>Bridge Widget</figcaption></figure><p>This widget can be customized to a great extent. Play around with the storybook <a href="https://widget.socket.tech/">here</a> and read about customization <a href="https://www.notion.so/Socket-PlugIn-Docs-b905871870e343c6833169ebbd356790">here</a>.</p><p>For more information, here is a detailed tutorial about using Socket Plugin.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F4Cka_eh-cf4%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D4Cka_eh-cf4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F4Cka_eh-cf4%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/e92705d88332202432b746c3d952a9ac/href">https://medium.com/media/e92705d88332202432b746c3d952a9ac/href</a></iframe><h3>About Socket</h3><p>Socket aims to unify the multichain ecosystem by connecting all chains and enabling seamless asset and data transfers between them. With Socket, developers can build unified, multichain apps with interoperability as a core part of the protocol logic.</p><p><a href="http://socket.tech/">Website</a> | <a href="http://bungee.exchange/">Bungee</a> | <a href="https://twitter.com/socketdottech">Twitter</a> | <a href="https://discord.gg/socket">Discord</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f863ebfd0b30" width="1" height="1" alt=""><hr><p><a href="https://medium.com/socketdottech/bridge-widget-how-to-add-a-multichain-gateway-to-bridge-right-inside-your-dapp-f863ebfd0b30">Bridge Widget: How to add a Multichain Gateway to bridge right inside your dApp!</a> was originally published in <a href="https://medium.com/socketdottech">Socket Protocol</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>