<?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 galeki on Medium]]></title>
        <description><![CDATA[Stories by galeki on Medium]]></description>
        <link>https://medium.com/@galeki-101?source=rss-9049b6631f44------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*hrinylFIKCkz5PmMEe_oBg.jpeg</url>
            <title>Stories by galeki on Medium</title>
            <link>https://medium.com/@galeki-101?source=rss-9049b6631f44------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 23:47:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@galeki-101/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[Value Secured ChildChains — Upcoming ChildChain Challenges and Ideas]]></title>
            <link>https://galeki-101.medium.com/value-secured-childchains-upcoming-childchain-challenges-and-ideas-260e999b6d89?source=rss-9049b6631f44------2</link>
            <guid isPermaLink="false">https://medium.com/p/260e999b6d89</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ignis]]></category>
            <category><![CDATA[ardor]]></category>
            <category><![CDATA[childchain]]></category>
            <dc:creator><![CDATA[galeki]]></dc:creator>
            <pubDate>Sun, 07 Feb 2021 17:04:55 GMT</pubDate>
            <atom:updated>2021-02-07T17:26:09.865Z</atom:updated>
            <content:encoded><![CDATA[<h3>Value Secured ChildChains — Upcoming ChildChain Challenges and Ideas</h3><p>ChildChain is not just a concept, we already see Ardor works smoothly for 3 years.</p><p>It has big advance over SingleChain system but also facing some new challenges and some of them already happened.</p><h3>Challenges</h3><h3>1. Unnecessary Large Amount of ChildChain Tokens and Single Point Risk</h3><p>The Issuer of ChildChain usually creates an ambiguous large amount (1,000,000,000 e.g.) of tokens at the beginning, sell only a small amount to public and keep the remains as reserve.</p><p>They may have reasons, but it raises some problems:</p><ul><li>The large amount of unnecessary reserve implies <strong>an uncertain value,</strong> keep press price down and lower the trust of the token. No one wants to invest a token when Issuer still hold 80%+.</li><li>If the Issuer account got hacked it just take the whole ChildChain down. Multisignature can lower the risk but <strong>Issuer can always do that on purpose</strong> (to manipulate the price, to cover up the failure of the business e.g.).</li></ul><h3>2. Spam ChildChains and No Measurement of Quality and Risk</h3><p>If we available ChildChain creation to the public, there will be thousands of ChildChains in one night, probably 90% of them are spams, 9% for fraud, only 1% have good standing but no one can pick them out.</p><p>There are 2 solutions right now, but I think both works not so well:</p><blockquote><strong>1. Setting a High Fee for ChildChain Creation:</strong></blockquote><p>It scares people away when the ParentChain token price is high and useless when the price is low.</p><p>It cannot prevent fraud either.</p><blockquote><strong>2.</strong> <strong>ChildChain Creation Approved by Institution:</strong></blockquote><p>It somehow against decentralization and no institution can know all business.</p><p>Some undiscovered new business model may not be approved forever.</p><p>Small teams may not get the attentions and probably give up before hand.</p><p>Teams with different languages or in different continent may not get proper communication with institution.</p><p>Institution also risks their own reputation and get blamed after 1~2 ChildChain failed.</p><h3>3. ParentChain Token Has No Value</h3><p>ParentChain token only has 2 usages: securing the network and paying fees.</p><p>There is no incentive to hold ParentChain tokens. It usually traded at a low price and centralized in exchanges.</p><p>The security of the whole chain can be easily shocked if exchanges got hacked or have some staking/forging problem.</p><p>— — — — — — — — — — — —</p><h3>Ideas</h3><p>The idea is quite simple:</p><ul><li>In ChildChain Creation, the Issuer set <strong>Initial Rate</strong> of the token instead of total amount.</li><li>Only <strong>Issuer Account</strong> can exchange ParentChain tokens to ChildChain tokens <strong>at Initial Rate</strong>.</li><li>The exchanged ParentChain tokens goes into a <strong>Reserve Account </strong>which has only the permission of <strong>leasing </strong>and accepting <strong>Burning Request</strong> (explained below).</li><li>Every account can send <strong>Burning Request</strong> to <strong>Reserve Account</strong> to burn their ChildChain tokens and get ParentChain tokens back at the <strong>Initial Rate</strong>.</li></ul><p>For example, we create a <strong>Cat Chain</strong> in Ardor:</p><blockquote><em>1. The Issuer Account issues the Cat Chain and set the Initial Rate let’s say 0.1 which means 1 CAT = 0.1 ARDR.</em></blockquote><blockquote><em>2. The Issuer Account use 10,000 ARDR to exchange 100,000 CAT.</em></blockquote><blockquote><em>3. 10,000 ARDR goes into the Reserve Account of Cat Chain.</em></blockquote><blockquote><em>4. The Issuer Account now can distribute or sell 100,000 CAT at CoinExchange (at premium like 0.2~1 ARDR i.e. the ICO price).</em></blockquote><blockquote><em>5. Everyone can burn 1 CAT to Reserve Account to get 0.1 ARDR back.</em></blockquote><blockquote><em>6. If Issuer need more CAT (i.e. the second round of ICO), he can do that with the same procedure of step2~3 and the same rate 0.1.</em></blockquote><p>— — — — —</p><h3>Advantages</h3><ul><li><strong>No Unnecessary Creation of Tokens</strong></li></ul><p>Only tokens that needed are created, there still remains the ability to create large amount, theoretically 10,000,000,000 CAT for the example above.</p><p>If Issuer think he may need 1,000,000 CAT in future, he just need to save 100,000 ARDR in somewhere and use that to create extra CAT in future.</p><ul><li><strong>Much Less Single Point Risk</strong></li></ul><p>Only a small amount tokens are created and usually the Issuer Account has no token left. If the Issuer Account got hacked the hacker only got the ability to exchange ARDR to CAT at 0.1 rate, he needs large amount ARDR and only benefits when both Initial Rate and ARDR are low.</p><p><strong>Issuer should publish an official announcement for every upcoming token creation, so the hack can be detected right after the unexcepted creation transaction is broadcasted.</strong></p><p>If the Reverse Account got hacked the hacker can do nothing.</p><ul><li><strong>Prevent Spam ChildChains</strong></li></ul><p>Setting a <strong>Minimum Initial Rate</strong> and <strong>Minimum Amount</strong> can easliy prevent spams.</p><ul><li><strong>The ChildChain Token has a Minimum Value</strong></li></ul><p>Like CAT at least worth 0.1 ARDR, every ChildChain token has a minimum value.</p><p>One try to fraud a lot of people must prepare a large amount ARDR. The victims can still get ARDR back to reduce their lost.</p><ul><li><strong>Issurers has Motivation to Keep Working Hard</strong></li></ul><p>Issuer has the motivation to work hard, keep the token at a high price(at least higher then Initial Rate) so he can benefit from creations in future.</p><ul><li><strong>The ParentChain Token has a Value</strong></li></ul><p>Every new ChildChain need ARDR to create tokens.</p><p>ARDR are locked in Reserve Account as long as ChildChain token exist.</p><p>Every Issuer may save extra ARDR for further creations.</p><p>Those give ARDR a <strong>value for staking</strong>.</p><ul><li><strong>Price Stabilized bewteen Parent/ChildChain</strong></li></ul><p>If ARDR goes low, Issuers tend to buy more ARDR for creations in future, which stabilize the ARDR price.</p><p>If the token goes low, token holders tend to burn tokens to ARDR, which reduce the amount then stabilize the token price.</p><ul><li><strong>Remove of Failed Chain</strong></li></ul><p>If one ChildChain failed, everyone includes the Issuer has the incentive to burn all their tokens, if all tokens are burned, the ChildChain can be automatic removed by ParentChain, which reduce the data of current blockchain status.</p><ul><li><strong>Initial Rate as Quality Measurement of New ChildChain</strong></li></ul><blockquote>The higher the <strong>Initial Rate</strong> is, the more ARDR needed for creation, which means the more capital and confidence the team has,</blockquote><blockquote>…which also means the more minimum value the token has,</blockquote><blockquote>…also means the more ARDR investor can get back if the ChildChain failed,</blockquote><blockquote>…also means the less attractive to hackers.</blockquote><p>Investors can simply use <strong>Initial Rate as the Quality Measurement of New ChildChains</strong>.</p><p>Issuer must think twice before setting the Initial Rate, the higher the Initial Rate is, probably the more credit the ChildChain get, but the more ARDR have to lock in Reserve Account.</p><p>Issuers good at promotion or with a good reputation can still create tokens with lower Initial Rate.</p><ul><li><strong>Risk Factor as Risk Measurement of ICO Price</strong></li></ul><blockquote>Risk Factor = ICO Price / Initial Rate</blockquote><p>For example, if Issuer of Cat Chain selling CAT at 0.5 ARDR:</p><p>Risk Factor = 0.5 / 0.1 = 5</p><p>Which means investors will get 1/5 their invest back in the worst case.</p><p><strong>Also means if the Risk Factor is low enough, the token still worth a try even with a low Initial Rate.</strong></p><ul><li><strong>Burned Rate(%) as Quality Measurement of Ongoing ChildChains</strong></li></ul><blockquote>Burned Rate(%) = Tokens Investors Burned / Tokens Issuer Created</blockquote><p>For those ChildChain already running for a while, the worse the busniess is going, the lower the token price is, the more holders burned their tokens back to ARDR.</p><p>Investors can use <strong>Burned Rate(%) as the Quality Measurement of ongoing ChildChains</strong>.</p><p>— — — — — — — -</p><h3>Sum-up</h3><p>I know these ideas may raise some new challenges, but if the idea works, we get <strong>Value Secured ChildChains</strong>. Most challenges solved and both Parent/ChildChain tokens get a value and stabilized with each other.</p><p>It is nothing new in concept, just like the currency-gold system in old days, combinate with some method in stocks issues.</p><p>Anyway, it can be optional which means only a part of ChildChains work in that way.</p><p>It also can be extended like <strong>Value Secured by another ChildChain</strong>.</p><p>Just leave the idea. :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=260e999b6d89" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Power of Unconfirmed (II)]]></title>
            <link>https://galeki-101.medium.com/power-of-unconfirmed-ii-f8a761d5125e?source=rss-9049b6631f44------2</link>
            <guid isPermaLink="false">https://medium.com/p/f8a761d5125e</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ardor]]></category>
            <category><![CDATA[ignis]]></category>
            <category><![CDATA[dapps]]></category>
            <dc:creator><![CDATA[galeki]]></dc:creator>
            <pubDate>Tue, 27 Nov 2018 14:26:44 GMT</pubDate>
            <atom:updated>2018-11-28T04:28:59.844Z</atom:updated>
            <content:encoded><![CDATA[<p>This is some further thoughts about <strong>Unconfirmed Transactions. </strong>I hope you already read the first part of the story:</p><p><a href="https://medium.com/@galeki_101/power-of-unconfirmed-dc416377859f">Power of Unconfirmed</a></p><h3>Making It Truly Unconfirmable</h3><p>In the first part of the story, we made transactions unconfirmable by setting the fee to zero. That works under most circumstance but if some Bundler wants pay the fees for you, they still can bundle your transactions into blockchain.</p><p>Thanks to community members we found the solution right after the idea was published:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vAeV2-E9TexUCkDzVABlxw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9TtHMY4tuF67wqQ9wyJqag.png" /></figure><p>Every transaction in Ardor has a param named <em>referencedTransactionFullHash, </em>which means the current transaction cannot be confirmed unless the referenced transaction is also confirmed.</p><p>Just put an invalid hash into that field (like some random string) could make your transaction truly unconfirmable.</p><h3>Setting A Low Deadline</h3><p>Every transaction in Ardor also has a param named <em>deadline, </em>which is the deadline (in minutes) for the transaction to be confirmed.</p><p>Default deadline is 15 minutes, but we don’t need our transactions be confirmed, only enough time to spread in network, so we can safely set it to 1.</p><h3>Put Them All Together</h3><p>Now let’s review how the <strong>Unconfirmed Transactions </strong>works:</p><ul><li>We sending Encrypted Message to an Ardor account with 0 fee, 1 min deadline and an invalid referencedTransactionFullHash.</li><li>The recipient got that message from Unconfirmed Transactions Pool and respond to it immediately with the same way.</li></ul><p><strong>That enables two Ardor accounts communicate with each other privily, instantly, and off the record.</strong></p><h3>Ping</h3><p>We built <a href="https://medium.com/@galeki_101/power-of-unconfirmed-dc416377859f">Burning Messages</a> only with sending plain text. To take a step further, we now using a formatted data (like JSON), which is much easier to design a protocol and parse the response.</p><p>The simplest protocol is Ping:</p><p>The sender send a <em>echo request</em> to an Ardor account address:</p><pre>{<br>  &quot;command&quot; : &quot;echoRequest&quot;,<br>  &quot;data&quot; : &quot;*random_text*&quot;<br>}</pre><p>If the receiver is online, then send back the <em>echo response</em>:</p><pre>{<br>  &quot;command&quot; : &quot;echoResponse&quot;,<br>  &quot;data&quot; : &quot;*same_random_text*&quot;<br>}</pre><p>That’s the <strong>Ping on Ardor</strong>. ;)</p><p>The data section is optional, just to guarantee the receiver indeed got your message.</p><p>What’s this for? Simply say:</p><p><strong>It gives you the ability to check the availability of a peer without revealing the IP address.</strong></p><p>Remember the <a href="https://medium.com/@galeki_101/power-of-unconfirmed-dc416377859f">Burning Messages</a> we built in the first part of the story? With Ping-on-Ardor, we could easily done this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/327/1*-bfghfy8sdyKuE9fPa-IPw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/335/1*sIGEXdwLcIYowZWe-cTlfg.png" /></figure><p>Or even better:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/344/1*mEHYwB_W_zGJryPst4AHyg.png" /></figure><p>Now you know your message recipient is online or not and even the delays.</p><h3>ARP (Address Resolution Protocol)</h3><p>What if you do want reveal your IP? I guess not only me when you learnt some network programming in school, the first thing you want to build is a chatting or file sharing App.</p><p>But then you found there is no way to get other’s IP address without the help of a centralized third-party server.</p><p>We know how the Ethernet got the actually MAC address by IP address — through ARP.</p><p>If you think Ardor account address as the IP address, and the real IP address as MAC, that’s how the<strong> ARP on Ardor</strong> work.</p><p>Sender send the <em>ARP request</em> to an Ardor account:</p><pre>{<br>  &quot;command&quot; : &quot;ARPRequest&quot;<br>}</pre><p>If the receiver is online (and configured to answer ARP, and white-listed the sender account), then send back the actually IP:</p><pre>{<br>  &quot;command&quot; : &quot;ARPResponse&quot;,<br>  &quot;ipv4&quot;: &quot;123.234.246.135&quot;,<br>  &quot;ipv6&quot;: &quot;2000:3000:4000:5000::1111:2222&quot;<br>}</pre><p>What’s this for?</p><p><strong>It build the bridge from Ardor platform to IP layer in a decentralized way.</strong></p><p>Now we can build our own peer-to-peer App without a centralized server. After knowing the peer’s IP, something like sending big files won’t be a problem (sure each peer should has a public IP or UPnP support).</p><p>The good part is we done it with encrypted messages , so there’s no such thing like ARP Spoofing. :)</p><h3>Sum-Up</h3><p>Technically there is no limitation of what protocols you can design on top of Unconfirmed Transactions.</p><p>Treat them as UDP you can design a protocols to sending files, streaming videos and even clone the QUIC.</p><p>Anyway that’s probably inefficient and not necessary.</p><p>With <strong>ARP on Ardor</strong> you can always done that kind of jobs back on IP layer.</p><p>We should use blockchain as a decentralized platform, not storage or sending everything on it.</p><p>But no one have power to prohibit it. ;)</p><p>And with the introduce of the <a href="https://ardordocs.jelurida.com/Lightweight_Contracts">Ardor Lightweight Contract</a> (already on testnet), I think more usage of Unconfirmed Transactions will be discovered.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f8a761d5125e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Power of Unconfirmed]]></title>
            <link>https://galeki-101.medium.com/power-of-unconfirmed-dc416377859f?source=rss-9049b6631f44------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc416377859f</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ignis]]></category>
            <category><![CDATA[ardor]]></category>
            <category><![CDATA[dapps]]></category>
            <dc:creator><![CDATA[galeki]]></dc:creator>
            <pubDate>Thu, 09 Aug 2018 14:22:56 GMT</pubDate>
            <atom:updated>2018-08-10T05:07:07.608Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s start with another toy I built on Ardor last weekend:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UkmCpdqKui5aoiL9_TsDeg.jpeg" /><figcaption>Burning Messages v0.0.1</figcaption></figure><p>I call it <strong>Burning Messages</strong>.</p><p>It’s a Private Chat dApp build on the Ardor platform.</p><p>You can download it using the Ardor Data Cloud (full <a href="https://www.jelurida.com/">client</a> required):</p><p><a href="http://localhost:27876/nxt?requestType=downloadTaggedData&amp;transactionFullHash=e8fc908195253d312a6341565808fc94d5f12cbab14c6de37f73a21e023fa0c1&amp;chain=2&amp;retrieve=true">http://localhost:27876/nxt?requestType=downloadTaggedData&amp;transactionFullHash=e8fc908195253d312a6341565808fc94d5f12cbab14c6de37f73a21e023fa0c1&amp;chain=2&amp;retrieve=true</a></p><h3>What’s the difference?</h3><p><strong>Burning Messages</strong> uses the <strong>Unconfirmed Transactions</strong> of the Ardor platform.</p><p>The idea is to send encrypted messages with 0 fee which will never be confirmed or recorded on the blockchain.</p><p>That’s means messages are gone after deadlines(15 mins by default) — they are <strong>Burning</strong>. :)</p><p>But for chatting that’s quite enough, and it even brings some advantages:</p><ul><li>Messages are instant, depending on the speed of broadcasting. It no longer depends on blocktime.</li><li>No one can dig through your chat history or steal your messages — everything is gone after the deadlines.</li><li>It’s free. An account with a verified public key is the only thing you need.</li></ul><p>I’ve tested the chatting between a Tokyo and a Los Angeles node. The messages showed with a 1~2 seconds delay, almost like an instant messenger app.</p><h3>The Third Type of Data</h3><p>We know platforms like Bitcoin or Ethereum treat everything as essential — recording everything on the blockchain.</p><p>Then we have Ardor, which treat a substantial amount of data as Prunable, massively reducing the blockchain bloat.</p><p>What I want to show is that there may be a third type of data, which is quite useful, but never needs to be recorded on the blockchain.</p><p>I know if everyone does this, it may raise a problem like flooding the network. Let’s put it aside and see the potential first.</p><h3>Power of Unconfirmed Transactions</h3><p>If you think of unconfirmed transactions as the UDP in TCP/IP, you may find the huge potential behind it. Here are some examples I could come up with:</p><p><strong>Messaging/Reporting:</strong></p><ul><li>Private/Public Chat apps.</li><li>Small device (maybe <a href="https://medium.com/@mrv_89306/solar-powered-ardor-blockchain-node-aa680a976c50">a solar powered Raspberry Pi</a>) broadcasting temperature of some point.</li><li>Small tracking device broadcasting GPS location.</li></ul><p><strong>Probing/Negotiating:</strong></p><ul><li>Probe whether an account is ‘online’ (like the ‘ping’), then starting a chat/shuffling…</li><li>Bidding/Offering the price of something with 0 fees, the seller or buyer could bundle the transaction to make it confirmed.</li></ul><p><strong>Triggering/Controlling:</strong></p><ul><li>Use as a signal triggering the execution of something, like a dApp’s function or some smart contract.</li><li>The Ardor node itself could use that as configuration command, especially in mass deployments and maintains.</li></ul><h3>Superiority from Ardor</h3><p>Ardor didn’t invent the unconfirmed transactions, technically other blockchain solutions could do that too (except those DAGs?).</p><p>Is there some superiority when we do it on Ardor? The answer is Yes.</p><p><strong>Ardor has so many build-in transaction types</strong></p><p>Messages, Trading, or even the Cloud Data, save the time of designing the protocols yourself.</p><p><strong>Ardor has child-chain structure</strong></p><p>Now, we return to the flooding problem. Maybe simply create a new child-chain(a ‘chain’ recording nothing) and create a separated unconfirmed pool that could isolate from the impact to the existing chains.</p><h3>Benefits to Ardor</h3><p><strong>Instantly Respond</strong></p><p>It adds the ability to <strong>instantly respond, </strong>which is quite important for end-user dApps.</p><p>In fact, only a few types of applications need waiting for a block confirmation: those changing your balances, like payment or trading.</p><p>Binding all functions of a dApp to block confirmation is not necessary.</p><p>For the platform side, continuing to shorten the block time is also not a good solution to everything.</p><p>Instead, if we handle the unconfirmed transactions well , it may make dApp experiences smoother while further reducing the unnecessary data on the blockchain.</p><p><strong>Online Nodes</strong></p><p>Processing unconfirmed transactions requires both your dApps and the Ardor node behind it to stay online</p><p>For example, if there are 1000 users using Burning Messages chatting, there are 1000 online Ardor nodes.</p><p>If 1000 temperature reporting devices all over the world are pinging, this means 1000 online Ardor nodes all over the world.</p><p>We may be the network with most nodes if only a small percent of dApps work this way.</p><h3>Sum-Up</h3><p>All blockchain solutions seem to treat unconfirmed transactions as the cost of the mechanism and try to eliminate them in an unnecessary way.</p><p>In contract, it could bring huge benefits both to dApps and the network if we discover the real power of it and harness it.</p><p>Ardor, which has rich build-in transaction types and the parent-child structure, may be a very suitable platform for accomplishing that.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc416377859f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ardor Develop Tips for Dummies]]></title>
            <link>https://galeki-101.medium.com/ardor-develop-tips-for-dummies-dd0c7732882b?source=rss-9049b6631f44------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd0c7732882b</guid>
            <category><![CDATA[ignis]]></category>
            <category><![CDATA[ardor]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[dapps]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[galeki]]></dc:creator>
            <pubDate>Fri, 03 Aug 2018 15:05:16 GMT</pubDate>
            <atom:updated>2018-08-03T16:54:45.046Z</atom:updated>
            <content:encoded><![CDATA[<p>If you are not a professional developer like me, or not familiar with the Ardor platform, here are some quick tips you may find useful at the beginning :).</p><h3>Difference between Ardor and Ignis</h3><p>In short, <strong>Ardor</strong> is the parent chain, using the token <strong>ARDOR</strong>, which security the networks and package all child-chain transactions.You can’t do much thing only with Ardor chain.</p><p><strong>Ignis</strong> is the first child-chain which has the most features , using the token IGNIS.</p><p>If you want build some dApps , you should focus on <strong>Ignis</strong> chain and may need some IGNIS coins.</p><h3>API Document</h3><p>The <a href="https://www.jelurida.com/">official Ardor client</a> has a API Console packaged in, which I found quite useful. You can test all API calls there and check the response:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_BVsq2Vrm3ckpmZwmZ8f5Q.jpeg" /><figcaption>API Console</figcaption></figure><p>Located at <a href="http://localhost:27876/test">http://localhost:27876/test</a></p><p>It also lead you to the <a href="https://nxtwiki.org/wiki/The_Nxt_API">Wiki page</a> of those API calls.</p><p>There is also a new <a href="https://ardornxtcommunity.github.io/ardor-api-doc/">Ardor API Reference</a> in construction.</p><h3>The Chain-id of Ignis is 2</h3><p>Most API calls need a param called ‘chain’ to specify the chain-id.</p><p>The Ignis chain-id is <strong>2 </strong>(I thought was 1, and wasted a lot of time ^^;) .</p><h3>Get the Minimal-fee</h3><p>The minimal fee needed for each transaction depends on transaction type, bundle rate, and size of attached data.</p><p>There is a simple way to get the minimal fee:</p><ol><li>Submit your transaction with ‘broadcast’ =&gt; false.</li><li>Get the ‘feeNQT’ filed of response(that’s the minimal fee).</li><li>Submit your transaction again with ‘broadcast’ =&gt; true and the feeNQT you got.</li></ol><p>For fees of different transaction types, there is a official note: <a href="https://www.jelurida.com/sites/default/files/ArdorFees.pdf">https://www.jelurida.com/sites/default/files/ArdorFees.pdf</a>s</p><h3>Calculate the Current Timestamp</h3><p>The timestamp API returning is the seconds after <strong>Ardor Main Net Launch, </strong>which is<strong> 2018–01–01 0:00 (UTC).</strong></p><p>So if you want get the real date, JS code for example:</p><blockquote>real_date = new Date(response[‘timestamp’]*1000 + Date.UTC(2018));</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd0c7732882b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Twitter Clone on Ardor]]></title>
            <link>https://galeki-101.medium.com/twitter-clone-on-ardor-c30b923a6a4a?source=rss-9049b6631f44------2</link>
            <guid isPermaLink="false">https://medium.com/p/c30b923a6a4a</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ardor]]></category>
            <category><![CDATA[dapps]]></category>
            <category><![CDATA[ignis]]></category>
            <category><![CDATA[twitter]]></category>
            <dc:creator><![CDATA[galeki]]></dc:creator>
            <pubDate>Wed, 01 Aug 2018 10:08:17 GMT</pubDate>
            <atom:updated>2018-08-01T14:38:04.423Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vplf_Mp95Ema3hSlQiDBOw.png" /><figcaption>Twitter Clone on Ardor</figcaption></figure><p>OK this is not a toy anymore. :)</p><p>This is a Twitter clone completely building on Ardor platform, or precisely, the Ignis child-chain of Ardor.</p><p>I must say I’m no professional developer and only planned to learn some Ardor by doing this, but turns out got most functions done.</p><p>It use two build-in functions of Ardor platform:</p><p><strong>Messages </strong>and <strong>Account Property</strong>.</p><p>The idea is quite simple:</p><ul><li>Every Ardor account is a <strong>Tweet account</strong>.</li><li>The name of Ardor account is the <strong>Username of the Tweet account</strong>.</li><li>Every <strong>Unencrypted</strong> message sending to account itself is a <strong>Public Tweet</strong>.</li><li>Every <strong>Unencrypted</strong> message sending to other account is a <strong>Public @-Reply</strong>.</li><li>Every <strong>Encrypted</strong> message sending to other account is a <strong>Direct Message</strong>.</li><li>Setting a property naming ‘following’ to other account means you are <strong>Following him/her</strong>.</li></ul><p>This dApp is just a implementation of those protocols.</p><p>Actually you don’t have to use this, every implementation of those protocols can work perfectly with each other. And you can even do all those things within Message section of the official Ardor client.</p><p>At the rate when this dApp is writing(July 20,2018), sending a tweet cost around 0.0025 USD (0.025 Ignis) and following cost around 0.025 USD (0.25 Ignis).</p><p>If you are interest you can download it from Ardor Data Cloud (need <a href="https://www.jelurida.com/">client</a>):</p><p><a href="http://localhost:27876/nxt?requestType=downloadTaggedData&amp;transactionFullHash=f70274979a22784b3864cafd7b1e9d5159aa28283cc1aa0e95529e8c88e28c41&amp;chain=2&amp;retrieve=true">http://localhost:27876/nxt?requestType=downloadTaggedData&amp;transactionFullHash=f70274979a22784b3864cafd7b1e9d5159aa28283cc1aa0e95529e8c88e28c41&amp;chain=2&amp;retrieve=true</a></p><h3>More features?</h3><p>This dApp using only basic Ardor API calls and without designing any data structure of my own, and all messages are plain text.</p><p>Simply sending a designed custom json object instead of plain text will open a whole new gate for new features.</p><p>Just leave the idea. :p</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c30b923a6a4a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build A Slack Like Message Board on Ardor with 300 Lines Code]]></title>
            <link>https://galeki-101.medium.com/build-a-slack-like-message-board-on-ardor-with-300-lines-code-f1c61225c2bb?source=rss-9049b6631f44------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1c61225c2bb</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ardor]]></category>
            <category><![CDATA[dapps]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[ignis]]></category>
            <dc:creator><![CDATA[galeki]]></dc:creator>
            <pubDate>Mon, 30 Jul 2018 13:44:57 GMT</pubDate>
            <atom:updated>2018-07-30T13:45:36.147Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dnC7vxS8m3ZnSDMOXnfIWg.png" /><figcaption>Slack like board on Ardor</figcaption></figure><p>300 lines including HTML, CSS and JS, that’s all. ;)</p><p>I know it’s more like a toy but I’m also not a professional developer. I just want to show how easy to write a dApp on Ardor.</p><p>It use only one build-in function of Ardor platform: Messages.</p><p>The logic is very simple: treat a predefined Ardor account as a channel, and every public messages to that account as a channel message.</p><p>If you’re interest the whole file could be download at Ardor DataClound:</p><p><a href="http://localhost:27876/nxt?requestType=downloadTaggedData&amp;transactionFullHash=2a7e3b5d70c455f338ab88dd4418aa16aa965274763d9a4cfbf229f60c2e9b92&amp;chain=2&amp;retrieve=true">http://localhost:27876/nxt?requestType=downloadTaggedData&amp;transactionFullHash=2a7e3b5d70c455f338ab88dd4418aa16aa965274763d9a4cfbf229f60c2e9b92&amp;chain=2&amp;retrieve=true</a></p><p>Just click the link with your Ardor client running locally.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1c61225c2bb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>