<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>MultiChain Developer Q&amp;A - Recent questions tagged offline</title>
<link>https://www.multichain.com/qa/tag/offline</link>
<description>Powered by Question2Answer</description>
<item>
<title>Asset transfer in case of a disconection</title>
<link>https://www.multichain.com/qa/17676/asset-transfer-in-case-of-a-disconection</link>
<description>Hi MC Team&lt;br /&gt;
&lt;br /&gt;
This is the scenario&lt;br /&gt;
&lt;br /&gt;
I have a QR reader ( this reader is conected directly via ethernet to a small piece of harware running multichain node )and this executes the api call sendasset from ( the multichain address enconded in the QR) and it turns out this have a 1 usd balance in an asset called &amp;quot;dollar&amp;quot;. Everything is ok meanwhile the reader is online and sycn with the node. What happen if a payment is attemped during a network interruption of a couple of minutes and the local node cannot synchronize with the primary node? How can I guarantee that the local node has the whole bunch of records &amp;nbsp;before the network interruption and this &amp;quot;payment&amp;quot; can be executed?&lt;br /&gt;
&lt;br /&gt;
I know this a little tricky but it is very important.&lt;br /&gt;
&lt;br /&gt;
Thanks in advance.</description>
<guid isPermaLink="true">https://www.multichain.com/qa/17676/asset-transfer-in-case-of-a-disconection</guid>
<pubDate>Tue, 21 Jan 2020 17:27:44 +0000</pubDate>
</item>
<item>
<title>Using pybitcoin tools to sign transactions offline</title>
<link>https://www.multichain.com/qa/6307/using-pybitcoin-tools-to-sign-transactions-offline</link>
<description>I'm having trouble using pybitcoin tools to sign transactions offline : &lt;a href=&quot;https://github.com/vbuterin/pybitcointools&quot; rel=&quot;nofollow&quot;&gt;https://github.com/vbuterin/pybitcointools&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
I'm using multichain-cli to create the raw transaction: &lt;br /&gt;
&lt;br /&gt;
1) createrawtransaction '[{&amp;quot;txid&amp;quot;:&amp;quot;f098143b389bf7ff19c26d8d051ac4351f255cdb1f41735cf4fa723b9e38893&amp;quot;,&amp;quot;vout&amp;quot;:0}]' &amp;nbsp;'{}'&lt;br /&gt;
&lt;br /&gt;
Output: 01000000019388e3b923a74fcf3517f4b1cd54251f35c41a058d6dc219fff79b383b1498f00000000000ffffffff0000000000 &lt;br /&gt;
&lt;br /&gt;
2) appendrawdata 01000000019388e3b923a74fcf3517f4b1cd54251f35c41a058d6dc219fff79b383b1498f00000000000ffffffff0000000000 5554584f732046545721&lt;br /&gt;
&lt;br /&gt;
Output: 01000000019388e3b923a74fcf3517f4b1cd54251f35c41a058d6dc219fff79b383b1498f00000000000ffffffff0100000000000000000c6a0a5554584f73204654572100000000&lt;br /&gt;
&lt;br /&gt;
3) And then using pybitcoin tools...&lt;br /&gt;
&lt;br /&gt;
tx = \&lt;br /&gt;
'01000000019388e3b923a74fcf3517f4b1cd54251f35c41a058d6dc219fff79b383b1498f00000000000ffffffff0100000000000000000c6a0a5554584f73204654572100000000'&lt;br /&gt;
&lt;br /&gt;
signed_tx = sign(tx, 0, 'c19baef3f8c7cd8df7aab108ef8578dd6694fed976c85cd8213cdaec3d7e4ebd')&lt;br /&gt;
&lt;br /&gt;
4) When calling sendrawtransaction using the hex result from signing in step 3, I get the following error.&lt;br /&gt;
&lt;br /&gt;
error code: -26&lt;br /&gt;
error message:&lt;br /&gt;
16: ConnectInputs failed&lt;br /&gt;
&lt;br /&gt;
Any advice??</description>
<guid isPermaLink="true">https://www.multichain.com/qa/6307/using-pybitcoin-tools-to-sign-transactions-offline</guid>
<pubDate>Mon, 21 Aug 2017 19:35:00 +0000</pubDate>
</item>
</channel>
</rss>