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
@@ -21,22 +21,22 @@ http_interactions:
21
21
  message: OK
22
22
  headers:
23
23
  Date:
24
- - Sat, 09 Mar 2013 05:20:07 +0000
24
+ - Sun, 07 Apr 2013 10:01:32 +0000
25
25
  Connection:
26
26
  - keep-alive
27
27
  Content-Length:
28
- - '58'
28
+ - '134'
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":{"":8390.28800000,"1":0.00000000,"accountname":0.00000000,"name":0.00000000,"nona":0.00000000},"error":null,"id":"jsonrpc"}
36
36
 
37
37
  '
38
38
  http_version:
39
- recorded_at: Sat, 09 Mar 2013 05:20:07 GMT
39
+ recorded_at: Sun, 07 Apr 2013 10:01:32 GMT
40
40
  - request:
41
41
  method: post
42
42
  uri: http://admin1:123@localhost:19001/
@@ -58,7 +58,44 @@ http_interactions:
58
58
  message: OK
59
59
  headers:
60
60
  Date:
61
- - Sat, 09 Mar 2013 05:20:07 +0000
61
+ - Sun, 07 Apr 2013 10:01:32 +0000
62
+ Connection:
63
+ - keep-alive
64
+ Content-Length:
65
+ - '76'
66
+ Content-Type:
67
+ - application/json
68
+ Server:
69
+ - bitcoin-json-rpc/v0.7.2-beta
70
+ body:
71
+ encoding: US-ASCII
72
+ string: ! '{"result":"mo66G38qvYg2xFhoGrHPbgb6FCUvxGVq25","error":null,"id":"jsonrpc"}
73
+
74
+ '
75
+ http_version:
76
+ recorded_at: Sun, 07 Apr 2013 10:01:32 GMT
77
+ - request:
78
+ method: post
79
+ uri: http://admin1:123@localhost:19001/
80
+ body:
81
+ encoding: US-ASCII
82
+ string: ! '{"method":"getnewaddress","params":["1"],"id":"jsonrpc"}'
83
+ headers:
84
+ Accept:
85
+ - ! '*/*; q=0.5, application/xml'
86
+ Accept-Encoding:
87
+ - gzip, deflate
88
+ Content-Length:
89
+ - '56'
90
+ User-Agent:
91
+ - Ruby
92
+ response:
93
+ status:
94
+ code: 200
95
+ message: OK
96
+ headers:
97
+ Date:
98
+ - Sun, 07 Apr 2013 10:01:32 +0000
62
99
  Connection:
63
100
  - keep-alive
64
101
  Content-Length:
@@ -69,11 +106,122 @@ http_interactions:
69
106
  - bitcoin-json-rpc/v0.7.2-beta
70
107
  body:
71
108
  encoding: US-ASCII
72
- string: ! '{"result":"mi487X6jj8ggY6FAoG8ibv7qomcq9TXL1U","error":null,"id":"jsonrpc"}
109
+ string: ! '{"result":"mg6xWTbVuRJSofqUnkF66yRGKLPnxB5yhU","error":null,"id":"jsonrpc"}
73
110
 
74
111
  '
75
112
  http_version:
76
- recorded_at: Sat, 09 Mar 2013 05:20:07 GMT
113
+ recorded_at: Sun, 07 Apr 2013 10:01:32 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:01:32 +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":"mfZzs9nGCWsbjCamhqjVzNMw26kg6VvbXd","error":null,"id":"jsonrpc"}
147
+
148
+ '
149
+ http_version:
150
+ recorded_at: Sun, 07 Apr 2013 10:01:32 GMT
151
+ - request:
152
+ method: post
153
+ uri: http://admin1:123@localhost:19001/
154
+ body:
155
+ encoding: US-ASCII
156
+ string: ! '{"method":"getnewaddress","params":["name"],"id":"jsonrpc"}'
157
+ headers:
158
+ Accept:
159
+ - ! '*/*; q=0.5, application/xml'
160
+ Accept-Encoding:
161
+ - gzip, deflate
162
+ Content-Length:
163
+ - '59'
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:01:32 +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":"mhrU1Hp2jPrkoo7unfbjq5FFUmS9tgSxDP","error":null,"id":"jsonrpc"}
184
+
185
+ '
186
+ http_version:
187
+ recorded_at: Sun, 07 Apr 2013 10:01:32 GMT
188
+ - request:
189
+ method: post
190
+ uri: http://admin1:123@localhost:19001/
191
+ body:
192
+ encoding: US-ASCII
193
+ string: ! '{"method":"getnewaddress","params":["nona"],"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:01:32 +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":"mirNbszNmhMnYyqBSsxa6vPGVnNij8wYZR","error":null,"id":"jsonrpc"}
221
+
222
+ '
223
+ http_version:
224
+ recorded_at: Sun, 07 Apr 2013 10:01:32 GMT
77
225
  - request:
78
226
  method: post
79
227
  uri: http://admin1:123@localhost:19001/
@@ -95,7 +243,7 @@ http_interactions:
95
243
  message: OK
96
244
  headers:
97
245
  Date:
98
- - Sat, 09 Mar 2013 05:20:07 +0000
246
+ - Sun, 07 Apr 2013 10:01:32 +0000
99
247
  Connection:
100
248
  - keep-alive
101
249
  Content-Length:
@@ -106,11 +254,11 @@ http_interactions:
106
254
  - bitcoin-json-rpc/v0.7.2-beta
107
255
  body:
108
256
  encoding: US-ASCII
109
- string: ! '{"result":"mkwWW2pnqFkDfH5esHxXBNARTN7GnUDpsv","error":null,"id":"jsonrpc"}
257
+ string: ! '{"result":"mgk6xXZyQNNxKhYDYhp94KdXftG8HhNPpC","error":null,"id":"jsonrpc"}
110
258
 
111
259
  '
112
260
  http_version:
113
- recorded_at: Sat, 09 Mar 2013 05:20:07 GMT
261
+ recorded_at: Sun, 07 Apr 2013 10:01:32 GMT
114
262
  - request:
115
263
  method: post
116
264
  uri: http://admin1:123@localhost:19001/
@@ -132,7 +280,7 @@ http_interactions:
132
280
  message: OK
133
281
  headers:
134
282
  Date:
135
- - Sat, 09 Mar 2013 05:20:07 +0000
283
+ - Sun, 07 Apr 2013 10:01:32 +0000
136
284
  Connection:
137
285
  - keep-alive
138
286
  Content-Length:
@@ -143,17 +291,17 @@ http_interactions:
143
291
  - bitcoin-json-rpc/v0.7.2-beta
144
292
  body:
145
293
  encoding: US-ASCII
146
- string: ! '{"result":"mu2dJuiof4vUm3hBgX8F4FZBzsMEqPXEui","error":null,"id":"jsonrpc"}
294
+ string: ! '{"result":"n3bancdUf7LE4gi7MY65m1mNAzGcJU7DD8","error":null,"id":"jsonrpc"}
147
295
 
148
296
  '
149
297
  http_version:
150
- recorded_at: Sat, 09 Mar 2013 05:20:07 GMT
298
+ recorded_at: Sun, 07 Apr 2013 10:01:32 GMT
151
299
  - request:
152
300
  method: post
153
301
  uri: http://admin1:123@localhost:19001/
154
302
  body:
155
303
  encoding: US-ASCII
156
- string: ! '{"method":"sendfrom","params":["","mu2dJuiof4vUm3hBgX8F4FZBzsMEqPXEui",10,0],"id":"jsonrpc"}'
304
+ string: ! '{"method":"sendfrom","params":["","n3bancdUf7LE4gi7MY65m1mNAzGcJU7DD8",10,0],"id":"jsonrpc"}'
157
305
  headers:
158
306
  Accept:
159
307
  - ! '*/*; q=0.5, application/xml'
@@ -169,7 +317,7 @@ http_interactions:
169
317
  message: OK
170
318
  headers:
171
319
  Date:
172
- - Sat, 09 Mar 2013 05:20:07 +0000
320
+ - Sun, 07 Apr 2013 10:01:32 +0000
173
321
  Connection:
174
322
  - keep-alive
175
323
  Content-Length:
@@ -180,11 +328,11 @@ http_interactions:
180
328
  - bitcoin-json-rpc/v0.7.2-beta
181
329
  body:
182
330
  encoding: US-ASCII
183
- string: ! '{"result":"5c4cd1dc3a054fd6a47f6fdf85b45a5b774941adc339073aafa261323ca8d463","error":null,"id":"jsonrpc"}
331
+ string: ! '{"result":"fab2b1f17e561d53b97d6d443e436aaec948d6b3192171d41dd434e89b07944b","error":null,"id":"jsonrpc"}
184
332
 
185
333
  '
186
334
  http_version:
187
- recorded_at: Sat, 09 Mar 2013 05:20:07 GMT
335
+ recorded_at: Sun, 07 Apr 2013 10:01:32 GMT
188
336
  - request:
189
337
  method: post
190
338
  uri: http://admin1:123@localhost:19001/
@@ -206,7 +354,7 @@ http_interactions:
206
354
  message: OK
207
355
  headers:
208
356
  Date:
209
- - Sat, 09 Mar 2013 05:20:07 +0000
357
+ - Sun, 07 Apr 2013 10:01:32 +0000
210
358
  Connection:
211
359
  - keep-alive
212
360
  Content-Length:
@@ -217,11 +365,159 @@ http_interactions:
217
365
  - bitcoin-json-rpc/v0.7.2-beta
218
366
  body:
219
367
  encoding: US-ASCII
220
- string: ! '{"result":8790.00000000,"error":null,"id":"jsonrpc"}
368
+ string: ! '{"result":8380.28750000,"error":null,"id":"jsonrpc"}
369
+
370
+ '
371
+ http_version:
372
+ recorded_at: Sun, 07 Apr 2013 10:01:32 GMT
373
+ - request:
374
+ method: post
375
+ uri: http://admin1:123@localhost:19001/
376
+ body:
377
+ encoding: US-ASCII
378
+ string: ! '{"method":"getbalance","params":["1",0],"id":"jsonrpc"}'
379
+ headers:
380
+ Accept:
381
+ - ! '*/*; q=0.5, application/xml'
382
+ Accept-Encoding:
383
+ - gzip, deflate
384
+ Content-Length:
385
+ - '55'
386
+ User-Agent:
387
+ - Ruby
388
+ response:
389
+ status:
390
+ code: 200
391
+ message: OK
392
+ headers:
393
+ Date:
394
+ - Sun, 07 Apr 2013 10:01:32 +0000
395
+ Connection:
396
+ - keep-alive
397
+ Content-Length:
398
+ - '52'
399
+ Content-Type:
400
+ - application/json
401
+ Server:
402
+ - bitcoin-json-rpc/v0.7.2-beta
403
+ body:
404
+ encoding: US-ASCII
405
+ string: ! '{"result":399.00000000,"error":null,"id":"jsonrpc"}
221
406
 
222
407
  '
223
408
  http_version:
224
- recorded_at: Sat, 09 Mar 2013 05:20:07 GMT
409
+ recorded_at: Sun, 07 Apr 2013 10:01:32 GMT
410
+ - request:
411
+ method: post
412
+ uri: http://admin1:123@localhost:19001/
413
+ body:
414
+ encoding: US-ASCII
415
+ string: ! '{"method":"getbalance","params":["accountname",0],"id":"jsonrpc"}'
416
+ headers:
417
+ Accept:
418
+ - ! '*/*; q=0.5, application/xml'
419
+ Accept-Encoding:
420
+ - gzip, deflate
421
+ Content-Length:
422
+ - '65'
423
+ User-Agent:
424
+ - Ruby
425
+ response:
426
+ status:
427
+ code: 200
428
+ message: OK
429
+ headers:
430
+ Date:
431
+ - Sun, 07 Apr 2013 10:01:32 +0000
432
+ Connection:
433
+ - keep-alive
434
+ Content-Length:
435
+ - '50'
436
+ Content-Type:
437
+ - application/json
438
+ Server:
439
+ - bitcoin-json-rpc/v0.7.2-beta
440
+ body:
441
+ encoding: US-ASCII
442
+ string: ! '{"result":0.00000000,"error":null,"id":"jsonrpc"}
443
+
444
+ '
445
+ http_version:
446
+ recorded_at: Sun, 07 Apr 2013 10:01:32 GMT
447
+ - request:
448
+ method: post
449
+ uri: http://admin1:123@localhost:19001/
450
+ body:
451
+ encoding: US-ASCII
452
+ string: ! '{"method":"getbalance","params":["name",0],"id":"jsonrpc"}'
453
+ headers:
454
+ Accept:
455
+ - ! '*/*; q=0.5, application/xml'
456
+ Accept-Encoding:
457
+ - gzip, deflate
458
+ Content-Length:
459
+ - '58'
460
+ User-Agent:
461
+ - Ruby
462
+ response:
463
+ status:
464
+ code: 200
465
+ message: OK
466
+ headers:
467
+ Date:
468
+ - Sun, 07 Apr 2013 10:01:32 +0000
469
+ Connection:
470
+ - keep-alive
471
+ Content-Length:
472
+ - '50'
473
+ Content-Type:
474
+ - application/json
475
+ Server:
476
+ - bitcoin-json-rpc/v0.7.2-beta
477
+ body:
478
+ encoding: US-ASCII
479
+ string: ! '{"result":0.00000000,"error":null,"id":"jsonrpc"}
480
+
481
+ '
482
+ http_version:
483
+ recorded_at: Sun, 07 Apr 2013 10:01:32 GMT
484
+ - request:
485
+ method: post
486
+ uri: http://admin1:123@localhost:19001/
487
+ body:
488
+ encoding: US-ASCII
489
+ string: ! '{"method":"getbalance","params":["nona",0],"id":"jsonrpc"}'
490
+ headers:
491
+ Accept:
492
+ - ! '*/*; q=0.5, application/xml'
493
+ Accept-Encoding:
494
+ - gzip, deflate
495
+ Content-Length:
496
+ - '58'
497
+ User-Agent:
498
+ - Ruby
499
+ response:
500
+ status:
501
+ code: 200
502
+ message: OK
503
+ headers:
504
+ Date:
505
+ - Sun, 07 Apr 2013 10:01:32 +0000
506
+ Connection:
507
+ - keep-alive
508
+ Content-Length:
509
+ - '51'
510
+ Content-Type:
511
+ - application/json
512
+ Server:
513
+ - bitcoin-json-rpc/v0.7.2-beta
514
+ body:
515
+ encoding: US-ASCII
516
+ string: ! '{"result":10.70000000,"error":null,"id":"jsonrpc"}
517
+
518
+ '
519
+ http_version:
520
+ recorded_at: Sun, 07 Apr 2013 10:01:32 GMT
225
521
  - request:
226
522
  method: post
227
523
  uri: http://admin1:123@localhost:19001/
@@ -243,7 +539,7 @@ http_interactions:
243
539
  message: OK
244
540
  headers:
245
541
  Date:
246
- - Sat, 09 Mar 2013 05:20:07 +0000
542
+ - Sun, 07 Apr 2013 10:01:32 +0000
247
543
  Connection:
248
544
  - keep-alive
249
545
  Content-Length:
@@ -258,7 +554,7 @@ http_interactions:
258
554
 
259
555
  '
260
556
  http_version:
261
- recorded_at: Sat, 09 Mar 2013 05:20:07 GMT
557
+ recorded_at: Sun, 07 Apr 2013 10:01:32 GMT
262
558
  - request:
263
559
  method: post
264
560
  uri: http://admin1:123@localhost:19001/
@@ -280,7 +576,7 @@ http_interactions:
280
576
  message: OK
281
577
  headers:
282
578
  Date:
283
- - Sat, 09 Mar 2013 05:20:07 +0000
579
+ - Sun, 07 Apr 2013 10:01:32 +0000
284
580
  Connection:
285
581
  - keep-alive
286
582
  Content-Length:
@@ -295,7 +591,7 @@ http_interactions:
295
591
 
296
592
  '
297
593
  http_version:
298
- recorded_at: Sat, 09 Mar 2013 05:20:07 GMT
594
+ recorded_at: Sun, 07 Apr 2013 10:01:32 GMT
299
595
  - request:
300
596
  method: post
301
597
  uri: http://admin1:123@localhost:19001/
@@ -317,7 +613,7 @@ http_interactions:
317
613
  message: OK
318
614
  headers:
319
615
  Date:
320
- - Sat, 09 Mar 2013 05:20:07 +0000
616
+ - Sun, 07 Apr 2013 10:01:32 +0000
321
617
  Connection:
322
618
  - keep-alive
323
619
  Content-Length:
@@ -332,13 +628,13 @@ http_interactions:
332
628
 
333
629
  '
334
630
  http_version:
335
- recorded_at: Sat, 09 Mar 2013 05:20:07 GMT
631
+ recorded_at: Sun, 07 Apr 2013 10:01:32 GMT
336
632
  - request:
337
633
  method: post
338
634
  uri: http://admin1:123@localhost:19001/
339
635
  body:
340
636
  encoding: US-ASCII
341
- string: ! '{"method":"sendfrom","params":["nomoney","mi487X6jj8ggY6FAoG8ibv7qomcq9TXL1U",0.0,0],"id":"jsonrpc"}'
637
+ string: ! '{"method":"sendfrom","params":["nomoney","mo66G38qvYg2xFhoGrHPbgb6FCUvxGVq25",0.0,0],"id":"jsonrpc"}'
342
638
  headers:
343
639
  Accept:
344
640
  - ! '*/*; q=0.5, application/xml'
@@ -354,7 +650,7 @@ http_interactions:
354
650
  message: Internal Server Error
355
651
  headers:
356
652
  Date:
357
- - Sat, 09 Mar 2013 05:20:07 +0000
653
+ - Sun, 07 Apr 2013 10:01:32 +0000
358
654
  Connection:
359
655
  - close
360
656
  Content-Length:
@@ -369,7 +665,7 @@ http_interactions:
369
665
 
370
666
  '
371
667
  http_version:
372
- recorded_at: Sat, 09 Mar 2013 05:20:07 GMT
668
+ recorded_at: Sun, 07 Apr 2013 10:01:32 GMT
373
669
  - request:
374
670
  method: post
375
671
  uri: http://admin1:123@localhost:19001/
@@ -391,7 +687,7 @@ http_interactions:
391
687
  message: OK
392
688
  headers:
393
689
  Date:
394
- - Sat, 09 Mar 2013 05:20:07 +0000
690
+ - Sun, 07 Apr 2013 10:01:32 +0000
395
691
  Connection:
396
692
  - keep-alive
397
693
  Content-Length:
@@ -402,11 +698,159 @@ http_interactions:
402
698
  - bitcoin-json-rpc/v0.7.2-beta
403
699
  body:
404
700
  encoding: US-ASCII
405
- string: ! '{"result":8790.00000000,"error":null,"id":"jsonrpc"}
701
+ string: ! '{"result":8380.28750000,"error":null,"id":"jsonrpc"}
702
+
703
+ '
704
+ http_version:
705
+ recorded_at: Sun, 07 Apr 2013 10:01:32 GMT
706
+ - request:
707
+ method: post
708
+ uri: http://admin1:123@localhost:19001/
709
+ body:
710
+ encoding: US-ASCII
711
+ string: ! '{"method":"getbalance","params":["1",0],"id":"jsonrpc"}'
712
+ headers:
713
+ Accept:
714
+ - ! '*/*; q=0.5, application/xml'
715
+ Accept-Encoding:
716
+ - gzip, deflate
717
+ Content-Length:
718
+ - '55'
719
+ User-Agent:
720
+ - Ruby
721
+ response:
722
+ status:
723
+ code: 200
724
+ message: OK
725
+ headers:
726
+ Date:
727
+ - Sun, 07 Apr 2013 10:01:32 +0000
728
+ Connection:
729
+ - keep-alive
730
+ Content-Length:
731
+ - '52'
732
+ Content-Type:
733
+ - application/json
734
+ Server:
735
+ - bitcoin-json-rpc/v0.7.2-beta
736
+ body:
737
+ encoding: US-ASCII
738
+ string: ! '{"result":399.00000000,"error":null,"id":"jsonrpc"}
739
+
740
+ '
741
+ http_version:
742
+ recorded_at: Sun, 07 Apr 2013 10:01:32 GMT
743
+ - request:
744
+ method: post
745
+ uri: http://admin1:123@localhost:19001/
746
+ body:
747
+ encoding: US-ASCII
748
+ string: ! '{"method":"getbalance","params":["accountname",0],"id":"jsonrpc"}'
749
+ headers:
750
+ Accept:
751
+ - ! '*/*; q=0.5, application/xml'
752
+ Accept-Encoding:
753
+ - gzip, deflate
754
+ Content-Length:
755
+ - '65'
756
+ User-Agent:
757
+ - Ruby
758
+ response:
759
+ status:
760
+ code: 200
761
+ message: OK
762
+ headers:
763
+ Date:
764
+ - Sun, 07 Apr 2013 10:01:32 +0000
765
+ Connection:
766
+ - keep-alive
767
+ Content-Length:
768
+ - '50'
769
+ Content-Type:
770
+ - application/json
771
+ Server:
772
+ - bitcoin-json-rpc/v0.7.2-beta
773
+ body:
774
+ encoding: US-ASCII
775
+ string: ! '{"result":0.00000000,"error":null,"id":"jsonrpc"}
776
+
777
+ '
778
+ http_version:
779
+ recorded_at: Sun, 07 Apr 2013 10:01:32 GMT
780
+ - request:
781
+ method: post
782
+ uri: http://admin1:123@localhost:19001/
783
+ body:
784
+ encoding: US-ASCII
785
+ string: ! '{"method":"getbalance","params":["name",0],"id":"jsonrpc"}'
786
+ headers:
787
+ Accept:
788
+ - ! '*/*; q=0.5, application/xml'
789
+ Accept-Encoding:
790
+ - gzip, deflate
791
+ Content-Length:
792
+ - '58'
793
+ User-Agent:
794
+ - Ruby
795
+ response:
796
+ status:
797
+ code: 200
798
+ message: OK
799
+ headers:
800
+ Date:
801
+ - Sun, 07 Apr 2013 10:01:32 +0000
802
+ Connection:
803
+ - keep-alive
804
+ Content-Length:
805
+ - '50'
806
+ Content-Type:
807
+ - application/json
808
+ Server:
809
+ - bitcoin-json-rpc/v0.7.2-beta
810
+ body:
811
+ encoding: US-ASCII
812
+ string: ! '{"result":0.00000000,"error":null,"id":"jsonrpc"}
813
+
814
+ '
815
+ http_version:
816
+ recorded_at: Sun, 07 Apr 2013 10:01:32 GMT
817
+ - request:
818
+ method: post
819
+ uri: http://admin1:123@localhost:19001/
820
+ body:
821
+ encoding: US-ASCII
822
+ string: ! '{"method":"getbalance","params":["nona",0],"id":"jsonrpc"}'
823
+ headers:
824
+ Accept:
825
+ - ! '*/*; q=0.5, application/xml'
826
+ Accept-Encoding:
827
+ - gzip, deflate
828
+ Content-Length:
829
+ - '58'
830
+ User-Agent:
831
+ - Ruby
832
+ response:
833
+ status:
834
+ code: 200
835
+ message: OK
836
+ headers:
837
+ Date:
838
+ - Sun, 07 Apr 2013 10:01:32 +0000
839
+ Connection:
840
+ - keep-alive
841
+ Content-Length:
842
+ - '51'
843
+ Content-Type:
844
+ - application/json
845
+ Server:
846
+ - bitcoin-json-rpc/v0.7.2-beta
847
+ body:
848
+ encoding: US-ASCII
849
+ string: ! '{"result":10.70000000,"error":null,"id":"jsonrpc"}
406
850
 
407
851
  '
408
852
  http_version:
409
- recorded_at: Sat, 09 Mar 2013 05:20:07 GMT
853
+ recorded_at: Sun, 07 Apr 2013 10:01:32 GMT
410
854
  - request:
411
855
  method: post
412
856
  uri: http://admin1:123@localhost:19001/
@@ -428,7 +872,7 @@ http_interactions:
428
872
  message: OK
429
873
  headers:
430
874
  Date:
431
- - Sat, 09 Mar 2013 05:20:07 +0000
875
+ - Sun, 07 Apr 2013 10:01:32 +0000
432
876
  Connection:
433
877
  - keep-alive
434
878
  Content-Length:
@@ -443,7 +887,7 @@ http_interactions:
443
887
 
444
888
  '
445
889
  http_version:
446
- recorded_at: Sat, 09 Mar 2013 05:20:07 GMT
890
+ recorded_at: Sun, 07 Apr 2013 10:01:32 GMT
447
891
  - request:
448
892
  method: post
449
893
  uri: http://admin1:123@localhost:19001/
@@ -465,7 +909,7 @@ http_interactions:
465
909
  message: OK
466
910
  headers:
467
911
  Date:
468
- - Sat, 09 Mar 2013 05:20:07 +0000
912
+ - Sun, 07 Apr 2013 10:01:32 +0000
469
913
  Connection:
470
914
  - keep-alive
471
915
  Content-Length:
@@ -480,5 +924,5 @@ http_interactions:
480
924
 
481
925
  '
482
926
  http_version:
483
- recorded_at: Sat, 09 Mar 2013 05:20:07 GMT
927
+ recorded_at: Sun, 07 Apr 2013 10:01:33 GMT
484
928
  recorded_with: VCR 2.4.0