user109258: I need to extract last wallet transaction. But seems  listtransaction has some wrong logic. When I perform this function
listtransactions '*' 50 9

it just return me first records not last. In my case I have 11 records, so it return me record 1 and 2, instead of 10 and 11 as I expected. Thus I get first two records instead of last. Maybe I understood something wrong or missed some other params?

user-1: 
I need to extract last wallet transaction.

This will return last transaction in the wallet:
listtransactions "*" 1 0

For second last transaction:
listtransactions "*" 1 1

Last two transactions:
listtransactions "*" 2 0


Consider a wallet has 5 transactions.
listtransactions [LABEL] [COUNT] [SKIP]




Skip
Tx




0
Tx5 [END]


1
Tx4


2
Tx3


3
Tx2


4
Tx1 [START]




If you skip 0 and count 1 in the above table you will get Tx5
If you skip 0 and count 2 in the above table you will get Tx4 and Tx5
If you skip 1(Tx5) and count 1 in the above table you will get Tx4
If you skip 1(Tx5) and count 2 in the above table you will get Tx3 and Tx4

109258: <p>I need to extract last wallet transaction. But seems <code> listtransaction</code> has some wrong logic. When I perform this function</p>
<pre><code>listtransactions '*' 50 9
</code></pre>
<p>it just return me first records not last. In my case I have 11 records, so it return me record 1 and 2, instead of 10 and 11 as I expected. Thus I get first two records instead of last. Maybe I understood something wrong or missed some other params?</p>
 -1: <blockquote>
<p>I need to extract last wallet transaction.</p>
</blockquote>
<p>This will return last transaction in the wallet:</p>
<pre><code>listtransactions &quot;*&quot; 1 0
</code></pre>
<p>For second last transaction:</p>
<pre><code>listtransactions &quot;*&quot; 1 1
</code></pre>
<p>Last two transactions:</p>
<pre><code>listtransactions &quot;*&quot; 2 0
</code></pre>
<hr />
<p>Consider a wallet has 5 transactions.</p>
<p><code>listtransactions</code> [LABEL] [COUNT] [SKIP]</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th style="text-align: center;">Skip</th>
<th style="text-align: center;">Tx</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;">0</td>
<td style="text-align: center;">Tx<sub>5</sub> [END]</td>
</tr>
<tr>
<td style="text-align: center;">1</td>
<td style="text-align: center;">Tx<sub>4</sub></td>
</tr>
<tr>
<td style="text-align: center;">2</td>
<td style="text-align: center;">Tx<sub>3</sub></td>
</tr>
<tr>
<td style="text-align: center;">3</td>
<td style="text-align: center;">Tx<sub>2</sub></td>
</tr>
<tr>
<td style="text-align: center;">4</td>
<td style="text-align: center;">Tx<sub>1</sub> [START]</td>
</tr>
</tbody>
</table>
</div>
<p>If you <em>skip 0</em> and <em>count 1</em> in the above table you will get Tx<sub>5</sub></p>
<p>If you <em>skip 0</em> and <em>count 2</em> in the above table you will get Tx<sub>4</sub> and Tx<sub>5</sub></p>
<p>If you <em>skip 1</em>(Tx<sub>5</sub>) and <em>count 1</em> in the above table you will get Tx<sub>4</sub></p>
<p>If you <em>skip 1</em>(Tx<sub>5</sub>) and <em>count 2</em> in the above table you will get Tx<sub>3</sub> and Tx<sub>4</sub></p>
