<?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 Alex WERNER on Medium]]></title>
        <description><![CDATA[Stories by Alex WERNER on Medium]]></description>
        <link>https://medium.com/@obusco?source=rss-96811abcf23e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*YSqb57r_jTKnLXV5.jpg</url>
            <title>Stories by Alex WERNER on Medium</title>
            <link>https://medium.com/@obusco?source=rss-96811abcf23e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 20:12:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@obusco/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[How to setup a Dash Instant-Send Transaction using Insight API — The comprehensive way]]></title>
            <link>https://medium.com/@obusco/setup-instant-send-transaction-the-comprehensive-way-a80a8a0572e?source=rss-96811abcf23e------2</link>
            <guid isPermaLink="false">https://medium.com/p/a80a8a0572e</guid>
            <category><![CDATA[dash]]></category>
            <category><![CDATA[insightapi]]></category>
            <category><![CDATA[digital-cash]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Alex WERNER]]></dc:creator>
            <pubDate>Tue, 29 Aug 2017 05:08:03 GMT</pubDate>
            <atom:updated>2017-08-29T05:53:23.475Z</atom:updated>
            <content:encoded><![CDATA[<p>While some cryptocurrency out here will require to pass through two years of argues, two differents forks, threaten all users, in order to setup their centralized instant transaction system on-chain; <br>Dash propose a better decentralized, secure, instant (1.6 seconds) transaction system based on Quorums, keeping a consensus on the secure network empowered by miners and masternodes and still be sure to prevent double-spending.</p><p>Sound exciting ? Let’s walk through the different steps that will allow you to bring Instant Send transactions in your business. <br>While you love your customers, you might not always want to discuss several minutes, waiting for confirmations, before allowing them to enjoy their coffee right ? <br>Therefore, gives that link to a friendly engineer, mind preparing some coffee for him and let’s rock ! It’s easy, you will see.</p><p><strong>Disclaimer :</strong> I would like to improve the developer experience, so any advice you found on the process is welcomed.<br>The idea will be to go fast on that step-by-step guide, so we will setup an open system, that you will need to tweak in order to brings more security. <br>That will be your job later on, mine here will just to allow you walk-through an easy &amp; quick way to get you working on what you do the best.</p><p><strong>Step 1 : Networking</strong></p><p>We install a OS on our server, I use most of the time Ubuntu, but I will use Debian on this. Our requirements here are limited to ashiny debian 9 installed (I assume no previous pkg installed) with an internet connection, and … that’s it.</p><p><strong>Step 2 : Install a node</strong></p><p>Before all, you will need to install a node. I will assume superjacky as your user account (then I’m sure you will mind changing it :p), and root as the root one.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/349d9320817a8d62ab0b658f9df886f4/href">https://medium.com/media/349d9320817a8d62ab0b658f9df886f4/href</a></iframe><p>Append, just after the line <strong>root ALL=(ALL:ALL) AL</strong>L, <br><strong>superjacky ALL=(ALL:ALL) ALL.</strong></p><p><strong>Save with Ctrl+O, Ctrl+X.</strong> <em>(or something probably similar to ⌘+ ⌥ + Maj + o + x on Mac OS). And back to our user (su superjacky).</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/39683007ed4972b95fb605353845e116/href">https://medium.com/media/39683007ed4972b95fb605353845e116/href</a></iframe><p>When compiling is done (I will update with the 0.12.2 version later on), we will need to add something.</p><p>Whenever you launch DashCore, a ~/.dashcore, folder will be created. It’s where we expected to setup our configuration file. But we didn’t start dashcore yet, so let’s handle that.</p><pre>mkdir ~/.dashcore<br>nano ~/.dashcore/dash.conf </pre><p>And in it we put this configuration :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/aed137e308d05f54fb64efbf49550bce/href">https://medium.com/media/aed137e308d05f54fb64efbf49550bce/href</a></iframe><p><em>(You can remove debug as the file will quickly grow, letting that for our exemple, mind to tweak whitelist and rpcallowip later on, and to remove testnet line for livenet).</em></p><p>And simply start it</p><pre>cd ~<br>./dashcore/dash/src/dashd --daemon</pre><p>And here you have your node running, one could decide to stop here and use the npm packages bitcore-lib-dash and bitcoind-rpc-dash in order to setup InstantSend sending. I will continue and guide you to a Insight API that help you.</p><p><strong>Step 3 : Setting up an Insight API</strong></p><p>Bonus : Interfacing Insight API with our DashCore node.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c01181a8c98ead44a32f11f4daf8ee7f/href">https://medium.com/media/c01181a8c98ead44a32f11f4daf8ee7f/href</a></iframe><p>Drop in it the conf as above :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b08b21ce9a37f9d7987b2a96357aa671/href">https://medium.com/media/b08b21ce9a37f9d7987b2a96357aa671/href</a></iframe><p>And only start using</p><pre>./bin/bitcore-node-dash start</pre><p>You will then be able to look for the insight at : <a href="http://$serverip:3001/insight">http://$SERVERIP:3001/insight</a><br>And to reach the API at :</p><p>http://$SERVERIP:3001/insight-api-dash</p><p><strong>Step 4 : Building the transaction :</strong></p><p>Assuming you have a PrivKey and a PublicKey , you can retrieve the UTXO of such a Public Key as simply as making a GET request:</p><pre>insight-api-dash/addr/:publickey/utxo</pre><p>You will got an array containing differents input with every part needed to build a new transactions. <br>Use the inputs, build your transaction with <a href="https://github.com/dashpay/bitcore-lib-dash/blob/master/docs/examples.md#create-a-transaction">bitcore-lib-dash</a> and then, just broadcast your transaction using a simple POST request and a fully formed and signed rawtx :</p><pre>[POST]   /insight-api-dash/tx/sendix<br>Post params : <br>   - rawtx: &quot;Signed transaction in their hex representation&quot;</pre><pre>Post response : <br>{<br>   txid: [:txid]<br>}</pre><p>And you just accomplished your first Instant Send Transaction !</p><p>You can find more information about documentation on the different repositories :</p><p>DashCore : <a href="https://github.com/dashpay/dash">https://github.com/dashpay/dash</a><a href="https://github.com/dashevo/bitcore-node-dash"><br>Bitcore node dash : https://github.com/dashevo/bitcore-node-dash</a><a href="https://github.com/dashevo/bitcore-lib-dash"><br>Bitcore-lib-dash : https://github.com/dashevo/bitcore-lib-dash</a><br>Insight-api-dash : <a href="https://github.com/dashevo/insight-api-dash">https://github.com/dashevo/insight-api-dash</a><br>Bitcoind-rpc-dash : <a href="https://github.com/dashevo/bitcoind-rpc-dash">https://github.com/dashevo/bitcoind-rpc-dash</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a80a8a0572e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>