<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Developers Forum for XinFin XDC Network: Hrishikesh Varekar</title>
    <description>The latest articles on Developers Forum for XinFin XDC Network by Hrishikesh Varekar (@call2hrishi).</description>
    <link>https://www.xdc.dev/call2hrishi</link>
    <image>
      <url>https://www.xdc.dev/images/RsHp-3qIr-Mx84h0ighMJdeojK2jjyc-lE6xz2TCVJg/rs:fill:90:90/mb:500000/ar:1/aHR0cHM6Ly93d3cu/eGRjLmRldi91cGxv/YWRzL3VzZXIvcHJv/ZmlsZV9pbWFnZS84/MDMvMTBhODcwNDYt/OTljMC00NmYwLWEz/MzAtN2FhNmRlZGEy/Y2M3LmpwZw</url>
      <title>Developers Forum for XinFin XDC Network: Hrishikesh Varekar</title>
      <link>https://www.xdc.dev/call2hrishi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://www.xdc.dev/feed/call2hrishi"/>
    <language>en</language>
    <item>
      <title>[Info]Download, Secure Snapshot of XDC Network using Checksum.</title>
      <dc:creator>Hrishikesh Varekar</dc:creator>
      <pubDate>Thu, 01 Dec 2022 10:39:53 +0000</pubDate>
      <link>https://www.xdc.dev/call2hrishi/download-secure-snapshot-of-xdc-network-using-checksum-jo3</link>
      <guid>https://www.xdc.dev/call2hrishi/download-secure-snapshot-of-xdc-network-using-checksum-jo3</guid>
      <description>&lt;p&gt;&lt;strong&gt;About XDC Network :&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;The XDC Network is an enterprise-friendly, open source, hybrid blockchain protocol specializing in tokenization for real world use cases like decentralized finance, tokenized trade assets and stable backed assets. It enables customers to launch new products and services by providing institutions an enterprise-grade blockchain solution to digitize contracts, assets, launch markets, and reduce operational costs. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is XDC Network Snapshot and where it can be use :&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;A XDC network snapshot is a file that contains the current stats of a XDC blockchain at any particular time. A XDC Network snapshot captures the complete blockchain ledger, including all existing addresses and their related data, like transactions, fees, balance, metadata, and more. &lt;/p&gt;

&lt;p&gt;When a XDC node joins a network, it must download the whole blockchain, from the genesis block to the last block generated, which can range in size from 1.5 GB to 200 GB. Snapshots, on the other hand, allow nodes to catch up with the network by obtaining only the most recent states.&lt;/p&gt;

&lt;p&gt;Looking at the huge requirement from the community members and from the clients who are migrating apps on XDC Network for them I have created or built the latest snapshots using checksum method of XDC Network Data and can be download using below steps &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is Checksum and why is it required ?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A checksum is a string of numbers and letters that act as a fingerprint for a file against which later comparisons can be made to detect errors in the data. They are important because we use them to check files for integrity. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.xdc.dev/images/sCGGIUkuOtT59ANI2V40b2NHkNiARMK_B7vDNdyqLJQ/w:880/mb:500000/ar:1/aHR0cHM6Ly93d3cu/eGRjLmRldi91cGxv/YWRzL2FydGljbGVz/Lzl3MHcwZTVxcDRk/cjFvMG8zZmxuLnBu/Zw" class="article-body-image-wrapper"&gt;&lt;img src="https://www.xdc.dev/images/sCGGIUkuOtT59ANI2V40b2NHkNiARMK_B7vDNdyqLJQ/w:880/mb:500000/ar:1/aHR0cHM6Ly93d3cu/eGRjLmRldi91cGxv/YWRzL2FydGljbGVz/Lzl3MHcwZTVxcDRk/cjFvMG8zZmxuLnBu/Zw" alt="Image description" width="880" height="870"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Steps to download the latest snapshot of XDC Network :&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;XDC Network Snapshots allow new nodes to catch-up with the network by downloading only the most recent states from the blockchain, and they are commonly used to bootstrap blockchains, sidechains, and new nodes. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;URL ‘s to download the XDC Network Data :&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;Download URL 1 (Europe)     : &lt;a href="https://eu1.xinfin.network/xdcchain.tar"&gt;https://eu1.xinfin.network/xdcchain.tar&lt;/a&gt; &lt;br&gt;
Download URL 2 (USA)        : &lt;a href="https://us1.xinfin.network/xdcchain.tar"&gt;https://us1.xinfin.network/xdcchain.tar&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;As of now it is available only with the above 2 locations in Europe and USA and I'm looking at more suggestions  from the community members on their location requirement. &lt;/p&gt;

&lt;p&gt;This Command would compress the complete XDC Network chain directory and provide a single data file to download at the user end. &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;tar -czvf xdcchain.tar XDC&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;To generate an SHA checksum, we are using md5sum command to get of xdcchain.tar which return checksum hash&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;md5sum xdcchain.tar &amp;gt; xdcchain.tar.md5&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;CheckSum hash :- &lt;code&gt;ac4d0b155fc3ce016354f6bafcb91a05&lt;/code&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;cat xdcchain.tar.md5&lt;/code&gt;&lt;br&gt;
&lt;code&gt;ac4d0b155fc3ce016354f6bafcb91a05 *xdcchain.tar&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;md5sum is used to verify the integrity of files, as virtually any change to a file will cause its MD5 hash to change. Most commonly, md5sum is used to verify that a file has not changed as a result of a faulty file transfer, a disk error or non-malicious meddling.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;md5sum --check xdcchain.tar.md5&lt;br&gt;
xdcchain.tar: OK&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Summary :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The blockchain industry is a fast paced industry. Platforms that utilize blockchain technology have to adapt at a break-neck speed in order to remain relevant. As a result, these platforms might have to migrate from one blockchain instance to another to remain competitive and secure.&lt;br&gt;
Data migration on the blockchain involves copying data from the source blockchain and recreating it on the target blockchain. However, this data can be very large, emphasizing the need to reduce the blockchain download time.&lt;/p&gt;

&lt;p&gt;A XDC snapshot is a file that contains the state of a blockchain at any given point in time. XDC Snapshots allow new nodes to catch-up with the XDC network by downloading only the most recent states from the blockchain, and they are commonly used to bootstrap blockchains, sidechains, and new nodes. &lt;/p&gt;

&lt;p&gt;I hope you enjoyed this tutorial, and be sure to leave a comment if you have any questions. &lt;/p&gt;

&lt;p&gt;Telegram    : @HrishikeshVarekar&lt;br&gt;
Twitter      : @Hrishi_XinFin&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Happy Coding!&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>xdc</category>
      <category>snapshot</category>
      <category>xdcnetwork</category>
      <category>integration</category>
    </item>
  </channel>
</rss>
