bit_wallet 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitmodules +1 -1
- data/Gemfile +6 -0
- data/README.md +1 -0
- data/bit_wallet.gemspec +1 -1
- data/lib/bit_wallet/account.rb +20 -0
- data/lib/bit_wallet/transaction.rb +9 -8
- data/lib/bit_wallet/version.rb +1 -1
- data/spec/bit_wallet/account_spec.rb +16 -0
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/_balance/should_be_able_to_override_the_min_conf.yml +87 -13
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/_balance/should_default_to_the_config_min_conf.yml +87 -13
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/_balance/should_return_the_balance_of_the_account.yml +93 -19
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/_recent_transactions/should_default_to_list_10_transactions.yml +146 -72
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/_recent_transactions/when_transaction_limit_is_6/should_list_the_6_most_recent_transactions.yml +119 -45
- 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
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/_send_amount/account_does_not_have_enough_money/should_fail_with_the_InsufficientFunds_error.yml +96 -22
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/_send_amount/should_send_money_to_the_given_address.yml +98 -24
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/_send_many/should_send_the_amounts_of_money_to_the_specified_accounts.yml +262 -0
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/_total_received/should_return_the_total_amount_received_by_the_address.yml +4 -4
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/addresses/.yml +4 -4
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/should_be_assigned_that_name.yml +87 -13
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/should_have_a_default_name.yml +4 -4
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/when_the_account_name_already_exists/should_return_that_same_address.yml +87 -13
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/wallet/.yml +4 -4
- data/spec/fixtures/vcr_cassettes/BitWallet_Accounts/_includes_account_name_account_/should_return_true_if_the_array_includes_the_account.yml +121 -10
- data/spec/fixtures/vcr_cassettes/BitWallet_Accounts/_new/should_create_a_new_BitWallet_Account_with_a_default_address.yml +121 -10
- data/spec/fixtures/vcr_cassettes/BitWallet_Accounts/_with_balance/should_return_accounts_with_a_balance_0.yml +480 -36
- data/spec/fixtures/vcr_cassettes/BitWallet_Accounts/wallet/.yml +118 -7
- data/spec/fixtures/vcr_cassettes/BitWallet_Address/_total_received/should_return_the_total_amount_received_by_the_address.yml +8 -8
- data/spec/fixtures/vcr_cassettes/BitWallet_Address/account/.yml +8 -8
- data/spec/fixtures/vcr_cassettes/BitWallet_Address/on_initialization/address_given_already_exists/should_not_create_an_address.yml +4 -4
- data/spec/fixtures/vcr_cassettes/BitWallet_Address/on_initialization/no_address_is_given/should_create_an_address.yml +8 -8
- data/spec/fixtures/vcr_cassettes/BitWallet_Addresses/_new/with_address_string_given/should_return_an_Address_with_the_given_address_string.yml +4 -4
- 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
- data/spec/fixtures/vcr_cassettes/BitWallet_Addresses/account/.yml +4 -4
- data/spec/fixtures/vcr_cassettes/BitWallet_Addresses/new/.yml +8 -8
- data/spec/fixtures/vcr_cassettes/BitWallet_Transaction/on_initialization/should_be_able_to_take_a_bitcoind_hash.yml +235 -13
- data/spec/fixtures/vcr_cassettes/BitWallet_Wallet/_accounts/should_return_array_of_BitWallet_Accounts.yml +268 -9
- data/spec/fixtures/vcr_cassettes/BitWallet_Wallet/_recent_transactions/should_allow_overriding_of_the_transaction_limit.yml +280 -58
- 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
- metadata +8 -8
- 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
|
-
- Sun, 07 Apr 2013
|
24
|
+
- Sun, 07 Apr 2013 10:01:20 +0000
|
25
25
|
Connection:
|
26
26
|
- keep-alive
|
27
27
|
Content-Length:
|
28
|
-
- '
|
28
|
+
- '109'
|
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":{"":
|
35
|
+
string: ! '{"result":{"":8426.29200000,"1":0.00000000,"name":0.00000000,"nona":0.00000000},"error":null,"id":"jsonrpc"}
|
36
36
|
|
37
37
|
'
|
38
38
|
http_version:
|
39
|
-
recorded_at: Sun, 07 Apr 2013
|
39
|
+
recorded_at: Sun, 07 Apr 2013 10:01:20 GMT
|
40
40
|
- request:
|
41
41
|
method: post
|
42
42
|
uri: http://admin1:123@localhost:19001/
|
@@ -58,7 +58,7 @@ http_interactions:
|
|
58
58
|
message: OK
|
59
59
|
headers:
|
60
60
|
Date:
|
61
|
-
- Sun, 07 Apr 2013
|
61
|
+
- Sun, 07 Apr 2013 10:01:20 +0000
|
62
62
|
Connection:
|
63
63
|
- keep-alive
|
64
64
|
Content-Length:
|
@@ -69,11 +69,11 @@ http_interactions:
|
|
69
69
|
- bitcoin-json-rpc/v0.7.2-beta
|
70
70
|
body:
|
71
71
|
encoding: US-ASCII
|
72
|
-
string: ! '{"result":"
|
72
|
+
string: ! '{"result":"mpJYbgMc5Lp63R23fMsSZLp8XpL9QLkjDf","error":null,"id":"jsonrpc"}
|
73
73
|
|
74
74
|
'
|
75
75
|
http_version:
|
76
|
-
recorded_at: Sun, 07 Apr 2013
|
76
|
+
recorded_at: Sun, 07 Apr 2013 10:01:20 GMT
|
77
77
|
- request:
|
78
78
|
method: post
|
79
79
|
uri: http://admin1:123@localhost:19001/
|
@@ -95,7 +95,7 @@ http_interactions:
|
|
95
95
|
message: OK
|
96
96
|
headers:
|
97
97
|
Date:
|
98
|
-
- Sun, 07 Apr 2013
|
98
|
+
- Sun, 07 Apr 2013 10:01:20 +0000
|
99
99
|
Connection:
|
100
100
|
- keep-alive
|
101
101
|
Content-Length:
|
@@ -106,17 +106,91 @@ http_interactions:
|
|
106
106
|
- bitcoin-json-rpc/v0.7.2-beta
|
107
107
|
body:
|
108
108
|
encoding: US-ASCII
|
109
|
-
string: ! '{"result":"
|
109
|
+
string: ! '{"result":"mqJHCXEhuMEEm27L2WyzYb2DgSVxzEyGD9","error":null,"id":"jsonrpc"}
|
110
110
|
|
111
111
|
'
|
112
112
|
http_version:
|
113
|
-
recorded_at: Sun, 07 Apr 2013
|
113
|
+
recorded_at: Sun, 07 Apr 2013 10:01:20 GMT
|
114
114
|
- request:
|
115
115
|
method: post
|
116
116
|
uri: http://admin1:123@localhost:19001/
|
117
117
|
body:
|
118
118
|
encoding: US-ASCII
|
119
|
-
string: ! '{"method":"
|
119
|
+
string: ! '{"method":"getnewaddress","params":["name"],"id":"jsonrpc"}'
|
120
|
+
headers:
|
121
|
+
Accept:
|
122
|
+
- ! '*/*; q=0.5, application/xml'
|
123
|
+
Accept-Encoding:
|
124
|
+
- gzip, deflate
|
125
|
+
Content-Length:
|
126
|
+
- '59'
|
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:21 +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":"mtDGW9uZrRTErptEW1UnHeYLh5J3H4TyDB","error":null,"id":"jsonrpc"}
|
147
|
+
|
148
|
+
'
|
149
|
+
http_version:
|
150
|
+
recorded_at: Sun, 07 Apr 2013 10:01:21 GMT
|
151
|
+
- request:
|
152
|
+
method: post
|
153
|
+
uri: http://admin1:123@localhost:19001/
|
154
|
+
body:
|
155
|
+
encoding: US-ASCII
|
156
|
+
string: ! '{"method":"getnewaddress","params":["nona"],"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:21 +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":"mt4r2DTg2zRqbAboQG3t5sTJu1VG9wtoom","error":null,"id":"jsonrpc"}
|
184
|
+
|
185
|
+
'
|
186
|
+
http_version:
|
187
|
+
recorded_at: Sun, 07 Apr 2013 10:01:21 GMT
|
188
|
+
- request:
|
189
|
+
method: post
|
190
|
+
uri: http://admin1:123@localhost:19001/
|
191
|
+
body:
|
192
|
+
encoding: US-ASCII
|
193
|
+
string: ! '{"method":"sendfrom","params":["","mqJHCXEhuMEEm27L2WyzYb2DgSVxzEyGD9",1,0],"id":"jsonrpc"}'
|
120
194
|
headers:
|
121
195
|
Accept:
|
122
196
|
- ! '*/*; q=0.5, application/xml'
|
@@ -132,7 +206,7 @@ http_interactions:
|
|
132
206
|
message: OK
|
133
207
|
headers:
|
134
208
|
Date:
|
135
|
-
- Sun, 07 Apr 2013
|
209
|
+
- Sun, 07 Apr 2013 10:01:21 +0000
|
136
210
|
Connection:
|
137
211
|
- keep-alive
|
138
212
|
Content-Length:
|
@@ -143,17 +217,17 @@ http_interactions:
|
|
143
217
|
- bitcoin-json-rpc/v0.7.2-beta
|
144
218
|
body:
|
145
219
|
encoding: US-ASCII
|
146
|
-
string: ! '{"result":"
|
220
|
+
string: ! '{"result":"123ef5ffaf9a98ef740a511f4e496823841d08fa54fa65e4507441c7cb8d96f2","error":null,"id":"jsonrpc"}
|
147
221
|
|
148
222
|
'
|
149
223
|
http_version:
|
150
|
-
recorded_at: Sun, 07 Apr 2013
|
224
|
+
recorded_at: Sun, 07 Apr 2013 10:01:21 GMT
|
151
225
|
- request:
|
152
226
|
method: post
|
153
227
|
uri: http://admin1:123@localhost:19001/
|
154
228
|
body:
|
155
229
|
encoding: US-ASCII
|
156
|
-
string: ! '{"method":"sendfrom","params":["","
|
230
|
+
string: ! '{"method":"sendfrom","params":["","mqJHCXEhuMEEm27L2WyzYb2DgSVxzEyGD9",2,0],"id":"jsonrpc"}'
|
157
231
|
headers:
|
158
232
|
Accept:
|
159
233
|
- ! '*/*; q=0.5, application/xml'
|
@@ -169,7 +243,7 @@ http_interactions:
|
|
169
243
|
message: OK
|
170
244
|
headers:
|
171
245
|
Date:
|
172
|
-
- Sun, 07 Apr 2013
|
246
|
+
- Sun, 07 Apr 2013 10:01:21 +0000
|
173
247
|
Connection:
|
174
248
|
- keep-alive
|
175
249
|
Content-Length:
|
@@ -180,17 +254,17 @@ http_interactions:
|
|
180
254
|
- bitcoin-json-rpc/v0.7.2-beta
|
181
255
|
body:
|
182
256
|
encoding: US-ASCII
|
183
|
-
string: ! '{"result":"
|
257
|
+
string: ! '{"result":"8c9466fe53167cfea8cecaa6a966172e44ea56b5e21bbe9d31797b2760e949fa","error":null,"id":"jsonrpc"}
|
184
258
|
|
185
259
|
'
|
186
260
|
http_version:
|
187
|
-
recorded_at: Sun, 07 Apr 2013
|
261
|
+
recorded_at: Sun, 07 Apr 2013 10:01:21 GMT
|
188
262
|
- request:
|
189
263
|
method: post
|
190
264
|
uri: http://admin1:123@localhost:19001/
|
191
265
|
body:
|
192
266
|
encoding: US-ASCII
|
193
|
-
string: ! '{"method":"sendfrom","params":["","
|
267
|
+
string: ! '{"method":"sendfrom","params":["","mqJHCXEhuMEEm27L2WyzYb2DgSVxzEyGD9",3,0],"id":"jsonrpc"}'
|
194
268
|
headers:
|
195
269
|
Accept:
|
196
270
|
- ! '*/*; q=0.5, application/xml'
|
@@ -206,7 +280,7 @@ http_interactions:
|
|
206
280
|
message: OK
|
207
281
|
headers:
|
208
282
|
Date:
|
209
|
-
- Sun, 07 Apr 2013
|
283
|
+
- Sun, 07 Apr 2013 10:01:21 +0000
|
210
284
|
Connection:
|
211
285
|
- keep-alive
|
212
286
|
Content-Length:
|
@@ -217,17 +291,17 @@ http_interactions:
|
|
217
291
|
- bitcoin-json-rpc/v0.7.2-beta
|
218
292
|
body:
|
219
293
|
encoding: US-ASCII
|
220
|
-
string: ! '{"result":"
|
294
|
+
string: ! '{"result":"a003cac652fe505109712d64a43654e17d0d24c34997038ffd785d722a24073f","error":null,"id":"jsonrpc"}
|
221
295
|
|
222
296
|
'
|
223
297
|
http_version:
|
224
|
-
recorded_at: Sun, 07 Apr 2013
|
298
|
+
recorded_at: Sun, 07 Apr 2013 10:01:21 GMT
|
225
299
|
- request:
|
226
300
|
method: post
|
227
301
|
uri: http://admin1:123@localhost:19001/
|
228
302
|
body:
|
229
303
|
encoding: US-ASCII
|
230
|
-
string: ! '{"method":"sendfrom","params":["","
|
304
|
+
string: ! '{"method":"sendfrom","params":["","mqJHCXEhuMEEm27L2WyzYb2DgSVxzEyGD9",4,0],"id":"jsonrpc"}'
|
231
305
|
headers:
|
232
306
|
Accept:
|
233
307
|
- ! '*/*; q=0.5, application/xml'
|
@@ -243,7 +317,7 @@ http_interactions:
|
|
243
317
|
message: OK
|
244
318
|
headers:
|
245
319
|
Date:
|
246
|
-
- Sun, 07 Apr 2013
|
320
|
+
- Sun, 07 Apr 2013 10:01:21 +0000
|
247
321
|
Connection:
|
248
322
|
- keep-alive
|
249
323
|
Content-Length:
|
@@ -254,17 +328,17 @@ http_interactions:
|
|
254
328
|
- bitcoin-json-rpc/v0.7.2-beta
|
255
329
|
body:
|
256
330
|
encoding: US-ASCII
|
257
|
-
string: ! '{"result":"
|
331
|
+
string: ! '{"result":"d8881f10d5b3198223ca8e03385f49412b2d07eba07cc23e72ae478efdda0061","error":null,"id":"jsonrpc"}
|
258
332
|
|
259
333
|
'
|
260
334
|
http_version:
|
261
|
-
recorded_at: Sun, 07 Apr 2013
|
335
|
+
recorded_at: Sun, 07 Apr 2013 10:01:21 GMT
|
262
336
|
- request:
|
263
337
|
method: post
|
264
338
|
uri: http://admin1:123@localhost:19001/
|
265
339
|
body:
|
266
340
|
encoding: US-ASCII
|
267
|
-
string: ! '{"method":"sendfrom","params":["","
|
341
|
+
string: ! '{"method":"sendfrom","params":["","mqJHCXEhuMEEm27L2WyzYb2DgSVxzEyGD9",5,0],"id":"jsonrpc"}'
|
268
342
|
headers:
|
269
343
|
Accept:
|
270
344
|
- ! '*/*; q=0.5, application/xml'
|
@@ -280,7 +354,7 @@ http_interactions:
|
|
280
354
|
message: OK
|
281
355
|
headers:
|
282
356
|
Date:
|
283
|
-
- Sun, 07 Apr 2013
|
357
|
+
- Sun, 07 Apr 2013 10:01:21 +0000
|
284
358
|
Connection:
|
285
359
|
- keep-alive
|
286
360
|
Content-Length:
|
@@ -291,17 +365,17 @@ http_interactions:
|
|
291
365
|
- bitcoin-json-rpc/v0.7.2-beta
|
292
366
|
body:
|
293
367
|
encoding: US-ASCII
|
294
|
-
string: ! '{"result":"
|
368
|
+
string: ! '{"result":"c634c0c20e8c693d36b187b8876da81c07e863fddbace50f546fa0141a5aed28","error":null,"id":"jsonrpc"}
|
295
369
|
|
296
370
|
'
|
297
371
|
http_version:
|
298
|
-
recorded_at: Sun, 07 Apr 2013
|
372
|
+
recorded_at: Sun, 07 Apr 2013 10:01:21 GMT
|
299
373
|
- request:
|
300
374
|
method: post
|
301
375
|
uri: http://admin1:123@localhost:19001/
|
302
376
|
body:
|
303
377
|
encoding: US-ASCII
|
304
|
-
string: ! '{"method":"sendfrom","params":["","
|
378
|
+
string: ! '{"method":"sendfrom","params":["","mqJHCXEhuMEEm27L2WyzYb2DgSVxzEyGD9",6,0],"id":"jsonrpc"}'
|
305
379
|
headers:
|
306
380
|
Accept:
|
307
381
|
- ! '*/*; q=0.5, application/xml'
|
@@ -317,7 +391,7 @@ http_interactions:
|
|
317
391
|
message: OK
|
318
392
|
headers:
|
319
393
|
Date:
|
320
|
-
- Sun, 07 Apr 2013
|
394
|
+
- Sun, 07 Apr 2013 10:01:21 +0000
|
321
395
|
Connection:
|
322
396
|
- keep-alive
|
323
397
|
Content-Length:
|
@@ -328,17 +402,17 @@ http_interactions:
|
|
328
402
|
- bitcoin-json-rpc/v0.7.2-beta
|
329
403
|
body:
|
330
404
|
encoding: US-ASCII
|
331
|
-
string: ! '{"result":"
|
405
|
+
string: ! '{"result":"8e791d11ae9df179c2ce07bee586f002550dd9248bf97c0acbdd748a9b024bef","error":null,"id":"jsonrpc"}
|
332
406
|
|
333
407
|
'
|
334
408
|
http_version:
|
335
|
-
recorded_at: Sun, 07 Apr 2013
|
409
|
+
recorded_at: Sun, 07 Apr 2013 10:01:21 GMT
|
336
410
|
- request:
|
337
411
|
method: post
|
338
412
|
uri: http://admin1:123@localhost:19001/
|
339
413
|
body:
|
340
414
|
encoding: US-ASCII
|
341
|
-
string: ! '{"method":"sendfrom","params":["","
|
415
|
+
string: ! '{"method":"sendfrom","params":["","mqJHCXEhuMEEm27L2WyzYb2DgSVxzEyGD9",7,0],"id":"jsonrpc"}'
|
342
416
|
headers:
|
343
417
|
Accept:
|
344
418
|
- ! '*/*; q=0.5, application/xml'
|
@@ -354,7 +428,7 @@ http_interactions:
|
|
354
428
|
message: OK
|
355
429
|
headers:
|
356
430
|
Date:
|
357
|
-
- Sun, 07 Apr 2013
|
431
|
+
- Sun, 07 Apr 2013 10:01:21 +0000
|
358
432
|
Connection:
|
359
433
|
- keep-alive
|
360
434
|
Content-Length:
|
@@ -365,17 +439,17 @@ http_interactions:
|
|
365
439
|
- bitcoin-json-rpc/v0.7.2-beta
|
366
440
|
body:
|
367
441
|
encoding: US-ASCII
|
368
|
-
string: ! '{"result":"
|
442
|
+
string: ! '{"result":"e4cd79fe5d1555386fade079be3d2165e05b7615f5731af6e5714b3c73b85f32","error":null,"id":"jsonrpc"}
|
369
443
|
|
370
444
|
'
|
371
445
|
http_version:
|
372
|
-
recorded_at: Sun, 07 Apr 2013
|
446
|
+
recorded_at: Sun, 07 Apr 2013 10:01:21 GMT
|
373
447
|
- request:
|
374
448
|
method: post
|
375
449
|
uri: http://admin1:123@localhost:19001/
|
376
450
|
body:
|
377
451
|
encoding: US-ASCII
|
378
|
-
string: ! '{"method":"sendfrom","params":["","
|
452
|
+
string: ! '{"method":"sendfrom","params":["","mqJHCXEhuMEEm27L2WyzYb2DgSVxzEyGD9",8,0],"id":"jsonrpc"}'
|
379
453
|
headers:
|
380
454
|
Accept:
|
381
455
|
- ! '*/*; q=0.5, application/xml'
|
@@ -391,7 +465,7 @@ http_interactions:
|
|
391
465
|
message: OK
|
392
466
|
headers:
|
393
467
|
Date:
|
394
|
-
- Sun, 07 Apr 2013
|
468
|
+
- Sun, 07 Apr 2013 10:01:21 +0000
|
395
469
|
Connection:
|
396
470
|
- keep-alive
|
397
471
|
Content-Length:
|
@@ -402,11 +476,11 @@ http_interactions:
|
|
402
476
|
- bitcoin-json-rpc/v0.7.2-beta
|
403
477
|
body:
|
404
478
|
encoding: US-ASCII
|
405
|
-
string: ! '{"result":"
|
479
|
+
string: ! '{"result":"85168871234439c6c45155362c73b81fc8e7b3a9e18f273dd36614296f59ecda","error":null,"id":"jsonrpc"}
|
406
480
|
|
407
481
|
'
|
408
482
|
http_version:
|
409
|
-
recorded_at: Sun, 07 Apr 2013
|
483
|
+
recorded_at: Sun, 07 Apr 2013 10:01:21 GMT
|
410
484
|
- request:
|
411
485
|
method: post
|
412
486
|
uri: http://admin1:123@localhost:19001/
|
@@ -428,7 +502,7 @@ http_interactions:
|
|
428
502
|
message: OK
|
429
503
|
headers:
|
430
504
|
Date:
|
431
|
-
- Sun, 07 Apr 2013
|
505
|
+
- Sun, 07 Apr 2013 10:01:21 +0000
|
432
506
|
Connection:
|
433
507
|
- keep-alive
|
434
508
|
Content-Length:
|
@@ -439,9 +513,9 @@ http_interactions:
|
|
439
513
|
- bitcoin-json-rpc/v0.7.2-beta
|
440
514
|
body:
|
441
515
|
encoding: US-ASCII
|
442
|
-
string: ! '{"result":[{"account":"1","address":"
|
516
|
+
string: ! '{"result":[{"account":"1","address":"mqJHCXEhuMEEm27L2WyzYb2DgSVxzEyGD9","category":"receive","amount":3.00000000,"confirmations":0,"txid":"a003cac652fe505109712d64a43654e17d0d24c34997038ffd785d722a24073f","time":1365328881,"timereceived":1365328881},{"account":"1","address":"mqJHCXEhuMEEm27L2WyzYb2DgSVxzEyGD9","category":"receive","amount":4.00000000,"confirmations":0,"txid":"d8881f10d5b3198223ca8e03385f49412b2d07eba07cc23e72ae478efdda0061","time":1365328881,"timereceived":1365328881},{"account":"1","address":"mqJHCXEhuMEEm27L2WyzYb2DgSVxzEyGD9","category":"receive","amount":5.00000000,"confirmations":0,"txid":"c634c0c20e8c693d36b187b8876da81c07e863fddbace50f546fa0141a5aed28","time":1365328881,"timereceived":1365328881},{"account":"1","address":"mqJHCXEhuMEEm27L2WyzYb2DgSVxzEyGD9","category":"receive","amount":6.00000000,"confirmations":0,"txid":"8e791d11ae9df179c2ce07bee586f002550dd9248bf97c0acbdd748a9b024bef","time":1365328881,"timereceived":1365328881},{"account":"1","address":"mqJHCXEhuMEEm27L2WyzYb2DgSVxzEyGD9","category":"receive","amount":7.00000000,"confirmations":0,"txid":"e4cd79fe5d1555386fade079be3d2165e05b7615f5731af6e5714b3c73b85f32","time":1365328881,"timereceived":1365328881},{"account":"1","address":"mqJHCXEhuMEEm27L2WyzYb2DgSVxzEyGD9","category":"receive","amount":8.00000000,"confirmations":0,"txid":"85168871234439c6c45155362c73b81fc8e7b3a9e18f273dd36614296f59ecda","time":1365328881,"timereceived":1365328881}],"error":null,"id":"jsonrpc"}
|
443
517
|
|
444
518
|
'
|
445
519
|
http_version:
|
446
|
-
recorded_at: Sun, 07 Apr 2013
|
520
|
+
recorded_at: Sun, 07 Apr 2013 10:01:21 GMT
|
447
521
|
recorded_with: VCR 2.4.0
|
@@ -4,7 +4,7 @@ http_interactions:
|
|
4
4
|
method: post
|
5
5
|
uri: http://admin1:123@localhost:19001/
|
6
6
|
body:
|
7
|
-
encoding:
|
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
|
-
-
|
24
|
+
- Sun, 07 Apr 2013 10:00:59 +0000
|
25
25
|
Connection:
|
26
26
|
- keep-alive
|
27
27
|
Content-Length:
|
28
|
-
- '
|
28
|
+
- '109'
|
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":{"":
|
35
|
+
string: ! '{"result":{"":8497.49800000,"1":0.00000000,"name":0.00000000,"nona":0.00000000},"error":null,"id":"jsonrpc"}
|
36
36
|
|
37
37
|
'
|
38
38
|
http_version:
|
39
|
-
recorded_at:
|
39
|
+
recorded_at: Sun, 07 Apr 2013 10:00:59 GMT
|
40
40
|
- request:
|
41
41
|
method: post
|
42
42
|
uri: http://admin1:123@localhost:19001/
|
43
43
|
body:
|
44
|
-
encoding:
|
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
|
-
-
|
61
|
+
- Sun, 07 Apr 2013 10:00:59 +0000
|
62
62
|
Connection:
|
63
63
|
- keep-alive
|
64
64
|
Content-Length:
|
@@ -69,16 +69,90 @@ http_interactions:
|
|
69
69
|
- bitcoin-json-rpc/v0.7.2-beta
|
70
70
|
body:
|
71
71
|
encoding: US-ASCII
|
72
|
-
string: ! '{"result":"
|
72
|
+
string: ! '{"result":"miQ1aY8NwvZmMg9Derg1kpDRSH3UextWTa","error":null,"id":"jsonrpc"}
|
73
73
|
|
74
74
|
'
|
75
75
|
http_version:
|
76
|
-
recorded_at:
|
76
|
+
recorded_at: Sun, 07 Apr 2013 10:00:59 GMT
|
77
77
|
- request:
|
78
78
|
method: post
|
79
79
|
uri: http://admin1:123@localhost:19001/
|
80
80
|
body:
|
81
|
-
encoding:
|
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:00:59 +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":"mzizWqb8DZM91PNqNYvofyMYVSKk2s11de","error":null,"id":"jsonrpc"}
|
110
|
+
|
111
|
+
'
|
112
|
+
http_version:
|
113
|
+
recorded_at: Sun, 07 Apr 2013 10:00:59 GMT
|
114
|
+
- request:
|
115
|
+
method: post
|
116
|
+
uri: http://admin1:123@localhost:19001/
|
117
|
+
body:
|
118
|
+
encoding: US-ASCII
|
119
|
+
string: ! '{"method":"getnewaddress","params":["name"],"id":"jsonrpc"}'
|
120
|
+
headers:
|
121
|
+
Accept:
|
122
|
+
- ! '*/*; q=0.5, application/xml'
|
123
|
+
Accept-Encoding:
|
124
|
+
- gzip, deflate
|
125
|
+
Content-Length:
|
126
|
+
- '59'
|
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:00:59 +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":"miFrH9FNFw8sff74Ui5c9zG9bQJqX7HUL5","error":null,"id":"jsonrpc"}
|
147
|
+
|
148
|
+
'
|
149
|
+
http_version:
|
150
|
+
recorded_at: Sun, 07 Apr 2013 10:00:59 GMT
|
151
|
+
- request:
|
152
|
+
method: post
|
153
|
+
uri: http://admin1:123@localhost:19001/
|
154
|
+
body:
|
155
|
+
encoding: US-ASCII
|
82
156
|
string: ! '{"method":"getnewaddress","params":["nona"],"id":"jsonrpc"}'
|
83
157
|
headers:
|
84
158
|
Accept:
|
@@ -95,7 +169,7 @@ http_interactions:
|
|
95
169
|
message: OK
|
96
170
|
headers:
|
97
171
|
Date:
|
98
|
-
-
|
172
|
+
- Sun, 07 Apr 2013 10:00:59 +0000
|
99
173
|
Connection:
|
100
174
|
- keep-alive
|
101
175
|
Content-Length:
|
@@ -106,16 +180,16 @@ http_interactions:
|
|
106
180
|
- bitcoin-json-rpc/v0.7.2-beta
|
107
181
|
body:
|
108
182
|
encoding: US-ASCII
|
109
|
-
string: ! '{"result":"
|
183
|
+
string: ! '{"result":"mq54BhgnCWYaoL6wa1CNg773ZDJycPUjGz","error":null,"id":"jsonrpc"}
|
110
184
|
|
111
185
|
'
|
112
186
|
http_version:
|
113
|
-
recorded_at:
|
187
|
+
recorded_at: Sun, 07 Apr 2013 10:00:59 GMT
|
114
188
|
- request:
|
115
189
|
method: post
|
116
190
|
uri: http://admin1:123@localhost:19001/
|
117
191
|
body:
|
118
|
-
encoding:
|
192
|
+
encoding: US-ASCII
|
119
193
|
string: ! '{"method":"getbalance","params":["nona",0],"id":"jsonrpc"}'
|
120
194
|
headers:
|
121
195
|
Accept:
|
@@ -132,7 +206,7 @@ http_interactions:
|
|
132
206
|
message: OK
|
133
207
|
headers:
|
134
208
|
Date:
|
135
|
-
-
|
209
|
+
- Sun, 07 Apr 2013 10:00:59 +0000
|
136
210
|
Connection:
|
137
211
|
- keep-alive
|
138
212
|
Content-Length:
|
@@ -143,17 +217,17 @@ http_interactions:
|
|
143
217
|
- bitcoin-json-rpc/v0.7.2-beta
|
144
218
|
body:
|
145
219
|
encoding: US-ASCII
|
146
|
-
string: ! '{"result":
|
220
|
+
string: ! '{"result":5.50000000,"error":null,"id":"jsonrpc"}
|
147
221
|
|
148
222
|
'
|
149
223
|
http_version:
|
150
|
-
recorded_at:
|
224
|
+
recorded_at: Sun, 07 Apr 2013 10:00:59 GMT
|
151
225
|
- request:
|
152
226
|
method: post
|
153
227
|
uri: http://admin1:123@localhost:19001/
|
154
228
|
body:
|
155
|
-
encoding:
|
156
|
-
string: ! '{"method":"sendfrom","params":["","
|
229
|
+
encoding: US-ASCII
|
230
|
+
string: ! '{"method":"sendfrom","params":["","mq54BhgnCWYaoL6wa1CNg773ZDJycPUjGz",5.2,0],"id":"jsonrpc"}'
|
157
231
|
headers:
|
158
232
|
Accept:
|
159
233
|
- ! '*/*; q=0.5, application/xml'
|
@@ -169,7 +243,7 @@ http_interactions:
|
|
169
243
|
message: OK
|
170
244
|
headers:
|
171
245
|
Date:
|
172
|
-
-
|
246
|
+
- Sun, 07 Apr 2013 10:00:59 +0000
|
173
247
|
Connection:
|
174
248
|
- keep-alive
|
175
249
|
Content-Length:
|
@@ -180,16 +254,16 @@ http_interactions:
|
|
180
254
|
- bitcoin-json-rpc/v0.7.2-beta
|
181
255
|
body:
|
182
256
|
encoding: US-ASCII
|
183
|
-
string: ! '{"result":"
|
257
|
+
string: ! '{"result":"1941e5e4e31b5a97f50a9851ceca6ae32cff6690c1dd76d9712f59fb544a2902","error":null,"id":"jsonrpc"}
|
184
258
|
|
185
259
|
'
|
186
260
|
http_version:
|
187
|
-
recorded_at:
|
261
|
+
recorded_at: Sun, 07 Apr 2013 10:00:59 GMT
|
188
262
|
- request:
|
189
263
|
method: post
|
190
264
|
uri: http://admin1:123@localhost:19001/
|
191
265
|
body:
|
192
|
-
encoding:
|
266
|
+
encoding: US-ASCII
|
193
267
|
string: ! '{"method":"getbalance","params":["nona",0],"id":"jsonrpc"}'
|
194
268
|
headers:
|
195
269
|
Accept:
|
@@ -206,20 +280,20 @@ http_interactions:
|
|
206
280
|
message: OK
|
207
281
|
headers:
|
208
282
|
Date:
|
209
|
-
-
|
283
|
+
- Sun, 07 Apr 2013 10:00:59 +0000
|
210
284
|
Connection:
|
211
285
|
- keep-alive
|
212
286
|
Content-Length:
|
213
|
-
- '
|
287
|
+
- '51'
|
214
288
|
Content-Type:
|
215
289
|
- application/json
|
216
290
|
Server:
|
217
291
|
- bitcoin-json-rpc/v0.7.2-beta
|
218
292
|
body:
|
219
293
|
encoding: US-ASCII
|
220
|
-
string: ! '{"result":
|
294
|
+
string: ! '{"result":10.70000000,"error":null,"id":"jsonrpc"}
|
221
295
|
|
222
296
|
'
|
223
297
|
http_version:
|
224
|
-
recorded_at:
|
298
|
+
recorded_at: Sun, 07 Apr 2013 10:00:59 GMT
|
225
299
|
recorded_with: VCR 2.4.0
|