<?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 Dmitry Semenovsky on Medium]]></title>
        <description><![CDATA[Stories by Dmitry Semenovsky on Medium]]></description>
        <link>https://medium.com/@dmitry_semenovskiy?source=rss-b448af226453------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*eP4L1xNrl9aKrKn-3hhV1Q@2x.jpeg</url>
            <title>Stories by Dmitry Semenovsky on Medium</title>
            <link>https://medium.com/@dmitry_semenovskiy?source=rss-b448af226453------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 10:23:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dmitry_semenovskiy/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[We’re making our digital signature platform temporarily free of charge]]></title>
            <link>https://medium.com/vaultie/were-making-our-digital-signature-platform-temporarily-free-of-charge-c8c2d061b69a?source=rss-b448af226453------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8c2d061b69a</guid>
            <category><![CDATA[working-from-home]]></category>
            <category><![CDATA[legaltech]]></category>
            <category><![CDATA[kyc]]></category>
            <category><![CDATA[working-remotely]]></category>
            <category><![CDATA[legal-services]]></category>
            <dc:creator><![CDATA[Dmitry Semenovsky]]></dc:creator>
            <pubDate>Mon, 16 Mar 2020 17:23:19 GMT</pubDate>
            <atom:updated>2020-03-16T17:23:19.970Z</atom:updated>
            <content:encoded><![CDATA[<h4><em>To empower business continuity while working remotely</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*knyZ_0dhqncJab5ZQ-aFXA.png" /></figure><blockquote>“World health conditions are abruptly changing how professionals interact with their clients”</blockquote><p>We are providing free access to our <em>verified ID-based</em> secure <a href="https://vaultie.io/how-it-works">digital signature platform</a> for the next 60 days in response to the global COVID-19 crisis. This move will help lawyers, real estate agents, and other business people continue to work while in self-isolation or quarantine.</p><p>“World health conditions are abruptly changing how professionals interact with their clients,” said Meyer Mechanic, co-founder and chief operating officer. “Our platform empowers people working from home by giving them the ability to verify IDs and sign contracts without interacting in person.”</p><blockquote>“Being able to confirm someone’s identity without meeting them in person is now a necessity rather than a convenience”</blockquote><p>Documents signed with Vaultie are tied to a <em>verified selfie</em> using compliance grade facial recognition and government identification testing. Anchored on a blockchain, documents are tamper-proof and <a href="https://vaultie.io/verify-documents">instantly verifiable</a> by any third party.</p><p>“Being able to confirm someone’s identity without meeting them in person is now a necessity rather than a convenience,” said Dmitry Semenovskiy, Vaultie’s co-founder and chief executive officer. “This is what Vaultie does, and we believe it’s our duty to help people avoid disrupting their day-to-day business activities during this global health crisis.”</p><p><a href="https://vaultie.io/about">Our team</a> is passionate technologists who wanted to create the world’s first bulletproof digital signature. Drawing on experience in the finance, legal, SaaS and blockchain industries, we set out to develop a platform that would be able to verify that signers are exactly who they say they are, protect a document’s content, and work seamlessly with a smartphone. Vaultie, which launched in January, was the result.</p><p>To start signing with Vaultie click <a href="https://app.vaultie.io/auth/signup">here</a>, or email us at <a href="/service/mailto:info@vaultie.io">info@vaultie.io</a> for more info. Stay healthy!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8c2d061b69a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/vaultie/were-making-our-digital-signature-platform-temporarily-free-of-charge-c8c2d061b69a">We’re making our digital signature platform temporarily free of charge</a> was originally published in <a href="https://medium.com/vaultie">Vaultie</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Track blockchain transactions  with web3.js]]></title>
            <link>https://medium.com/pixelpoint/track-blockchain-transactions-like-a-boss-with-web3-js-c149045ca9bf?source=rss-b448af226453------2</link>
            <guid isPermaLink="false">https://medium.com/p/c149045ca9bf</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Dmitry Semenovsky]]></dc:creator>
            <pubDate>Wed, 20 Jun 2018 06:53:19 GMT</pubDate>
            <atom:updated>2018-06-20T13:46:28.958Z</atom:updated>
            <content:encoded><![CDATA[<h3>Track blockchain transactions with web3.js</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*fSNAHD-iZuRpgoHZ0ToNZw@2x.jpeg" /></figure><p>The number of dApps and tokens on the market is rapidly growing, with annual increases of over 1000 of new distributed applications, 500 new tokens, and online services built around both of these. There are a lot of fascinating features and benefits that blockchain technology brings into our lives. Nevertheless, the underlying idea is always the same; a transaction should be posted into a blockchain and mined in order to transfer crypto funds or execute any other function of a smart-contract.</p><p>For some applications and online services, it is crucial to know the current state of a user’s wallet or any transactions resulting from a user’s actions. There are a lot of web services that allow developers to get details about wallets and transactions via JSON API, such as <a href="https://www.blockcypher.com/">BlockCypher</a>. However, there were few, if any, places to see all the currencies and tokens needed in one place.</p><p>In this article, I will shed light on how do we deal with this at <a href="https://pixelpoint.io/">Pixel Point</a>.</p><h4>Different projects — same tasks</h4><p>Every blockchain uses different consensus protocols, but in terms of wallet and transaction watching, they all have a lot in common. Determining of the moment of funds transfer and verifying that the transaction has gained the number of confirmations needed for security reasons is a typical task for crypto projects.</p><p>Therefore, the task of crypto assets tracking can be split into two parts. First, watch the wallet for incoming transfers and get one that matches our filter criteria. Second, use the transaction hash of the transfer and watch for its confirmations.</p><h4>Tracking ETH transactions</h4><p>Let’s start from the currency of the Ethereum blockchain–Ether. Thanks to the efforts of the Ethereum development team and the open source community (which I count myself as part of), we have quite an impressive number of Web3 implementations:</p><ul><li>Python <a href="https://github.com/ethereum/web3.py">Web3.py</a></li><li>Haskell <a href="https://github.com/airalab/hs-web3">hs-web3</a></li><li>Java <a href="https://github.com/web3j/web3j">web3j</a></li><li>Scala <a href="https://github.com/mslinn/web3j-scala">web3j-scala</a></li><li>Purescript <a href="https://github.com/f-o-a-m/purescript-web3">purescript-web3</a></li><li>PHP <a href="https://github.com/sc0Vu/web3.php">web3.php</a></li><li>PHP <a href="https://github.com/digitaldonkey/ethereum-php">ethereum-php</a></li><li>Swift <a href="https://github.com/BANKEX/web3swift">web3swift</a></li></ul><p>However, the original and most popular one is JavaScript implementation, which is called<a href="https://github.com/ethereum/web3.js/"> web3.js</a>. So let us use this powerful tool for working directly with Ethereum blockchain nodes and see how it works:</p><pre>npm install web3</pre><h4>ETH transactions subscriptions</h4><p>Web3 API doesn’t allow you to subscribe directly to a wallet’s incoming transactions, so to solve our particular problem, we have to use a different strategy. First, we subscribe to all pending transactions, then we filter them by the sender’s wallet address and certain other criteria.</p><p>Web3.js allows us to talk directly to an Ethereum node via multiple protocols, including HTTP and WebSockets. For example, I use Rinkeby Testnet and nodes provided by <a href="https://infura.io/">Infura</a>. However, you a free to use any other provider, including local nodes.</p><p>In the function shown below, a new web3 instance with the WebSockets provider is created and used to establish a subscription to newly created transactions in blockchain. This instance is called <em>pending</em>.</p><p>A subscription object can be created using two methods, <em>subscribe()</em> and <em>unsubscribe()</em>. Both of them accept a callback function to handle errors and any results of subscribing. There are two events that we can handle with subscriptions to pending transactions: <em>data</em> and <em>error. </em>Certainly,<em> data</em> is the essential event that we need for finding the transfer.</p><p>A data event handler only has one input parameter, which represents a transaction hash and checks every transaction for compliance with our search criteria when we need more details than just a hash. That’s where a different web3.js method, <em>getTransaction(), </em>can be used for reading transaction details. As this is an asynchronous call, I simply wrap it into a try-catch statement and await for the response. You can find the response object format in the official documentation for web3 <a href="https://web3js.readthedocs.io/en/1.0/web3-eth.html#gettransaction">here</a>.</p><p>Once a response is received and the transaction matches our filter conditions, we need to initiate the transaction confirmation process and cancel the subscription by calling its <em>unsubscribe</em>() method. If we don’t have a transaction that satisfies our filter, we simply return from function to stay subscribed.</p><p>The function is shown below, but also you could get full workable <a href="https://github.com/pixel-point/web3js-tracker-example"><strong>blockchain tracker example source code here</strong></a>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3ce648dad20c534907e6043a11b0ae14/href">https://medium.com/media/3ce648dad20c534907e6043a11b0ae14/href</a></iframe><p>Please note that the above examples uses HttpProvider to get transaction details, because the risk of having a connection error with WebSockets is much higher. I had at least two errors during a thirty-minute observation with WebSocketProvider and none with HttpProvider.</p><h4>ETH transactions confirmations counting</h4><p>Once we determine which transaction we need to track, we can start monitoring the confirmations until they reach the needed amount.</p><p>There is a very simple way of determining a confirmations count basing on the block number in which a transaction was initially mined. The confirmations number is the difference between the current block number and the transaction block number. To get it, I suggest using a helper function which is outlined below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1ebb5c7658d3181b1f9d54565a9735b5/href">https://medium.com/media/1ebb5c7658d3181b1f9d54565a9735b5/href</a></iframe><p>As the result of calling this function, we get an integer value that represents the confirmations count. Some projects require 100 confirmations, some fewer than 10, which is why we have to use this function recursively.</p><p>In the following example, I call <em>getConfirmations() </em>via the <em>setTimeout() </em>function, but you can implement it in other ways too.</p><p>I picked 10 as the default number of confirmations needed and set a 30 second interval, which is slightly more than Ethereum’s block mining time (10–19 seconds).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c1bc2a87ccda5db06af0b7ee57b833d6/href">https://medium.com/media/c1bc2a87ccda5db06af0b7ee57b833d6/href</a></iframe><h4>Tracking ERC20 tokens</h4><p>Knowing that ERC20 tokens are built on Ethereum as smart contracts, it may seem easy at first glance to track as Ether. Finding incoming transactions to a wallet with a certain crypto amount is different from Ether, because the transaction’s recipient address will always be a smart contract’s address. However, for each token transfer made, a special token contract’s function is called. This function calls Transfer events on blockchain when it succeeds and all events are logged by blockchain, becoming accessible at any time.</p><p>Our goal is to capture a transaction that meets the requirements the moment it gets posted to blockchain, so we are going to use the same WebSocketProvider. But, instead of subscription objects, we will instantiate token contract objects and listen for transfer events.</p><p>A token contract is needed to subscribe and parse event data, as row data is in hexadecimal format and is therefore not readable to humans. For instantiation of the contract object, we require a token’s JSON ABI (<a href="https://github.com/pixel-point/web3js-tracker-example/blob/master/src/abi.json">see example</a>) and the Ethereum address the contract is deployed at.</p><p>The web3.js API allows us to filter events by indexed parameters of the event. In the case of a transfer event, such parameters are <em>_from</em>, <em>_to,</em> and <em>_value</em>. While setting the options object for event subscriptions, we also can set the number of blocks to start looking for events.</p><p>As we filter transfer events, we will get the sought-for transaction once it appears on blockchain and we can then proceed to the confirmation stage.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2b2de5c4a48e20bff88e639d7a250dbd/href">https://medium.com/media/2b2de5c4a48e20bff88e639d7a250dbd/href</a></iframe><p>A transaction object of Ether transfer is subject to the same rules as a Transfer transaction, which means we can apply exactly the same <em>confirmEtherTransaction() </em>function as we did with the Ether transaction in the above example.</p><h4>Final thoughts</h4><p>These examples show how to specifically track ERC20 Token transfers, but the same technique can be applied to any other smart contract’s functions depending on your business needs. I have summed up the examples above in a simple node.js service, which can serve as a starting point to blockchain exploration.</p><p><strong>We created a special repository with full working examples that describes all states from this article. Please feel free to use it in a draft for your next project:</strong></p><p><a href="https://github.com/pixel-point/web3js-tracker-example">Blockchain tracker example source code</a></p><p><strong>Tap the </strong>👏 <strong>button if you found this article useful!</strong></p><p>Any questions or Feedback? Connect via <a href="https://pixelpoint.io/"><strong>Pixel Point</strong></a></p><figure><a href="https://www.facebook.com/PixelPointAgency/"><img alt="" src="https://cdn-images-1.medium.com/max/700/1*IfQSNvRtrLtxb_gmCR_7wg@2x.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c149045ca9bf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/pixelpoint/track-blockchain-transactions-like-a-boss-with-web3-js-c149045ca9bf">Track blockchain transactions  with web3.js</a> was originally published in <a href="https://medium.com/pixelpoint">Pixel Point</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>