<?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 Normanlitka on Medium]]></title>
        <description><![CDATA[Stories by Normanlitka on Medium]]></description>
        <link>https://medium.com/@normanlitka?source=rss-ba33b6088050------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*rb4RP4s_MiNBrYJ5TrfsWA.jpeg</url>
            <title>Stories by Normanlitka on Medium</title>
            <link>https://medium.com/@normanlitka?source=rss-ba33b6088050------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 15:24:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@normanlitka/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[Aptos Blockchain: writing swap-alert-bot with AptosSDK.]]></title>
            <link>https://medium.com/@normanlitka/aptos-blockchain-writing-swap-alert-bot-with-aptossdk-93c67c8b6ae1?source=rss-ba33b6088050------2</link>
            <guid isPermaLink="false">https://medium.com/p/93c67c8b6ae1</guid>
            <dc:creator><![CDATA[Normanlitka]]></dc:creator>
            <pubDate>Mon, 28 Oct 2024 15:41:43 GMT</pubDate>
            <atom:updated>2024-11-26T23:42:08.879Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello everyone! ✋</p><p>In this article, I’d like to share my experience creating a swap-alert bot using the AptosSDK. We’ll walk through writing code that listens for swap events and provides all the essential details about them.</p><p>Some people think the Aptos meme season is over, but I believe the real fun is just beginning. The Uptos team has launched an exciting product called <a href="https://pump.uptos.xyz/">Uptos Pump</a>, which makes it incredibly easy to create your own meme coin in just a few clicks. I think that’s pretty awesome. If your meme coin reaches a certain market cap, it can get listed on LiquidSwap, a major DEX on Aptos, which is a big deal.</p><p>In this article, I propose that we monitor the buy events for “our” meme token on LiquidSwap to motivate everyone interested in launching their project this way. We’ll use <a href="https://pump.uptos.xyz/token/0x967adbf2e05fe665ab86a3bf2c4acfa39fbf62097963474ef70a0786dae8cfa2::NRUH::NRUH">NRUH</a> as our example token, which went through this process some time ago.</p><p>To get started, we’ll need a code editor —<a href="https://code.visualstudio.com/"> Visual Studio Code</a> is a great choice. We’ll also need a platform to run JavaScript on your local computer, like <a href="https://nodejs.org/en/download/prebuilt-installer">Node.js</a>, which will execute the code we write. Follow the links provided to install these tools.</p><p>Last but not least, we’ll need an Aptos crypto-wallet. I recommend using <a href="https://petra.app/">Petra</a>, “A web3 wallet to explore Aptos.” I’ve been using Petra since day one on Aptos, and it’s been problem-free, with a nice UI/UX and robust security.</p><p>Now, let’s head over to <a href="https://liquidswap.com/">LiquidSwap</a> and simulate buying some NRUH (or swapping APT for NRUH).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*87hFNDbMqTh4L6mqPOKYYA.png" /></figure><p>After clicking the <strong>Confirm Swap</strong> button, a Petra wallet window will open, displaying the transaction preview. Look for the <strong>Raw Events</strong> section and open it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*AWrppfhjsI4crtVexRXNTQ.png" /></figure><p>In that section, we need to find the event with the “data” property, which contains information about the upcoming transaction with the keys x_in, x_out, y_in, and y_out. Please note that the values for these keys may vary for different tokens. In this example, y_in represents the amount of APT that I plan to swap for NRUH; for other tokens, this could be represented as x_in.</p><p>We need to save the creation_number and account_address values for use in our future bot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*dQAEejBBl8O4p5xzZHnq8g.png" /></figure><p>According to the official documentation, the account address “0x61d2c22a6cb7831bee0f48363b0eec92369357aece0d1142062f7d5d85c7bef8” is the address of the resource that generates events, while the creation number “2344” corresponds to the creation number of this type of event. In the context of the Aptos blockchain, a GUID (globally unique identifier) is used to uniquely identify events emitted by a specific resource within an account. The creation_number differentiates between different types of events that the resource may emit.</p><p><strong>Please note</strong> that the account address in this example pertains only to LiquidSwap, and the creationNumber will vary for other tokens because they will correspond to different types of events.</p><h3>Now let’s code! ⌨️</h3><p>Create a separate folder for your bot-project. Open this folder by VisualStudioCode and create inside index.js file with code from above.</p><pre>const { Aptos, AptosConfig, Network } = require(&quot;@aptos-labs/ts-sdk&quot;);<br><br>//to connect to the Aptos Mainnet (the main public blockchain)<br>const config = new AptosConfig({ network: Network.MAINNET });<br>//Aptos client created using the configuration, allowing us to interact with the blockchain.<br>const aptClient = new Aptos(config);<br><br>//Our accountAddress and creationNumber from example<br>const accountAddress = &quot;0x61d2c22a6cb7831bee0f48363b0eec92369357aece0d1142062f7d5d85c7bef8&quot;;<br>const creationNumber = &quot;9604&quot;;<br><br>// Keep track of the last processed sequence number<br>let lastProcessedSequenceNumber = null;<br>let isFirstRun = true; // Flag to check if this is the first run<br><br>async function fetchAndProcessEvents() {<br>    try {<br>        //getting events from Aptos Blockchain<br>        const events = await aptosClient.getAccountEventsByCreationNumber({ accountAddress, creationNumber });<br><br>        let hasNewEvents = false;<br><br>        // Loop through each event to check if it is new and relevant<br>        for (const event of events) {<br>            const isNewEvent = lastProcessedSequenceNumber === null || event.sequence_number &gt; lastProcessedSequenceNumber;<br>            const isRelevantEvent = event.data.y_in !== &#39;0&#39;;<br><br>            // Process the event only if it is new and meets the criteria<br>            if (isNewEvent &amp;&amp; isRelevantEvent) {<br>                lastProcessedSequenceNumber = event.sequence_number;<br>                hasNewEvents = true;<br><br>                // Skip displaying events during the first run, just update the sequence number<br>                if (isFirstRun) {<br>                    continue;<br>                }<br><br>                // Display the new event<br>                console.log(&#39;New event:&#39;, event);<br>            }<br>        }<br><br>        // Handle the first run: mark as complete and show initial state<br>        if (isFirstRun) {<br>            isFirstRun = false;<br>            if (hasNewEvents) {<br>                console.log(&#39;Initial setup done. Now waiting for new events...&#39;);<br>                console.log(&#39;Last sequence number:&#39;, lastProcessedSequenceNumber);<br>            } else {<br>                console.log(&#39;No events found during the initial setup.&#39;);<br>            }<br>        } else if (!hasNewEvents) {<br>            // If there are no new events after the initial run<br>            console.log(&#39;No new events.&#39;);<br>        }<br>    } catch (error) {<br>        console.error(&#39;Error fetching events:&#39;, error);<br>    }<br>}<br><br>// Run the fetch function immediately, then set up polling<br>fetchAndProcessEvents().then(() =&gt; {<br>    setInterval(fetchAndProcessEvents, 5000); // Poll every 5 seconds<br>});</pre><h3>In two words…</h3><p>This code is written in JavaScript and utilizes the Aptos TypeScript SDK to interact with the Aptos blockchain. The goal is to fetch blockchain events associated with a specific account address and creation number, process them, and continuously poll for new events every 5 seconds. Please note the isRelevantEvent constant—it may change depending on the token, as I mentioned previously.</p><p>Once you’ve finished with that, open the terminal in Visual Studio Code and enter the following command: npm init. This will initialize the Node Package Manager, allowing us to install @aptos-labs/ts-sdk. <em>You can skip all the questions in the terminal after running this command by simply pressing the Enter key.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SBrdgdPbEl-scM5ByF_VBQ.png" /><figcaption>Click where the arrow points to open the terminal tab</figcaption></figure><p>After that we need to run npm install @aptos-labs/ts-sdk command to install the lib that we needs.</p><p>As soon as <a href="https://npmjs.com/package/@aptos-labs/ts-sdk">@aptos-labs/ts-sdk</a> installed let’s run our code by writing node index.js in terminal. You will see something like this:</p><pre>Initial setup done. Now waiting for new events...<br>Last sequence number: 106</pre><p>When a new NRUH buy transaction through LiquidSwap is registered in the terminal, you will see something like this:</p><pre>New event: {<br>  account_address: &#39;0x61d2c22a6cb7831bee0f48363b0eec92369357aece0d1142062f7d5d85c7bef8&#39;,<br>  creation_number: 9604,<br>  data: { x_in: &#39;0&#39;, y_in: &#39;100000000&#39;, x_out: &#39;308413036142&#39;, y_out: &#39;0&#39; },<br>  event_index: 3,<br>  sequence_number: 132,<br>  transaction_block_height: 215376265,<br>  transaction_version: 1638906818,<br>  type: &#39;0x163df34fccbf003ce219d3f1d9e70d140b60622cb9dd47599c25fb2f797ba6e::liquidity_pool::SwapEvent&lt;0x967adbf2e05fe665ab86a3bf2c4acfa39fbf62097963474ef70a0786dae8cfa2::NRUH::NRUH, 0x1::aptos_coin::AptosCoin, 0x163df34fccbf003ce219d3f1d9e70d140b60622cb9dd47599c25fb2f797ba6e::curves::Uncorrelated&gt;&#39;,<br>  indexed_type: &#39;0x163df34fccbf003ce219d3f1d9e70d140b60622cb9dd47599c25fb2f797ba6e::liquidity_pool::SwapEvent&lt;0x967adbf2e05fe665ab86a3bf2c4acfa39fbf62097963474ef70a0786dae8cfa2::NRUH::NRUH, 0x1::aptos_coin::AptosCoin, 0x163df34fccbf003ce219d3f1d9e70d140b60622cb9dd47599c25fb2f797ba6e::curves::Uncorrelated&gt;&#39;<br>}</pre><p>Congratulations! Your swap-alert bot is working perfectly! Now you can use this data however you like. Why not create a new Telegram bot that will notify us about any new events?</p><h3>Creating the Telegram-bot</h3><p>First of all you need to find the <a href="https://t.me/BotFather">BotFather</a> in Telegram and write /newbot command in his chat. Write the name for your bot and <strong>save the API-key</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rpnyzMg8FjwIoOFo-P1E2g.png" /></figure><p>To use Telegram, we need to install the <a href="https://www.npmjs.com/package/telegraf">Telegraf library</a>. Make sure to stop your bot by pressing <strong>Ctrl + C</strong> in the terminal before running the new command. Let’s install it in the Visual Studio Code terminal by running the command npm install telegraf</p><p>After that let’s update our <em>index.js </em>file(<em>you can just copy and paste it</em>).</p><pre>const { Aptos, AptosConfig, Network } = require(&quot;@aptos-labs/ts-sdk&quot;);<br>const { Telegraf } = require(&#39;telegraf&#39;);<br><br>const bot = new Telegraf(&#39;your_telegram_api_code&#39;);<br>const config = new AptosConfig({ network: Network.MAINNET });<br>const aptosClient = new Aptos(config);<br><br>const accountAddress = &quot;0x61d2c22a6cb7831bee0f48363b0eec92369357aece0d1142062f7d5d85c7bef8&quot;;<br>const creationNumber = &quot;9604&quot;;<br><br>// Keep track of the last processed sequence number<br>let lastProcessedSequenceNumber = null;<br>let isFirstRun = true; // Flag to check if this is the first run<br>let chatId = null; // Store chat ID after /start is received<br><br>async function fetchAndProcessEvents() {<br>    try {<br>        const events = await aptosClient.getAccountEventsByCreationNumber({ accountAddress, creationNumber });<br><br>        let hasNewEvents = false;<br><br>        // Loop through each event to check if it is new and relevant<br>        for (const event of events) {<br>            const isNewEvent = lastProcessedSequenceNumber === null || event.sequence_number &gt; lastProcessedSequenceNumber;<br>            const isRelevantEvent = event.data.y_in !== &#39;0&#39;;<br><br>            // Process the event only if it is new and meets the criteria<br>            if (isNewEvent &amp;&amp; isRelevantEvent) {<br>                lastProcessedSequenceNumber = event.sequence_number;<br>                hasNewEvents = true;<br><br>                // Skip displaying events during the first run, just update the sequence number<br>                if (isFirstRun) {<br>                    continue;<br>                }<br><br>                // Send the new event message if chatId is set<br>                if (chatId) {<br>                    sendMessages(event, chatId);<br>                }<br><br>                // Display the new event in the console<br>                console.log(&#39;New event:&#39;, event);<br>            }<br>        }<br><br>        // Handle the first run: mark as complete and show initial state<br>        if (isFirstRun) {<br>            isFirstRun = false;<br><br>            if (hasNewEvents) {<br>                console.log(&#39;Initial setup done. Now waiting for new events...&#39;);<br>                console.log(&#39;Last sequence number:&#39;, lastProcessedSequenceNumber);<br>            } else {<br>                console.log(&#39;No events found during the initial setup.&#39;);<br>            }<br>        } else if (!hasNewEvents) {<br>            // If there are no new events after the initial run<br>            console.log(&#39;No new events.&#39;);<br>        }<br>    } catch (error) {<br>        console.error(&#39;Error fetching events:&#39;, error);<br>    }<br>}<br><br>function sendMessages(event, chatId) {<br>    const aptosAmount = (+event.data.y_in / 100000000).toFixed(2);<br>    const tokenAmount = (+event.data.x_out / 1000000).toLocaleString(&#39;en-US&#39;, { minimumFractionDigits: 2, maximumFractionDigits: 2 });<br>    const transactioVersion = event.transaction_version;<br><br>    bot.telegram.sendMessage(<br>        chatId,<br>        `<br>Someone buys $NRUH!!!<br><br>Spent: ${aptosAmount} APT<br>Got: ${tokenAmount} NRUH<br><br>&lt;a href=&quot;https://explorer.aptoslabs.com/txn/${transactioVersion}/balanceChange?network=mainnet&quot; style=&quot;color: BLUE; text-decoration: none;&quot;&gt;Transaction&lt;/a&gt;<br>`, { parse_mode: &#39;HTML&#39;, disable_web_page_preview: true }<br>    );<br>}<br><br>// Telegram bot command to start monitoring<br>bot.start((ctx) =&gt; {<br>    chatId = ctx.chat.id; // Save the chat ID to send messages to this chat<br>    ctx.reply(&#39;Bot started! You will receive updates on new events.&#39;);<br>    <br>    // Start polling for events<br>    fetchAndProcessEvents().then(() =&gt; {<br>        setInterval(fetchAndProcessEvents, 5000); // Poll every 5 seconds<br>    });<br>});<br><br>// Start the bot<br>bot.launch();<br><br>console.log(&#39;Bot is running. Type /start in Telegram to receive updates.&#39;);</pre><h3>Another two words…</h3><p>What did we do here?</p><h4>1. Integration with Telegram Bot:</h4><ul><li>The new code integrates with the Telegram Bot API using the Telegraf library. It creates a bot instance and allows interaction with users via Telegram.</li><li>The bot is configured to start when a user sends the /start command. This adds an interactive element where the bot responds to user commands and sends updates about new events to a specified chat.</li></ul><h4>2. Sending Messages to a Chat:</h4><ul><li>The sendMessages function is introduced to send notifications to a specified chat when new events are detected. In the previous example, the events were just logged to the console.</li><li>The notifications contain information about the event, including the amount of tokens spent and received (aptosAmount and tokenAmount). This data is formatted for readability.</li></ul><p>Let’s run it by writing node index.js in terminal.<br>As a result we will have messages from our bot like in screenshot above.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N_cCgItGVSHfj6Fr9rsHaw.png" /></figure><p>Thank you to everyone who read this to the end! I hope you found it useful. My mission is to help people understand that interacting with the Aptos blockchain isn’t as difficult as it may seem. 🙏</p><p>Upd.<br>Here is the alternative way of how to get fresh events of swapping in aptosSDK. <br>You need to get any of transactions where someone bought your token, let it be this one — <a href="https://explorer.aptoslabs.com/txn/1970176722/events?network=mainnet">https://explorer.aptoslabs.com/txn/1970176722/events?network=mainnet</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MKeEtCi5_Ai47S91_mWxuw.png" /></figure><p>We’re interested in this particular event with type “0x163df34fccbf003ce219d3f1d9e70d140b60622cb9dd47599c25fb2f797ba6e::liquidity_pool::SwapEvent&lt;0x967adbf2e05fe665ab86a3bf2c4acfa39fbf62097963474ef70a0786dae8cfa2::NRUH::NRUH, 0x1::aptos_coin::AptosCoin, 0x163df34fccbf003ce219d3f1d9e70d140b60622cb9dd47599c25fb2f797ba6e::curves::Uncorrelated&gt;”</p><p>Now we have a certain type of event and can change the code a bit</p><pre>const { Aptos, AptosConfig, Network } = require(&quot;@aptos-labs/ts-sdk&quot;);<br>const { Telegraf } = require(&#39;telegraf&#39;);<br><br>const bot = new Telegraf(&#39;your_telegram_api_code&#39;);<br>const config = new AptosConfig({ network: Network.MAINNET });<br>const aptosClient = new Aptos(config);<br><br>const ca = &quot;0x967adbf2e05fe665ab86a3bf2c4acfa39fbf62097963474ef70a0786dae8cfa2::NRUH::NRUH&quot;;<br><br>// Keep track of the last processed sequence number<br>let lastProcessedSequenceNumber = null;<br>let isFirstRun = true; // Flag to check if this is the first run<br>let chatId = null; // Store chat ID after /start is received<br><br>async function fetchAndProcessEvents() {<br>    try {<br>        <br>        //new wau of how to get last event with implemented filters<br>        const events = await aptosClient.getEvents({<br>            options: {<br>                where: {<br>                    type: { _eq: `0x163df34fccbf003ce219d3f1d9e70d140b60622cb9dd47599c25fb2f797ba6e::liquidity_pool::SwapEvent&lt;${ca}, 0x1::aptos_coin::AptosCoin, 0x163df34fccbf003ce219d3f1d9e70d140b60622cb9dd47599c25fb2f797ba6e::curves::Uncorrelated&gt;` },<br>                    data: { _contains: { x_in: &quot;0&quot; } },<br>                    ...(lastProcessedSequenceNumber &amp;&amp; { sequence_number: { _gt: lastProcessedSequenceNumber } })<br>                },<br>                orderBy: {<br>                    transaction_version: &#39;desc&#39;<br>                },<br>                limit: 1<br>            },<br>        })<br><br><br>        let hasNewEvents = false;<br><br>        // Loop through each event to check if it is new and relevant<br>        for (const event of events) {<br>            const isNewEvent = lastProcessedSequenceNumber === null || event.sequence_number &gt; lastProcessedSequenceNumber;<br><br>            // Process the event only if it is new and meets the criteria<br>            if (isNewEvent) {<br>                lastProcessedSequenceNumber = event.sequence_number;<br>                hasNewEvents = true;<br><br>                // Skip displaying events during the first run, just update the sequence number<br>                if (isFirstRun) {<br>                    continue;<br>                }<br><br>                // Send the new event message if chatId is set<br>                if (chatId) {<br>                    sendMessages(event, chatId);<br>                }<br><br>                // Display the new event in the console<br>                console.log(&#39;New event:&#39;, event);<br>            }<br>        }<br><br>        // Handle the first run: mark as complete and show initial state<br>        if (isFirstRun) {<br>            isFirstRun = false;<br><br>            if (hasNewEvents) {<br>                console.log(&#39;Initial setup done. Now waiting for new events...&#39;);<br>                console.log(&#39;Last sequence number:&#39;, lastProcessedSequenceNumber);<br>            } else {<br>                console.log(&#39;No events found during the initial setup.&#39;);<br>            }<br>        } else if (!hasNewEvents) {<br>            // If there are no new events after the initial run<br>            console.log(&#39;No new events.&#39;);<br>        }<br>    } catch (error) {<br>        console.error(&#39;Error fetching events:&#39;, error);<br>    }<br>}<br><br>function sendMessages(event, chatId) {<br>    const aptosAmount = (+event.data.y_in / 100000000).toFixed(2);<br>    const tokenAmount = (+event.data.x_out / 1000000).toLocaleString(&#39;en-US&#39;, { minimumFractionDigits: 2, maximumFractionDigits: 2 });<br>    const transactioVersion = event.transaction_version;<br><br>    bot.telegram.sendMessage(<br>        chatId,<br>        `<br>Someone buys $NRUH!!!<br><br>Spent: ${aptosAmount} APT<br>Got: ${tokenAmount} NRUH<br><br>&lt;a href=&quot;https://explorer.aptoslabs.com/txn/${transactioVersion}/balanceChange?network=mainnet&quot; style=&quot;color: BLUE; text-decoration: none;&quot;&gt;Transaction&lt;/a&gt;<br>`, { parse_mode: &#39;HTML&#39;, disable_web_page_preview: true }<br>    );<br>}<br><br>// Telegram bot command to start monitoring<br>bot.start((ctx) =&gt; {<br>    chatId = ctx.chat.id; // Save the chat ID to send messages to this chat<br>    ctx.reply(&#39;Bot started! You will receive updates on new events.&#39;);<br>    <br>    // Start polling for events<br>    fetchAndProcessEvents().then(() =&gt; {<br>        setInterval(fetchAndProcessEvents, 5000); // Poll every 5 seconds<br>    });<br>});<br><br>// Start the bot<br>bot.launch();<br><br>console.log(&#39;Bot is running. Type /start in Telegram to receive updates.&#39;);</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93c67c8b6ae1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Aptos Blockchain: The First Step on the Road to a Web3 Product]]></title>
            <link>https://medium.com/@normanlitka/aptos-blockchain-the-first-step-on-the-road-to-a-web3-product-3466b064407b?source=rss-ba33b6088050------2</link>
            <guid isPermaLink="false">https://medium.com/p/3466b064407b</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[move]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[aptos]]></category>
            <dc:creator><![CDATA[Normanlitka]]></dc:creator>
            <pubDate>Mon, 05 Aug 2024 12:33:51 GMT</pubDate>
            <atom:updated>2024-08-05T12:33:51.904Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello everyone! ✋</p><p>I’m Norman, and my goal for the near future is to understand the Move language within the Aptos blockchain and create a web3 product using it. I think it’s valuable to take you along this journey with me.</p><p>I’ve seen many examples and articles dedicated to learning the Move language, and they all start with setting up the development environment and writing the simplest smart contracts like “Hello World.” This approach doesn’t resonate with me because it doesn’t explain or help us understand the purpose of learning this language. Without understanding our goals and setting clear objectives, we can’t evaluate its advantages and disadvantages. It’s crucial to know why we are learning it, what we can achieve with it, and whether it is truly necessary for reaching our goals.</p><p>A few words about myself — I am a web developer with over 10 years of experience, primarily focused on frontend development. However, I occasionally write backend code, work with databases, and am not shy about handling DevOps tasks. So far, I have written a couple of Telegram bots and one application that interacts with the Aptos blockchain and its smart contracts.</p><h3>Understanding Web3 on Aptos: A High-Level Overview</h3><p>The most logical starting point for working towards web3 development is to understand the framework I found here: <a href="https://learn.aptoslabs.com/en/tutorial/web3-101/web2-web3-comparison?workshop=web2-to-aptos">Web2 to Web3 Comparison</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VaCqlhf0-g224N0KcXCDSw.png" /></figure><p>The standard workflow in Web (Web2.0) involves having a frontend, backend (plus a database), and interaction between them using various approaches (RestApi, GraphQL, etc.). All the internal logic of the application is implemented using different programming languages, and the data is stored directly in the database.</p><p>With the advent of Web3 on Aptos, the workflow changes slightly. The backend is now managed by smart contracts written in the Move language, which reside on the blockchain itself. This means that a large part of the application’s logic is in the blockchain, and to interact with it (the smart contracts), the Aptos SDK is used. Essentially, the Aptos blockchain serves as a repository of smart contracts that can be utilized for various purposes. In other words, you can write your Web3 product using only JavaScript and the Aptos SDK, creating a clean frontend without having to write server-side code.</p><h3>Is it necessary to know the Move language to work with the Aptos blockchain?</h3><p>To answer this question, we need to delve a bit deeper into the Aptos SDK.</p><p>In common words, SDK stands for <strong>Software Development Kit</strong>. It’s a collection of tools, libraries, and documentation that helps developers create software for a specific platform, application, or system. Think of it as a toolkit that provides everything you need to build and integrate new features or applications.</p><p>The Aptos SDK is a set of tools that help you work with the blockchain, specifically to:</p><ul><li>Retrieve data from the blockchain.</li><li>Submit transactions.</li><li>Manage accounts.</li><li>Interact with smart contracts written in the Move language.</li></ul><p>The Aptos SDK is available in several programming languages:</p><ul><li>JavaScript/TypeScript</li><li>Python</li><li>Rust</li></ul><p>Thus, for basic interaction with the blockchain, it is sufficient to have basic programming skills in common web programming languages without using Move.</p><p>In this article, I do not want to delve into coding details. My goal is to show the overall scheme of interaction with the Aptos blockchain at a high level and provide an understanding that it is not strictly necessary to learn Move for implementing basic functionality.</p><p>In the next article, I would like to talk more specifically about using the Aptos SDK by providing an example of writing a trading Telegram bot that displays every trade for a specific trading pair.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3466b064407b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>