bit_wallet 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. data/.gitmodules +1 -1
  2. data/Gemfile +6 -0
  3. data/README.md +1 -0
  4. data/bit_wallet.gemspec +1 -1
  5. data/lib/bit_wallet/account.rb +20 -0
  6. data/lib/bit_wallet/transaction.rb +9 -8
  7. data/lib/bit_wallet/version.rb +1 -1
  8. data/spec/bit_wallet/account_spec.rb +16 -0
  9. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_balance/should_be_able_to_override_the_min_conf.yml +87 -13
  10. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_balance/should_default_to_the_config_min_conf.yml +87 -13
  11. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_balance/should_return_the_balance_of_the_account.yml +93 -19
  12. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_recent_transactions/should_default_to_list_10_transactions.yml +146 -72
  13. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_recent_transactions/when_transaction_limit_is_6/should_list_the_6_most_recent_transactions.yml +119 -45
  14. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_send_amount/_to_is_a_BitWallet_Address/should_send_it_to_the_address_of_the_given_BitWallet_Address.yml +101 -27
  15. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_send_amount/account_does_not_have_enough_money/should_fail_with_the_InsufficientFunds_error.yml +96 -22
  16. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_send_amount/should_send_money_to_the_given_address.yml +98 -24
  17. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_send_many/should_send_the_amounts_of_money_to_the_specified_accounts.yml +262 -0
  18. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_total_received/should_return_the_total_amount_received_by_the_address.yml +4 -4
  19. data/spec/fixtures/vcr_cassettes/BitWallet_Account/addresses/.yml +4 -4
  20. data/spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/should_be_assigned_that_name.yml +87 -13
  21. data/spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/should_have_a_default_name.yml +4 -4
  22. data/spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/when_the_account_name_already_exists/should_return_that_same_address.yml +87 -13
  23. data/spec/fixtures/vcr_cassettes/BitWallet_Account/wallet/.yml +4 -4
  24. data/spec/fixtures/vcr_cassettes/BitWallet_Accounts/_includes_account_name_account_/should_return_true_if_the_array_includes_the_account.yml +121 -10
  25. data/spec/fixtures/vcr_cassettes/BitWallet_Accounts/_new/should_create_a_new_BitWallet_Account_with_a_default_address.yml +121 -10
  26. data/spec/fixtures/vcr_cassettes/BitWallet_Accounts/_with_balance/should_return_accounts_with_a_balance_0.yml +480 -36
  27. data/spec/fixtures/vcr_cassettes/BitWallet_Accounts/wallet/.yml +118 -7
  28. data/spec/fixtures/vcr_cassettes/BitWallet_Address/_total_received/should_return_the_total_amount_received_by_the_address.yml +8 -8
  29. data/spec/fixtures/vcr_cassettes/BitWallet_Address/account/.yml +8 -8
  30. data/spec/fixtures/vcr_cassettes/BitWallet_Address/on_initialization/address_given_already_exists/should_not_create_an_address.yml +4 -4
  31. data/spec/fixtures/vcr_cassettes/BitWallet_Address/on_initialization/no_address_is_given/should_create_an_address.yml +8 -8
  32. data/spec/fixtures/vcr_cassettes/BitWallet_Addresses/_new/with_address_string_given/should_return_an_Address_with_the_given_address_string.yml +4 -4
  33. data/spec/fixtures/vcr_cassettes/BitWallet_Addresses/_new/without_any_address_string_given/should_return_an_Address_that_points_to_the_same_account.yml +8 -8
  34. data/spec/fixtures/vcr_cassettes/BitWallet_Addresses/account/.yml +4 -4
  35. data/spec/fixtures/vcr_cassettes/BitWallet_Addresses/new/.yml +8 -8
  36. data/spec/fixtures/vcr_cassettes/BitWallet_Transaction/on_initialization/should_be_able_to_take_a_bitcoind_hash.yml +235 -13
  37. data/spec/fixtures/vcr_cassettes/BitWallet_Wallet/_accounts/should_return_array_of_BitWallet_Accounts.yml +268 -9
  38. data/spec/fixtures/vcr_cassettes/BitWallet_Wallet/_recent_transactions/should_allow_overriding_of_the_transaction_limit.yml +280 -58
  39. data/spec/fixtures/vcr_cassettes/BitWallet_Wallet/_recent_transactions/should_return_the_most_recent_transactions_of_all_accounts_defaulting_to_10_transactions.yml +297 -75
  40. metadata +8 -8
  41. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_recent_transactions/when_transaction_limit_is_5/should_list_the_5_most_recent_transactions.yml +0 -447
@@ -4,7 +4,7 @@ http_interactions:
4
4
  method: post
5
5
  uri: http://admin1:123@localhost:19001/
6
6
  body:
7
- encoding: UTF-8
7
+ encoding: US-ASCII
8
8
  string: ! '{"method":"listaccounts","params":[1],"id":"jsonrpc"}'
9
9
  headers:
10
10
  Accept:
@@ -21,27 +21,27 @@ http_interactions:
21
21
  message: OK
22
22
  headers:
23
23
  Date:
24
- - Thu, 07 Mar 2013 10:31:19 +0000
24
+ - Sun, 07 Apr 2013 10:02:06 +0000
25
25
  Connection:
26
26
  - keep-alive
27
27
  Content-Length:
28
- - '58'
28
+ - '194'
29
29
  Content-Type:
30
30
  - application/json
31
31
  Server:
32
32
  - bitcoin-json-rpc/v0.7.2-beta
33
33
  body:
34
34
  encoding: US-ASCII
35
- string: ! '{"result":{"":8800.00000000},"error":null,"id":"jsonrpc"}
35
+ string: ! '{"result":{"":8380.28750000,"1":0.00000000,"accountname":0.00000000,"moneyd":0.00000000,"name":0.00000000,"nomoney":0.00000000,"nona":0.00000000,"numba":0.00000000},"error":null,"id":"jsonrpc"}
36
36
 
37
37
  '
38
38
  http_version:
39
- recorded_at: Thu, 07 Mar 2013 10:31:19 GMT
39
+ recorded_at: Sun, 07 Apr 2013 10:02:06 GMT
40
40
  - request:
41
41
  method: post
42
42
  uri: http://admin1:123@localhost:19001/
43
43
  body:
44
- encoding: UTF-8
44
+ encoding: US-ASCII
45
45
  string: ! '{"method":"getnewaddress","params":[""],"id":"jsonrpc"}'
46
46
  headers:
47
47
  Accept:
@@ -58,7 +58,7 @@ http_interactions:
58
58
  message: OK
59
59
  headers:
60
60
  Date:
61
- - Thu, 07 Mar 2013 10:31:19 +0000
61
+ - Sun, 07 Apr 2013 10:02:06 +0000
62
62
  Connection:
63
63
  - keep-alive
64
64
  Content-Length:
@@ -69,16 +69,16 @@ http_interactions:
69
69
  - bitcoin-json-rpc/v0.7.2-beta
70
70
  body:
71
71
  encoding: US-ASCII
72
- string: ! '{"result":"mi487X6jj8ggY6FAoG8ibv7qomcq9TXL1U","error":null,"id":"jsonrpc"}
72
+ string: ! '{"result":"n15BASprrDZqqQjChyiMuf3PSvxTreewxc","error":null,"id":"jsonrpc"}
73
73
 
74
74
  '
75
75
  http_version:
76
- recorded_at: Thu, 07 Mar 2013 10:31:19 GMT
76
+ recorded_at: Sun, 07 Apr 2013 10:02:06 GMT
77
77
  - request:
78
78
  method: post
79
79
  uri: http://admin1:123@localhost:19001/
80
80
  body:
81
- encoding: UTF-8
81
+ encoding: US-ASCII
82
82
  string: ! '{"method":"getnewaddress","params":["1"],"id":"jsonrpc"}'
83
83
  headers:
84
84
  Accept:
@@ -95,7 +95,229 @@ http_interactions:
95
95
  message: OK
96
96
  headers:
97
97
  Date:
98
- - Thu, 07 Mar 2013 10:31:19 +0000
98
+ - Sun, 07 Apr 2013 10:02:06 +0000
99
+ Connection:
100
+ - keep-alive
101
+ Content-Length:
102
+ - '76'
103
+ Content-Type:
104
+ - application/json
105
+ Server:
106
+ - bitcoin-json-rpc/v0.7.2-beta
107
+ body:
108
+ encoding: US-ASCII
109
+ string: ! '{"result":"mobr7DrgEM5XQE3Z1qYQPGynvqCwRmMKYn","error":null,"id":"jsonrpc"}
110
+
111
+ '
112
+ http_version:
113
+ recorded_at: Sun, 07 Apr 2013 10:02:06 GMT
114
+ - request:
115
+ method: post
116
+ uri: http://admin1:123@localhost:19001/
117
+ body:
118
+ encoding: US-ASCII
119
+ string: ! '{"method":"getnewaddress","params":["accountname"],"id":"jsonrpc"}'
120
+ headers:
121
+ Accept:
122
+ - ! '*/*; q=0.5, application/xml'
123
+ Accept-Encoding:
124
+ - gzip, deflate
125
+ Content-Length:
126
+ - '66'
127
+ User-Agent:
128
+ - Ruby
129
+ response:
130
+ status:
131
+ code: 200
132
+ message: OK
133
+ headers:
134
+ Date:
135
+ - Sun, 07 Apr 2013 10:02:06 +0000
136
+ Connection:
137
+ - keep-alive
138
+ Content-Length:
139
+ - '76'
140
+ Content-Type:
141
+ - application/json
142
+ Server:
143
+ - bitcoin-json-rpc/v0.7.2-beta
144
+ body:
145
+ encoding: US-ASCII
146
+ string: ! '{"result":"mjb4DobfXYjenF8KK5dJitMVp5zfpmY5Zk","error":null,"id":"jsonrpc"}
147
+
148
+ '
149
+ http_version:
150
+ recorded_at: Sun, 07 Apr 2013 10:02:06 GMT
151
+ - request:
152
+ method: post
153
+ uri: http://admin1:123@localhost:19001/
154
+ body:
155
+ encoding: US-ASCII
156
+ string: ! '{"method":"getnewaddress","params":["moneyd"],"id":"jsonrpc"}'
157
+ headers:
158
+ Accept:
159
+ - ! '*/*; q=0.5, application/xml'
160
+ Accept-Encoding:
161
+ - gzip, deflate
162
+ Content-Length:
163
+ - '61'
164
+ User-Agent:
165
+ - Ruby
166
+ response:
167
+ status:
168
+ code: 200
169
+ message: OK
170
+ headers:
171
+ Date:
172
+ - Sun, 07 Apr 2013 10:02:06 +0000
173
+ Connection:
174
+ - keep-alive
175
+ Content-Length:
176
+ - '76'
177
+ Content-Type:
178
+ - application/json
179
+ Server:
180
+ - bitcoin-json-rpc/v0.7.2-beta
181
+ body:
182
+ encoding: US-ASCII
183
+ string: ! '{"result":"mkgzmTru6fD3DzsU4MGpwY57Whu8xm67cA","error":null,"id":"jsonrpc"}
184
+
185
+ '
186
+ http_version:
187
+ recorded_at: Sun, 07 Apr 2013 10:02:06 GMT
188
+ - request:
189
+ method: post
190
+ uri: http://admin1:123@localhost:19001/
191
+ body:
192
+ encoding: US-ASCII
193
+ string: ! '{"method":"getnewaddress","params":["name"],"id":"jsonrpc"}'
194
+ headers:
195
+ Accept:
196
+ - ! '*/*; q=0.5, application/xml'
197
+ Accept-Encoding:
198
+ - gzip, deflate
199
+ Content-Length:
200
+ - '59'
201
+ User-Agent:
202
+ - Ruby
203
+ response:
204
+ status:
205
+ code: 200
206
+ message: OK
207
+ headers:
208
+ Date:
209
+ - Sun, 07 Apr 2013 10:02:06 +0000
210
+ Connection:
211
+ - keep-alive
212
+ Content-Length:
213
+ - '76'
214
+ Content-Type:
215
+ - application/json
216
+ Server:
217
+ - bitcoin-json-rpc/v0.7.2-beta
218
+ body:
219
+ encoding: US-ASCII
220
+ string: ! '{"result":"n1LtU9rXvUXVgrvD511XiSHH4NpkY3dYLw","error":null,"id":"jsonrpc"}
221
+
222
+ '
223
+ http_version:
224
+ recorded_at: Sun, 07 Apr 2013 10:02:06 GMT
225
+ - request:
226
+ method: post
227
+ uri: http://admin1:123@localhost:19001/
228
+ body:
229
+ encoding: US-ASCII
230
+ string: ! '{"method":"getnewaddress","params":["nomoney"],"id":"jsonrpc"}'
231
+ headers:
232
+ Accept:
233
+ - ! '*/*; q=0.5, application/xml'
234
+ Accept-Encoding:
235
+ - gzip, deflate
236
+ Content-Length:
237
+ - '62'
238
+ User-Agent:
239
+ - Ruby
240
+ response:
241
+ status:
242
+ code: 200
243
+ message: OK
244
+ headers:
245
+ Date:
246
+ - Sun, 07 Apr 2013 10:02:06 +0000
247
+ Connection:
248
+ - keep-alive
249
+ Content-Length:
250
+ - '76'
251
+ Content-Type:
252
+ - application/json
253
+ Server:
254
+ - bitcoin-json-rpc/v0.7.2-beta
255
+ body:
256
+ encoding: US-ASCII
257
+ string: ! '{"result":"mr2Feabn8Pbb8Q7ekjSkfMXoX5S2XhJV3h","error":null,"id":"jsonrpc"}
258
+
259
+ '
260
+ http_version:
261
+ recorded_at: Sun, 07 Apr 2013 10:02:06 GMT
262
+ - request:
263
+ method: post
264
+ uri: http://admin1:123@localhost:19001/
265
+ body:
266
+ encoding: US-ASCII
267
+ string: ! '{"method":"getnewaddress","params":["nona"],"id":"jsonrpc"}'
268
+ headers:
269
+ Accept:
270
+ - ! '*/*; q=0.5, application/xml'
271
+ Accept-Encoding:
272
+ - gzip, deflate
273
+ Content-Length:
274
+ - '59'
275
+ User-Agent:
276
+ - Ruby
277
+ response:
278
+ status:
279
+ code: 200
280
+ message: OK
281
+ headers:
282
+ Date:
283
+ - Sun, 07 Apr 2013 10:02:06 +0000
284
+ Connection:
285
+ - keep-alive
286
+ Content-Length:
287
+ - '76'
288
+ Content-Type:
289
+ - application/json
290
+ Server:
291
+ - bitcoin-json-rpc/v0.7.2-beta
292
+ body:
293
+ encoding: US-ASCII
294
+ string: ! '{"result":"mnBXp4k6tJKWtEa5Uva7TQF6Yaam3fcZ2m","error":null,"id":"jsonrpc"}
295
+
296
+ '
297
+ http_version:
298
+ recorded_at: Sun, 07 Apr 2013 10:02:06 GMT
299
+ - request:
300
+ method: post
301
+ uri: http://admin1:123@localhost:19001/
302
+ body:
303
+ encoding: US-ASCII
304
+ string: ! '{"method":"getnewaddress","params":["numba"],"id":"jsonrpc"}'
305
+ headers:
306
+ Accept:
307
+ - ! '*/*; q=0.5, application/xml'
308
+ Accept-Encoding:
309
+ - gzip, deflate
310
+ Content-Length:
311
+ - '60'
312
+ User-Agent:
313
+ - Ruby
314
+ response:
315
+ status:
316
+ code: 200
317
+ message: OK
318
+ headers:
319
+ Date:
320
+ - Sun, 07 Apr 2013 10:02:06 +0000
99
321
  Connection:
100
322
  - keep-alive
101
323
  Content-Length:
@@ -106,17 +328,17 @@ http_interactions:
106
328
  - bitcoin-json-rpc/v0.7.2-beta
107
329
  body:
108
330
  encoding: US-ASCII
109
- string: ! '{"result":"mkwWW2pnqFkDfH5esHxXBNARTN7GnUDpsv","error":null,"id":"jsonrpc"}
331
+ string: ! '{"result":"mj1PCptei9SRbf7Ko8xxVC5fqW4TJwVZnB","error":null,"id":"jsonrpc"}
110
332
 
111
333
  '
112
334
  http_version:
113
- recorded_at: Thu, 07 Mar 2013 10:31:19 GMT
335
+ recorded_at: Sun, 07 Apr 2013 10:02:06 GMT
114
336
  - request:
115
337
  method: post
116
338
  uri: http://admin1:123@localhost:19001/
117
339
  body:
118
- encoding: UTF-8
119
- string: ! '{"method":"sendfrom","params":["","mkwWW2pnqFkDfH5esHxXBNARTN7GnUDpsv",1,0],"id":"jsonrpc"}'
340
+ encoding: US-ASCII
341
+ string: ! '{"method":"sendfrom","params":["","mobr7DrgEM5XQE3Z1qYQPGynvqCwRmMKYn",1,0],"id":"jsonrpc"}'
120
342
  headers:
121
343
  Accept:
122
344
  - ! '*/*; q=0.5, application/xml'
@@ -132,7 +354,7 @@ http_interactions:
132
354
  message: OK
133
355
  headers:
134
356
  Date:
135
- - Thu, 07 Mar 2013 10:31:19 +0000
357
+ - Sun, 07 Apr 2013 10:02:06 +0000
136
358
  Connection:
137
359
  - keep-alive
138
360
  Content-Length:
@@ -143,17 +365,17 @@ http_interactions:
143
365
  - bitcoin-json-rpc/v0.7.2-beta
144
366
  body:
145
367
  encoding: US-ASCII
146
- string: ! '{"result":"04a758f735165837de43552147448a0b95456d1e6b031fe3085dae84ef182a60","error":null,"id":"jsonrpc"}
368
+ string: ! '{"result":"dea1b4c674f4332606f0a54ce002b1467428aa1a193eb638bcc176781de6e611","error":null,"id":"jsonrpc"}
147
369
 
148
370
  '
149
371
  http_version:
150
- recorded_at: Thu, 07 Mar 2013 10:31:19 GMT
372
+ recorded_at: Sun, 07 Apr 2013 10:02:06 GMT
151
373
  - request:
152
374
  method: post
153
375
  uri: http://admin1:123@localhost:19001/
154
376
  body:
155
- encoding: UTF-8
156
- string: ! '{"method":"sendfrom","params":["","mkwWW2pnqFkDfH5esHxXBNARTN7GnUDpsv",2,0],"id":"jsonrpc"}'
377
+ encoding: US-ASCII
378
+ string: ! '{"method":"sendfrom","params":["","mobr7DrgEM5XQE3Z1qYQPGynvqCwRmMKYn",2,0],"id":"jsonrpc"}'
157
379
  headers:
158
380
  Accept:
159
381
  - ! '*/*; q=0.5, application/xml'
@@ -169,7 +391,7 @@ http_interactions:
169
391
  message: OK
170
392
  headers:
171
393
  Date:
172
- - Thu, 07 Mar 2013 10:31:19 +0000
394
+ - Sun, 07 Apr 2013 10:02:06 +0000
173
395
  Connection:
174
396
  - keep-alive
175
397
  Content-Length:
@@ -180,17 +402,17 @@ http_interactions:
180
402
  - bitcoin-json-rpc/v0.7.2-beta
181
403
  body:
182
404
  encoding: US-ASCII
183
- string: ! '{"result":"842dddcbd3ce56ef06c7f1ec77f2781e1518ffe27ab410815b31103f2f94c2d7","error":null,"id":"jsonrpc"}
405
+ string: ! '{"result":"55b6924c957d0a07f5af8eb8a96f694070bf77f5e19baf3124d3556bb0ea254a","error":null,"id":"jsonrpc"}
184
406
 
185
407
  '
186
408
  http_version:
187
- recorded_at: Thu, 07 Mar 2013 10:31:19 GMT
409
+ recorded_at: Sun, 07 Apr 2013 10:02:06 GMT
188
410
  - request:
189
411
  method: post
190
412
  uri: http://admin1:123@localhost:19001/
191
413
  body:
192
- encoding: UTF-8
193
- string: ! '{"method":"sendfrom","params":["","mkwWW2pnqFkDfH5esHxXBNARTN7GnUDpsv",3,0],"id":"jsonrpc"}'
414
+ encoding: US-ASCII
415
+ string: ! '{"method":"sendfrom","params":["","mobr7DrgEM5XQE3Z1qYQPGynvqCwRmMKYn",3,0],"id":"jsonrpc"}'
194
416
  headers:
195
417
  Accept:
196
418
  - ! '*/*; q=0.5, application/xml'
@@ -206,7 +428,7 @@ http_interactions:
206
428
  message: OK
207
429
  headers:
208
430
  Date:
209
- - Thu, 07 Mar 2013 10:31:19 +0000
431
+ - Sun, 07 Apr 2013 10:02:07 +0000
210
432
  Connection:
211
433
  - keep-alive
212
434
  Content-Length:
@@ -217,17 +439,17 @@ http_interactions:
217
439
  - bitcoin-json-rpc/v0.7.2-beta
218
440
  body:
219
441
  encoding: US-ASCII
220
- string: ! '{"result":"ebfe29860de5abc5113f80adbba43dd8050c091ebd1a106efc5ec16eea6b562c","error":null,"id":"jsonrpc"}
442
+ string: ! '{"result":"a17062734419398ecc05065ca5a8e8feb0d2ca51910f4dcdac8878f202d94af5","error":null,"id":"jsonrpc"}
221
443
 
222
444
  '
223
445
  http_version:
224
- recorded_at: Thu, 07 Mar 2013 10:31:19 GMT
446
+ recorded_at: Sun, 07 Apr 2013 10:02:07 GMT
225
447
  - request:
226
448
  method: post
227
449
  uri: http://admin1:123@localhost:19001/
228
450
  body:
229
- encoding: UTF-8
230
- string: ! '{"method":"sendfrom","params":["","mkwWW2pnqFkDfH5esHxXBNARTN7GnUDpsv",4,0],"id":"jsonrpc"}'
451
+ encoding: US-ASCII
452
+ string: ! '{"method":"sendfrom","params":["","mobr7DrgEM5XQE3Z1qYQPGynvqCwRmMKYn",4,0],"id":"jsonrpc"}'
231
453
  headers:
232
454
  Accept:
233
455
  - ! '*/*; q=0.5, application/xml'
@@ -243,7 +465,7 @@ http_interactions:
243
465
  message: OK
244
466
  headers:
245
467
  Date:
246
- - Thu, 07 Mar 2013 10:31:19 +0000
468
+ - Sun, 07 Apr 2013 10:02:07 +0000
247
469
  Connection:
248
470
  - keep-alive
249
471
  Content-Length:
@@ -254,17 +476,17 @@ http_interactions:
254
476
  - bitcoin-json-rpc/v0.7.2-beta
255
477
  body:
256
478
  encoding: US-ASCII
257
- string: ! '{"result":"3d7461e67f7403af63c906945369e5094b80b95a85fffdd994ea174a8c496d17","error":null,"id":"jsonrpc"}
479
+ string: ! '{"result":"ab3b25846fa26d0a09c34bc8797a1c1752d188c47a6d9897877964bf186e3f7a","error":null,"id":"jsonrpc"}
258
480
 
259
481
  '
260
482
  http_version:
261
- recorded_at: Thu, 07 Mar 2013 10:31:19 GMT
483
+ recorded_at: Sun, 07 Apr 2013 10:02:07 GMT
262
484
  - request:
263
485
  method: post
264
486
  uri: http://admin1:123@localhost:19001/
265
487
  body:
266
- encoding: UTF-8
267
- string: ! '{"method":"sendfrom","params":["","mkwWW2pnqFkDfH5esHxXBNARTN7GnUDpsv",5,0],"id":"jsonrpc"}'
488
+ encoding: US-ASCII
489
+ string: ! '{"method":"sendfrom","params":["","mobr7DrgEM5XQE3Z1qYQPGynvqCwRmMKYn",5,0],"id":"jsonrpc"}'
268
490
  headers:
269
491
  Accept:
270
492
  - ! '*/*; q=0.5, application/xml'
@@ -280,7 +502,7 @@ http_interactions:
280
502
  message: OK
281
503
  headers:
282
504
  Date:
283
- - Thu, 07 Mar 2013 10:31:19 +0000
505
+ - Sun, 07 Apr 2013 10:02:07 +0000
284
506
  Connection:
285
507
  - keep-alive
286
508
  Content-Length:
@@ -291,17 +513,17 @@ http_interactions:
291
513
  - bitcoin-json-rpc/v0.7.2-beta
292
514
  body:
293
515
  encoding: US-ASCII
294
- string: ! '{"result":"4c9670a5bff902b53440baf3cbe1798866f668cd6319dbef7fd7cce9e26142a2","error":null,"id":"jsonrpc"}
516
+ string: ! '{"result":"8fa0c367905e494b8ed89c53da59338a677fa342b7cacb86409d517a616b9eff","error":null,"id":"jsonrpc"}
295
517
 
296
518
  '
297
519
  http_version:
298
- recorded_at: Thu, 07 Mar 2013 10:31:19 GMT
520
+ recorded_at: Sun, 07 Apr 2013 10:02:07 GMT
299
521
  - request:
300
522
  method: post
301
523
  uri: http://admin1:123@localhost:19001/
302
524
  body:
303
- encoding: UTF-8
304
- string: ! '{"method":"sendfrom","params":["","mkwWW2pnqFkDfH5esHxXBNARTN7GnUDpsv",6,0],"id":"jsonrpc"}'
525
+ encoding: US-ASCII
526
+ string: ! '{"method":"sendfrom","params":["","mobr7DrgEM5XQE3Z1qYQPGynvqCwRmMKYn",6,0],"id":"jsonrpc"}'
305
527
  headers:
306
528
  Accept:
307
529
  - ! '*/*; q=0.5, application/xml'
@@ -317,7 +539,7 @@ http_interactions:
317
539
  message: OK
318
540
  headers:
319
541
  Date:
320
- - Thu, 07 Mar 2013 10:31:19 +0000
542
+ - Sun, 07 Apr 2013 10:02:08 +0000
321
543
  Connection:
322
544
  - keep-alive
323
545
  Content-Length:
@@ -328,17 +550,17 @@ http_interactions:
328
550
  - bitcoin-json-rpc/v0.7.2-beta
329
551
  body:
330
552
  encoding: US-ASCII
331
- string: ! '{"result":"375de989d23a1d121396527f0f2307805ca1f0cb747817eed56f5b46c955e9c7","error":null,"id":"jsonrpc"}
553
+ string: ! '{"result":"74ae130c2223f34dcdd492b9f102196e9c5b68ae1fb5be1dd015f65e58eb499c","error":null,"id":"jsonrpc"}
332
554
 
333
555
  '
334
556
  http_version:
335
- recorded_at: Thu, 07 Mar 2013 10:31:19 GMT
557
+ recorded_at: Sun, 07 Apr 2013 10:02:08 GMT
336
558
  - request:
337
559
  method: post
338
560
  uri: http://admin1:123@localhost:19001/
339
561
  body:
340
- encoding: UTF-8
341
- string: ! '{"method":"sendfrom","params":["","mkwWW2pnqFkDfH5esHxXBNARTN7GnUDpsv",7,0],"id":"jsonrpc"}'
562
+ encoding: US-ASCII
563
+ string: ! '{"method":"sendfrom","params":["","mobr7DrgEM5XQE3Z1qYQPGynvqCwRmMKYn",7,0],"id":"jsonrpc"}'
342
564
  headers:
343
565
  Accept:
344
566
  - ! '*/*; q=0.5, application/xml'
@@ -354,7 +576,7 @@ http_interactions:
354
576
  message: OK
355
577
  headers:
356
578
  Date:
357
- - Thu, 07 Mar 2013 10:31:19 +0000
579
+ - Sun, 07 Apr 2013 10:02:08 +0000
358
580
  Connection:
359
581
  - keep-alive
360
582
  Content-Length:
@@ -365,17 +587,17 @@ http_interactions:
365
587
  - bitcoin-json-rpc/v0.7.2-beta
366
588
  body:
367
589
  encoding: US-ASCII
368
- string: ! '{"result":"7f689da81bd755940cb31ca403fb3083a02a93fe1e918827ac2de2326142a911","error":null,"id":"jsonrpc"}
590
+ string: ! '{"result":"ff4363371649e299c406cb0763964e89a29bed2f8ff49ab43d72f04c15e31488","error":null,"id":"jsonrpc"}
369
591
 
370
592
  '
371
593
  http_version:
372
- recorded_at: Thu, 07 Mar 2013 10:31:19 GMT
594
+ recorded_at: Sun, 07 Apr 2013 10:02:08 GMT
373
595
  - request:
374
596
  method: post
375
597
  uri: http://admin1:123@localhost:19001/
376
598
  body:
377
- encoding: UTF-8
378
- string: ! '{"method":"sendfrom","params":["","mkwWW2pnqFkDfH5esHxXBNARTN7GnUDpsv",8,0],"id":"jsonrpc"}'
599
+ encoding: US-ASCII
600
+ string: ! '{"method":"sendfrom","params":["","mobr7DrgEM5XQE3Z1qYQPGynvqCwRmMKYn",8,0],"id":"jsonrpc"}'
379
601
  headers:
380
602
  Accept:
381
603
  - ! '*/*; q=0.5, application/xml'
@@ -391,7 +613,7 @@ http_interactions:
391
613
  message: OK
392
614
  headers:
393
615
  Date:
394
- - Thu, 07 Mar 2013 10:31:19 +0000
616
+ - Sun, 07 Apr 2013 10:02:08 +0000
395
617
  Connection:
396
618
  - keep-alive
397
619
  Content-Length:
@@ -402,17 +624,17 @@ http_interactions:
402
624
  - bitcoin-json-rpc/v0.7.2-beta
403
625
  body:
404
626
  encoding: US-ASCII
405
- string: ! '{"result":"c8872c40493dc16b438c74cb4a0454921ccd24f7a7158d32a171e0451ed6539b","error":null,"id":"jsonrpc"}
627
+ string: ! '{"result":"d919b6c2305354b93c15d70f331bfa5ec354d8d44d2cdee2db9d97d3834951fe","error":null,"id":"jsonrpc"}
406
628
 
407
629
  '
408
630
  http_version:
409
- recorded_at: Thu, 07 Mar 2013 10:31:19 GMT
631
+ recorded_at: Sun, 07 Apr 2013 10:02:08 GMT
410
632
  - request:
411
633
  method: post
412
634
  uri: http://admin1:123@localhost:19001/
413
635
  body:
414
- encoding: UTF-8
415
- string: ! '{"method":"sendfrom","params":["","mkwWW2pnqFkDfH5esHxXBNARTN7GnUDpsv",9,0],"id":"jsonrpc"}'
636
+ encoding: US-ASCII
637
+ string: ! '{"method":"sendfrom","params":["","mobr7DrgEM5XQE3Z1qYQPGynvqCwRmMKYn",9,0],"id":"jsonrpc"}'
416
638
  headers:
417
639
  Accept:
418
640
  - ! '*/*; q=0.5, application/xml'
@@ -428,7 +650,7 @@ http_interactions:
428
650
  message: OK
429
651
  headers:
430
652
  Date:
431
- - Thu, 07 Mar 2013 10:31:19 +0000
653
+ - Sun, 07 Apr 2013 10:02:08 +0000
432
654
  Connection:
433
655
  - keep-alive
434
656
  Content-Length:
@@ -439,17 +661,17 @@ http_interactions:
439
661
  - bitcoin-json-rpc/v0.7.2-beta
440
662
  body:
441
663
  encoding: US-ASCII
442
- string: ! '{"result":"5ff90dbc85fb7b6563daf3aa6e03a3be93fd3058d7752317a48d371dccd0fc0d","error":null,"id":"jsonrpc"}
664
+ string: ! '{"result":"8ef4daad2ddb2d0e8344080bb248c40c7fcfd62c17e371ad03563ba85373cccf","error":null,"id":"jsonrpc"}
443
665
 
444
666
  '
445
667
  http_version:
446
- recorded_at: Thu, 07 Mar 2013 10:31:19 GMT
668
+ recorded_at: Sun, 07 Apr 2013 10:02:08 GMT
447
669
  - request:
448
670
  method: post
449
671
  uri: http://admin1:123@localhost:19001/
450
672
  body:
451
- encoding: UTF-8
452
- string: ! '{"method":"sendfrom","params":["","mkwWW2pnqFkDfH5esHxXBNARTN7GnUDpsv",10,0],"id":"jsonrpc"}'
673
+ encoding: US-ASCII
674
+ string: ! '{"method":"sendfrom","params":["","mobr7DrgEM5XQE3Z1qYQPGynvqCwRmMKYn",10,0],"id":"jsonrpc"}'
453
675
  headers:
454
676
  Accept:
455
677
  - ! '*/*; q=0.5, application/xml'
@@ -465,7 +687,7 @@ http_interactions:
465
687
  message: OK
466
688
  headers:
467
689
  Date:
468
- - Thu, 07 Mar 2013 10:31:19 +0000
690
+ - Sun, 07 Apr 2013 10:02:08 +0000
469
691
  Connection:
470
692
  - keep-alive
471
693
  Content-Length:
@@ -476,17 +698,17 @@ http_interactions:
476
698
  - bitcoin-json-rpc/v0.7.2-beta
477
699
  body:
478
700
  encoding: US-ASCII
479
- string: ! '{"result":"159f30ebf63dec760979aa5e07ad9693a2c80866ab4a582717bc6562faad5ea7","error":null,"id":"jsonrpc"}
701
+ string: ! '{"result":"822964436dcd52b002bc04e4b8ba89250692c4bd6c59e1a391d922ad4a79aad7","error":null,"id":"jsonrpc"}
480
702
 
481
703
  '
482
704
  http_version:
483
- recorded_at: Thu, 07 Mar 2013 10:31:19 GMT
705
+ recorded_at: Sun, 07 Apr 2013 10:02:08 GMT
484
706
  - request:
485
707
  method: post
486
708
  uri: http://admin1:123@localhost:19001/
487
709
  body:
488
- encoding: UTF-8
489
- string: ! '{"method":"sendfrom","params":["","mkwWW2pnqFkDfH5esHxXBNARTN7GnUDpsv",11,0],"id":"jsonrpc"}'
710
+ encoding: US-ASCII
711
+ string: ! '{"method":"sendfrom","params":["","mobr7DrgEM5XQE3Z1qYQPGynvqCwRmMKYn",11,0],"id":"jsonrpc"}'
490
712
  headers:
491
713
  Accept:
492
714
  - ! '*/*; q=0.5, application/xml'
@@ -502,7 +724,7 @@ http_interactions:
502
724
  message: OK
503
725
  headers:
504
726
  Date:
505
- - Thu, 07 Mar 2013 10:31:19 +0000
727
+ - Sun, 07 Apr 2013 10:02:08 +0000
506
728
  Connection:
507
729
  - keep-alive
508
730
  Content-Length:
@@ -513,24 +735,24 @@ http_interactions:
513
735
  - bitcoin-json-rpc/v0.7.2-beta
514
736
  body:
515
737
  encoding: US-ASCII
516
- string: ! '{"result":"4bdb4276eabfa7349a1eaddeee1bf31c1706bce4d067f7519399cb45a7339a67","error":null,"id":"jsonrpc"}
738
+ string: ! '{"result":"8c9176733707de5427940a3331ee1f1af8d1aa9a423d7682d9c92523685fcabd","error":null,"id":"jsonrpc"}
517
739
 
518
740
  '
519
741
  http_version:
520
- recorded_at: Thu, 07 Mar 2013 10:31:19 GMT
742
+ recorded_at: Sun, 07 Apr 2013 10:02:08 GMT
521
743
  - request:
522
744
  method: post
523
745
  uri: http://admin1:123@localhost:19001/
524
746
  body:
525
- encoding: UTF-8
526
- string: ! '{"method":"listtransactions","params":[],"id":"jsonrpc"}'
747
+ encoding: US-ASCII
748
+ string: ! '{"method":"listtransactions","params":["*",10],"id":"jsonrpc"}'
527
749
  headers:
528
750
  Accept:
529
751
  - ! '*/*; q=0.5, application/xml'
530
752
  Accept-Encoding:
531
753
  - gzip, deflate
532
754
  Content-Length:
533
- - '56'
755
+ - '62'
534
756
  User-Agent:
535
757
  - Ruby
536
758
  response:
@@ -539,20 +761,20 @@ http_interactions:
539
761
  message: OK
540
762
  headers:
541
763
  Date:
542
- - Thu, 07 Mar 2013 10:31:19 +0000
764
+ - Sun, 07 Apr 2013 10:02:08 +0000
543
765
  Connection:
544
766
  - keep-alive
545
767
  Content-Length:
546
- - '2515'
768
+ - '2520'
547
769
  Content-Type:
548
770
  - application/json
549
771
  Server:
550
772
  - bitcoin-json-rpc/v0.7.2-beta
551
773
  body:
552
774
  encoding: US-ASCII
553
- string: ! '{"result":[{"account":"1","address":"mkwWW2pnqFkDfH5esHxXBNARTN7GnUDpsv","category":"receive","amount":7.00000000,"confirmations":0,"txid":"7f689da81bd755940cb31ca403fb3083a02a93fe1e918827ac2de2326142a911","time":1362652279,"timereceived":1362652279},{"account":"","address":"mkwWW2pnqFkDfH5esHxXBNARTN7GnUDpsv","category":"send","amount":-7.00000000,"fee":0.00000000,"confirmations":0,"txid":"7f689da81bd755940cb31ca403fb3083a02a93fe1e918827ac2de2326142a911","time":1362652279,"timereceived":1362652279},{"account":"1","address":"mkwWW2pnqFkDfH5esHxXBNARTN7GnUDpsv","category":"receive","amount":8.00000000,"confirmations":0,"txid":"c8872c40493dc16b438c74cb4a0454921ccd24f7a7158d32a171e0451ed6539b","time":1362652279,"timereceived":1362652279},{"account":"","address":"mkwWW2pnqFkDfH5esHxXBNARTN7GnUDpsv","category":"send","amount":-8.00000000,"fee":0.00000000,"confirmations":0,"txid":"c8872c40493dc16b438c74cb4a0454921ccd24f7a7158d32a171e0451ed6539b","time":1362652279,"timereceived":1362652279},{"account":"1","address":"mkwWW2pnqFkDfH5esHxXBNARTN7GnUDpsv","category":"receive","amount":9.00000000,"confirmations":0,"txid":"5ff90dbc85fb7b6563daf3aa6e03a3be93fd3058d7752317a48d371dccd0fc0d","time":1362652279,"timereceived":1362652279},{"account":"","address":"mkwWW2pnqFkDfH5esHxXBNARTN7GnUDpsv","category":"send","amount":-9.00000000,"fee":0.00000000,"confirmations":0,"txid":"5ff90dbc85fb7b6563daf3aa6e03a3be93fd3058d7752317a48d371dccd0fc0d","time":1362652279,"timereceived":1362652279},{"account":"1","address":"mkwWW2pnqFkDfH5esHxXBNARTN7GnUDpsv","category":"receive","amount":10.00000000,"confirmations":0,"txid":"159f30ebf63dec760979aa5e07ad9693a2c80866ab4a582717bc6562faad5ea7","time":1362652279,"timereceived":1362652279},{"account":"","address":"mkwWW2pnqFkDfH5esHxXBNARTN7GnUDpsv","category":"send","amount":-10.00000000,"fee":0.00000000,"confirmations":0,"txid":"159f30ebf63dec760979aa5e07ad9693a2c80866ab4a582717bc6562faad5ea7","time":1362652279,"timereceived":1362652279},{"account":"1","address":"mkwWW2pnqFkDfH5esHxXBNARTN7GnUDpsv","category":"receive","amount":11.00000000,"confirmations":0,"txid":"4bdb4276eabfa7349a1eaddeee1bf31c1706bce4d067f7519399cb45a7339a67","time":1362652279,"timereceived":1362652279},{"account":"","address":"mkwWW2pnqFkDfH5esHxXBNARTN7GnUDpsv","category":"send","amount":-11.00000000,"fee":0.00000000,"confirmations":0,"txid":"4bdb4276eabfa7349a1eaddeee1bf31c1706bce4d067f7519399cb45a7339a67","time":1362652279,"timereceived":1362652279}],"error":null,"id":"jsonrpc"}
775
+ string: ! '{"result":[{"account":"1","address":"mobr7DrgEM5XQE3Z1qYQPGynvqCwRmMKYn","category":"receive","amount":7.00000000,"confirmations":0,"txid":"ff4363371649e299c406cb0763964e89a29bed2f8ff49ab43d72f04c15e31488","time":1365328928,"timereceived":1365328928},{"account":"","address":"mobr7DrgEM5XQE3Z1qYQPGynvqCwRmMKYn","category":"send","amount":-7.00000000,"fee":-0.00050000,"confirmations":0,"txid":"ff4363371649e299c406cb0763964e89a29bed2f8ff49ab43d72f04c15e31488","time":1365328928,"timereceived":1365328928},{"account":"1","address":"mobr7DrgEM5XQE3Z1qYQPGynvqCwRmMKYn","category":"receive","amount":8.00000000,"confirmations":0,"txid":"d919b6c2305354b93c15d70f331bfa5ec354d8d44d2cdee2db9d97d3834951fe","time":1365328928,"timereceived":1365328928},{"account":"","address":"mobr7DrgEM5XQE3Z1qYQPGynvqCwRmMKYn","category":"send","amount":-8.00000000,"fee":-0.00050000,"confirmations":0,"txid":"d919b6c2305354b93c15d70f331bfa5ec354d8d44d2cdee2db9d97d3834951fe","time":1365328928,"timereceived":1365328928},{"account":"1","address":"mobr7DrgEM5XQE3Z1qYQPGynvqCwRmMKYn","category":"receive","amount":9.00000000,"confirmations":0,"txid":"8ef4daad2ddb2d0e8344080bb248c40c7fcfd62c17e371ad03563ba85373cccf","time":1365328928,"timereceived":1365328928},{"account":"","address":"mobr7DrgEM5XQE3Z1qYQPGynvqCwRmMKYn","category":"send","amount":-9.00000000,"fee":-0.00050000,"confirmations":0,"txid":"8ef4daad2ddb2d0e8344080bb248c40c7fcfd62c17e371ad03563ba85373cccf","time":1365328928,"timereceived":1365328928},{"account":"1","address":"mobr7DrgEM5XQE3Z1qYQPGynvqCwRmMKYn","category":"receive","amount":10.00000000,"confirmations":0,"txid":"822964436dcd52b002bc04e4b8ba89250692c4bd6c59e1a391d922ad4a79aad7","time":1365328928,"timereceived":1365328928},{"account":"","address":"mobr7DrgEM5XQE3Z1qYQPGynvqCwRmMKYn","category":"send","amount":-10.00000000,"fee":-0.00050000,"confirmations":0,"txid":"822964436dcd52b002bc04e4b8ba89250692c4bd6c59e1a391d922ad4a79aad7","time":1365328928,"timereceived":1365328928},{"account":"1","address":"mobr7DrgEM5XQE3Z1qYQPGynvqCwRmMKYn","category":"receive","amount":11.00000000,"confirmations":0,"txid":"8c9176733707de5427940a3331ee1f1af8d1aa9a423d7682d9c92523685fcabd","time":1365328928,"timereceived":1365328928},{"account":"","address":"mobr7DrgEM5XQE3Z1qYQPGynvqCwRmMKYn","category":"send","amount":-11.00000000,"fee":-0.00050000,"confirmations":0,"txid":"8c9176733707de5427940a3331ee1f1af8d1aa9a423d7682d9c92523685fcabd","time":1365328928,"timereceived":1365328928}],"error":null,"id":"jsonrpc"}
554
776
 
555
777
  '
556
778
  http_version:
557
- recorded_at: Thu, 07 Mar 2013 10:31:19 GMT
779
+ recorded_at: Sun, 07 Apr 2013 10:02:08 GMT
558
780
  recorded_with: VCR 2.4.0