0ubuntu:~/environment $ bitcoin-cli -datadir=btcdir -testnet -rpcwallet=tomo2 listtransactions "*"
1[
2 {
3 "address": "tb1qdvx8rmj8e94a43lsj5jq4ja6hu2efgps50s0kk",
4 "category": "receive",
5 "amount": 0.00010000,
6 "label": "user1",
7 "vout": 0,
8 "confirmations": 12,
9 "blockhash": "000000000ea24c66faac775cca0a1963a183d03bd4f37cc9890f166d9a75fe90",
10 "blockheight": 2062825,
11 "blockindex": 91,
12 "blocktime": 1627916153,
13 "txid": "9786cbc553d528be721a34502cfb8322ab5f269633aaab9cdc8f8df1e35f732d",
14 "walletconflicts": [
15 ],
16 "time": 1627915291,
17 "timereceived": 1627915291,
18 "bip125-replaceable": "no"
19 },
20 {
21 "address": "tb1qdcvdnq46qxk7yxzmvwmscnzalpltaxt7k74nle",
22 "category": "receive",
23 "amount": 0.00010000,
24 "label": "user2",
25 "vout": 1,
26 "confirmations": 12,
27 "blockhash": "000000000ea24c66faac775cca0a1963a183d03bd4f37cc9890f166d9a75fe90",
28 "blockheight": 2062825,
29 "blockindex": 113,
30 "blocktime": 1627916153,
31 "txid": "01eff63265abbcc5647b1f06402aa50fb4be5f6c1d2f4128a3bdb637c6535e7d",
32 "walletconflicts": [
33 ],
34 "time": 1627915300,
35 "timereceived": 1627915300,
36 "bip125-replaceable": "no"
37 },
38 {
39 "address": "tb1ql7w62elx9ucw4pj5lgw4l028hmuw80sndtntxt",
40 "category": "send",
41 "amount": -0.00010000,
42 "vout": 1,
43 "fee": -0.00000208,
44 "confirmations": 9,
45 "blockhash": "00000000ff6e1692ed86533b03d527a183e44ad3382b429075466515582a3a6a",
46 "blockheight": 2062828,
47 "blockindex": 102,
48 "blocktime": 1627918629,
49 "txid": "e08d12afb8aebe4571a293acaa7e0b84d0baccafb1d242cb0fc1d936f65d29f0",
50 "walletconflicts": [
51 ],
52 "time": 1627917768,
53 "timereceived": 1627917768,
54 "bip125-replaceable": "no",
55 "abandoned": false
56 },
57 {
58 "address": "tb1ql7w62elx9ucw4pj5lgw4l028hmuw80sndtntxt",
59 "category": "send",
60 "amount": -0.00005000,
61 "vout": 0,
62 "fee": -0.00000141,
63 "confirmations": 9,
64 "blockhash": "00000000ff6e1692ed86533b03d527a183e44ad3382b429075466515582a3a6a",
65 "blockheight": 2062828,
66 "blockindex": 103,
67 "blocktime": 1627918629,
68 "txid": "6e0c2ace9900b668c9b633e7045a9c0895bb9754c6f41c70cfde628bb3562d6a",
69 "walletconflicts": [
70 ],
71 "time": 1627918027,
72 "timereceived": 1627918027,
73 "bip125-replaceable": "no",
74 "abandoned": false
75 },
76 {
77 "address": "tb1ql7w62elx9ucw4pj5lgw4l028hmuw80sndtntxt",
78 "category": "send",
79 "amount": -0.00001000,
80 "vout": 1,
81 "fee": -0.00000141,
82 "confirmations": 3,
83 "blockhash": "000000000000002f727825f1de5b724f33a4b4aca5ab16c9bfafb508824afa4e",
84 "blockheight": 2062834,
85 "blockindex": 25,
86 "blocktime": 1627920653,
87 "txid": "1e674af169748c15d5017b22a93e6e524e039e409c5f2b714d146a31ba61fcc7",
88 "walletconflicts": [
89 ],
90 "time": 1627920400,
91 "timereceived": 1627920400,
92 "bip125-replaceable": "no",
93 "comment": "cooment=move",
94 "abandoned": false
95 },
96 {
97 "address": "tb1ql7w62elx9ucw4pj5lgw4l028hmuw80sndtntxt",
98 "category": "send",
99 "amount": -0.00001000,
100 "vout": 0,
101 "fee": -0.00000141,
102 "confirmations": 2,
103 "blockhash": "000000000000001f09fea29302386f747e2ad871dad1707396aed27823566d42",
104 "blockheight": 2062835,
105 "blockindex": 78,
106 "blocktime": 1627920941,
107 "txid": "22e365f45981c8550484be576ac8c9aa62400d9320873be057ed20404cae7f5c",
108 "walletconflicts": [
109 ],
110 "time": 1627920839,
111 "timereceived": 1627920839,
112 "bip125-replaceable": "no",
113 "comment": "cooment_to=move",
114 "abandoned": false
115 }
116]
117ubuntu:~/environment $ bitcoin-cli -datadir=btcdir -testnet -rpcwallet=tomo2 listtransactions "*" 3 3
118[
119 {
120 "address": "tb1qdvx8rmj8e94a43lsj5jq4ja6hu2efgps50s0kk",
121 "category": "receive",
122 "amount": 0.00010000,
123 "label": "user1",
124 "vout": 0,
125 "confirmations": 12,
126 "blockhash": "000000000ea24c66faac775cca0a1963a183d03bd4f37cc9890f166d9a75fe90",
127 "blockheight": 2062825,
128 "blockindex": 91,
129 "blocktime": 1627916153,
130 "txid": "9786cbc553d528be721a34502cfb8322ab5f269633aaab9cdc8f8df1e35f732d",
131 "walletconflicts": [
132 ],
133 "time": 1627915291,
134 "timereceived": 1627915291,
135 "bip125-replaceable": "no"
136 },
137 {
138 "address": "tb1qdcvdnq46qxk7yxzmvwmscnzalpltaxt7k74nle",
139 "category": "receive",
140 "amount": 0.00010000,
141 "label": "user2",
142 "vout": 1,
143 "confirmations": 12,
144 "blockhash": "000000000ea24c66faac775cca0a1963a183d03bd4f37cc9890f166d9a75fe90",
145 "blockheight": 2062825,
146 "blockindex": 113,
147 "blocktime": 1627916153,
148 "txid": "01eff63265abbcc5647b1f06402aa50fb4be5f6c1d2f4128a3bdb637c6535e7d",
149 "walletconflicts": [
150 ],
151 "time": 1627915300,
152 "timereceived": 1627915300,
153 "bip125-replaceable": "no"
154 },
155 {
156 "address": "tb1ql7w62elx9ucw4pj5lgw4l028hmuw80sndtntxt",
157 "category": "send",
158 "amount": -0.00010000,
159 "vout": 1,
160 "fee": -0.00000208,
161 "confirmations": 9,
162 "blockhash": "00000000ff6e1692ed86533b03d527a183e44ad3382b429075466515582a3a6a",
163 "blockheight": 2062828,
164 "blockindex": 102,
165 "blocktime": 1627918629,
166 "txid": "e08d12afb8aebe4571a293acaa7e0b84d0baccafb1d242cb0fc1d936f65d29f0",
167 "walletconflicts": [
168 ],
169 "time": 1627917768,
170 "timereceived": 1627917768,
171 "bip125-replaceable": "no",
172 "abandoned": false
173 }
174]
175
176I want to skip 3 past transactions.
177
178However, it seems that the three latest transactions have been eliminated.
179
180Is this the correct behavior?
181
182
183ideal
184> bitcoin-cli listtransactions "*" 20 100
185List transactions 100 to 120
186
187realty
188> bitcoin-cli listtransactions "*" 20 100
189List transactions 0 to 20
190
191
1922021-08-02T13:23:29Z Bitcoin Core version v0.21.1 (release build)
-
var-llc commented at 4:40 pm on August 2, 2021: none
-
var-llc added the label Bug on Aug 2, 2021
-
ghost commented at 6:14 pm on August 2, 2021: none
I want to skip 3 past transactions. However, it seems that the three latest transactions have been eliminated.
Consider there are 10 transactions in wallet: Tx1 to Tx10. Latest is Tx10.
If I want to skip Tx1, Tx2 and Tx3, I will use the below steps:
-
Check total transactions in
getwalletinfo
-
listtransactions
[LABEL] [COUNT] [SKIP]LABEL = * SKIP = 0 NUM = 3 (Number of transactions I want to skip) COUNT = TOTAL - NUM = 10 - 3 = 7
0listtransactions "*" 7 0
-
-
var-llc commented at 3:56 am on August 3, 2021: none
thank you , very easy to understand
It wasn’t a documentation mistake, it was my misinterpretation.
-
MarcoFalke commented at 7:20 am on August 3, 2021: member
It wasn’t a documentation mistake, it was my misinterpretation.
Ok, closing for now. Let us know if you have any other questions.
-
MarcoFalke closed this on Aug 3, 2021
-
MarcoFalke added the label Questions and Help on Aug 3, 2021
-
MarcoFalke removed the label Bug on Aug 3, 2021
-
DrahtBot locked this on Aug 18, 2022
Labels
Questions and Help
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-22 12:12 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-22 12:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me