<?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 Gabriel SOL on Medium]]></title>
        <description><![CDATA[Stories by Gabriel SOL on Medium]]></description>
        <link>https://medium.com/@solanadev?source=rss-5eebf0fcb6b4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*aBUI-KXqxKUmvDvoZzaptA.png</url>
            <title>Stories by Gabriel SOL on Medium</title>
            <link>https://medium.com/@solanadev?source=rss-5eebf0fcb6b4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 03:33:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@solanadev/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[Creating a Cost-Effective OpenBook Market ID on Solana]]></title>
            <link>https://medium.com/@solanadev/creating-a-cost-effective-openbook-market-id-on-solana-e8bee4bbd63f?source=rss-5eebf0fcb6b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8bee4bbd63f</guid>
            <dc:creator><![CDATA[Gabriel SOL]]></dc:creator>
            <pubDate>Thu, 13 Jun 2024 09:56:27 GMT</pubDate>
            <atom:updated>2024-11-07T09:00:29.248Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’re planning to list your project on Solana-based decentralized exchanges like Raydium, obtaining an OpenBook market ID is essential. While transactions on Solana are generally affordable, the process of acquiring an OpenBook market ID can seem daunting and costly at first. This guide will demonstrate how to create a market ID compatible with Raydium and other exchanges for just 0.2 SOL using web3 technology.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FlSaoml60AvE%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DlSaoml60AvE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FlSaoml60AvE%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/dba8af43a9901dfa385fd127abfb0700/href">https://medium.com/media/dba8af43a9901dfa385fd127abfb0700/href</a></iframe><p><strong>Step-by-Step Guide to Market ID Creation</strong></p><p>We recommend performing these steps on a desktop or laptop computer, preferably using the Chrome browser and Phantom wallet.</p><p><strong>Visit the OpenBook Platform: </strong>Go to <a href="https://www.openbooklab.xyz/"><strong>https://www.openbooklab.xyz/</strong></a></p><p><strong>Enter Your Information:</strong></p><ul><li><strong>Base Mint:</strong> Enter the mint address of your token.</li><li><strong>Quote Mint:</strong> Select the token you want to pair your token with (e.g., SOL, USDC, USDT).</li></ul><p><strong>Configure Settings:</strong></p><ul><li><strong>Min. Order Size:</strong> Determine the minimum order size in the order book.</li><li>Example: Setting it to 4 allows for orders as small as 0.0001 units.</li><li><strong>Tick Size:</strong> Set the number of decimal places for price display.</li><li>Example: Setting it to 5 displays the token price with 5 decimal places, like 11.12345.</li></ul><p><strong>Important Considerations:</strong></p><ul><li>The minimum order size should not exceed the number of decimals in your base token.</li><li>The tick size should not exceed the number of decimals in the quote token.</li><li>The sum of ‘Min. Order Size’ and ‘Tick Size’ should not exceed the number of decimals in the quote token.</li></ul><p><strong>Example Configuration:</strong></p><ul><li>If your base token (Token A) has 9 decimals and you’re pairing it with USDC (6 decimals):</li><li>You can set the minimum order size to 3 and the tick size to 2 (total 5, less than 6).</li><li>You cannot set the minimum order size to 4 and the tick size to 4 (total 8, greater than 6).</li></ul><p><strong>After Receiving Your Market ID:</strong></p><ul><li>You can now add liquidity to platforms like Raydium.</li></ul><p><strong>Need More Help?</strong></p><ul><li>Feel free to contact me if you encounter any issues or require further assistance.</li></ul><p><strong>In the Next Article:</strong></p><ul><li>We’ll discuss how to create attractive tokens for third-party exchange sites like Birdeye.so. Stay tuned!</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e8bee4bbd63f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create Cheap Openbook Market ID]]></title>
            <link>https://medium.com/@solanadev/create-cheap-openbook-market-id-c8799682494b?source=rss-5eebf0fcb6b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8799682494b</guid>
            <dc:creator><![CDATA[Gabriel SOL]]></dc:creator>
            <pubDate>Tue, 21 May 2024 07:30:19 GMT</pubDate>
            <atom:updated>2024-07-05T13:37:03.973Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello, in this article we will talk about “Create Openbook Market ID” which is necessary for Raydium.io listing and we will show you how you can make it cost 0.25 SOL.</p><p>This process, which we will do through <a href="https://www.openbooklab.xyz/"><strong>Openbooklab.xyz</strong></a> does not require any code knowledge and you will be able to manage the whole process on your mobile or desktop devices, all you need is the <a href="https://phantom.app/"><strong>Phantom</strong></a> wallet. <strong>Let’s start if you are ready!</strong></p><h3>Step-by-Step Guide for Creating a Market Identity</h3><blockquote><em>Note: I recommend conducting your transactions on desktop devices rather than mobile devices. Currently, Phantom wallet is supported.</em></blockquote><p>1. Visit <a href="https://www.openbooklab.xyz/"><strong>https://www.openbooklab.xyz/</strong></a> and connect your wallet.</p><p><strong>- Base Mint:</strong> Token name address.</p><p><strong>- Quote Mint:</strong> Token you want to pair with your token.</p><p><strong>- SOL:</strong> So1111111111111111111111111111111111111112</p><p><strong>- USDC:</strong> EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v</p><p>- USDT: Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNY</p><h3>How Should Tickers Settings ?</h3><p><em>You can configure the settings according to the examples below.</em><br>Min. Order Size: Order book minimum order quantity.<br>Example) When set to 4 -&gt; 0.0001 units can be ordered.<br>Example) When set to 0 -&gt; Up to 1 item can be ordered.<br>Example) set to 1 -&gt; Up to 0.1 units can be made to order.</p><p><strong>Price Tick:</strong> These are the numbers in which the price is displayed.<br>Example) When set to 5 -&gt; The price of the token is displayed in 5 decimal places, such as 11.12345.<br>Example) When set to 4 -&gt; The price of the token is displayed in 4 decimal places such as 11.<br>Note: Minimum order size cannot be larger than the decimal digits of the base token.</p><blockquote><em>“Advanced Options” has been closed by the site developers. The reason for this is to prevent possible errors caused by the user. Storage and rental fees set by developers are currently at their highest, even exceeding the values requested by Raydium.io.</em></blockquote><h3>After configuring all your settings, you can complete your Openbook Market ID creation by clicking the “Create” button, costing only 0.25 SOL.</h3><h3>Increase visibility:</h3><p>To improve the visibility and accessibility of your Solana token, you should definitely consider listing it on popular platforms such as Birdeye, Dexscreener, Jupiter, Coingecko, and Coinmarketcap. Birdeye and Dexscreener will automatically list tokens once the liquidity pool is created.</p><p>Moreover, you can pay to add your social media to your token profile for even greater exposure. It’s worth noting that Jupiter is currently the largest platform for Solana token trading. Token swapping is available, but full access requires verification. To start the verification process, please refer to the comprehensive guide on GitHub: <a href="https://github.com/jup-ag/token-list">https://github.com/jup-ag/token-list</a>.</p><p>For free exposure, you can list your token on Coingecko or CoinMarketCap. To list your token on <strong>CoinMarketCap</strong>, simply fill out an application here: <a href="https://support.coinmarketcap.com/hc/en-us/requests/new">https://support.coinmarketcap.com/hc/en-us/requests/new</a>.</p><p><strong>Here’s the Coingecko link:</strong> <a href="https://docs.google.com/forms/d/e/1FAIpQLSfpIPMsCvVokn7l6OpjJmJoYRxvpArYpO4rvcps-0XQxLQ7DQ/viewform">https://docs.google.com/forms/d/e/1FAIpQLSfpIPMsCvVokn7l6OpjJmJoYRxvpArYpO4rvcps-0XQxLQ7DQ/viewform</a>. Let me know if you have any questions!</p><blockquote><strong><em>See you again in our next article! If you liked my article or if it was useful to you, you can support me by subscribing to me.</em></strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8799682494b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Monitor a Raydium Liquidity Pool]]></title>
            <link>https://medium.com/@solanadev/how-to-monitor-a-raydium-liquidity-pool-f44594a464ff?source=rss-5eebf0fcb6b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/f44594a464ff</guid>
            <dc:creator><![CDATA[Gabriel SOL]]></dc:creator>
            <pubDate>Tue, 21 May 2024 07:22:25 GMT</pubDate>
            <atom:updated>2024-05-21T07:22:25.860Z</atom:updated>
            <content:encoded><![CDATA[<p>In traditional finance, buyers and sellers provide liquidity for an asset through a centralized market. Decentralized finance (DeFi) uses liquidity pools instead. Liquidity pools are smart contracts that allow users to buy and sell crypto on decentralized exchanges and other DeFi platforms. By monitoring liquidity pools, you can track the performance of a given asset and make informed decisions about when to buy, sell, or swap. Monitoring the creation of new liquidity pools can also help you discover recently launched tokens.‍</p><p>This article will teach two approaches to monitor liquidity pools: webhooks and websockets. We will also learn how to set up a webhook and websocket to listen to events happening in a liquidity pool. Before diving into how the platform works, you’ll need a Helius API Key. Obtaining one is simple through the <a href="https://dev.helius.xyz/">Helius Dashboard</a>. Sign up using your GitHub, Solana Wallet, or Google account, and navigate to the API Keys section in the left sidebar.</p><h3>Via Webhook</h3><p>To build via webhook, we need to follow three high-level steps. First, we will set up a Cloudflare Worker. Second, we will set up a Helius webhook and add the Cloudflare Worker’s URL. The webhook will trigger the worker every time a transaction in the liquidity pool is listened to. Lastly, we will edit the worker’s code to handle this notification and log the response.</p><h3>Setup Cloudflare Worker</h3><p>We will set up a worker that gets triggered by our webhook. We will add code to the worker to handle the trigger received from our webhook. <a href="https://workers.cloudflare.com/">Cloudflare Workers</a>, let us deploy serverless code. Log in or sign up to <a href="https://dash.cloudflare.com/login">Cloudflare’s</a> website and select <strong>Workers &amp; Pages</strong> from the left panel on the main page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/0*tpkBEiZLDPITDjqQ.png" /></figure><p>‍</p><p>Click on the <strong>Create</strong> <strong>application</strong> button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/869/0*p9N9JqAqzWFxRKzZ.png" /></figure><p>‍</p><p>Next, click on <strong>Create Worker</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Y6ZeNT906Jn_dhWF.png" /></figure><p>‍</p><p>Now, hit <strong>Deploy</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*I06DtFKGWGfUmRUR.png" /></figure><p>‍</p><p>The worker has been deployed successfully. Please copy the worker link, as it will be used to set up our webhook.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7NUgMEzYxSwT2eiC.png" /></figure><h3>Set Up the Webhook</h3><p>We will monitor <a href="https://raydium.io/">Raydium</a>, the first AMM built on Solana to leverage a fully decentralized central limit order book. A central limit order book is an exchange-style execution method standard in the equity world that matches all bids and offers according to price and time priority. A decentralized central limit order book (CLOB) is an exchange system that operates on a distributed network of nodes rather than a central entity.‍</p><p>We will create a webhook using Helius. Webhooks allow you to listen to on-chain events and trigger specific actions when these events occur. We will configure the webhook to listen to specific transaction types in a given Raydium liquidity pool. Helius currently supports the following transaction types for Raydium:</p><pre>&quot;RAYDIUM&quot;: [<br>   &quot;WITHDRAW_LIQUIDITY&quot;<br>   &quot;ADD_LIQUIDITY&quot;<br>   &quot;CREATE_POOL&quot;<br>   &quot;SWAP&quot;<br> ]&quot;); background-repeat: no-repeat; background-position: center center; transition: background-color 200ms ease 0s, transform 200ms ease-out 0s;&quot;&gt;Copy‍</pre><p>Webhooks can be created using the <a href="https://dev.helius.xyz/dashboard/app">Helius Dashboard</a> or <a href="https://docs.helius.dev/webhooks-and-websockets/api-reference">the API reference</a>. To create one via the <a href="https://dev.helius.xyz/">Dashboard</a>, go to the <strong>Webhooks</strong> section in the left panel and click <strong>New Webhook</strong>. Then, configure the webhook by providing details such as:</p><ol><li><strong>Network:</strong> Mainnet/Devnet</li><li><strong>Webhook Type</strong>: To get the desired data, choose between the Enhanced, Raw, or Discord webhook types. If you want human-readable data, go for Enhanced; we will select this one. But if you prefer Discord, you must submit the Webhook URL, and the bot will format and send notifications directly. For assistance, refer to this <a href="https://www.helius.dev/blog/discord-sales-bot">article</a> to learn how to set up a webhook for a Discord Bot. If you choose Raw, please note that you won’t be able to specify the transaction type.</li><li><strong>Transaction Type:</strong> Select <strong>the transaction types shown in the below image</strong><em>. </em>You can find other transaction types supported by a Program <a href="https://docs.helius.dev/resources/transaction-types#relation-between-transaction-type-and-source">here</a>.</li><li><strong>Webhook URL:</strong> Add the URL of the worker that we set up on Cloudflare (If you selected Discord, then you need to provide the Webhook URL for the bot)</li><li><strong>Authentication Header:</strong> Enter an authentication header to pass into the POST requests for your webhook. Note that this is optional.</li><li><strong>Account Address:</strong> Raydium’s AMM Program Address is here: <a href="https://solana.fm/address/675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8"><strong>675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8</strong></a>. You can also add more than one account address if required. You can also include the address of your assets to monitor them.</li></ol><p>‍</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zA7hb6zkJFttRcsX.png" /></figure><p>Webhook Configuration</p><p>‍</p><p>Once you click <strong>Confirm,</strong> your webhook will notify our Cloudflare worker. The next step is to write the appropriate code to handle the notification.</p><h3>Handling the Webhook Notification in the Worker</h3><p>We need to <a href="https://developers.cloudflare.com/workers/wrangler/install-and-update/">install</a> the Wrangler CLI to add our code to the worker so that it can handle the data correctly when triggered.</p><p>‍</p><p>Log in to your Cloudflare account to enable Wrangler to deploy your scripts to Cloudflare. Open a command prompt/terminal and enter the following:</p><pre>wrangler login<br>&quot;); background-repeat: no-repeat; background-position: center center; transition: background-color 200ms ease 0s, transform 200ms ease-out 0s;&quot;&gt;Copy‍</pre><p>When Wrangler automatically opens your browser to display Cloudflare’s consent screen, click the <strong>Allow</strong> button. This will send an API Token to Wrangler.</p><p>‍</p><p>Initialize a new project from the Worker created through the Cloudflare Dashboard:</p><pre>wrangler init --from-dash &lt;worker-name&gt;<br>&quot;); background-repeat: no-repeat; background-position: center center; transition: background-color 200ms ease 0s, transform 200ms ease-out 0s;&quot;&gt;Copy‍</pre><p>Check the <strong>Metrics </strong>section to find the name of the worker:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VR6tGKRZudfyiJGe.png" /></figure><p>‍</p><p>The command above will create a folder containing the worker’s configuration and code. Next, replace the code in the file at <strong>src/index.js</strong> with the code provided below. Be sure to add in your API key. We recommend using the following <a href="https://docs.helius.dev/solana-rpc-nodes/rpc-proxy-stop-your-api-keys-from-leaking">best practices</a> to conceal your API key.</p><p>‍</p><p>Now, we’ll use the following code in our worker:</p><pre>const HELIUS_API_KEY = API_KEY;<br>const HELIUS_RPC_URL = `https://mainnet.helius-rpc.com/?api-key=${HELIUS_API_KEY}`;</pre><pre>addEventListener(&#39;fetch&#39;, event =&gt; {<br>    event.respondWith(handleRequest(event.request))<br>})</pre><pre>async function handleRequest(request) {<br>    if (request.method === &#39;POST&#39;) {<br>        const requestBody = await request.json();<br>        console.log(requestBody[0].description);</pre><pre>        return new Response(&#39;Logged POST request body.&#39;, { status: 200 });<br>    } else {<br>        return new Response(&#39;Method not allowed.&#39;, { status: 405 });<br>    }<br>}<br>&quot;); background-repeat: no-repeat; background-position: center center; transition: background-color 200ms ease 0s, transform 200ms ease-out 0s;&quot;&gt;Copy</pre><p>‍</p><p>In this code, we are only logging the notification’s description. Response notifications have a <a href="https://docs.helius.dev/solana-apis/enhanced-transactions-api/parse-transaction-s">parsed transaction format</a>. It’s important to note that financial data such as price information is not provided. You can use platforms like <a href="https://jup.ag/">Jupiter</a> and <a href="https://birdeye.so/">Birdeye</a> to get financial information.</p><p>‍</p><p>Deploy your project to Cloudflare’s global network:</p><pre>wrangler publish&quot;); background-repeat: no-repeat; background-position: center center; transition: background-color 200ms ease 0s, transform 200ms ease-out 0s;&quot;&gt;Copy</pre><p>‍</p><p>After the code is published successfully, let’s check the logs. Head back to the Cloudflare website and Go to the <strong>Logs</strong> section:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/0*ywGS-bAzu1_f-N6x.png" /></figure><p>‍</p><p>Click on the <strong>Begin Log Stream </strong>button. Please note there will be a lot of logs due to the large number of transactions being processed by Raydium. Feel free to filter the logs later to find the necessary transaction notifications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*itIpyjeWm6w3XKgX.png" /></figure><p>‍</p><p>You can view the logged data under <strong>“message”</strong> by expanding any received log.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*l5WY25AriWx-YSoc.png" /></figure><p>Webhook response displayed in Cloudflare Wroker’s Logs</p><h3>Via Websockets</h3><p>Websockets are a communication protocol that allows real-time data exchange between clients and servers. This differs from traditional methods, where a client sends a request and waits for the server to respond. With websockets, the connection remains open, exchanging data continuously. We will use websockets to monitor the <strong>Raydium</strong> liquidity pool.</p><p>‍</p><p>To achieve faster response speeds in our project, we will use the geyser-enhanced transactionSubscribe method, which is available as a beta feature. <strong>Please note that this method is only available for paid plans.</strong> The Geyser Enhance websockets are faster than the standard RPC websocket methods. To get started, let’s create a basic JavaScript project and create a new folder named <strong>websocket-test</strong>. Then, we need to create a <strong>package.json</strong> file.</p><pre>{<br>    &quot;name&quot;: &quot;websocket-test&quot;,<br>    &quot;version&quot;: &quot;1.0.0&quot;,<br>    &quot;description&quot;: &quot;&quot;,<br>    &quot;main&quot;: &quot;index.js&quot;,<br>    &quot;scripts&quot;: {<br>        &quot;test&quot;: &quot;echo \&quot;Error: no test specified\&quot; &amp;&amp; exit 1&quot;,<br>        &quot;start&quot;: &quot;ts-node src/index.js&quot;<br>    },<br>    &quot;keywords&quot;: [],<br>    &quot;author&quot;: &quot;&quot;,<br>    &quot;license&quot;: &quot;ISC&quot;,<br>    &quot;devDependencies&quot;: {<br>        &quot;@types/bn.js&quot;: &quot;^5.1.0&quot;,<br>        &quot;ts-node&quot;: &quot;^10.7.0&quot;,<br>        &quot;typescript&quot;: &quot;^4.6.3&quot;<br>    },<br>    &quot;dependencies&quot;: {<br>        &quot;@solana/web3.js&quot;: &quot;^1.41.3&quot;,<br>        &quot;dotenv&quot;: &quot;^16.0.0&quot;<br>    }<br>}<br>&quot;); background-repeat: no-repeat; background-position: center center; transition: background-color 200ms ease 0s, transform 200ms ease-out 0s;&quot;&gt;Copy</pre><p>‍</p><p>Create a folder named src and add a file called <strong>index.js</strong>. Copy and paste the following code into the file, replacing <strong>&lt;your-api-key&gt;</strong> with your own Helius API Key.</p><pre>const WebSocket = require(&#39;ws&#39;);</pre><pre>// Function to send a request to the WebSocket server<br>function sendRequest(ws) {<br>    const request = {<br>        jsonrpc: &quot;2.0&quot;,<br>        id: 420,<br>        method: &quot;transactionSubscribe&quot;,<br>        params: [{<br>                failed: false,<br>                accountInclude: [&quot;675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8&quot;]<br>            },<br>            {<br>                commitment: &quot;processed&quot;,<br>                encoding: &quot;base64&quot;,<br>                transactionDetails: &quot;full&quot;,<br>                showRewards: true,<br>                maxSupportedTransactionVersion: 0<br>            }<br>        ]<br>    };<br>    ws.send(JSON.stringify(request));<br>}</pre><pre>function websocketHandler() {<br>    // Create a WebSocket connection<br>    let ws = new WebSocket(&#39;wss://atlas-mainnet.helius-rpc.com?api-key=&lt;your-api-key&gt;&#39;);</pre><pre>    // Define WebSocket event handlers</pre><pre>    ws.on(&#39;open&#39;, function open() {<br>        console.log(&#39;WebSocket is open&#39;);<br>        sendRequest(ws); // Send a request once the WebSocket is open<br>    });</pre><pre>    ws.on(&#39;message&#39;, function incoming(data) {<br>        const messageStr = data.toString(&#39;utf8&#39;);<br>        console.log(&#39;Received:&#39;, messageStr);<br>    });</pre><pre>    ws.on(&#39;error&#39;, function error(err) {<br>        console.error(&#39;WebSocket error:&#39;, err);<br>    });</pre><pre>    ws.on(&#39;close&#39;, function close() {<br>        console.log(&#39;WebSocket is closed&#39;);<br>        // connection closed, discard old websocket and create a new one in 5s<br>        ws = null<br>        setTimeout(startWebsocket, 5000)<br>    });<br>}</pre><pre>websocketHandler();<br>&quot;); background-repeat: no-repeat; background-position: center center; transition: background-color 200ms ease 0s, transform 200ms ease-out 0s;&quot;&gt;Copy</pre><p>‍</p><p>We have added Raydium’s AMM Program Address <a href="https://solana.fm/address/675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8"><strong>675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8</strong></a> in the <strong>accountInclude </strong>array parameter of the request. You can add <a href="https://docs.helius.dev/webhooks-and-websockets/websockets#transactionsubscribefilter">appropriate parameters</a> to get your required data.</p><p>‍</p><p>The code connects to a websocket and logs the entire response in the console. The websocket closes after ~5 minutes of inactivity. To prevent this, a reconnection logic is added in the <strong>onClose</strong> handler.</p><p>‍</p><p>Run this command in the command prompt/terminal:</p><pre>npm install &amp;&amp; npm start&quot;); background-repeat: no-repeat; background-position: center center; transition: background-color 200ms ease 0s, transform 200ms ease-out 0s;&quot;&gt;Copy</pre><p>‍</p><p>You will begin to see logs like this appear in the console:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*l3YOJidFW9MDMehZ.png" /></figure><p>Websocket response received in console</p><h3>Conclusion</h3><p>That’s it! Setting up a webhook to monitor a liquidity pool is simple. Alternatively, you can use the geyser-enhanced websocket method for faster response speed. Once you have completed the setup, you can build a suitable frontend to display the data. You can use a dedicated node with a geyser RPC plugin for a dedicated connection with faster speed. If you encounter any issues or require assistance, please do not hesitate to contact us on <a href="https://discord.gg/raeYgMjtDB">Discord</a>!‍</p><p>Be sure to enter your email address below so you’ll never miss an update about what’s new on Solana. Ready to dive deeper? Explore the latest articles on the<a href="https://www.helius.dev/blog"> Helius blog</a> and continue your Solana journey, today.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f44594a464ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Step by step to create and deploy new token in Solana Blockchain]]></title>
            <link>https://medium.com/@solanadev/step-by-step-to-create-and-deploy-new-token-in-solana-blockchain-688f4d46207b?source=rss-5eebf0fcb6b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/688f4d46207b</guid>
            <dc:creator><![CDATA[Gabriel SOL]]></dc:creator>
            <pubDate>Fri, 09 Feb 2024 19:19:15 GMT</pubDate>
            <atom:updated>2024-02-09T19:19:15.940Z</atom:updated>
            <content:encoded><![CDATA[<ol><li>Get familiar with Solana: Before you start creating a token on Solana, it is important to have a good understanding of the Solana blockchain and its ecosystem. This includes understanding Solana’s consensus mechanism, transaction processing, and token standards.</li><li>Choose a token standard: Solana supports multiple token standards, including the Solana Asset Standard (SAS) and the Simple Token Standard (STS). Choose the one that best suits your needs and requirements.</li><li>Set up a Solana wallet: To create a token on Solana, you need a Solana wallet. There are several options available, including Solflare, Anchor, and Sollet. Choose one that you’re comfortable with and follow their instructions to set it up.</li><li>Fund your wallet: To pay for the cost of creating and deploying your token, you need to fund your Solana wallet with SOL, the native cryptocurrency of the Solana blockchain.</li><li>Write and deploy your token contract: Once you have a Solana wallet and some SOL, you can write and deploy your token contract. This involves writing the smart contract code for your token, compiling it, and deploying it to the Solana blockchain. You can use a tool like Solana’s Project Muse to help you write and deploy your contract.</li></ol><p>Here is an example of how you can write the code for a Solana token contract using the Simple Token Standard (STS) in JavaScript:</p><pre>// Import the required modules<br>const solana = require(&#39;@solana/web3.js&#39;);<br>const {<br>  Nonce,<br>  Account,<br>  SystemProgram,<br>  Client,<br>  UnsignedTransaction,<br>  SystemInstruction,<br>} = solana;</pre><pre>// Define the token&#39;s symbol and name<br>const symbol = &#39;MYTOKEN&#39;;<br>const name = &#39;My Token&#39;;// Define the decimal places<br>const decimalPlaces = 8;// Define the total supply<br>const totalSupply = 100000000;// Define the initial balance of the token contract<br>const initialBalance = totalSupply * Math.pow(10, decimalPlaces);// Define the token contract&#39;s public key<br>const tokenKey = &#39;TokenPublicKey&#39;;// Define the token&#39;s program ID<br>const programId = new solana.Program(&#39;TokenProgramId&#39;);// Define the function to initialize the token contract<br>async function initializeToken(client) {<br>  const transaction = new UnsignedTransaction();  // Add the required instructions to the transaction<br>  transaction.add(<br>    SystemInstruction.createAccount({<br>      fromPubkey: SystemProgram.resolveAccountPubkey(client.connection),<br>      newAccountPubkey: tokenKey,<br>      lamports: initialBalance,<br>      space: 0,<br>      programId,<br>    }),<br>  );<br>  transaction.add({<br>    keys: [<br>      {<br>        pubkey: tokenKey,<br>        isSigner: false,<br>        isWritable: true,<br>      },<br>    ],<br>    programId,<br>    data: Buffer.from(<br>      `${String.fromCharCode(symbol.length)}${symbol}${String.fromCharCode(<br>        name.length,<br>      )}${name}${solana.encodeInteger(decimalPlaces)}${solana.encodeInteger(<br>        totalSupply,<br>      )}`,<br>    ),<br>  });  // Sign and submit the transaction<br>  const signature = await client.signTransaction(transaction, new Account(tokenKey));<br>  return client.submitTransaction(transaction, signature);<br>}// Connect to the Solana network<br>const client = new Client(new solana.Cluster(&#39;https://testnet.solana.com&#39;));// Initialize the token contract<br>initializeToken(client)<br>  .then((result) =&gt; {<br>    console.log(&#39;Token contract created:&#39;, result.transactionId);<br>  })<br>  .catch((error) =&gt; {<br>    console.error(error);<br>  });</pre><p>Note that this is just one example of how you can write a Solana token contract. There are many other ways to write a Solana token contract, and the specific code you need to write will depend on your specific requirements and use case. If you’re not familiar with programming or blockchain development, it may be helpful to work with a professional developer or a development team.</p><p>Once you’ve written the code for your Solana token contract, you need to deploy it to the Solana blockchain. Here’s a general outline of the steps you need to follow to deploy a Solana token contract:</p><ol><li>Compile the contract: Compile the code for your Solana token contract into a format that can be executed on the Solana blockchain. This typically involves converting the code from the high-level language you wrote it in (such as JavaScript) into a lower-level language that the Solana blockchain can understand (such as WebAssembly).</li><li>Create a transaction: Create a transaction that includes the compiled code for your Solana token contract. The transaction should specify the public key of the account that will own the contract, as well as the amount of SOL required to pay for the transaction processing fees.</li><li>Sign the transaction: Sign the transaction with the private key of the account that will own the contract. This proves to the Solana network that you have the authority to deploy the contract.</li><li>Submit the transaction: Submit the signed transaction to the Solana network. Once the transaction has been processed and confirmed by the network, your Solana token contract will be deployed and active on the blockchain.</li><li>Verify the deployment: Verify that the Solana token contract has been deployed successfully by checking its contract address on the Solana blockchain. You can also test the contract by sending transactions to it and checking that it performs as expected.</li></ol><p>The specific steps you need to follow to deploy a Solana token contract will vary depending on the tools and libraries you’re using. If you’re using a development framework such as Solana’s Project Muse, the process of deploying a contract will typically be simplified and automated for you. However, if you’re working with raw code, you may need to follow these steps manually.</p><p>If you’re not familiar with programming or blockchain development, it may be helpful to work with a professional developer or a development team to deploy your Solana token contract.</p><p>6. Test your token: Before distributing your token to others, it’s important to thoroughly test it to make sure it works as expected. This includes testing the contract’s functionality, security, and compatibility with the Solana ecosystem.</p><p>7. Distribute your token: Once your token has been thoroughly tested, you can start distributing it to others. This can be done through various methods, such as ICOs, airdrops, or selling it on decentralized exchanges.</p><p>This is a general guide to creating a token on Solana. The specific steps you need to follow may vary depending on your specific use case and requirements. If you’re not familiar with programming or blockchain development, it may be helpful to work with a professional developer or a development team.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=688f4d46207b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Efficient OpenBook Market ID Generation and Cost Optimization (Without reducing storage data)]]></title>
            <link>https://medium.com/@solanadev/efficient-openbook-market-id-generation-and-cost-optimization-without-reducing-storage-data-64cd5a535ba0?source=rss-5eebf0fcb6b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/64cd5a535ba0</guid>
            <dc:creator><![CDATA[Gabriel SOL]]></dc:creator>
            <pubDate>Fri, 09 Feb 2024 19:18:12 GMT</pubDate>
            <atom:updated>2024-07-05T13:37:42.305Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UgWCbiVq5IOnwR0o658drA.png" /></figure><p>If you’re looking to list your project on swap platforms such as Raydium.io within the Solana network, obtaining an <strong>OpenBook market ID</strong> becomes a crucial and obligatory step.</p><p>While transactions on the <strong>Solana</strong> network are generally cost-effective, the process of acquiring an OpenBook market ID might initially seem intricate and expensive. In this article, we’ll illustrate how to create a market ID, compatible with Raydium and other exchange platforms, utilizing web3 technology at a mere cost of 0.2 SOL.</p><h3>### Step-by-Step Guide to Market ID Creation</h3><p><strong><em>1. Visit </em></strong><a href="https://www.openbooklab.xyz/"><strong>https://www.openbooklab.xyz/</strong></a><br> — <strong>Base Mint:</strong> Your token mint address.<br> — <strong>Quote Mint: </strong>The token you wish to pair with your token.<br> — <strong>SOL:</strong> So11111111111111111111111111111111111111112<br> — <strong>USDC:</strong> EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v<br> — <strong>USDT:</strong> Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB</p><p><strong>2. Adjust the settings:</strong><br><strong> — Min. Order Size:</strong> Minimum order quantity for the order book.<br><strong> — Example: </strong>Set to 4 -&gt; Can place an order for 0.0001 unit.<br><strong> — Example: </strong>Set to 0 -&gt; Can place an order for 1 unit.<br><strong> — Example: </strong>Set to 1 -&gt; Can place an order for 0.1 unit.<br><strong> — Price Tick:</strong> Number of decimal places for price display.<br><strong> — Example: </strong>Set to 5 -&gt; The token price is displayed with 5 decimal places, like 11.12345<br><strong> — Example: </strong>Set to 4 -&gt; The token price is displayed with 4 decimal places, like 11.1234</p><blockquote><strong><em>Note:</em></strong><em><br>- The minimum order size should not exceed the base token’s decimals.<br>- The price tick size should not exceed the quote token’s decimals.<br>- The sum of ‘Minimum order size’ + ‘Price Tick’ should not exceed the quote token decimals.</em></blockquote><p><strong>Example:</strong><br>- If base token A’s token decimal is set to 9, paired with USDC with a token decimal of 6.<br>- The minimum order size should not exceed 9.<br>- The price tick size should not exceed 6.<br>- ‘Minimum order size’ + ‘Price Tick’ should not exceed 6 (quote token decimals).</p><p>Therefore, you can set the minimum order size and price tick to 3 and 2 (total 5, less than 6), but not 4 and 4, as the sum exceeds 6.</p><p>Once you have your market identity, you can add liquidity to the Raydium platform. If you encounter any issues or need further assistance on the subject, please feel free to reach out to me, and I’ll do my best to assist you.</p><blockquote><em>In my upcoming article on this topic, I will delve into how you can create appealing tokens for third-party exchange sites such as Birdeye.so. Until then, farewell with warm regards.</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64cd5a535ba0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating an Openbook Market ID at a Low Cost]]></title>
            <link>https://medium.com/@solanadev/creating-an-openbook-market-id-at-a-low-cost-c529c3ab53e6?source=rss-5eebf0fcb6b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/c529c3ab53e6</guid>
            <category><![CDATA[solanas]]></category>
            <category><![CDATA[openbook-market-id]]></category>
            <category><![CDATA[solana-token]]></category>
            <category><![CDATA[raydium-token-list]]></category>
            <dc:creator><![CDATA[Gabriel SOL]]></dc:creator>
            <pubDate>Fri, 09 Feb 2024 19:16:19 GMT</pubDate>
            <atom:updated>2024-12-08T16:27:15.989Z</atom:updated>
            <content:encoded><![CDATA[<h3>If you want to list your project on swap platforms within the Solana network, such as Raydium.io, acquiring an OpenBook market identity becomes a crucial and mandatory step.</h3><p>While transactions on the Solana network are generally cost-effective, obtaining an OpenBook market identity may initially seem complex and expensive. In this article, we will demonstrate how to create a market identity compatible with Raydium and other exchange platforms using Web3 technology with a cost of only 0.2 SOL.</p><h3>Step-by-Step Guide for Creating a Market Identity</h3><blockquote><em>Note: I recommend conducting your transactions on desktop devices rather than mobile devices. Currently, Phantom wallet is supported.</em></blockquote><p>1. Visit <a href="https://www.openbooklab.xyz/"><strong>https://www.openbooklab.xyz/</strong></a><strong> </strong>and connect your wallet.</p><p><strong>- Base Mint:</strong> Token name address.</p><p><strong>- Quote Mint:</strong> Token you want to pair with your token.</p><p><strong>- SOL:</strong> So1111111111111111111111111111111111111112</p><p><strong>- USDC:</strong> EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v</p><p>- USDT: Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNY</p><h3>How Should Tickers Settings ?</h3><p><em>You can configure the settings according to the examples below.</em><br>Min. Order Size: Order book minimum order quantity.<br>Example) When set to 4 -&gt; 0.0001 units can be ordered.<br>Example) When set to 0 -&gt; Up to 1 item can be ordered.<br>Example) set to 1 -&gt; Up to 0.1 units can be made to order.</p><p><strong>Price Tick:</strong> These are the numbers in which the price is displayed.<br>Example) When set to 5 -&gt; The price of the token is displayed in 5 decimal places, such as 11.12345.<br>Example) When set to 4 -&gt; The price of the token is displayed in 4 decimal places such as 11.<br>Note: Minimum order size cannot be larger than the decimal digits of the base token.</p><blockquote><em>“Advanced Options” has been closed by the site developers. The reason for this is to prevent possible errors caused by the user. Storage and rental fees set by developers are currently at their highest, even exceeding the values requested by Raydium.io.</em></blockquote><h3>After configuring all your settings, you can complete your Openbook Market ID creation by clicking the “Create” button, costing only 0.2 SOL.</h3><h3>Increase visibility:</h3><p>To improve the visibility and accessibility of your Solana token, you should definitely consider listing it on popular platforms such as Birdeye, Dexscreener, Jupiter, Coingecko, and Coinmarketcap. Birdeye and Dexscreener will automatically list tokens once the liquidity pool is created.</p><p>Moreover, you can pay to add your social media to your token profile for even greater exposure. It’s worth noting that Jupiter is currently the largest platform for Solana token trading. Token swapping is available, but full access requires verification. To start the verification process, please refer to the comprehensive guide on GitHub: <a href="https://github.com/jup-ag/token-list">https://github.com/jup-ag/token-list</a>.</p><p>For free exposure, you can list your token on Coingecko or CoinMarketCap. To list your token on <strong>CoinMarketCap</strong>, simply fill out an application here: <a href="https://support.coinmarketcap.com/hc/en-us/requests/new">https://support.coinmarketcap.com/hc/en-us/requests/new</a>.</p><p><strong>Here’s the Coingecko link:</strong> <a href="https://docs.google.com/forms/d/e/1FAIpQLSfpIPMsCvVokn7l6OpjJmJoYRxvpArYpO4rvcps-0XQxLQ7DQ/viewform">https://docs.google.com/forms/d/e/1FAIpQLSfpIPMsCvVokn7l6OpjJmJoYRxvpArYpO4rvcps-0XQxLQ7DQ/viewform</a>. Let me know if you have any questions!</p><blockquote><strong>See you again in our next article! If you liked my article or if it was useful to you, you can support me by subscribing to me.</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c529c3ab53e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>