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.
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:12 +0000
24
+ - Sun, 07 Apr 2013 10:02:00 +0000
25
25
  Connection:
26
26
  - keep-alive
27
27
  Content-Length:
28
- - '58'
28
+ - '175'
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},"error":null,"id":"jsonrpc"}
36
36
 
37
37
  '
38
38
  http_version:
39
- recorded_at: Thu, 07 Mar 2013 10:31:12 GMT
39
+ recorded_at: Sun, 07 Apr 2013 10:02:00 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,118 @@ http_interactions:
58
58
  message: OK
59
59
  headers:
60
60
  Date:
61
- - Thu, 07 Mar 2013 10:31:12 +0000
61
+ - Sun, 07 Apr 2013 10:02:00 +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":"mpWTVhpuScqHVvjK1Byy3eKHbMipNyrSpQ","error":null,"id":"jsonrpc"}
73
+
74
+ '
75
+ http_version:
76
+ recorded_at: Sun, 07 Apr 2013 10:02:00 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:02:00 +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":"mkWYNCN7V6B9VYN4PUXVSoCEbbVfTQtxVi","error":null,"id":"jsonrpc"}
110
+
111
+ '
112
+ http_version:
113
+ recorded_at: Sun, 07 Apr 2013 10:02:00 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:00 +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":"mtsUHPqt7fhHNPeopMfGkbG9PRWAf8NTem","error":null,"id":"jsonrpc"}
147
+
148
+ '
149
+ http_version:
150
+ recorded_at: Sun, 07 Apr 2013 10:02:00 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:00 +0000
62
173
  Connection:
63
174
  - keep-alive
64
175
  Content-Length:
@@ -69,16 +180,127 @@ http_interactions:
69
180
  - bitcoin-json-rpc/v0.7.2-beta
70
181
  body:
71
182
  encoding: US-ASCII
72
- string: ! '{"result":"mi487X6jj8ggY6FAoG8ibv7qomcq9TXL1U","error":null,"id":"jsonrpc"}
183
+ string: ! '{"result":"miU71EwMQe1DqxSW5r1A8pt4jhcjsmQSBs","error":null,"id":"jsonrpc"}
73
184
 
74
185
  '
75
186
  http_version:
76
- recorded_at: Thu, 07 Mar 2013 10:31:12 GMT
187
+ recorded_at: Sun, 07 Apr 2013 10:02:00 GMT
77
188
  - request:
78
189
  method: post
79
190
  uri: http://admin1:123@localhost:19001/
80
191
  body:
81
- encoding: UTF-8
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:00 +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":"mz6ztfCJcptnM1CdHoq1x793vPfmszk4dc","error":null,"id":"jsonrpc"}
221
+
222
+ '
223
+ http_version:
224
+ recorded_at: Sun, 07 Apr 2013 10:02:00 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:00 +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":"mhc2dxaTXqfCrxuTtKsPYfg5hFW4wKsiWB","error":null,"id":"jsonrpc"}
258
+
259
+ '
260
+ http_version:
261
+ recorded_at: Sun, 07 Apr 2013 10:02:00 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:00 +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":"muWJ8ogoj2oAVeucRJ6pJbjATsTfspLH49","error":null,"id":"jsonrpc"}
295
+
296
+ '
297
+ http_version:
298
+ recorded_at: Sun, 07 Apr 2013 10:02:00 GMT
299
+ - request:
300
+ method: post
301
+ uri: http://admin1:123@localhost:19001/
302
+ body:
303
+ encoding: US-ASCII
82
304
  string: ! '{"method":"getnewaddress","params":["numba"],"id":"jsonrpc"}'
83
305
  headers:
84
306
  Accept:
@@ -95,7 +317,7 @@ http_interactions:
95
317
  message: OK
96
318
  headers:
97
319
  Date:
98
- - Thu, 07 Mar 2013 10:31:12 +0000
320
+ - Sun, 07 Apr 2013 10:02:00 +0000
99
321
  Connection:
100
322
  - keep-alive
101
323
  Content-Length:
@@ -106,9 +328,9 @@ 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":"mgrCFBzrhUQdy17tcJFcwCUc5Q2nh8B6MU","error":null,"id":"jsonrpc"}
110
332
 
111
333
  '
112
334
  http_version:
113
- recorded_at: Thu, 07 Mar 2013 10:31:12 GMT
335
+ recorded_at: Sun, 07 Apr 2013 10:02:00 GMT
114
336
  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: 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:15 +0000
24
+ - Sun, 07 Apr 2013 10:02:02 +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:15 GMT
39
+ recorded_at: Sun, 07 Apr 2013 10:02:02 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,266 @@ http_interactions:
58
58
  message: OK
59
59
  headers:
60
60
  Date:
61
- - Thu, 07 Mar 2013 10:31:15 +0000
61
+ - Sun, 07 Apr 2013 10:02:02 +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":"mhtidM38Mc8Yd5uHMMfwh3HtoPEh8Ydbqv","error":null,"id":"jsonrpc"}
73
+
74
+ '
75
+ http_version:
76
+ recorded_at: Sun, 07 Apr 2013 10:02:02 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:02:02 +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":"n1B4TnfG19ZaLcfNQL6hhXfJAMtcZBgntd","error":null,"id":"jsonrpc"}
110
+
111
+ '
112
+ http_version:
113
+ recorded_at: Sun, 07 Apr 2013 10:02:02 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:02 +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":"moe7dAKbLJSe72MxdBe7oBkqaWjAmdpjxH","error":null,"id":"jsonrpc"}
147
+
148
+ '
149
+ http_version:
150
+ recorded_at: Sun, 07 Apr 2013 10:02:02 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:02 +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":"mnK9rhsiMAT5oj5mCiBzHm1PQhbU94zUj2","error":null,"id":"jsonrpc"}
184
+
185
+ '
186
+ http_version:
187
+ recorded_at: Sun, 07 Apr 2013 10:02:02 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:02 +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":"mhh3tHZSx6CQoub9FV2DKX5jeKEbjGhuhx","error":null,"id":"jsonrpc"}
221
+
222
+ '
223
+ http_version:
224
+ recorded_at: Sun, 07 Apr 2013 10:02:02 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:02 +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":"n3r6Esce3EFUVmHAErNU5erjp7MasYVjnt","error":null,"id":"jsonrpc"}
258
+
259
+ '
260
+ http_version:
261
+ recorded_at: Sun, 07 Apr 2013 10:02:02 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:02 +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":"mfmcRqM5jQtS2Tv3mJQerif1dR9VYJN22h","error":null,"id":"jsonrpc"}
295
+
296
+ '
297
+ http_version:
298
+ recorded_at: Sun, 07 Apr 2013 10:02:02 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:02 +0000
62
321
  Connection:
63
322
  - keep-alive
64
323
  Content-Length:
@@ -69,9 +328,9 @@ http_interactions:
69
328
  - bitcoin-json-rpc/v0.7.2-beta
70
329
  body:
71
330
  encoding: US-ASCII
72
- string: ! '{"result":"mi487X6jj8ggY6FAoG8ibv7qomcq9TXL1U","error":null,"id":"jsonrpc"}
331
+ string: ! '{"result":"mqUK6768wUY33kG5kzUx7CS8S2btSXDMQ8","error":null,"id":"jsonrpc"}
73
332
 
74
333
  '
75
334
  http_version:
76
- recorded_at: Thu, 07 Mar 2013 10:31:15 GMT
335
+ recorded_at: Sun, 07 Apr 2013 10:02:02 GMT
77
336
  recorded_with: VCR 2.4.0