blockcypher-ruby 0.2.4 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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,96 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.blockcypher.com/v1/bcy/test/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:35:33 GMT
25
+ Content-Type:
26
+ - application/json
27
+ Content-Length:
28
+ - '281'
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
+ - '196'
39
+ body:
40
+ encoding: UTF-8
41
+ string: |-
42
+ {
43
+ "private": "b6725f5acfc23fcbe9c20bfe5823d697bbfbfa885149b7d6847f789b8ec36b43",
44
+ "public": "031ecaaedf71f50d2ce9206c518852847cc2a969b18d9dd97f3705a283c05f5a0c",
45
+ "address": "C2SJopG4bZm2kXtYFFoGVfXLrtXvnvdqQk",
46
+ "wif": "BuSgbP1hnPNFoB2ErWURBbu37gDtmsxBao9vb52xHFSw18qTGN4n"
47
+ }
48
+ http_version:
49
+ recorded_at: Tue, 25 Oct 2016 06:35:33 GMT
50
+ - request:
51
+ method: post
52
+ uri: https://api.blockcypher.com/v1/bcy/test/faucet?token=<api_token>
53
+ body:
54
+ encoding: UTF-8
55
+ string: '{"address":"C2SJopG4bZm2kXtYFFoGVfXLrtXvnvdqQk","amount":100000}'
56
+ headers:
57
+ Accept-Encoding:
58
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
59
+ Accept:
60
+ - "*/*"
61
+ User-Agent:
62
+ - Ruby
63
+ Content-Type:
64
+ - application/json
65
+ response:
66
+ status:
67
+ code: 200
68
+ message: OK
69
+ headers:
70
+ Server:
71
+ - nginx/1.9.12
72
+ Date:
73
+ - Tue, 25 Oct 2016 06:35:35 GMT
74
+ Content-Type:
75
+ - application/json
76
+ Content-Length:
77
+ - '82'
78
+ Connection:
79
+ - keep-alive
80
+ Access-Control-Allow-Headers:
81
+ - Origin, X-Requested-With, Content-Type, Accept
82
+ Access-Control-Allow-Methods:
83
+ - GET, POST, PUT, DELETE
84
+ Access-Control-Allow-Origin:
85
+ - "*"
86
+ X-Ratelimit-Remaining:
87
+ - '185'
88
+ body:
89
+ encoding: UTF-8
90
+ string: |-
91
+ {
92
+ "tx_ref": "16ae510fd385405f697954fc0a4f6964304176036857ea7fe6e1f297d3a7c286"
93
+ }
94
+ http_version:
95
+ recorded_at: Tue, 25 Oct 2016 06:35:35 GMT
96
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,119 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.blockcypher.com/v1/bcy/test/payments?token=<api_token>
6
+ body:
7
+ encoding: US-ASCII
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: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx/1.9.12
23
+ Date:
24
+ - Tue, 25 Oct 2016 06:35:58 GMT
25
+ Content-Type:
26
+ - application/json
27
+ Transfer-Encoding:
28
+ - chunked
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
+ - '179'
39
+ body:
40
+ encoding: ASCII-8BIT
41
+ string: |-
42
+ [
43
+ {
44
+ "id": "28947218-5742-42a3-afc8-085028220361",
45
+ "token": "<api_token>",
46
+ "destination": "C5YjzvfcXhCRfzPCNtHHJ2KKJ3bt9NgA1j",
47
+ "input_address": "CC9fcp6E8kDGjn3HcvHNbKaroq88yecqhE"
48
+ },
49
+ {
50
+ "id": "8e0103af-33c6-4262-9dfa-b29b3e2f6a2f",
51
+ "token": "<api_token>",
52
+ "destination": "Bsw87oXJeVuwz8VVbR9zQm1i9i39fmy8Pr",
53
+ "input_address": "C1nXb9WcayTNHaX5rAPjhxTrsfwGgAym7c"
54
+ },
55
+ {
56
+ "id": "94f44d55-8155-458d-b3b9-142084c1ad5e",
57
+ "token": "<api_token>",
58
+ "destination": "Bz1kdFmvRP3sxw3YTG1iz6Q1xvFSV3taLd",
59
+ "input_address": "CD3jhqqaS8QvaNG7aVzPUGuWbFhdHknRkR",
60
+ "callback_url": "http://test.com/foo"
61
+ },
62
+ {
63
+ "id": "97b0be31-75bf-457f-a3e8-4752250c00b9",
64
+ "token": "<api_token>",
65
+ "destination": "BsR3qRSngCXnyvQ2t4gE6TMPWWjPjFPmTt",
66
+ "input_address": "CAevgagGLaA5Qmgb7tQguZPyf2fSwVRAea",
67
+ "callback_url": "http://test.com/foo"
68
+ }
69
+ ]
70
+ http_version:
71
+ recorded_at: Tue, 25 Oct 2016 06:35:59 GMT
72
+ - request:
73
+ method: post
74
+ uri: https://api.blockcypher.com/v1/bcy/test/addrs?token=<api_token>
75
+ body:
76
+ encoding: UTF-8
77
+ string: ''
78
+ headers:
79
+ Accept-Encoding:
80
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
81
+ Accept:
82
+ - "*/*"
83
+ User-Agent:
84
+ - Ruby
85
+ response:
86
+ status:
87
+ code: 201
88
+ message: Created
89
+ headers:
90
+ Server:
91
+ - nginx/1.9.12
92
+ Date:
93
+ - Tue, 25 Oct 2016 06:36:00 GMT
94
+ Content-Type:
95
+ - application/json
96
+ Content-Length:
97
+ - '281'
98
+ Connection:
99
+ - keep-alive
100
+ Access-Control-Allow-Headers:
101
+ - Origin, X-Requested-With, Content-Type, Accept
102
+ Access-Control-Allow-Methods:
103
+ - GET, POST, PUT, DELETE
104
+ Access-Control-Allow-Origin:
105
+ - "*"
106
+ X-Ratelimit-Remaining:
107
+ - '190'
108
+ body:
109
+ encoding: UTF-8
110
+ string: |-
111
+ {
112
+ "private": "79b2236ca43a95c5002ade6e787115a5ef2495625a353e857159b956631a83d6",
113
+ "public": "02ff5abdc7da47f6c1b51d377ea765c07c42da0f8b58916b4ccf9c65bd1f53b3df",
114
+ "address": "C6gPm4ECoXn7t1hbMfrf83SbauB21cGPkg",
115
+ "wif": "BsQbGS6VGL6yiV7cD5XdfN7yiPZTKF1fDqaAgUL8N5TT55fGhJQc"
116
+ }
117
+ http_version:
118
+ recorded_at: Tue, 25 Oct 2016 06:36:00 GMT
119
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,187 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.blockcypher.com/v1/bcy/test/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.11.2
23
+ Date:
24
+ - Tue, 25 Oct 2016 06:35:37 GMT
25
+ Content-Type:
26
+ - application/json
27
+ Content-Length:
28
+ - '281'
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
+ - '187'
39
+ body:
40
+ encoding: UTF-8
41
+ string: |-
42
+ {
43
+ "private": "bf3f100f90443f6b6dcaa55420bbf8c232978108d8689074c96391a79704ce5b",
44
+ "public": "031574fb8e2b683bea793b95d0a8a38d69ecf9a06cd7f643454eb9d4d906fed021",
45
+ "address": "BxxtivRxGuCeH5WjwzzRB2iiBtNU3w2qzc",
46
+ "wif": "BujnhL4rRfLWZ518JKMgsKNUUHh2MHncJSesauoa1hqSWT1DdsA8"
47
+ }
48
+ http_version:
49
+ recorded_at: Tue, 25 Oct 2016 06:35:37 GMT
50
+ - request:
51
+ method: post
52
+ uri: https://api.blockcypher.com/v1/bcy/test/addrs?token=<api_token>
53
+ body:
54
+ encoding: UTF-8
55
+ string: ''
56
+ headers:
57
+ Accept-Encoding:
58
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
59
+ Accept:
60
+ - "*/*"
61
+ User-Agent:
62
+ - Ruby
63
+ response:
64
+ status:
65
+ code: 201
66
+ message: Created
67
+ headers:
68
+ Server:
69
+ - nginx/1.9.12
70
+ Date:
71
+ - Tue, 25 Oct 2016 06:35:38 GMT
72
+ Content-Type:
73
+ - application/json
74
+ Content-Length:
75
+ - '281'
76
+ Connection:
77
+ - keep-alive
78
+ Access-Control-Allow-Headers:
79
+ - Origin, X-Requested-With, Content-Type, Accept
80
+ Access-Control-Allow-Methods:
81
+ - GET, POST, PUT, DELETE
82
+ Access-Control-Allow-Origin:
83
+ - "*"
84
+ X-Ratelimit-Remaining:
85
+ - '188'
86
+ body:
87
+ encoding: UTF-8
88
+ string: |-
89
+ {
90
+ "private": "cf2bb04f64a634a8c5b672058e08e8adc961ae125df61e7b3f1d468b396d5688",
91
+ "public": "03efbdfe061ff6239dec460b0fd9351ef8950040b6208852adcd0a44e710b938ee",
92
+ "address": "Bv36KLaVDoa2zEFhrhb6L3MY8Q1wxei9Fk",
93
+ "wif": "BvGk5GXxxkU3pSk9gLfDNyQE27DdH4ePypZcg2QRbiaKttMieWBr"
94
+ }
95
+ http_version:
96
+ recorded_at: Tue, 25 Oct 2016 06:35:38 GMT
97
+ - request:
98
+ method: post
99
+ uri: https://api.blockcypher.com/v1/bcy/test/txs/new?token=<api_token>
100
+ body:
101
+ encoding: UTF-8
102
+ string: '{"inputs":[{"addresses":["BxxtivRxGuCeH5WjwzzRB2iiBtNU3w2qzc"]}],"outputs":[{"addresses":["Bv36KLaVDoa2zEFhrhb6L3MY8Q1wxei9Fk"],"value":20000}]}'
103
+ headers:
104
+ Accept-Encoding:
105
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
106
+ Accept:
107
+ - "*/*"
108
+ User-Agent:
109
+ - Ruby
110
+ Content-Type:
111
+ - application/json
112
+ response:
113
+ status:
114
+ code: 400
115
+ message: Bad Request
116
+ headers:
117
+ Server:
118
+ - nginx/1.9.12
119
+ Date:
120
+ - Tue, 25 Oct 2016 06:35:39 GMT
121
+ Content-Type:
122
+ - application/json
123
+ Content-Length:
124
+ - '1217'
125
+ Connection:
126
+ - keep-alive
127
+ Access-Control-Allow-Headers:
128
+ - Origin, X-Requested-With, Content-Type, Accept
129
+ Access-Control-Allow-Methods:
130
+ - GET, POST, PUT, DELETE
131
+ Access-Control-Allow-Origin:
132
+ - "*"
133
+ X-Ratelimit-Remaining:
134
+ - '187'
135
+ body:
136
+ encoding: UTF-8
137
+ string: |-
138
+ {
139
+ "errors": [
140
+ {
141
+ "error": "Unable to find a transaction to spend for address BxxtivRxGuCeH5WjwzzRB2iiBtNU3w2qzc."
142
+ },
143
+ {
144
+ "error": "Not enough funds in 0 inputs to pay for 1 outputs, missing -20000."
145
+ },
146
+ {
147
+ "error": "Not enough funds after fees in 0 inputs to pay for 1 outputs, missing -26200."
148
+ },
149
+ {
150
+ "error": "Error validating generated transaction: Transaction missing input or output."
151
+ }
152
+ ],
153
+ "tx": {
154
+ "block_height": -1,
155
+ "block_index": -1,
156
+ "hash": "0b01cf6dfd07f7fb1ddfd1c3082102b6b2c1dffc4f6ec0c4313cbea29e1e7446",
157
+ "addresses": [
158
+ "Bv36KLaVDoa2zEFhrhb6L3MY8Q1wxei9Fk"
159
+ ],
160
+ "total": 20000,
161
+ "fees": 0,
162
+ "size": 44,
163
+ "preference": "low",
164
+ "relayed_by": "49.147.26.15",
165
+ "received": "2016-10-25T06:35:39.722334707Z",
166
+ "ver": 1,
167
+ "lock_time": 0,
168
+ "double_spend": false,
169
+ "vin_sz": 0,
170
+ "vout_sz": 1,
171
+ "confirmations": 0,
172
+ "inputs": [],
173
+ "outputs": [
174
+ {
175
+ "value": 20000,
176
+ "script": "76a9141fece4093456039701d0574cbdcf61e17c91c71388ac",
177
+ "addresses": [
178
+ "Bv36KLaVDoa2zEFhrhb6L3MY8Q1wxei9Fk"
179
+ ],
180
+ "script_type": "pay-to-pubkey-hash"
181
+ }
182
+ ]
183
+ }
184
+ }
185
+ http_version:
186
+ recorded_at: Tue, 25 Oct 2016 06:35:39 GMT
187
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,187 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.blockcypher.com/v1/bcy/test/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.11.2
23
+ Date:
24
+ - Tue, 25 Oct 2016 06:35:41 GMT
25
+ Content-Type:
26
+ - application/json
27
+ Content-Length:
28
+ - '281'
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
+ - '186'
39
+ body:
40
+ encoding: UTF-8
41
+ string: |-
42
+ {
43
+ "private": "8bae0c4ce609e94254040a942149290548feec158b7f0a60284ff2564f5d02a0",
44
+ "public": "0268f766cd3bc58bbef0ebd08a58d00dfa69946c4625b8ad0ca37e3b9b0fdb69a8",
45
+ "address": "CA9r6ndZWxUvvmbPYhVn9QHdeRS5ajWKSV",
46
+ "wif": "Bt1Ys8KKDx6Ax5EVyvsv87VhhofSHJHFvDpLe79kFw8UrxCa9n9b"
47
+ }
48
+ http_version:
49
+ recorded_at: Tue, 25 Oct 2016 06:35:41 GMT
50
+ - request:
51
+ method: post
52
+ uri: https://api.blockcypher.com/v1/bcy/test/addrs?token=<api_token>
53
+ body:
54
+ encoding: UTF-8
55
+ string: ''
56
+ headers:
57
+ Accept-Encoding:
58
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
59
+ Accept:
60
+ - "*/*"
61
+ User-Agent:
62
+ - Ruby
63
+ response:
64
+ status:
65
+ code: 201
66
+ message: Created
67
+ headers:
68
+ Server:
69
+ - nginx/1.11.2
70
+ Date:
71
+ - Tue, 25 Oct 2016 06:35:42 GMT
72
+ Content-Type:
73
+ - application/json
74
+ Content-Length:
75
+ - '281'
76
+ Connection:
77
+ - keep-alive
78
+ Access-Control-Allow-Headers:
79
+ - Origin, X-Requested-With, Content-Type, Accept
80
+ Access-Control-Allow-Methods:
81
+ - GET, POST, PUT, DELETE
82
+ Access-Control-Allow-Origin:
83
+ - "*"
84
+ X-Ratelimit-Remaining:
85
+ - '185'
86
+ body:
87
+ encoding: UTF-8
88
+ string: |-
89
+ {
90
+ "private": "5862790427c6c3775763c35e37e319c3d4ca37ad94e3263acc37d4e55c3062c8",
91
+ "public": "027d4b986f5ced3c011666637bd217cf6568c5d8bf83f47251f50356b1752b58d8",
92
+ "address": "CB8yB1Z4hQorCxktksHshHMQNSrqNB51fc",
93
+ "wif": "BrHqcfDCjLuqiYWVKKieAmXM1TB89sQdczRQ67sYR7ucpfw9V7Z2"
94
+ }
95
+ http_version:
96
+ recorded_at: Tue, 25 Oct 2016 06:35:42 GMT
97
+ - request:
98
+ method: post
99
+ uri: https://api.blockcypher.com/v1/bcy/test/txs/new?token=<api_token>
100
+ body:
101
+ encoding: UTF-8
102
+ string: '{"inputs":[{"addresses":["CA9r6ndZWxUvvmbPYhVn9QHdeRS5ajWKSV"]}],"outputs":[{"addresses":["CB8yB1Z4hQorCxktksHshHMQNSrqNB51fc"],"value":10000}]}'
103
+ headers:
104
+ Accept-Encoding:
105
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
106
+ Accept:
107
+ - "*/*"
108
+ User-Agent:
109
+ - Ruby
110
+ Content-Type:
111
+ - application/json
112
+ response:
113
+ status:
114
+ code: 400
115
+ message: Bad Request
116
+ headers:
117
+ Server:
118
+ - nginx/1.9.12
119
+ Date:
120
+ - Tue, 25 Oct 2016 06:35:43 GMT
121
+ Content-Type:
122
+ - application/json
123
+ Content-Length:
124
+ - '1216'
125
+ Connection:
126
+ - keep-alive
127
+ Access-Control-Allow-Headers:
128
+ - Origin, X-Requested-With, Content-Type, Accept
129
+ Access-Control-Allow-Methods:
130
+ - GET, POST, PUT, DELETE
131
+ Access-Control-Allow-Origin:
132
+ - "*"
133
+ X-Ratelimit-Remaining:
134
+ - '183'
135
+ body:
136
+ encoding: UTF-8
137
+ string: |-
138
+ {
139
+ "errors": [
140
+ {
141
+ "error": "Unable to find a transaction to spend for address CA9r6ndZWxUvvmbPYhVn9QHdeRS5ajWKSV."
142
+ },
143
+ {
144
+ "error": "Not enough funds in 0 inputs to pay for 1 outputs, missing -10000."
145
+ },
146
+ {
147
+ "error": "Not enough funds after fees in 0 inputs to pay for 1 outputs, missing -16200."
148
+ },
149
+ {
150
+ "error": "Error validating generated transaction: Transaction missing input or output."
151
+ }
152
+ ],
153
+ "tx": {
154
+ "block_height": -1,
155
+ "block_index": -1,
156
+ "hash": "df4f2ee0c21ea6188aef3178c6a2eabb12370fa7b316fc1328ca07bca9402e42",
157
+ "addresses": [
158
+ "CB8yB1Z4hQorCxktksHshHMQNSrqNB51fc"
159
+ ],
160
+ "total": 10000,
161
+ "fees": 0,
162
+ "size": 44,
163
+ "preference": "low",
164
+ "relayed_by": "49.147.26.15",
165
+ "received": "2016-10-25T06:35:43.52179618Z",
166
+ "ver": 1,
167
+ "lock_time": 0,
168
+ "double_spend": false,
169
+ "vin_sz": 0,
170
+ "vout_sz": 1,
171
+ "confirmations": 0,
172
+ "inputs": [],
173
+ "outputs": [
174
+ {
175
+ "value": 10000,
176
+ "script": "76a914c5934f647fed62615424b25cd0dcdb8467ae1b5188ac",
177
+ "addresses": [
178
+ "CB8yB1Z4hQorCxktksHshHMQNSrqNB51fc"
179
+ ],
180
+ "script_type": "pay-to-pubkey-hash"
181
+ }
182
+ ]
183
+ }
184
+ }
185
+ http_version:
186
+ recorded_at: Tue, 25 Oct 2016 06:35:43 GMT
187
+ recorded_with: VCR 3.0.3