bit_wallet 0.4.0 → 0.5.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.
- checksums.yaml +15 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +4 -0
- data/Gemfile +0 -6
- data/README.md +6 -0
- data/bit_wallet.gemspec +4 -4
- data/lib/bit_wallet/account.rb +4 -12
- data/lib/bit_wallet/errors.rb +1 -0
- data/lib/bit_wallet/handles_error.rb +16 -0
- data/lib/bit_wallet/instantiates_bitcoin_client.rb +10 -0
- data/lib/bit_wallet/version.rb +1 -1
- data/lib/bit_wallet/wallet.rb +1 -3
- data/lib/bit_wallet.rb +3 -0
- data/spec/bit_wallet/account_spec.rb +1 -1
- data/spec/bit_wallet/accounts_spec.rb +1 -5
- data/spec/bit_wallet/handles_error_spec.rb +28 -0
- data/spec/bit_wallet/instantiates_bitcoin_client_spec.rb +27 -0
- data/spec/fixtures/vcr_cassettes/BitWallet_Accounts/_with_balance/should_return_accounts_with_a_balance_0.yml +102 -364
- data/spec/spec_helper.rb +2 -0
- metadata +28 -38
- data/rvmrc.sample +0 -1
@@ -11,6 +11,8 @@ http_interactions:
|
|
11
11
|
- ! '*/*; q=0.5, application/xml'
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
14
16
|
Content-Length:
|
15
17
|
- '53'
|
16
18
|
User-Agent:
|
@@ -21,22 +23,22 @@ http_interactions:
|
|
21
23
|
message: OK
|
22
24
|
headers:
|
23
25
|
Date:
|
24
|
-
-
|
26
|
+
- Sat, 01 Mar 2014 07:30:56 +0000
|
25
27
|
Connection:
|
26
28
|
- keep-alive
|
27
29
|
Content-Length:
|
28
|
-
- '
|
30
|
+
- '58'
|
29
31
|
Content-Type:
|
30
32
|
- application/json
|
31
33
|
Server:
|
32
34
|
- bitcoin-json-rpc/v0.7.2-beta
|
33
35
|
body:
|
34
36
|
encoding: US-ASCII
|
35
|
-
string: ! '{"result":{"":
|
37
|
+
string: ! '{"result":{"":8800.00000000},"error":null,"id":"jsonrpc"}
|
36
38
|
|
37
39
|
'
|
38
40
|
http_version:
|
39
|
-
recorded_at:
|
41
|
+
recorded_at: Sat, 01 Mar 2014 07:30:56 GMT
|
40
42
|
- request:
|
41
43
|
method: post
|
42
44
|
uri: http://admin1:123@localhost:19001/
|
@@ -48,6 +50,8 @@ http_interactions:
|
|
48
50
|
- ! '*/*; q=0.5, application/xml'
|
49
51
|
Accept-Encoding:
|
50
52
|
- gzip, deflate
|
53
|
+
Content-Type:
|
54
|
+
- application/json
|
51
55
|
Content-Length:
|
52
56
|
- '55'
|
53
57
|
User-Agent:
|
@@ -58,7 +62,7 @@ http_interactions:
|
|
58
62
|
message: OK
|
59
63
|
headers:
|
60
64
|
Date:
|
61
|
-
-
|
65
|
+
- Sat, 01 Mar 2014 07:30:56 +0000
|
62
66
|
Connection:
|
63
67
|
- keep-alive
|
64
68
|
Content-Length:
|
@@ -69,61 +73,26 @@ http_interactions:
|
|
69
73
|
- bitcoin-json-rpc/v0.7.2-beta
|
70
74
|
body:
|
71
75
|
encoding: US-ASCII
|
72
|
-
string: ! '{"result":"
|
76
|
+
string: ! '{"result":"mi487X6jj8ggY6FAoG8ibv7qomcq9TXL1U","error":null,"id":"jsonrpc"}
|
73
77
|
|
74
78
|
'
|
75
79
|
http_version:
|
76
|
-
recorded_at:
|
80
|
+
recorded_at: Sat, 01 Mar 2014 07:30:56 GMT
|
77
81
|
- request:
|
78
82
|
method: post
|
79
83
|
uri: http://admin1:123@localhost:19001/
|
80
84
|
body:
|
81
85
|
encoding: US-ASCII
|
82
|
-
string: ! '{"method":"getnewaddress","params":["
|
86
|
+
string: ! '{"method":"getnewaddress","params":["nomoney"],"id":"jsonrpc"}'
|
83
87
|
headers:
|
84
88
|
Accept:
|
85
89
|
- ! '*/*; q=0.5, application/xml'
|
86
90
|
Accept-Encoding:
|
87
91
|
- 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
|
99
|
-
Connection:
|
100
|
-
- keep-alive
|
101
|
-
Content-Length:
|
102
|
-
- '76'
|
103
92
|
Content-Type:
|
104
93
|
- application/json
|
105
|
-
Server:
|
106
|
-
- bitcoin-json-rpc/v0.7.2-beta
|
107
|
-
body:
|
108
|
-
encoding: US-ASCII
|
109
|
-
string: ! '{"result":"mg6xWTbVuRJSofqUnkF66yRGKLPnxB5yhU","error":null,"id":"jsonrpc"}
|
110
|
-
|
111
|
-
'
|
112
|
-
http_version:
|
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
94
|
Content-Length:
|
126
|
-
- '
|
95
|
+
- '62'
|
127
96
|
User-Agent:
|
128
97
|
- Ruby
|
129
98
|
response:
|
@@ -132,7 +101,7 @@ http_interactions:
|
|
132
101
|
message: OK
|
133
102
|
headers:
|
134
103
|
Date:
|
135
|
-
-
|
104
|
+
- Sat, 01 Mar 2014 07:30:56 +0000
|
136
105
|
Connection:
|
137
106
|
- keep-alive
|
138
107
|
Content-Length:
|
@@ -143,61 +112,26 @@ http_interactions:
|
|
143
112
|
- bitcoin-json-rpc/v0.7.2-beta
|
144
113
|
body:
|
145
114
|
encoding: US-ASCII
|
146
|
-
string: ! '{"result":"
|
115
|
+
string: ! '{"result":"mkwWW2pnqFkDfH5esHxXBNARTN7GnUDpsv","error":null,"id":"jsonrpc"}
|
147
116
|
|
148
117
|
'
|
149
118
|
http_version:
|
150
|
-
recorded_at:
|
119
|
+
recorded_at: Sat, 01 Mar 2014 07:30:56 GMT
|
151
120
|
- request:
|
152
121
|
method: post
|
153
122
|
uri: http://admin1:123@localhost:19001/
|
154
123
|
body:
|
155
124
|
encoding: US-ASCII
|
156
|
-
string: ! '{"method":"getnewaddress","params":["
|
125
|
+
string: ! '{"method":"getnewaddress","params":["moneyd"],"id":"jsonrpc"}'
|
157
126
|
headers:
|
158
127
|
Accept:
|
159
128
|
- ! '*/*; q=0.5, application/xml'
|
160
129
|
Accept-Encoding:
|
161
130
|
- 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
131
|
Content-Type:
|
178
132
|
- 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
133
|
Content-Length:
|
200
|
-
- '
|
134
|
+
- '61'
|
201
135
|
User-Agent:
|
202
136
|
- Ruby
|
203
137
|
response:
|
@@ -206,7 +140,7 @@ http_interactions:
|
|
206
140
|
message: OK
|
207
141
|
headers:
|
208
142
|
Date:
|
209
|
-
-
|
143
|
+
- Sat, 01 Mar 2014 07:30:56 +0000
|
210
144
|
Connection:
|
211
145
|
- keep-alive
|
212
146
|
Content-Length:
|
@@ -217,61 +151,26 @@ http_interactions:
|
|
217
151
|
- bitcoin-json-rpc/v0.7.2-beta
|
218
152
|
body:
|
219
153
|
encoding: US-ASCII
|
220
|
-
string: ! '{"result":"
|
154
|
+
string: ! '{"result":"mu2dJuiof4vUm3hBgX8F4FZBzsMEqPXEui","error":null,"id":"jsonrpc"}
|
221
155
|
|
222
156
|
'
|
223
157
|
http_version:
|
224
|
-
recorded_at:
|
158
|
+
recorded_at: Sat, 01 Mar 2014 07:30:56 GMT
|
225
159
|
- request:
|
226
160
|
method: post
|
227
161
|
uri: http://admin1:123@localhost:19001/
|
228
162
|
body:
|
229
163
|
encoding: US-ASCII
|
230
|
-
string: ! '{"method":"
|
164
|
+
string: ! '{"method":"getbalance","params":["",0],"id":"jsonrpc"}'
|
231
165
|
headers:
|
232
166
|
Accept:
|
233
167
|
- ! '*/*; q=0.5, application/xml'
|
234
168
|
Accept-Encoding:
|
235
169
|
- 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:01:32 +0000
|
247
|
-
Connection:
|
248
|
-
- keep-alive
|
249
|
-
Content-Length:
|
250
|
-
- '76'
|
251
170
|
Content-Type:
|
252
171
|
- application/json
|
253
|
-
Server:
|
254
|
-
- bitcoin-json-rpc/v0.7.2-beta
|
255
|
-
body:
|
256
|
-
encoding: US-ASCII
|
257
|
-
string: ! '{"result":"mgk6xXZyQNNxKhYDYhp94KdXftG8HhNPpC","error":null,"id":"jsonrpc"}
|
258
|
-
|
259
|
-
'
|
260
|
-
http_version:
|
261
|
-
recorded_at: Sun, 07 Apr 2013 10:01:32 GMT
|
262
|
-
- request:
|
263
|
-
method: post
|
264
|
-
uri: http://admin1:123@localhost:19001/
|
265
|
-
body:
|
266
|
-
encoding: US-ASCII
|
267
|
-
string: ! '{"method":"getnewaddress","params":["moneyd"],"id":"jsonrpc"}'
|
268
|
-
headers:
|
269
|
-
Accept:
|
270
|
-
- ! '*/*; q=0.5, application/xml'
|
271
|
-
Accept-Encoding:
|
272
|
-
- gzip, deflate
|
273
172
|
Content-Length:
|
274
|
-
- '
|
173
|
+
- '54'
|
275
174
|
User-Agent:
|
276
175
|
- Ruby
|
277
176
|
response:
|
@@ -280,35 +179,37 @@ http_interactions:
|
|
280
179
|
message: OK
|
281
180
|
headers:
|
282
181
|
Date:
|
283
|
-
-
|
182
|
+
- Sat, 01 Mar 2014 07:30:56 +0000
|
284
183
|
Connection:
|
285
184
|
- keep-alive
|
286
185
|
Content-Length:
|
287
|
-
- '
|
186
|
+
- '53'
|
288
187
|
Content-Type:
|
289
188
|
- application/json
|
290
189
|
Server:
|
291
190
|
- bitcoin-json-rpc/v0.7.2-beta
|
292
191
|
body:
|
293
192
|
encoding: US-ASCII
|
294
|
-
string: ! '{"result":
|
193
|
+
string: ! '{"result":8800.00000000,"error":null,"id":"jsonrpc"}
|
295
194
|
|
296
195
|
'
|
297
196
|
http_version:
|
298
|
-
recorded_at:
|
197
|
+
recorded_at: Sat, 01 Mar 2014 07:30:56 GMT
|
299
198
|
- request:
|
300
199
|
method: post
|
301
200
|
uri: http://admin1:123@localhost:19001/
|
302
201
|
body:
|
303
202
|
encoding: US-ASCII
|
304
|
-
string: ! '{"method":"
|
203
|
+
string: ! '{"method":"getbalance","params":["",0],"id":"jsonrpc"}'
|
305
204
|
headers:
|
306
205
|
Accept:
|
307
206
|
- ! '*/*; q=0.5, application/xml'
|
308
207
|
Accept-Encoding:
|
309
208
|
- gzip, deflate
|
209
|
+
Content-Type:
|
210
|
+
- application/json
|
310
211
|
Content-Length:
|
311
|
-
- '
|
212
|
+
- '54'
|
312
213
|
User-Agent:
|
313
214
|
- Ruby
|
314
215
|
response:
|
@@ -317,22 +218,22 @@ http_interactions:
|
|
317
218
|
message: OK
|
318
219
|
headers:
|
319
220
|
Date:
|
320
|
-
-
|
221
|
+
- Sat, 01 Mar 2014 07:31:03 +0000
|
321
222
|
Connection:
|
322
223
|
- keep-alive
|
323
224
|
Content-Length:
|
324
|
-
- '
|
225
|
+
- '53'
|
325
226
|
Content-Type:
|
326
227
|
- application/json
|
327
228
|
Server:
|
328
229
|
- bitcoin-json-rpc/v0.7.2-beta
|
329
230
|
body:
|
330
231
|
encoding: US-ASCII
|
331
|
-
string: ! '{"result":
|
232
|
+
string: ! '{"result":8800.00000000,"error":null,"id":"jsonrpc"}
|
332
233
|
|
333
234
|
'
|
334
235
|
http_version:
|
335
|
-
recorded_at:
|
236
|
+
recorded_at: Sat, 01 Mar 2014 07:31:03 GMT
|
336
237
|
- request:
|
337
238
|
method: post
|
338
239
|
uri: http://admin1:123@localhost:19001/
|
@@ -344,6 +245,8 @@ http_interactions:
|
|
344
245
|
- ! '*/*; q=0.5, application/xml'
|
345
246
|
Accept-Encoding:
|
346
247
|
- gzip, deflate
|
248
|
+
Content-Type:
|
249
|
+
- application/json
|
347
250
|
Content-Length:
|
348
251
|
- '54'
|
349
252
|
User-Agent:
|
@@ -354,7 +257,7 @@ http_interactions:
|
|
354
257
|
message: OK
|
355
258
|
headers:
|
356
259
|
Date:
|
357
|
-
-
|
260
|
+
- Sat, 01 Mar 2014 07:31:04 +0000
|
358
261
|
Connection:
|
359
262
|
- keep-alive
|
360
263
|
Content-Length:
|
@@ -365,61 +268,26 @@ http_interactions:
|
|
365
268
|
- bitcoin-json-rpc/v0.7.2-beta
|
366
269
|
body:
|
367
270
|
encoding: US-ASCII
|
368
|
-
string: ! '{"result":
|
271
|
+
string: ! '{"result":8800.00000000,"error":null,"id":"jsonrpc"}
|
369
272
|
|
370
273
|
'
|
371
274
|
http_version:
|
372
|
-
recorded_at:
|
275
|
+
recorded_at: Sat, 01 Mar 2014 07:31:04 GMT
|
373
276
|
- request:
|
374
277
|
method: post
|
375
278
|
uri: http://admin1:123@localhost:19001/
|
376
279
|
body:
|
377
280
|
encoding: US-ASCII
|
378
|
-
string: ! '{"method":"
|
281
|
+
string: ! '{"method":"sendfrom","params":["","mu2dJuiof4vUm3hBgX8F4FZBzsMEqPXEui",10,0],"id":"jsonrpc"}'
|
379
282
|
headers:
|
380
283
|
Accept:
|
381
284
|
- ! '*/*; q=0.5, application/xml'
|
382
285
|
Accept-Encoding:
|
383
286
|
- 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
287
|
Content-Type:
|
400
288
|
- 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"}
|
406
|
-
|
407
|
-
'
|
408
|
-
http_version:
|
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
289
|
Content-Length:
|
422
|
-
- '
|
290
|
+
- '92'
|
423
291
|
User-Agent:
|
424
292
|
- Ruby
|
425
293
|
response:
|
@@ -428,72 +296,37 @@ http_interactions:
|
|
428
296
|
message: OK
|
429
297
|
headers:
|
430
298
|
Date:
|
431
|
-
-
|
299
|
+
- Sat, 01 Mar 2014 07:32:03 +0000
|
432
300
|
Connection:
|
433
301
|
- keep-alive
|
434
302
|
Content-Length:
|
435
|
-
- '
|
303
|
+
- '106'
|
436
304
|
Content-Type:
|
437
305
|
- application/json
|
438
306
|
Server:
|
439
307
|
- bitcoin-json-rpc/v0.7.2-beta
|
440
308
|
body:
|
441
309
|
encoding: US-ASCII
|
442
|
-
string: ! '{"result":
|
310
|
+
string: ! '{"result":"f28f070d561de21f0f731bb321919ed608401c00040bcf8f98b4feb69751ac40","error":null,"id":"jsonrpc"}
|
443
311
|
|
444
312
|
'
|
445
313
|
http_version:
|
446
|
-
recorded_at:
|
314
|
+
recorded_at: Sat, 01 Mar 2014 07:32:03 GMT
|
447
315
|
- request:
|
448
316
|
method: post
|
449
317
|
uri: http://admin1:123@localhost:19001/
|
450
318
|
body:
|
451
319
|
encoding: US-ASCII
|
452
|
-
string: ! '{"method":"
|
320
|
+
string: ! '{"method":"sendfrom","params":["","mu2dJuiof4vUm3hBgX8F4FZBzsMEqPXEui",10,0],"id":"jsonrpc"}'
|
453
321
|
headers:
|
454
322
|
Accept:
|
455
323
|
- ! '*/*; q=0.5, application/xml'
|
456
324
|
Accept-Encoding:
|
457
325
|
- 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
326
|
Content-Type:
|
474
327
|
- 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
328
|
Content-Length:
|
496
|
-
- '
|
329
|
+
- '92'
|
497
330
|
User-Agent:
|
498
331
|
- Ruby
|
499
332
|
response:
|
@@ -502,35 +335,37 @@ http_interactions:
|
|
502
335
|
message: OK
|
503
336
|
headers:
|
504
337
|
Date:
|
505
|
-
-
|
338
|
+
- Sat, 01 Mar 2014 07:32:06 +0000
|
506
339
|
Connection:
|
507
340
|
- keep-alive
|
508
341
|
Content-Length:
|
509
|
-
- '
|
342
|
+
- '106'
|
510
343
|
Content-Type:
|
511
344
|
- application/json
|
512
345
|
Server:
|
513
346
|
- bitcoin-json-rpc/v0.7.2-beta
|
514
347
|
body:
|
515
348
|
encoding: US-ASCII
|
516
|
-
string: ! '{"result":
|
349
|
+
string: ! '{"result":"9ee1133e243c0ad52316c89989d5d8466412783c2192724f10c9ce6a576b9515","error":null,"id":"jsonrpc"}
|
517
350
|
|
518
351
|
'
|
519
352
|
http_version:
|
520
|
-
recorded_at:
|
353
|
+
recorded_at: Sat, 01 Mar 2014 07:32:06 GMT
|
521
354
|
- request:
|
522
355
|
method: post
|
523
356
|
uri: http://admin1:123@localhost:19001/
|
524
357
|
body:
|
525
358
|
encoding: US-ASCII
|
526
|
-
string: ! '{"method":"getbalance","params":["
|
359
|
+
string: ! '{"method":"getbalance","params":["moneyd",0],"id":"jsonrpc"}'
|
527
360
|
headers:
|
528
361
|
Accept:
|
529
362
|
- ! '*/*; q=0.5, application/xml'
|
530
363
|
Accept-Encoding:
|
531
364
|
- gzip, deflate
|
365
|
+
Content-Type:
|
366
|
+
- application/json
|
532
367
|
Content-Length:
|
533
|
-
- '
|
368
|
+
- '60'
|
534
369
|
User-Agent:
|
535
370
|
- Ruby
|
536
371
|
response:
|
@@ -539,22 +374,22 @@ http_interactions:
|
|
539
374
|
message: OK
|
540
375
|
headers:
|
541
376
|
Date:
|
542
|
-
-
|
377
|
+
- Sat, 01 Mar 2014 07:32:14 +0000
|
543
378
|
Connection:
|
544
379
|
- keep-alive
|
545
380
|
Content-Length:
|
546
|
-
- '
|
381
|
+
- '51'
|
547
382
|
Content-Type:
|
548
383
|
- application/json
|
549
384
|
Server:
|
550
385
|
- bitcoin-json-rpc/v0.7.2-beta
|
551
386
|
body:
|
552
387
|
encoding: US-ASCII
|
553
|
-
string: ! '{"result":
|
388
|
+
string: ! '{"result":20.00000000,"error":null,"id":"jsonrpc"}
|
554
389
|
|
555
390
|
'
|
556
391
|
http_version:
|
557
|
-
recorded_at:
|
392
|
+
recorded_at: Sat, 01 Mar 2014 07:32:14 GMT
|
558
393
|
- request:
|
559
394
|
method: post
|
560
395
|
uri: http://admin1:123@localhost:19001/
|
@@ -566,6 +401,8 @@ http_interactions:
|
|
566
401
|
- ! '*/*; q=0.5, application/xml'
|
567
402
|
Accept-Encoding:
|
568
403
|
- gzip, deflate
|
404
|
+
Content-Type:
|
405
|
+
- application/json
|
569
406
|
Content-Length:
|
570
407
|
- '60'
|
571
408
|
User-Agent:
|
@@ -576,7 +413,7 @@ http_interactions:
|
|
576
413
|
message: OK
|
577
414
|
headers:
|
578
415
|
Date:
|
579
|
-
-
|
416
|
+
- Sat, 01 Mar 2014 07:32:15 +0000
|
580
417
|
Connection:
|
581
418
|
- keep-alive
|
582
419
|
Content-Length:
|
@@ -587,24 +424,26 @@ http_interactions:
|
|
587
424
|
- bitcoin-json-rpc/v0.7.2-beta
|
588
425
|
body:
|
589
426
|
encoding: US-ASCII
|
590
|
-
string: ! '{"result":
|
427
|
+
string: ! '{"result":20.00000000,"error":null,"id":"jsonrpc"}
|
591
428
|
|
592
429
|
'
|
593
430
|
http_version:
|
594
|
-
recorded_at:
|
431
|
+
recorded_at: Sat, 01 Mar 2014 07:32:15 GMT
|
595
432
|
- request:
|
596
433
|
method: post
|
597
434
|
uri: http://admin1:123@localhost:19001/
|
598
435
|
body:
|
599
436
|
encoding: US-ASCII
|
600
|
-
string: ! '{"method":"
|
437
|
+
string: ! '{"method":"sendfrom","params":["","mu2dJuiof4vUm3hBgX8F4FZBzsMEqPXEui",10,0],"id":"jsonrpc"}'
|
601
438
|
headers:
|
602
439
|
Accept:
|
603
440
|
- ! '*/*; q=0.5, application/xml'
|
604
441
|
Accept-Encoding:
|
605
442
|
- gzip, deflate
|
443
|
+
Content-Type:
|
444
|
+
- application/json
|
606
445
|
Content-Length:
|
607
|
-
- '
|
446
|
+
- '92'
|
608
447
|
User-Agent:
|
609
448
|
- Ruby
|
610
449
|
response:
|
@@ -613,70 +452,35 @@ http_interactions:
|
|
613
452
|
message: OK
|
614
453
|
headers:
|
615
454
|
Date:
|
616
|
-
-
|
455
|
+
- Sat, 01 Mar 2014 07:32:17 +0000
|
617
456
|
Connection:
|
618
457
|
- keep-alive
|
619
458
|
Content-Length:
|
620
|
-
- '
|
459
|
+
- '106'
|
621
460
|
Content-Type:
|
622
461
|
- application/json
|
623
462
|
Server:
|
624
463
|
- bitcoin-json-rpc/v0.7.2-beta
|
625
464
|
body:
|
626
465
|
encoding: US-ASCII
|
627
|
-
string: ! '{"result":
|
466
|
+
string: ! '{"result":"bad145411c417501990fd7999ad04fbcf729a49b04e0a88d122787d271ac6990","error":null,"id":"jsonrpc"}
|
628
467
|
|
629
468
|
'
|
630
469
|
http_version:
|
631
|
-
recorded_at:
|
470
|
+
recorded_at: Sat, 01 Mar 2014 07:32:17 GMT
|
632
471
|
- request:
|
633
472
|
method: post
|
634
473
|
uri: http://admin1:123@localhost:19001/
|
635
474
|
body:
|
636
475
|
encoding: US-ASCII
|
637
|
-
string: ! '{"method":"
|
476
|
+
string: ! '{"method":"getbalance","params":["",0],"id":"jsonrpc"}'
|
638
477
|
headers:
|
639
478
|
Accept:
|
640
479
|
- ! '*/*; q=0.5, application/xml'
|
641
480
|
Accept-Encoding:
|
642
481
|
- gzip, deflate
|
643
|
-
Content-Length:
|
644
|
-
- '100'
|
645
|
-
User-Agent:
|
646
|
-
- Ruby
|
647
|
-
response:
|
648
|
-
status:
|
649
|
-
code: 500
|
650
|
-
message: Internal Server Error
|
651
|
-
headers:
|
652
|
-
Date:
|
653
|
-
- Sun, 07 Apr 2013 10:01:32 +0000
|
654
|
-
Connection:
|
655
|
-
- close
|
656
|
-
Content-Length:
|
657
|
-
- '78'
|
658
482
|
Content-Type:
|
659
483
|
- application/json
|
660
|
-
Server:
|
661
|
-
- bitcoin-json-rpc/v0.7.2-beta
|
662
|
-
body:
|
663
|
-
encoding: US-ASCII
|
664
|
-
string: ! '{"result":null,"error":{"code":-3,"message":"Invalid amount"},"id":"jsonrpc"}
|
665
|
-
|
666
|
-
'
|
667
|
-
http_version:
|
668
|
-
recorded_at: Sun, 07 Apr 2013 10:01:32 GMT
|
669
|
-
- request:
|
670
|
-
method: post
|
671
|
-
uri: http://admin1:123@localhost:19001/
|
672
|
-
body:
|
673
|
-
encoding: US-ASCII
|
674
|
-
string: ! '{"method":"getbalance","params":["",0],"id":"jsonrpc"}'
|
675
|
-
headers:
|
676
|
-
Accept:
|
677
|
-
- ! '*/*; q=0.5, application/xml'
|
678
|
-
Accept-Encoding:
|
679
|
-
- gzip, deflate
|
680
484
|
Content-Length:
|
681
485
|
- '54'
|
682
486
|
User-Agent:
|
@@ -687,7 +491,7 @@ http_interactions:
|
|
687
491
|
message: OK
|
688
492
|
headers:
|
689
493
|
Date:
|
690
|
-
-
|
494
|
+
- Sat, 01 Mar 2014 07:32:17 +0000
|
691
495
|
Connection:
|
692
496
|
- keep-alive
|
693
497
|
Content-Length:
|
@@ -698,61 +502,26 @@ http_interactions:
|
|
698
502
|
- bitcoin-json-rpc/v0.7.2-beta
|
699
503
|
body:
|
700
504
|
encoding: US-ASCII
|
701
|
-
string: ! '{"result":
|
505
|
+
string: ! '{"result":8770.00000000,"error":null,"id":"jsonrpc"}
|
702
506
|
|
703
507
|
'
|
704
508
|
http_version:
|
705
|
-
recorded_at:
|
509
|
+
recorded_at: Sat, 01 Mar 2014 07:32:17 GMT
|
706
510
|
- request:
|
707
511
|
method: post
|
708
512
|
uri: http://admin1:123@localhost:19001/
|
709
513
|
body:
|
710
514
|
encoding: US-ASCII
|
711
|
-
string: ! '{"method":"getbalance","params":["
|
515
|
+
string: ! '{"method":"getbalance","params":["nomoney",0],"id":"jsonrpc"}'
|
712
516
|
headers:
|
713
517
|
Accept:
|
714
518
|
- ! '*/*; q=0.5, application/xml'
|
715
519
|
Accept-Encoding:
|
716
520
|
- 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
521
|
Content-Type:
|
733
522
|
- 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
523
|
Content-Length:
|
755
|
-
- '
|
524
|
+
- '61'
|
756
525
|
User-Agent:
|
757
526
|
- Ruby
|
758
527
|
response:
|
@@ -761,7 +530,7 @@ http_interactions:
|
|
761
530
|
message: OK
|
762
531
|
headers:
|
763
532
|
Date:
|
764
|
-
-
|
533
|
+
- Sat, 01 Mar 2014 07:32:17 +0000
|
765
534
|
Connection:
|
766
535
|
- keep-alive
|
767
536
|
Content-Length:
|
@@ -776,57 +545,22 @@ http_interactions:
|
|
776
545
|
|
777
546
|
'
|
778
547
|
http_version:
|
779
|
-
recorded_at:
|
548
|
+
recorded_at: Sat, 01 Mar 2014 07:32:17 GMT
|
780
549
|
- request:
|
781
550
|
method: post
|
782
551
|
uri: http://admin1:123@localhost:19001/
|
783
552
|
body:
|
784
553
|
encoding: US-ASCII
|
785
|
-
string: ! '{"method":"getbalance","params":["
|
554
|
+
string: ! '{"method":"getbalance","params":["moneyd",0],"id":"jsonrpc"}'
|
786
555
|
headers:
|
787
556
|
Accept:
|
788
557
|
- ! '*/*; q=0.5, application/xml'
|
789
558
|
Accept-Encoding:
|
790
559
|
- 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
560
|
Content-Type:
|
807
561
|
- 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
562
|
Content-Length:
|
829
|
-
- '
|
563
|
+
- '60'
|
830
564
|
User-Agent:
|
831
565
|
- Ruby
|
832
566
|
response:
|
@@ -835,7 +569,7 @@ http_interactions:
|
|
835
569
|
message: OK
|
836
570
|
headers:
|
837
571
|
Date:
|
838
|
-
-
|
572
|
+
- Sat, 01 Mar 2014 07:32:17 +0000
|
839
573
|
Connection:
|
840
574
|
- keep-alive
|
841
575
|
Content-Length:
|
@@ -846,11 +580,11 @@ http_interactions:
|
|
846
580
|
- bitcoin-json-rpc/v0.7.2-beta
|
847
581
|
body:
|
848
582
|
encoding: US-ASCII
|
849
|
-
string: ! '{"result":
|
583
|
+
string: ! '{"result":30.00000000,"error":null,"id":"jsonrpc"}
|
850
584
|
|
851
585
|
'
|
852
586
|
http_version:
|
853
|
-
recorded_at:
|
587
|
+
recorded_at: Sat, 01 Mar 2014 07:32:17 GMT
|
854
588
|
- request:
|
855
589
|
method: post
|
856
590
|
uri: http://admin1:123@localhost:19001/
|
@@ -862,6 +596,8 @@ http_interactions:
|
|
862
596
|
- ! '*/*; q=0.5, application/xml'
|
863
597
|
Accept-Encoding:
|
864
598
|
- gzip, deflate
|
599
|
+
Content-Type:
|
600
|
+
- application/json
|
865
601
|
Content-Length:
|
866
602
|
- '61'
|
867
603
|
User-Agent:
|
@@ -872,7 +608,7 @@ http_interactions:
|
|
872
608
|
message: OK
|
873
609
|
headers:
|
874
610
|
Date:
|
875
|
-
-
|
611
|
+
- Sat, 01 Mar 2014 07:32:17 +0000
|
876
612
|
Connection:
|
877
613
|
- keep-alive
|
878
614
|
Content-Length:
|
@@ -887,42 +623,44 @@ http_interactions:
|
|
887
623
|
|
888
624
|
'
|
889
625
|
http_version:
|
890
|
-
recorded_at:
|
626
|
+
recorded_at: Sat, 01 Mar 2014 07:32:17 GMT
|
891
627
|
- request:
|
892
628
|
method: post
|
893
629
|
uri: http://admin1:123@localhost:19001/
|
894
630
|
body:
|
895
631
|
encoding: US-ASCII
|
896
|
-
string: ! '{"method":"
|
632
|
+
string: ! '{"method":"sendfrom","params":["nomoney","mi487X6jj8ggY6FAoG8ibv7qomcq9TXL1U",0.0,0],"id":"jsonrpc"}'
|
897
633
|
headers:
|
898
634
|
Accept:
|
899
635
|
- ! '*/*; q=0.5, application/xml'
|
900
636
|
Accept-Encoding:
|
901
637
|
- gzip, deflate
|
638
|
+
Content-Type:
|
639
|
+
- application/json
|
902
640
|
Content-Length:
|
903
|
-
- '
|
641
|
+
- '100'
|
904
642
|
User-Agent:
|
905
643
|
- Ruby
|
906
644
|
response:
|
907
645
|
status:
|
908
|
-
code:
|
909
|
-
message:
|
646
|
+
code: 500
|
647
|
+
message: Internal Server Error
|
910
648
|
headers:
|
911
649
|
Date:
|
912
|
-
-
|
650
|
+
- Sat, 01 Mar 2014 07:32:17 +0000
|
913
651
|
Connection:
|
914
|
-
-
|
652
|
+
- close
|
915
653
|
Content-Length:
|
916
|
-
- '
|
654
|
+
- '78'
|
917
655
|
Content-Type:
|
918
656
|
- application/json
|
919
657
|
Server:
|
920
658
|
- bitcoin-json-rpc/v0.7.2-beta
|
921
659
|
body:
|
922
660
|
encoding: US-ASCII
|
923
|
-
string: ! '{"result":
|
661
|
+
string: ! '{"result":null,"error":{"code":-3,"message":"Invalid amount"},"id":"jsonrpc"}
|
924
662
|
|
925
663
|
'
|
926
664
|
http_version:
|
927
|
-
recorded_at:
|
928
|
-
recorded_with: VCR 2.
|
665
|
+
recorded_at: Sat, 01 Mar 2014 07:32:17 GMT
|
666
|
+
recorded_with: VCR 2.8.0
|