<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://opentransactions.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Preparation</id>
	<title>Preparation - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://opentransactions.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Preparation"/>
	<link rel="alternate" type="text/html" href="http://opentransactions.org/wiki/index.php?title=Preparation&amp;action=history"/>
	<updated>2026-06-13T05:06:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.32.2</generator>
	<entry>
		<id>http://opentransactions.org/wiki/index.php?title=Preparation&amp;diff=3086&amp;oldid=prev</id>
		<title>Justusranvier: Created page with &quot;&lt;div style=&quot;float: right&quot;&gt;&lt;include iframe src=&quot;https://www.lucidchart.com/documents/embeddedchart/0dd5f7d6-8511-4440-a535-32ad8508d146&quot; width=&quot;150&quot; height=&quot;502&quot; frameborder=&quot;0...&quot;</title>
		<link rel="alternate" type="text/html" href="http://opentransactions.org/wiki/index.php?title=Preparation&amp;diff=3086&amp;oldid=prev"/>
		<updated>2014-10-22T14:26:24Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;div style=&amp;quot;float: right&amp;quot;&amp;gt;&amp;lt;include iframe src=&amp;quot;https://www.lucidchart.com/documents/embeddedchart/0dd5f7d6-8511-4440-a535-32ad8508d146&amp;quot; width=&amp;quot;150&amp;quot; height=&amp;quot;502&amp;quot; frameborder=&amp;quot;0...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;div style=&amp;quot;float: right&amp;quot;&amp;gt;&amp;lt;include iframe src=&amp;quot;https://www.lucidchart.com/documents/embeddedchart/0dd5f7d6-8511-4440-a535-32ad8508d146&amp;quot; width=&amp;quot;150&amp;quot; height=&amp;quot;502&amp;quot; frameborder=&amp;quot;0&amp;quot; scrolling=&amp;quot;yes&amp;quot; /&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Initial Conditions==&lt;br /&gt;
&lt;br /&gt;
The [[startwithdrawal]] API call has been received by the wallet, and all the arguments have been checked for errors.&lt;br /&gt;
&lt;br /&gt;
==Sequence==&lt;br /&gt;
&lt;br /&gt;
# The algorithm must keep track of the next change address to be used. The initial value is supplied as the &amp;lt;code&amp;gt;[[Startwithdrawal#Arguments|changestart]]&amp;lt;/code&amp;gt; argument. Any time a change output is allocated, the index value of the [[address identifier]] is incremented, and if a change output is remove from a transaction the index value is decremented. The final value will be returned to the caller as the &amp;lt;code&amp;gt;[[Withdrawal status|nextchangestart]]&amp;lt;/code&amp;gt; value in the [[Withdrawal status| withdrawal status list]].&lt;br /&gt;
# Prepare an empty list for holding transactions as they are constructed and before they are signed.&lt;br /&gt;
# Prepare an empty array to hold the transaction signatures which will be returned to the caller as the &amp;lt;code&amp;gt;[[siglist| signatures]]&amp;lt;/code&amp;gt; value.&lt;br /&gt;
# Prepare an &amp;lt;code&amp;gt;withdrawal status&amp;lt;/code&amp;gt; object.&lt;br /&gt;
## &amp;lt;code&amp;gt;roundID&amp;lt;/code&amp;gt;: copied from &amp;lt;code&amp;gt;roundID&amp;lt;/code&amp;gt; argument&lt;br /&gt;
## &amp;lt;code&amp;gt;nextinputstart&amp;lt;/code&amp;gt;: nil&lt;br /&gt;
## &amp;lt;code&amp;gt;nextchangestart&amp;lt;/code&amp;gt;: nil&lt;br /&gt;
## &amp;lt;code&amp;gt;fees&amp;lt;/code&amp;gt;: 0&lt;br /&gt;
## &amp;lt;code&amp;gt;outputs&amp;lt;/code&amp;gt;: should contain an entry for every output passed:&lt;br /&gt;
### &amp;lt;code&amp;gt;outBailmentID&amp;lt;/code&amp;gt;: copied from &amp;lt;code&amp;gt;outBailmentID&amp;lt;/code&amp;gt; entry in &amp;lt;code&amp;gt;outputs&amp;lt;/code&amp;gt; argument&lt;br /&gt;
### &amp;lt;code&amp;gt;status&amp;lt;/code&amp;gt;: empty string&lt;br /&gt;
### &amp;lt;code&amp;gt;transactions&amp;lt;/code&amp;gt;: nil&lt;br /&gt;
&lt;br /&gt;
[[Category:Transaction Construction Algorithm (voting pools)|01]]&lt;/div&gt;</summary>
		<author><name>Justusranvier</name></author>
		
	</entry>
</feed>