blockcypher-ruby 0.2.4 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (24) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +8 -3
  3. data/lib/blockcypher-ruby.rb +1 -0
  4. data/lib/blockcypher/api.rb +75 -41
  5. data/spec/blockcypher/api_spec.rb +100 -57
  6. data/spec/config.yml.sample +2 -0
  7. data/spec/fixtures/vcr_cassettes/BlockCypher_Api/Asset_API/Asset_Transfer/should_transfer_asset.yml +1349 -0
  8. data/spec/fixtures/vcr_cassettes/BlockCypher_Api/Asset_API/Generate_Asset_Address/should_include_private_public_oap_address_original_address_hashes.yml +51 -0
  9. data/spec/fixtures/vcr_cassettes/BlockCypher_Api/Asset_API/Issue_Asset/should_issue_asset.yml +156 -0
  10. data/spec/fixtures/vcr_cassettes/BlockCypher_Api/_address_final_balance/should_get_the_balance_of_an_address.yml +102 -0
  11. data/spec/fixtures/vcr_cassettes/BlockCypher_Api/_address_generate/should_generate_new_addresses.yml +97 -0
  12. data/spec/fixtures/vcr_cassettes/BlockCypher_Api/_create_forwarding_address/allows_creating_a_payment_forward_with_a_callback.yml +100 -0
  13. data/spec/fixtures/vcr_cassettes/BlockCypher_Api/_create_forwarding_address/allows_creating_a_payment_forward_with_a_callback_and_confirmation_notifications_enabled.yml +101 -0
  14. data/spec/fixtures/vcr_cassettes/BlockCypher_Api/_create_forwarding_address/allows_creating_a_payment_forward_with_options.yml +102 -0
  15. data/spec/fixtures/vcr_cassettes/BlockCypher_Api/_create_forwarding_address/creates_a_payment_forward.yml +99 -0
  16. data/spec/fixtures/vcr_cassettes/BlockCypher_Api/_create_forwarding_address/is_possible_to_use_the_alias_create_payments_forwarding.yml +99 -0
  17. data/spec/fixtures/vcr_cassettes/BlockCypher_Api/_delete_forwarding_address/deletes_all_previously_created_forwarding_addresses.yml +269 -0
  18. data/spec/fixtures/vcr_cassettes/BlockCypher_Api/_faucet/should_fund_a_bcy_test_address_with_the_faucet.yml +96 -0
  19. data/spec/fixtures/vcr_cassettes/BlockCypher_Api/_list_forwarding_addresses/lists_all_forwading_addresses_created_for_a_given_token.yml +119 -0
  20. data/spec/fixtures/vcr_cassettes/BlockCypher_Api/_transaction_new/should_call_the_txs/new_api.yml +187 -0
  21. data/spec/fixtures/vcr_cassettes/BlockCypher_Api/_transaction_sign_and_send/should_call_txs/send_api.yml +187 -0
  22. data/spec/spec_helper.rb +15 -0
  23. data/spec/support/vcr.rb +10 -0
  24. metadata +66 -6
@@ -0,0 +1,2 @@
1
+ ---
2
+ api_token: testtoken-changeme
@@ -0,0 +1,1349 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.blockcypher.com/v1/bcy/test/oap/addrs?token=<api_token>
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 201
19
+ message: Created
20
+ headers:
21
+ Server:
22
+ - nginx/1.9.12
23
+ Date:
24
+ - Tue, 25 Oct 2016 06:36:14 GMT
25
+ Content-Type:
26
+ - application/json
27
+ Content-Length:
28
+ - '346'
29
+ Connection:
30
+ - keep-alive
31
+ Access-Control-Allow-Headers:
32
+ - Origin, X-Requested-With, Content-Type, Accept
33
+ Access-Control-Allow-Methods:
34
+ - GET, POST, PUT, DELETE
35
+ Access-Control-Allow-Origin:
36
+ - "*"
37
+ X-Ratelimit-Remaining:
38
+ - '193'
39
+ body:
40
+ encoding: UTF-8
41
+ string: |-
42
+ {
43
+ "private": "99c29b6b5747520393a0909b1f456bf3554f143d4a10746954c648754243e2cf",
44
+ "public": "0362ad182ac03e9066954541c03f0f8d690636cb0512e16970768f30388f5b91ac",
45
+ "oap_address": "1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ",
46
+ "original_address": "C2YtDp89Q5sgWC7t6YG16fPt472RydThBC",
47
+ "wif": "BtUvLkU99feNqycFjreLzU5LoiSCKA37e9fm5HGomof2Knp3vHDz"
48
+ }
49
+ http_version:
50
+ recorded_at: Tue, 25 Oct 2016 06:36:14 GMT
51
+ - request:
52
+ method: post
53
+ uri: https://api.blockcypher.com/v1/bcy/test/oap/addrs?token=<api_token>
54
+ body:
55
+ encoding: UTF-8
56
+ string: ''
57
+ headers:
58
+ Accept-Encoding:
59
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
60
+ Accept:
61
+ - "*/*"
62
+ User-Agent:
63
+ - Ruby
64
+ response:
65
+ status:
66
+ code: 201
67
+ message: Created
68
+ headers:
69
+ Server:
70
+ - nginx/1.11.2
71
+ Date:
72
+ - Tue, 25 Oct 2016 06:36:15 GMT
73
+ Content-Type:
74
+ - application/json
75
+ Content-Length:
76
+ - '346'
77
+ Connection:
78
+ - keep-alive
79
+ Access-Control-Allow-Headers:
80
+ - Origin, X-Requested-With, Content-Type, Accept
81
+ Access-Control-Allow-Methods:
82
+ - GET, POST, PUT, DELETE
83
+ Access-Control-Allow-Origin:
84
+ - "*"
85
+ X-Ratelimit-Remaining:
86
+ - '175'
87
+ body:
88
+ encoding: UTF-8
89
+ string: |-
90
+ {
91
+ "private": "13aef44a99a64093d7b31e80118b94d3f59862f51fc8772b4cc8d7c5cf5e704f",
92
+ "public": "02aeddc171605fa302075648eefdefe0e23c8d15b4e96c6a034f7eeee6d126b399",
93
+ "oap_address": "1BwWYuiH9eAfea9RAstAnG7wT1pFWTzjXpD",
94
+ "original_address": "BwWYuiH9eAfea9RAstAnG7wT1pFWTw8BAt",
95
+ "wif": "BozHw75Ua9P5URwVi1SQaBz21cNz7DzGwfpERA9UE2yJ5NTbCQyT"
96
+ }
97
+ http_version:
98
+ recorded_at: Tue, 25 Oct 2016 06:36:15 GMT
99
+ - request:
100
+ method: post
101
+ uri: https://api.blockcypher.com/v1/bcy/test/faucet?token=<api_token>
102
+ body:
103
+ encoding: UTF-8
104
+ string: '{"address":"C2YtDp89Q5sgWC7t6YG16fPt472RydThBC","amount":100000000}'
105
+ headers:
106
+ Accept-Encoding:
107
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
108
+ Accept:
109
+ - "*/*"
110
+ User-Agent:
111
+ - Ruby
112
+ Content-Type:
113
+ - application/json
114
+ response:
115
+ status:
116
+ code: 200
117
+ message: OK
118
+ headers:
119
+ Server:
120
+ - nginx/1.9.12
121
+ Date:
122
+ - Tue, 25 Oct 2016 06:36:17 GMT
123
+ Content-Type:
124
+ - application/json
125
+ Content-Length:
126
+ - '82'
127
+ Connection:
128
+ - keep-alive
129
+ Access-Control-Allow-Headers:
130
+ - Origin, X-Requested-With, Content-Type, Accept
131
+ Access-Control-Allow-Methods:
132
+ - GET, POST, PUT, DELETE
133
+ Access-Control-Allow-Origin:
134
+ - "*"
135
+ X-Ratelimit-Remaining:
136
+ - '169'
137
+ body:
138
+ encoding: UTF-8
139
+ string: |-
140
+ {
141
+ "tx_ref": "204eb3489a0f469db1e79b821717081c19562f90b3cb90b8d459d03d5d30ebfe"
142
+ }
143
+ http_version:
144
+ recorded_at: Tue, 25 Oct 2016 06:36:17 GMT
145
+ - request:
146
+ method: post
147
+ uri: https://api.blockcypher.com/v1/bcy/test/oap/issue?token=<api_token>
148
+ body:
149
+ encoding: UTF-8
150
+ string: '{"from_private":"99c29b6b5747520393a0909b1f456bf3554f143d4a10746954c648754243e2cf","to_address":"1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ","amount":1000}'
151
+ headers:
152
+ Accept-Encoding:
153
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
154
+ Accept:
155
+ - "*/*"
156
+ User-Agent:
157
+ - Ruby
158
+ Content-Type:
159
+ - application/json
160
+ response:
161
+ status:
162
+ code: 201
163
+ message: Created
164
+ headers:
165
+ Server:
166
+ - nginx/1.9.12
167
+ Date:
168
+ - Tue, 25 Oct 2016 06:36:18 GMT
169
+ Content-Type:
170
+ - application/json
171
+ Content-Length:
172
+ - '392'
173
+ Connection:
174
+ - keep-alive
175
+ Access-Control-Allow-Headers:
176
+ - Origin, X-Requested-With, Content-Type, Accept
177
+ Access-Control-Allow-Methods:
178
+ - GET, POST, PUT, DELETE
179
+ Access-Control-Allow-Origin:
180
+ - "*"
181
+ X-Ratelimit-Remaining:
182
+ - '168'
183
+ body:
184
+ encoding: UTF-8
185
+ string: |-
186
+ {
187
+ "ver": 1,
188
+ "assetid": "15EMVQjPto24Rrq4YTeFhv1yADGzt7DSuw",
189
+ "oap_meta": "",
190
+ "hash": "bc745e9001ff0cc4cbac30616df2a4b71436919fb91b687f9dd43dd04c52d9ea",
191
+ "received": "2016-10-25T06:36:18.366529246Z",
192
+ "double_spend": false,
193
+ "inputs": [],
194
+ "outputs": [
195
+ {
196
+ "address": "1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ",
197
+ "value": 1000,
198
+ "original_output_index": 0
199
+ }
200
+ ]
201
+ }
202
+ http_version:
203
+ recorded_at: Tue, 25 Oct 2016 06:36:18 GMT
204
+ - request:
205
+ method: get
206
+ uri: https://api.blockcypher.com/v1/bcy/test/oap/15EMVQjPto24Rrq4YTeFhv1yADGzt7DSuw/addrs/1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ?token=<api_token>
207
+ body:
208
+ encoding: US-ASCII
209
+ string: ''
210
+ headers:
211
+ Accept-Encoding:
212
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
213
+ Accept:
214
+ - "*/*"
215
+ User-Agent:
216
+ - Ruby
217
+ response:
218
+ status:
219
+ code: 200
220
+ message: OK
221
+ headers:
222
+ Server:
223
+ - nginx/1.11.2
224
+ Date:
225
+ - Tue, 25 Oct 2016 06:36:19 GMT
226
+ Content-Type:
227
+ - application/json
228
+ Transfer-Encoding:
229
+ - chunked
230
+ Connection:
231
+ - keep-alive
232
+ Access-Control-Allow-Headers:
233
+ - Origin, X-Requested-With, Content-Type, Accept
234
+ Access-Control-Allow-Methods:
235
+ - GET, POST, PUT, DELETE
236
+ Access-Control-Allow-Origin:
237
+ - "*"
238
+ X-Ratelimit-Remaining:
239
+ - '169'
240
+ body:
241
+ encoding: ASCII-8BIT
242
+ string: |-
243
+ {
244
+ "address": "1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ",
245
+ "total_received": 0,
246
+ "total_sent": 0,
247
+ "balance": 0,
248
+ "unconfirmed_balance": 0,
249
+ "final_balance": 0,
250
+ "n_tx": 0,
251
+ "unconfirmed_n_tx": 0,
252
+ "final_n_tx": 0,
253
+ "tx_url": "https://api.blockcypher.com/v1/bcy/test/txs/"
254
+ }
255
+ http_version:
256
+ recorded_at: Tue, 25 Oct 2016 06:36:19 GMT
257
+ - request:
258
+ method: get
259
+ uri: https://api.blockcypher.com/v1/bcy/test/oap/15EMVQjPto24Rrq4YTeFhv1yADGzt7DSuw/addrs/1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ?token=<api_token>
260
+ body:
261
+ encoding: US-ASCII
262
+ string: ''
263
+ headers:
264
+ Accept-Encoding:
265
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
266
+ Accept:
267
+ - "*/*"
268
+ User-Agent:
269
+ - Ruby
270
+ response:
271
+ status:
272
+ code: 200
273
+ message: OK
274
+ headers:
275
+ Server:
276
+ - nginx/1.9.12
277
+ Date:
278
+ - Tue, 25 Oct 2016 06:36:22 GMT
279
+ Content-Type:
280
+ - application/json
281
+ Transfer-Encoding:
282
+ - chunked
283
+ Connection:
284
+ - keep-alive
285
+ Access-Control-Allow-Headers:
286
+ - Origin, X-Requested-With, Content-Type, Accept
287
+ Access-Control-Allow-Methods:
288
+ - GET, POST, PUT, DELETE
289
+ Access-Control-Allow-Origin:
290
+ - "*"
291
+ X-Ratelimit-Remaining:
292
+ - '178'
293
+ body:
294
+ encoding: ASCII-8BIT
295
+ string: |-
296
+ {
297
+ "address": "1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ",
298
+ "total_received": 0,
299
+ "total_sent": 0,
300
+ "balance": 0,
301
+ "unconfirmed_balance": 0,
302
+ "final_balance": 0,
303
+ "n_tx": 0,
304
+ "unconfirmed_n_tx": 0,
305
+ "final_n_tx": 0,
306
+ "tx_url": "https://api.blockcypher.com/v1/bcy/test/txs/"
307
+ }
308
+ http_version:
309
+ recorded_at: Tue, 25 Oct 2016 06:36:22 GMT
310
+ - request:
311
+ method: get
312
+ uri: https://api.blockcypher.com/v1/bcy/test/oap/15EMVQjPto24Rrq4YTeFhv1yADGzt7DSuw/addrs/1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ?token=<api_token>
313
+ body:
314
+ encoding: US-ASCII
315
+ string: ''
316
+ headers:
317
+ Accept-Encoding:
318
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
319
+ Accept:
320
+ - "*/*"
321
+ User-Agent:
322
+ - Ruby
323
+ response:
324
+ status:
325
+ code: 200
326
+ message: OK
327
+ headers:
328
+ Server:
329
+ - nginx/1.9.12
330
+ Date:
331
+ - Tue, 25 Oct 2016 06:36:24 GMT
332
+ Content-Type:
333
+ - application/json
334
+ Transfer-Encoding:
335
+ - chunked
336
+ Connection:
337
+ - keep-alive
338
+ Access-Control-Allow-Headers:
339
+ - Origin, X-Requested-With, Content-Type, Accept
340
+ Access-Control-Allow-Methods:
341
+ - GET, POST, PUT, DELETE
342
+ Access-Control-Allow-Origin:
343
+ - "*"
344
+ X-Ratelimit-Remaining:
345
+ - '177'
346
+ body:
347
+ encoding: ASCII-8BIT
348
+ string: |-
349
+ {
350
+ "address": "1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ",
351
+ "total_received": 0,
352
+ "total_sent": 0,
353
+ "balance": 0,
354
+ "unconfirmed_balance": 0,
355
+ "final_balance": 0,
356
+ "n_tx": 0,
357
+ "unconfirmed_n_tx": 0,
358
+ "final_n_tx": 0,
359
+ "tx_url": "https://api.blockcypher.com/v1/bcy/test/txs/"
360
+ }
361
+ http_version:
362
+ recorded_at: Tue, 25 Oct 2016 06:36:25 GMT
363
+ - request:
364
+ method: get
365
+ uri: https://api.blockcypher.com/v1/bcy/test/oap/15EMVQjPto24Rrq4YTeFhv1yADGzt7DSuw/addrs/1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ?token=<api_token>
366
+ body:
367
+ encoding: US-ASCII
368
+ string: ''
369
+ headers:
370
+ Accept-Encoding:
371
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
372
+ Accept:
373
+ - "*/*"
374
+ User-Agent:
375
+ - Ruby
376
+ response:
377
+ status:
378
+ code: 200
379
+ message: OK
380
+ headers:
381
+ Server:
382
+ - nginx/1.11.2
383
+ Date:
384
+ - Tue, 25 Oct 2016 06:36:27 GMT
385
+ Content-Type:
386
+ - application/json
387
+ Transfer-Encoding:
388
+ - chunked
389
+ Connection:
390
+ - keep-alive
391
+ Access-Control-Allow-Headers:
392
+ - Origin, X-Requested-With, Content-Type, Accept
393
+ Access-Control-Allow-Methods:
394
+ - GET, POST, PUT, DELETE
395
+ Access-Control-Allow-Origin:
396
+ - "*"
397
+ X-Ratelimit-Remaining:
398
+ - '168'
399
+ body:
400
+ encoding: ASCII-8BIT
401
+ string: |-
402
+ {
403
+ "address": "1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ",
404
+ "total_received": 0,
405
+ "total_sent": 0,
406
+ "balance": 0,
407
+ "unconfirmed_balance": 0,
408
+ "final_balance": 0,
409
+ "n_tx": 0,
410
+ "unconfirmed_n_tx": 0,
411
+ "final_n_tx": 0,
412
+ "tx_url": "https://api.blockcypher.com/v1/bcy/test/txs/"
413
+ }
414
+ http_version:
415
+ recorded_at: Tue, 25 Oct 2016 06:36:27 GMT
416
+ - request:
417
+ method: get
418
+ uri: https://api.blockcypher.com/v1/bcy/test/oap/15EMVQjPto24Rrq4YTeFhv1yADGzt7DSuw/addrs/1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ?token=<api_token>
419
+ body:
420
+ encoding: US-ASCII
421
+ string: ''
422
+ headers:
423
+ Accept-Encoding:
424
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
425
+ Accept:
426
+ - "*/*"
427
+ User-Agent:
428
+ - Ruby
429
+ response:
430
+ status:
431
+ code: 200
432
+ message: OK
433
+ headers:
434
+ Server:
435
+ - nginx/1.9.12
436
+ Date:
437
+ - Tue, 25 Oct 2016 06:36:29 GMT
438
+ Content-Type:
439
+ - application/json
440
+ Transfer-Encoding:
441
+ - chunked
442
+ Connection:
443
+ - keep-alive
444
+ Access-Control-Allow-Headers:
445
+ - Origin, X-Requested-With, Content-Type, Accept
446
+ Access-Control-Allow-Methods:
447
+ - GET, POST, PUT, DELETE
448
+ Access-Control-Allow-Origin:
449
+ - "*"
450
+ X-Ratelimit-Remaining:
451
+ - '176'
452
+ body:
453
+ encoding: ASCII-8BIT
454
+ string: |-
455
+ {
456
+ "address": "1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ",
457
+ "total_received": 0,
458
+ "total_sent": 0,
459
+ "balance": 0,
460
+ "unconfirmed_balance": 0,
461
+ "final_balance": 0,
462
+ "n_tx": 0,
463
+ "unconfirmed_n_tx": 0,
464
+ "final_n_tx": 0,
465
+ "tx_url": "https://api.blockcypher.com/v1/bcy/test/txs/"
466
+ }
467
+ http_version:
468
+ recorded_at: Tue, 25 Oct 2016 06:36:30 GMT
469
+ - request:
470
+ method: get
471
+ uri: https://api.blockcypher.com/v1/bcy/test/oap/15EMVQjPto24Rrq4YTeFhv1yADGzt7DSuw/addrs/1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ?token=<api_token>
472
+ body:
473
+ encoding: US-ASCII
474
+ string: ''
475
+ headers:
476
+ Accept-Encoding:
477
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
478
+ Accept:
479
+ - "*/*"
480
+ User-Agent:
481
+ - Ruby
482
+ response:
483
+ status:
484
+ code: 200
485
+ message: OK
486
+ headers:
487
+ Server:
488
+ - nginx/1.9.12
489
+ Date:
490
+ - Tue, 25 Oct 2016 06:36:32 GMT
491
+ Content-Type:
492
+ - application/json
493
+ Transfer-Encoding:
494
+ - chunked
495
+ Connection:
496
+ - keep-alive
497
+ Access-Control-Allow-Headers:
498
+ - Origin, X-Requested-With, Content-Type, Accept
499
+ Access-Control-Allow-Methods:
500
+ - GET, POST, PUT, DELETE
501
+ Access-Control-Allow-Origin:
502
+ - "*"
503
+ X-Ratelimit-Remaining:
504
+ - '157'
505
+ body:
506
+ encoding: ASCII-8BIT
507
+ string: |-
508
+ {
509
+ "address": "1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ",
510
+ "total_received": 0,
511
+ "total_sent": 0,
512
+ "balance": 0,
513
+ "unconfirmed_balance": 0,
514
+ "final_balance": 0,
515
+ "n_tx": 0,
516
+ "unconfirmed_n_tx": 0,
517
+ "final_n_tx": 0,
518
+ "tx_url": "https://api.blockcypher.com/v1/bcy/test/txs/"
519
+ }
520
+ http_version:
521
+ recorded_at: Tue, 25 Oct 2016 06:36:32 GMT
522
+ - request:
523
+ method: get
524
+ uri: https://api.blockcypher.com/v1/bcy/test/oap/15EMVQjPto24Rrq4YTeFhv1yADGzt7DSuw/addrs/1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ?token=<api_token>
525
+ body:
526
+ encoding: US-ASCII
527
+ string: ''
528
+ headers:
529
+ Accept-Encoding:
530
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
531
+ Accept:
532
+ - "*/*"
533
+ User-Agent:
534
+ - Ruby
535
+ response:
536
+ status:
537
+ code: 200
538
+ message: OK
539
+ headers:
540
+ Server:
541
+ - nginx/1.9.12
542
+ Date:
543
+ - Tue, 25 Oct 2016 06:36:34 GMT
544
+ Content-Type:
545
+ - application/json
546
+ Transfer-Encoding:
547
+ - chunked
548
+ Connection:
549
+ - keep-alive
550
+ Access-Control-Allow-Headers:
551
+ - Origin, X-Requested-With, Content-Type, Accept
552
+ Access-Control-Allow-Methods:
553
+ - GET, POST, PUT, DELETE
554
+ Access-Control-Allow-Origin:
555
+ - "*"
556
+ X-Ratelimit-Remaining:
557
+ - '167'
558
+ body:
559
+ encoding: ASCII-8BIT
560
+ string: |-
561
+ {
562
+ "address": "1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ",
563
+ "total_received": 0,
564
+ "total_sent": 0,
565
+ "balance": 0,
566
+ "unconfirmed_balance": 0,
567
+ "final_balance": 0,
568
+ "n_tx": 0,
569
+ "unconfirmed_n_tx": 0,
570
+ "final_n_tx": 0,
571
+ "tx_url": "https://api.blockcypher.com/v1/bcy/test/txs/"
572
+ }
573
+ http_version:
574
+ recorded_at: Tue, 25 Oct 2016 06:36:34 GMT
575
+ - request:
576
+ method: get
577
+ uri: https://api.blockcypher.com/v1/bcy/test/oap/15EMVQjPto24Rrq4YTeFhv1yADGzt7DSuw/addrs/1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ?token=<api_token>
578
+ body:
579
+ encoding: US-ASCII
580
+ string: ''
581
+ headers:
582
+ Accept-Encoding:
583
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
584
+ Accept:
585
+ - "*/*"
586
+ User-Agent:
587
+ - Ruby
588
+ response:
589
+ status:
590
+ code: 200
591
+ message: OK
592
+ headers:
593
+ Server:
594
+ - nginx/1.9.12
595
+ Date:
596
+ - Tue, 25 Oct 2016 06:36:36 GMT
597
+ Content-Type:
598
+ - application/json
599
+ Transfer-Encoding:
600
+ - chunked
601
+ Connection:
602
+ - keep-alive
603
+ Access-Control-Allow-Headers:
604
+ - Origin, X-Requested-With, Content-Type, Accept
605
+ Access-Control-Allow-Methods:
606
+ - GET, POST, PUT, DELETE
607
+ Access-Control-Allow-Origin:
608
+ - "*"
609
+ X-Ratelimit-Remaining:
610
+ - '175'
611
+ body:
612
+ encoding: ASCII-8BIT
613
+ string: |-
614
+ {
615
+ "address": "1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ",
616
+ "total_received": 0,
617
+ "total_sent": 0,
618
+ "balance": 0,
619
+ "unconfirmed_balance": 0,
620
+ "final_balance": 0,
621
+ "n_tx": 0,
622
+ "unconfirmed_n_tx": 0,
623
+ "final_n_tx": 0,
624
+ "tx_url": "https://api.blockcypher.com/v1/bcy/test/txs/"
625
+ }
626
+ http_version:
627
+ recorded_at: Tue, 25 Oct 2016 06:36:37 GMT
628
+ - request:
629
+ method: get
630
+ uri: https://api.blockcypher.com/v1/bcy/test/oap/15EMVQjPto24Rrq4YTeFhv1yADGzt7DSuw/addrs/1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ?token=<api_token>
631
+ body:
632
+ encoding: US-ASCII
633
+ string: ''
634
+ headers:
635
+ Accept-Encoding:
636
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
637
+ Accept:
638
+ - "*/*"
639
+ User-Agent:
640
+ - Ruby
641
+ response:
642
+ status:
643
+ code: 200
644
+ message: OK
645
+ headers:
646
+ Server:
647
+ - nginx/1.9.12
648
+ Date:
649
+ - Tue, 25 Oct 2016 06:36:39 GMT
650
+ Content-Type:
651
+ - application/json
652
+ Transfer-Encoding:
653
+ - chunked
654
+ Connection:
655
+ - keep-alive
656
+ Access-Control-Allow-Headers:
657
+ - Origin, X-Requested-With, Content-Type, Accept
658
+ Access-Control-Allow-Methods:
659
+ - GET, POST, PUT, DELETE
660
+ Access-Control-Allow-Origin:
661
+ - "*"
662
+ X-Ratelimit-Remaining:
663
+ - '174'
664
+ body:
665
+ encoding: ASCII-8BIT
666
+ string: |-
667
+ {
668
+ "address": "1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ",
669
+ "total_received": 0,
670
+ "total_sent": 0,
671
+ "balance": 0,
672
+ "unconfirmed_balance": 0,
673
+ "final_balance": 0,
674
+ "n_tx": 0,
675
+ "unconfirmed_n_tx": 0,
676
+ "final_n_tx": 0,
677
+ "tx_url": "https://api.blockcypher.com/v1/bcy/test/txs/"
678
+ }
679
+ http_version:
680
+ recorded_at: Tue, 25 Oct 2016 06:36:39 GMT
681
+ - request:
682
+ method: get
683
+ uri: https://api.blockcypher.com/v1/bcy/test/oap/15EMVQjPto24Rrq4YTeFhv1yADGzt7DSuw/addrs/1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ?token=<api_token>
684
+ body:
685
+ encoding: US-ASCII
686
+ string: ''
687
+ headers:
688
+ Accept-Encoding:
689
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
690
+ Accept:
691
+ - "*/*"
692
+ User-Agent:
693
+ - Ruby
694
+ response:
695
+ status:
696
+ code: 200
697
+ message: OK
698
+ headers:
699
+ Server:
700
+ - nginx/1.11.2
701
+ Date:
702
+ - Tue, 25 Oct 2016 06:36:41 GMT
703
+ Content-Type:
704
+ - application/json
705
+ Transfer-Encoding:
706
+ - chunked
707
+ Connection:
708
+ - keep-alive
709
+ Access-Control-Allow-Headers:
710
+ - Origin, X-Requested-With, Content-Type, Accept
711
+ Access-Control-Allow-Methods:
712
+ - GET, POST, PUT, DELETE
713
+ Access-Control-Allow-Origin:
714
+ - "*"
715
+ X-Ratelimit-Remaining:
716
+ - '167'
717
+ body:
718
+ encoding: ASCII-8BIT
719
+ string: |-
720
+ {
721
+ "address": "1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ",
722
+ "total_received": 0,
723
+ "total_sent": 0,
724
+ "balance": 0,
725
+ "unconfirmed_balance": 0,
726
+ "final_balance": 0,
727
+ "n_tx": 0,
728
+ "unconfirmed_n_tx": 0,
729
+ "final_n_tx": 0,
730
+ "tx_url": "https://api.blockcypher.com/v1/bcy/test/txs/"
731
+ }
732
+ http_version:
733
+ recorded_at: Tue, 25 Oct 2016 06:36:41 GMT
734
+ - request:
735
+ method: get
736
+ uri: https://api.blockcypher.com/v1/bcy/test/oap/15EMVQjPto24Rrq4YTeFhv1yADGzt7DSuw/addrs/1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ?token=<api_token>
737
+ body:
738
+ encoding: US-ASCII
739
+ string: ''
740
+ headers:
741
+ Accept-Encoding:
742
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
743
+ Accept:
744
+ - "*/*"
745
+ User-Agent:
746
+ - Ruby
747
+ response:
748
+ status:
749
+ code: 200
750
+ message: OK
751
+ headers:
752
+ Server:
753
+ - nginx/1.9.12
754
+ Date:
755
+ - Tue, 25 Oct 2016 06:36:43 GMT
756
+ Content-Type:
757
+ - application/json
758
+ Transfer-Encoding:
759
+ - chunked
760
+ Connection:
761
+ - keep-alive
762
+ Access-Control-Allow-Headers:
763
+ - Origin, X-Requested-With, Content-Type, Accept
764
+ Access-Control-Allow-Methods:
765
+ - GET, POST, PUT, DELETE
766
+ Access-Control-Allow-Origin:
767
+ - "*"
768
+ X-Ratelimit-Remaining:
769
+ - '173'
770
+ body:
771
+ encoding: ASCII-8BIT
772
+ string: |-
773
+ {
774
+ "address": "1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ",
775
+ "total_received": 0,
776
+ "total_sent": 0,
777
+ "balance": 0,
778
+ "unconfirmed_balance": 0,
779
+ "final_balance": 0,
780
+ "n_tx": 0,
781
+ "unconfirmed_n_tx": 0,
782
+ "final_n_tx": 0,
783
+ "tx_url": "https://api.blockcypher.com/v1/bcy/test/txs/"
784
+ }
785
+ http_version:
786
+ recorded_at: Tue, 25 Oct 2016 06:36:43 GMT
787
+ - request:
788
+ method: get
789
+ uri: https://api.blockcypher.com/v1/bcy/test/oap/15EMVQjPto24Rrq4YTeFhv1yADGzt7DSuw/addrs/1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ?token=<api_token>
790
+ body:
791
+ encoding: US-ASCII
792
+ string: ''
793
+ headers:
794
+ Accept-Encoding:
795
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
796
+ Accept:
797
+ - "*/*"
798
+ User-Agent:
799
+ - Ruby
800
+ response:
801
+ status:
802
+ code: 200
803
+ message: OK
804
+ headers:
805
+ Server:
806
+ - nginx/1.9.12
807
+ Date:
808
+ - Tue, 25 Oct 2016 06:36:46 GMT
809
+ Content-Type:
810
+ - application/json
811
+ Transfer-Encoding:
812
+ - chunked
813
+ Connection:
814
+ - keep-alive
815
+ Access-Control-Allow-Headers:
816
+ - Origin, X-Requested-With, Content-Type, Accept
817
+ Access-Control-Allow-Methods:
818
+ - GET, POST, PUT, DELETE
819
+ Access-Control-Allow-Origin:
820
+ - "*"
821
+ X-Ratelimit-Remaining:
822
+ - '172'
823
+ body:
824
+ encoding: ASCII-8BIT
825
+ string: |-
826
+ {
827
+ "address": "1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ",
828
+ "total_received": 0,
829
+ "total_sent": 0,
830
+ "balance": 0,
831
+ "unconfirmed_balance": 0,
832
+ "final_balance": 0,
833
+ "n_tx": 0,
834
+ "unconfirmed_n_tx": 0,
835
+ "final_n_tx": 0,
836
+ "tx_url": "https://api.blockcypher.com/v1/bcy/test/txs/"
837
+ }
838
+ http_version:
839
+ recorded_at: Tue, 25 Oct 2016 06:36:46 GMT
840
+ - request:
841
+ method: get
842
+ uri: https://api.blockcypher.com/v1/bcy/test/oap/15EMVQjPto24Rrq4YTeFhv1yADGzt7DSuw/addrs/1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ?token=<api_token>
843
+ body:
844
+ encoding: US-ASCII
845
+ string: ''
846
+ headers:
847
+ Accept-Encoding:
848
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
849
+ Accept:
850
+ - "*/*"
851
+ User-Agent:
852
+ - Ruby
853
+ response:
854
+ status:
855
+ code: 200
856
+ message: OK
857
+ headers:
858
+ Server:
859
+ - nginx/1.9.12
860
+ Date:
861
+ - Tue, 25 Oct 2016 06:36:49 GMT
862
+ Content-Type:
863
+ - application/json
864
+ Transfer-Encoding:
865
+ - chunked
866
+ Connection:
867
+ - keep-alive
868
+ Access-Control-Allow-Headers:
869
+ - Origin, X-Requested-With, Content-Type, Accept
870
+ Access-Control-Allow-Methods:
871
+ - GET, POST, PUT, DELETE
872
+ Access-Control-Allow-Origin:
873
+ - "*"
874
+ X-Ratelimit-Remaining:
875
+ - '166'
876
+ body:
877
+ encoding: ASCII-8BIT
878
+ string: |-
879
+ {
880
+ "address": "1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ",
881
+ "total_received": 0,
882
+ "total_sent": 0,
883
+ "balance": 0,
884
+ "unconfirmed_balance": 0,
885
+ "final_balance": 0,
886
+ "n_tx": 0,
887
+ "unconfirmed_n_tx": 0,
888
+ "final_n_tx": 0,
889
+ "tx_url": "https://api.blockcypher.com/v1/bcy/test/txs/"
890
+ }
891
+ http_version:
892
+ recorded_at: Tue, 25 Oct 2016 06:36:49 GMT
893
+ - request:
894
+ method: get
895
+ uri: https://api.blockcypher.com/v1/bcy/test/oap/15EMVQjPto24Rrq4YTeFhv1yADGzt7DSuw/addrs/1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ?token=<api_token>
896
+ body:
897
+ encoding: US-ASCII
898
+ string: ''
899
+ headers:
900
+ Accept-Encoding:
901
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
902
+ Accept:
903
+ - "*/*"
904
+ User-Agent:
905
+ - Ruby
906
+ response:
907
+ status:
908
+ code: 200
909
+ message: OK
910
+ headers:
911
+ Server:
912
+ - nginx/1.9.12
913
+ Date:
914
+ - Tue, 25 Oct 2016 06:36:52 GMT
915
+ Content-Type:
916
+ - application/json
917
+ Transfer-Encoding:
918
+ - chunked
919
+ Connection:
920
+ - keep-alive
921
+ Access-Control-Allow-Headers:
922
+ - Origin, X-Requested-With, Content-Type, Accept
923
+ Access-Control-Allow-Methods:
924
+ - GET, POST, PUT, DELETE
925
+ Access-Control-Allow-Origin:
926
+ - "*"
927
+ X-Ratelimit-Remaining:
928
+ - '156'
929
+ body:
930
+ encoding: ASCII-8BIT
931
+ string: |-
932
+ {
933
+ "address": "1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ",
934
+ "total_received": 0,
935
+ "total_sent": 0,
936
+ "balance": 0,
937
+ "unconfirmed_balance": 0,
938
+ "final_balance": 0,
939
+ "n_tx": 0,
940
+ "unconfirmed_n_tx": 0,
941
+ "final_n_tx": 0,
942
+ "tx_url": "https://api.blockcypher.com/v1/bcy/test/txs/"
943
+ }
944
+ http_version:
945
+ recorded_at: Tue, 25 Oct 2016 06:36:52 GMT
946
+ - request:
947
+ method: get
948
+ uri: https://api.blockcypher.com/v1/bcy/test/oap/15EMVQjPto24Rrq4YTeFhv1yADGzt7DSuw/addrs/1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ?token=<api_token>
949
+ body:
950
+ encoding: US-ASCII
951
+ string: ''
952
+ headers:
953
+ Accept-Encoding:
954
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
955
+ Accept:
956
+ - "*/*"
957
+ User-Agent:
958
+ - Ruby
959
+ response:
960
+ status:
961
+ code: 200
962
+ message: OK
963
+ headers:
964
+ Server:
965
+ - nginx/1.11.2
966
+ Date:
967
+ - Tue, 25 Oct 2016 06:36:55 GMT
968
+ Content-Type:
969
+ - application/json
970
+ Transfer-Encoding:
971
+ - chunked
972
+ Connection:
973
+ - keep-alive
974
+ Access-Control-Allow-Headers:
975
+ - Origin, X-Requested-With, Content-Type, Accept
976
+ Access-Control-Allow-Methods:
977
+ - GET, POST, PUT, DELETE
978
+ Access-Control-Allow-Origin:
979
+ - "*"
980
+ X-Ratelimit-Remaining:
981
+ - '166'
982
+ body:
983
+ encoding: ASCII-8BIT
984
+ string: |-
985
+ {
986
+ "address": "1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ",
987
+ "total_received": 0,
988
+ "total_sent": 0,
989
+ "balance": 0,
990
+ "unconfirmed_balance": 0,
991
+ "final_balance": 0,
992
+ "n_tx": 0,
993
+ "unconfirmed_n_tx": 0,
994
+ "final_n_tx": 0,
995
+ "tx_url": "https://api.blockcypher.com/v1/bcy/test/txs/"
996
+ }
997
+ http_version:
998
+ recorded_at: Tue, 25 Oct 2016 06:36:55 GMT
999
+ - request:
1000
+ method: get
1001
+ uri: https://api.blockcypher.com/v1/bcy/test/oap/15EMVQjPto24Rrq4YTeFhv1yADGzt7DSuw/addrs/1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ?token=<api_token>
1002
+ body:
1003
+ encoding: US-ASCII
1004
+ string: ''
1005
+ headers:
1006
+ Accept-Encoding:
1007
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1008
+ Accept:
1009
+ - "*/*"
1010
+ User-Agent:
1011
+ - Ruby
1012
+ response:
1013
+ status:
1014
+ code: 200
1015
+ message: OK
1016
+ headers:
1017
+ Server:
1018
+ - nginx/1.9.12
1019
+ Date:
1020
+ - Tue, 25 Oct 2016 06:36:58 GMT
1021
+ Content-Type:
1022
+ - application/json
1023
+ Transfer-Encoding:
1024
+ - chunked
1025
+ Connection:
1026
+ - keep-alive
1027
+ Access-Control-Allow-Headers:
1028
+ - Origin, X-Requested-With, Content-Type, Accept
1029
+ Access-Control-Allow-Methods:
1030
+ - GET, POST, PUT, DELETE
1031
+ Access-Control-Allow-Origin:
1032
+ - "*"
1033
+ X-Ratelimit-Remaining:
1034
+ - '146'
1035
+ body:
1036
+ encoding: ASCII-8BIT
1037
+ string: |-
1038
+ {
1039
+ "address": "1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ",
1040
+ "total_received": 0,
1041
+ "total_sent": 0,
1042
+ "balance": 0,
1043
+ "unconfirmed_balance": 0,
1044
+ "final_balance": 0,
1045
+ "n_tx": 0,
1046
+ "unconfirmed_n_tx": 0,
1047
+ "final_n_tx": 0,
1048
+ "tx_url": "https://api.blockcypher.com/v1/bcy/test/txs/"
1049
+ }
1050
+ http_version:
1051
+ recorded_at: Tue, 25 Oct 2016 06:36:58 GMT
1052
+ - request:
1053
+ method: get
1054
+ uri: https://api.blockcypher.com/v1/bcy/test/oap/15EMVQjPto24Rrq4YTeFhv1yADGzt7DSuw/addrs/1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ?token=<api_token>
1055
+ body:
1056
+ encoding: US-ASCII
1057
+ string: ''
1058
+ headers:
1059
+ Accept-Encoding:
1060
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1061
+ Accept:
1062
+ - "*/*"
1063
+ User-Agent:
1064
+ - Ruby
1065
+ response:
1066
+ status:
1067
+ code: 200
1068
+ message: OK
1069
+ headers:
1070
+ Server:
1071
+ - nginx/1.11.2
1072
+ Date:
1073
+ - Tue, 25 Oct 2016 06:37:00 GMT
1074
+ Content-Type:
1075
+ - application/json
1076
+ Transfer-Encoding:
1077
+ - chunked
1078
+ Connection:
1079
+ - keep-alive
1080
+ Access-Control-Allow-Headers:
1081
+ - Origin, X-Requested-With, Content-Type, Accept
1082
+ Access-Control-Allow-Methods:
1083
+ - GET, POST, PUT, DELETE
1084
+ Access-Control-Allow-Origin:
1085
+ - "*"
1086
+ X-Ratelimit-Remaining:
1087
+ - '165'
1088
+ body:
1089
+ encoding: ASCII-8BIT
1090
+ string: |-
1091
+ {
1092
+ "address": "1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ",
1093
+ "total_received": 0,
1094
+ "total_sent": 0,
1095
+ "balance": 0,
1096
+ "unconfirmed_balance": 0,
1097
+ "final_balance": 0,
1098
+ "n_tx": 0,
1099
+ "unconfirmed_n_tx": 0,
1100
+ "final_n_tx": 0,
1101
+ "tx_url": "https://api.blockcypher.com/v1/bcy/test/txs/"
1102
+ }
1103
+ http_version:
1104
+ recorded_at: Tue, 25 Oct 2016 06:37:00 GMT
1105
+ - request:
1106
+ method: get
1107
+ uri: https://api.blockcypher.com/v1/bcy/test/oap/15EMVQjPto24Rrq4YTeFhv1yADGzt7DSuw/addrs/1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ?token=<api_token>
1108
+ body:
1109
+ encoding: US-ASCII
1110
+ string: ''
1111
+ headers:
1112
+ Accept-Encoding:
1113
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1114
+ Accept:
1115
+ - "*/*"
1116
+ User-Agent:
1117
+ - Ruby
1118
+ response:
1119
+ status:
1120
+ code: 200
1121
+ message: OK
1122
+ headers:
1123
+ Server:
1124
+ - nginx/1.9.12
1125
+ Date:
1126
+ - Tue, 25 Oct 2016 06:37:02 GMT
1127
+ Content-Type:
1128
+ - application/json
1129
+ Transfer-Encoding:
1130
+ - chunked
1131
+ Connection:
1132
+ - keep-alive
1133
+ Access-Control-Allow-Headers:
1134
+ - Origin, X-Requested-With, Content-Type, Accept
1135
+ Access-Control-Allow-Methods:
1136
+ - GET, POST, PUT, DELETE
1137
+ Access-Control-Allow-Origin:
1138
+ - "*"
1139
+ X-Ratelimit-Remaining:
1140
+ - '145'
1141
+ body:
1142
+ encoding: ASCII-8BIT
1143
+ string: |-
1144
+ {
1145
+ "address": "1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ",
1146
+ "total_received": 0,
1147
+ "total_sent": 0,
1148
+ "balance": 0,
1149
+ "unconfirmed_balance": 0,
1150
+ "final_balance": 0,
1151
+ "n_tx": 0,
1152
+ "unconfirmed_n_tx": 0,
1153
+ "final_n_tx": 0,
1154
+ "tx_url": "https://api.blockcypher.com/v1/bcy/test/txs/"
1155
+ }
1156
+ http_version:
1157
+ recorded_at: Tue, 25 Oct 2016 06:37:02 GMT
1158
+ - request:
1159
+ method: get
1160
+ uri: https://api.blockcypher.com/v1/bcy/test/oap/15EMVQjPto24Rrq4YTeFhv1yADGzt7DSuw/addrs/1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ?token=<api_token>
1161
+ body:
1162
+ encoding: US-ASCII
1163
+ string: ''
1164
+ headers:
1165
+ Accept-Encoding:
1166
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1167
+ Accept:
1168
+ - "*/*"
1169
+ User-Agent:
1170
+ - Ruby
1171
+ response:
1172
+ status:
1173
+ code: 200
1174
+ message: OK
1175
+ headers:
1176
+ Server:
1177
+ - nginx/1.9.12
1178
+ Date:
1179
+ - Tue, 25 Oct 2016 06:37:04 GMT
1180
+ Content-Type:
1181
+ - application/json
1182
+ Transfer-Encoding:
1183
+ - chunked
1184
+ Connection:
1185
+ - keep-alive
1186
+ Access-Control-Allow-Headers:
1187
+ - Origin, X-Requested-With, Content-Type, Accept
1188
+ Access-Control-Allow-Methods:
1189
+ - GET, POST, PUT, DELETE
1190
+ Access-Control-Allow-Origin:
1191
+ - "*"
1192
+ X-Ratelimit-Remaining:
1193
+ - '140'
1194
+ body:
1195
+ encoding: ASCII-8BIT
1196
+ string: |-
1197
+ {
1198
+ "address": "1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ",
1199
+ "total_received": 0,
1200
+ "total_sent": 0,
1201
+ "balance": 0,
1202
+ "unconfirmed_balance": 0,
1203
+ "final_balance": 0,
1204
+ "n_tx": 0,
1205
+ "unconfirmed_n_tx": 0,
1206
+ "final_n_tx": 0,
1207
+ "tx_url": "https://api.blockcypher.com/v1/bcy/test/txs/"
1208
+ }
1209
+ http_version:
1210
+ recorded_at: Tue, 25 Oct 2016 06:37:05 GMT
1211
+ - request:
1212
+ method: get
1213
+ uri: https://api.blockcypher.com/v1/bcy/test/oap/15EMVQjPto24Rrq4YTeFhv1yADGzt7DSuw/addrs/1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ?token=<api_token>
1214
+ body:
1215
+ encoding: US-ASCII
1216
+ string: ''
1217
+ headers:
1218
+ Accept-Encoding:
1219
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1220
+ Accept:
1221
+ - "*/*"
1222
+ User-Agent:
1223
+ - Ruby
1224
+ response:
1225
+ status:
1226
+ code: 200
1227
+ message: OK
1228
+ headers:
1229
+ Server:
1230
+ - nginx/1.9.12
1231
+ Date:
1232
+ - Tue, 25 Oct 2016 06:37:07 GMT
1233
+ Content-Type:
1234
+ - application/json
1235
+ Transfer-Encoding:
1236
+ - chunked
1237
+ Connection:
1238
+ - keep-alive
1239
+ Access-Control-Allow-Headers:
1240
+ - Origin, X-Requested-With, Content-Type, Accept
1241
+ Access-Control-Allow-Methods:
1242
+ - GET, POST, PUT, DELETE
1243
+ Access-Control-Allow-Origin:
1244
+ - "*"
1245
+ X-Ratelimit-Remaining:
1246
+ - '155'
1247
+ body:
1248
+ encoding: ASCII-8BIT
1249
+ string: |-
1250
+ {
1251
+ "address": "1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ",
1252
+ "total_received": 1000,
1253
+ "total_sent": 0,
1254
+ "balance": 1000,
1255
+ "unconfirmed_balance": 0,
1256
+ "final_balance": 1000,
1257
+ "n_tx": 1,
1258
+ "unconfirmed_n_tx": 0,
1259
+ "final_n_tx": 1,
1260
+ "txrefs": [
1261
+ {
1262
+ "tx_hash": "bc745e9001ff0cc4cbac30616df2a4b71436919fb91b687f9dd43dd04c52d9ea",
1263
+ "block_height": 1030276,
1264
+ "tx_input_n": -1,
1265
+ "tx_output_n": 0,
1266
+ "value": 1000,
1267
+ "ref_balance": 1000,
1268
+ "spent": false,
1269
+ "confirmations": 1,
1270
+ "confirmed": "2016-10-25T06:37:06Z",
1271
+ "double_spend": false
1272
+ }
1273
+ ],
1274
+ "tx_url": "https://api.blockcypher.com/v1/bcy/test/txs/"
1275
+ }
1276
+ http_version:
1277
+ recorded_at: Tue, 25 Oct 2016 06:37:07 GMT
1278
+ - request:
1279
+ method: post
1280
+ uri: https://api.blockcypher.com/v1/bcy/test/oap/15EMVQjPto24Rrq4YTeFhv1yADGzt7DSuw/transfer?token=<api_token>
1281
+ body:
1282
+ encoding: UTF-8
1283
+ string: '{"from_private":"99c29b6b5747520393a0909b1f456bf3554f143d4a10746954c648754243e2cf","to_address":"1BwWYuiH9eAfea9RAstAnG7wT1pFWTzjXpD","amount":100}'
1284
+ headers:
1285
+ Accept-Encoding:
1286
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1287
+ Accept:
1288
+ - "*/*"
1289
+ User-Agent:
1290
+ - Ruby
1291
+ Content-Type:
1292
+ - application/json
1293
+ response:
1294
+ status:
1295
+ code: 201
1296
+ message: Created
1297
+ headers:
1298
+ Server:
1299
+ - nginx/1.11.2
1300
+ Date:
1301
+ - Tue, 25 Oct 2016 06:37:10 GMT
1302
+ Content-Type:
1303
+ - application/json
1304
+ Content-Length:
1305
+ - '723'
1306
+ Connection:
1307
+ - keep-alive
1308
+ Access-Control-Allow-Headers:
1309
+ - Origin, X-Requested-With, Content-Type, Accept
1310
+ Access-Control-Allow-Methods:
1311
+ - GET, POST, PUT, DELETE
1312
+ Access-Control-Allow-Origin:
1313
+ - "*"
1314
+ X-Ratelimit-Remaining:
1315
+ - '164'
1316
+ body:
1317
+ encoding: UTF-8
1318
+ string: |-
1319
+ {
1320
+ "ver": 1,
1321
+ "assetid": "15EMVQjPto24Rrq4YTeFhv1yADGzt7DSuw",
1322
+ "oap_meta": "",
1323
+ "hash": "8e3b6b88f061a9792c14cabd6d9f161daeba4461ecc648ea82b72af49febafa8",
1324
+ "received": "2016-10-25T06:37:10.109238234Z",
1325
+ "double_spend": false,
1326
+ "inputs": [
1327
+ {
1328
+ "prev_hash": "bc745e9001ff0cc4cbac30616df2a4b71436919fb91b687f9dd43dd04c52d9ea",
1329
+ "output_index": 0,
1330
+ "address": "1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ",
1331
+ "output_value": 1000
1332
+ }
1333
+ ],
1334
+ "outputs": [
1335
+ {
1336
+ "address": "1BwWYuiH9eAfea9RAstAnG7wT1pFWTzjXpD",
1337
+ "value": 100,
1338
+ "original_output_index": 1
1339
+ },
1340
+ {
1341
+ "address": "1C2YtDp89Q5sgWC7t6YG16fPt472RvRe7TJ",
1342
+ "value": 900,
1343
+ "original_output_index": 2
1344
+ }
1345
+ ]
1346
+ }
1347
+ http_version:
1348
+ recorded_at: Tue, 25 Oct 2016 06:37:10 GMT
1349
+ recorded_with: VCR 3.0.3