helloblock 0.0.1

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 (46) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +56 -0
  6. data/Rakefile +1 -0
  7. data/helloblock.gemspec +32 -0
  8. data/lib/helloblock.rb +20 -0
  9. data/lib/helloblock/api_interface/api_parameters.rb +10 -0
  10. data/lib/helloblock/api_interface/endpoints.rb +23 -0
  11. data/lib/helloblock/configuration.rb +22 -0
  12. data/lib/helloblock/http/connection.rb +28 -0
  13. data/lib/helloblock/http/request.rb +26 -0
  14. data/lib/helloblock/resources/address.rb +15 -0
  15. data/lib/helloblock/resources/block.rb +7 -0
  16. data/lib/helloblock/resources/faucet.rb +17 -0
  17. data/lib/helloblock/resources/query.rb +74 -0
  18. data/lib/helloblock/resources/transaction.rb +15 -0
  19. data/lib/helloblock/resources/wallet.rb +7 -0
  20. data/lib/helloblock/spec_helper.rb +11 -0
  21. data/lib/helloblock/utils.rb +17 -0
  22. data/lib/helloblock/version.rb +3 -0
  23. data/spec/fixture/vcr_cassettes/batch_address_unspents.yml +49 -0
  24. data/spec/fixture/vcr_cassettes/batch_addresses.yml +47 -0
  25. data/spec/fixture/vcr_cassettes/batch_transactions.yml +47 -0
  26. data/spec/fixture/vcr_cassettes/batch_transactions_addresses.yml +49 -0
  27. data/spec/fixture/vcr_cassettes/batch_unspents.yml +49 -0
  28. data/spec/fixture/vcr_cassettes/faucet.yml +45 -0
  29. data/spec/fixture/vcr_cassettes/latest_blocks.yml +47 -0
  30. data/spec/fixture/vcr_cassettes/latest_transactions.yml +47 -0
  31. data/spec/fixture/vcr_cassettes/propagate.yml +49 -0
  32. data/spec/fixture/vcr_cassettes/single_address.yml +47 -0
  33. data/spec/fixture/vcr_cassettes/single_address_unspents.yml +49 -0
  34. data/spec/fixture/vcr_cassettes/single_block.yml +47 -0
  35. data/spec/fixture/vcr_cassettes/single_transaction.yml +47 -0
  36. data/spec/fixture/vcr_cassettes/wallet.yml +47 -0
  37. data/spec/fixture/vcr_cassettes/withdrawal.yml +45 -0
  38. data/spec/integration/api_calls_work_spec.rb +176 -0
  39. data/spec/lib/address_spec.rb +77 -0
  40. data/spec/lib/connection_spec.rb +28 -0
  41. data/spec/lib/faucet_spec.rb +30 -0
  42. data/spec/lib/helloblock_spec.rb +51 -0
  43. data/spec/lib/request_spec.rb +41 -0
  44. data/spec/lib/transaction_spec.rb +106 -0
  45. data/spec/spec_helper.rb +13 -0
  46. metadata +251 -0
@@ -0,0 +1,17 @@
1
+ module HelloBlock::Utils
2
+ def mattr_accessor(*syms)
3
+ syms.each do |sym|
4
+ mattr_reader(sym)
5
+ mattr_writer(sym)
6
+ end
7
+ end
8
+
9
+ def mattr_reader(sym)
10
+ module_eval("def #{sym}; @#{sym}; end")
11
+ end
12
+
13
+ def mattr_writer(sym)
14
+ module_eval("def #{sym}=(obj); @#{sym} = obj; end")
15
+ module_eval("@#{sym} = nil unless defined? @#{sym}")
16
+ end
17
+ end
@@ -0,0 +1,3 @@
1
+ module HelloBlock
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://testnet.helloblock.io/v1/addresses/unspents?addresses%5B0%5D=1DQN9nopGvSCDnM3LH1w7j36FtnQDZKnej&addresses%5B1%5D=1DQN9nopGvSCDnM3LH1w7j36FtnQDZKnej
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - '*/*'
12
+ User-Agent:
13
+ - HelloBlock Gem 0.0.1
14
+ Content-Type:
15
+ - application/json; charset=UTF-8
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Server:
24
+ - cloudflare-nginx
25
+ Date:
26
+ - Tue, 18 Mar 2014 04:25:49 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Content-Length:
30
+ - '43'
31
+ Connection:
32
+ - keep-alive
33
+ Set-Cookie:
34
+ - __cfduid=d84acd295f403a6678a5bc1465175abad1395116749410; expires=Mon, 23-Dec-2019
35
+ 23:50:00 GMT; path=/; domain=.helloblock.io; HttpOnly
36
+ Access-Control-Allow-Origin:
37
+ - '*'
38
+ Etag:
39
+ - '"-1484056770"'
40
+ X-Powered-By:
41
+ - Express
42
+ Cf-Ray:
43
+ - 10ceab23dc3e070d-SJC
44
+ body:
45
+ encoding: UTF-8
46
+ string: '{"status":"success","data":{"unspents":[]}}'
47
+ http_version:
48
+ recorded_at: Tue, 18 Mar 2014 04:25:49 GMT
49
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,47 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://testnet.helloblock.io/v1/addresses/?addresses%5B0%5D=1DQN9nopGvSCDnM3LH1w7j36FtnQDZKnej&addresses%5B1%5D=1DQN9nopGvSCDnM3LH1w7j36FtnQDZKnej
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - '*/*'
12
+ User-Agent:
13
+ - HelloBlock Gem 0.0.1
14
+ Content-Type:
15
+ - application/json; charset=UTF-8
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Server:
24
+ - cloudflare-nginx
25
+ Date:
26
+ - Mon, 17 Mar 2014 16:46:10 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ Set-Cookie:
34
+ - __cfduid=da9d170454520e97dc5ca1d7510ca04551395074769703; expires=Mon, 23-Dec-2019
35
+ 23:50:00 GMT; path=/; domain=.helloblock.io; HttpOnly
36
+ Access-Control-Allow-Origin:
37
+ - '*'
38
+ X-Powered-By:
39
+ - Express
40
+ Cf-Ray:
41
+ - 10caaa3ea7400651-SJC
42
+ body:
43
+ encoding: UTF-8
44
+ string: '{"status":"success","data":{"addresses":[{"balance":0,"confirmedBalance":0,"txsCount":0,"confirmedTxsCount":0,"address":"msvKSqto5wsSztpf3qzJweFR7tP76etSew","hash160":"880cbba2942bc34739fbd2d8d792a6ce607ef3b9"},{"balance":0,"confirmedBalance":0,"txsCount":0,"confirmedTxsCount":0,"address":"msvKSqto5wsSztpf3qzJweFR7tP76etSew","hash160":"880cbba2942bc34739fbd2d8d792a6ce607ef3b9"}]}}'
45
+ http_version:
46
+ recorded_at: Mon, 17 Mar 2014 16:46:11 GMT
47
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,47 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://testnet.helloblock.io/v1/transactions/?txHashes%5B0%5D=f37e6181661473c14a123cca6f0ad0ab3303d011246f1d4bb4ccf3fccef2d700&txHashes%5B1%5D=f37e6181661473c14a123cca6f0ad0ab3303d011246f1d4bb4ccf3fccef2d700
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - '*/*'
12
+ User-Agent:
13
+ - HelloBlock Gem 0.0.1
14
+ Content-Type:
15
+ - application/json; charset=UTF-8
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Server:
24
+ - cloudflare-nginx
25
+ Date:
26
+ - Mon, 17 Mar 2014 16:46:10 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ Set-Cookie:
34
+ - __cfduid=d9b422612f5e5b8012ac4b718e0b3e5bd1395074770630; expires=Mon, 23-Dec-2019
35
+ 23:50:00 GMT; path=/; domain=.helloblock.io; HttpOnly
36
+ Access-Control-Allow-Origin:
37
+ - '*'
38
+ X-Powered-By:
39
+ - Express
40
+ Cf-Ray:
41
+ - 10caaa447a3f070d-SJC
42
+ body:
43
+ encoding: UTF-8
44
+ string: '{"status":"success","data":{"transactions":[{"txHash":"f37e6181661473c14a123cca6f0ad0ab3303d011246f1d4bb4ccf3fccef2d700","version":1,"locktime":0,"size":225,"blockHash":"000000007a8ff45cc07729c07fd32e96da26c95c7f45853f694eb22731b699cc","blockHeight":205179,"blockTime":1394973554,"estimatedTxTime":1394971617,"confirmations":129,"inputsCount":1,"outputsCount":2,"inputs":[{"prevTxHash":"160855db287705a133c2a15176cb5acf3febe502c272016381dc4fa0d43effa6","prevTxoutIndex":1,"prevTxoutType":"pubkeyhash","value":7980000,"address":"n2WeNdvFk7GX9p38Ni7yebD56TfjvgDavC","hash160":"e64bae89305148c4098b1117594f802bcfcafdab","scriptSig":"47304402204bcc88caaefba54dfd2c7494af1898fa85af2cd0ece2070db618a9d3711772ce02201fd92149c149ebd9451a50013ef3e197e7e701283d5c25808ef0a3f933ab33e50121025c1ad4bc312481611e783751b8fc4de830a4436c129c4b82d704e728f3a5c1a3"}],"outputs":[{"index":0,"value":90000,"scriptPubKey":"76a914c081d02953f84ab9cb7aff43a845afb689d0c7ed88ac","address":"my4qYTdMmc7Dnd5H85HZSjtsD8NDmvyewJ","hash160":"c081d02953f84ab9cb7aff43a845afb689d0c7ed","txoutType":"pubkeyhash","spent":false,"nextTxHash":null,"nextTxinIndex":null},{"index":1,"value":7880000,"scriptPubKey":"76a914e64bae89305148c4098b1117594f802bcfcafdab88ac","address":"n2WeNdvFk7GX9p38Ni7yebD56TfjvgDavC","hash160":"e64bae89305148c4098b1117594f802bcfcafdab","txoutType":"pubkeyhash","spent":true,"nextTxHash":"4bcec91b6f39a11ad51f148f3ca6b156b4ac2373c4ba72af46b4a71beb71539b","nextTxinIndex":1}],"totalInputsValue":7980000,"totalOutputsValue":7970000,"fees":10000}]}}'
45
+ http_version:
46
+ recorded_at: Mon, 17 Mar 2014 16:46:12 GMT
47
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://testnet.helloblock.io/v1/addresses/transactions?addresses%5B0%5D=1DQN9nopGvSCDnM3LH1w7j36FtnQDZKnej&addresses%5B1%5D=1DQN9nopGvSCDnM3LH1w7j36FtnQDZKnej
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - '*/*'
12
+ User-Agent:
13
+ - HelloBlock Gem 0.0.1
14
+ Content-Type:
15
+ - application/json; charset=UTF-8
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Server:
24
+ - cloudflare-nginx
25
+ Date:
26
+ - Mon, 17 Mar 2014 16:46:11 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Content-Length:
30
+ - '47'
31
+ Connection:
32
+ - keep-alive
33
+ Set-Cookie:
34
+ - __cfduid=d5e91b39418bb18c905088b4a9b73d8de1395074771259; expires=Mon, 23-Dec-2019
35
+ 23:50:00 GMT; path=/; domain=.helloblock.io; HttpOnly
36
+ Access-Control-Allow-Origin:
37
+ - '*'
38
+ Etag:
39
+ - '"576461842"'
40
+ X-Powered-By:
41
+ - Express
42
+ Cf-Ray:
43
+ - 10caaa485cd4070d-SJC
44
+ body:
45
+ encoding: UTF-8
46
+ string: '{"status":"success","data":{"transactions":[]}}'
47
+ http_version:
48
+ recorded_at: Mon, 17 Mar 2014 16:46:12 GMT
49
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://testnet.helloblock.io/v1/addresses/unspents?addresses%5B0%5D=1DQN9nopGvSCDnM3LH1w7j36FtnQDZKnej&addresses%5B1%5D=1DQN9nopGvSCDnM3LH1w7j36FtnQDZKnej
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - '*/*'
12
+ User-Agent:
13
+ - HelloBlock Gem 0.0.1
14
+ Content-Type:
15
+ - application/json; charset=UTF-8
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Server:
24
+ - cloudflare-nginx
25
+ Date:
26
+ - Tue, 18 Mar 2014 04:27:14 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Content-Length:
30
+ - '43'
31
+ Connection:
32
+ - keep-alive
33
+ Set-Cookie:
34
+ - __cfduid=d184f170bef0f2f183f6cc9dc9277f66b1395116834466; expires=Mon, 23-Dec-2019
35
+ 23:50:00 GMT; path=/; domain=.helloblock.io; HttpOnly
36
+ Access-Control-Allow-Origin:
37
+ - '*'
38
+ Etag:
39
+ - '"-1484056770"'
40
+ X-Powered-By:
41
+ - Express
42
+ Cf-Ray:
43
+ - 10cead376afc070d-SJC
44
+ body:
45
+ encoding: UTF-8
46
+ string: '{"status":"success","data":{"unspents":[]}}'
47
+ http_version:
48
+ recorded_at: Tue, 18 Mar 2014 04:27:14 GMT
49
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,45 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://testnet.helloblock.io/v1/faucet?type=3
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - '*/*'
12
+ User-Agent:
13
+ - HelloBlock Gem 0.0.1
14
+ Content-Type:
15
+ - application/json; charset=UTF-8
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Server:
24
+ - cloudflare-nginx
25
+ Date:
26
+ - Tue, 18 Mar 2014 05:40:25 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ Set-Cookie:
34
+ - __cfduid=d146c7b45a615b7015af4d51847a94be01395121224348; expires=Mon, 23-Dec-2019
35
+ 23:50:00 GMT; path=/; domain=.helloblock.io; HttpOnly
36
+ X-Powered-By:
37
+ - Express
38
+ Cf-Ray:
39
+ - 10cf18642260070d-SJC
40
+ body:
41
+ encoding: UTF-8
42
+ string: '{"status":"success","data":{"privateKeyWIF":"9262CbSrwnzmAr441BRyZsPCNUyKyw2bQtWpXQnVTWyGAQTci4D","privateKeyHex":"42159bc355c893d2d3f747b140940f0cbac393c82e9b7caca219f4974c040140","address":"msYdtAFomTzj3SPdfhVjDQ5w8PU451d7YH","hash160":"83f2f8c7d8bd8e84f38ae219e073ded13e54ffcc","faucetType":3,"unspents":[{"confirmations":12705,"blockHeight":192661,"txHash":"87fffeb9bbb3069c5c8cca1fdaef2ee89e7b6a3d07ef757d74d45f52bb64d9d0","index":0,"scriptPubKey":"76a91483f2f8c7d8bd8e84f38ae219e073ded13e54ffcc88ac","txoutType":"pubkeyhash","value":50000,"hash160":"83f2f8c7d8bd8e84f38ae219e073ded13e54ffcc","address":"msYdtAFomTzj3SPdfhVjDQ5w8PU451d7YH"},{"confirmations":12705,"blockHeight":192661,"txHash":"a0d4c5648a19baddcb65fe20b022047bfd4364d7f8f66630a685583bdd4c736a","index":0,"scriptPubKey":"76a91483f2f8c7d8bd8e84f38ae219e073ded13e54ffcc88ac","txoutType":"pubkeyhash","value":100000,"hash160":"83f2f8c7d8bd8e84f38ae219e073ded13e54ffcc","address":"msYdtAFomTzj3SPdfhVjDQ5w8PU451d7YH"},{"confirmations":12705,"blockHeight":192661,"txHash":"bab25d5f7f65418aedec0e536c701725895026f2cc59e860553e649a204f3178","index":0,"scriptPubKey":"76a91483f2f8c7d8bd8e84f38ae219e073ded13e54ffcc88ac","txoutType":"pubkeyhash","value":10000,"hash160":"83f2f8c7d8bd8e84f38ae219e073ded13e54ffcc","address":"msYdtAFomTzj3SPdfhVjDQ5w8PU451d7YH"}]}}'
43
+ http_version:
44
+ recorded_at: Tue, 18 Mar 2014 05:40:25 GMT
45
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,47 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://testnet.helloblock.io/v1/blocks/latest?limit=1
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - '*/*'
12
+ User-Agent:
13
+ - HelloBlock Gem 0.0.1
14
+ Content-Type:
15
+ - application/json; charset=UTF-8
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Server:
24
+ - cloudflare-nginx
25
+ Date:
26
+ - Tue, 18 Mar 2014 04:44:30 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ Set-Cookie:
34
+ - __cfduid=d4a6648e87e60c9e12d3563fdad4843ac1395117869682; expires=Mon, 23-Dec-2019
35
+ 23:50:00 GMT; path=/; domain=.helloblock.io; HttpOnly
36
+ Access-Control-Allow-Origin:
37
+ - '*'
38
+ X-Powered-By:
39
+ - Express
40
+ Cf-Ray:
41
+ - 10cec67d852c0651-SJC
42
+ body:
43
+ encoding: UTF-8
44
+ string: '{"status":"success","data":{"blocks":[{"blockHeight":205362,"blockHash":"0000000049404ead48b32c9e7f31d9b14d14ff6f3a98b97ed6b28302021a8b1c","blockTime":1395118700,"previousBlockHash":"00000000000b0499d454f3b2ab4c2d358a6ac97bfd47950dffd365d426ec66fe","bits":486604799,"version":2,"merkleRootHash":"4e20bf2797d7d70761ffe4ce9ddb2c6e86b6f449bd64cc28a4a9ed39a8de4827","nonce":809770496,"txsCount":2,"confirmations":1}]}}'
45
+ http_version:
46
+ recorded_at: Tue, 18 Mar 2014 04:44:30 GMT
47
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,47 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://testnet.helloblock.io/v1/transactions/latest?limit=5
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - '*/*'
12
+ User-Agent:
13
+ - HelloBlock Gem 0.0.1
14
+ Content-Type:
15
+ - application/json; charset=UTF-8
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Server:
24
+ - cloudflare-nginx
25
+ Date:
26
+ - Mon, 17 Mar 2014 16:59:07 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ Set-Cookie:
34
+ - __cfduid=dbd855fa0be018eec7af719a9c77571571395075547283; expires=Mon, 23-Dec-2019
35
+ 23:50:00 GMT; path=/; domain=.helloblock.io; HttpOnly
36
+ Access-Control-Allow-Origin:
37
+ - '*'
38
+ X-Powered-By:
39
+ - Express
40
+ Cf-Ray:
41
+ - 10cabd3a812b0651-SJC
42
+ body:
43
+ encoding: UTF-8
44
+ string: '{"status":"success","data":{"transactions":[{"txHash":"490f14ee40708ab12ae02846fc1d432d1b1e0bb84513bc8f152960b66e31a144","version":1,"locktime":0,"size":258,"blockHash":null,"blockHeight":null,"blockTime":null,"estimatedTxTime":1395075505,"confirmations":0,"inputsCount":1,"outputsCount":2,"inputs":[{"prevTxHash":"0a48bb48d35010a59a5ed7fd7b4fab0493589652148fd7e1d3c9076846b43fe9","prevTxoutIndex":0,"prevTxoutType":"pubkeyhash","value":140011541000,"address":"ms2AmnfojyQXFbwReFRwriYSLpUR8umJRH","hash160":"7e2fdcde7e9a9b4a5adb14d19722d3e53e7f6bd2","scriptSig":"483045022100fb5ee3610ed5d225bbdddf0416901b1efd5f59b7ce10db88b3c9be05dc5098d802207cc119295b80af215af2a0116abae91e4246dabecd34c152c675a9be9ffdb78101410436c0a9a6d3de1ed555c80d13307d7fb0f2024929fbe9353a2b4a3331f12783f700441889e5211f9fed2fc5c739c3849d9a2d6324d63ab05b30c6ccc1bfbc5464"}],"outputs":[{"index":0,"value":140011431000,"scriptPubKey":"76a91487a55acdcaebfb6d406db7ae2ed7f170fc4d5dd088ac","address":"mstBbzo7khPDTedqvBbRSrsciGMuBaGwvU","hash160":"87a55acdcaebfb6d406db7ae2ed7f170fc4d5dd0","txoutType":"pubkeyhash","spent":false,"nextTxHash":null,"nextTxinIndex":null},{"index":1,"value":100000,"scriptPubKey":"76a9142393d21bdf4888db1d029afa1bb919a2b6ccc04f88ac","address":"mim52XsHbvzYwZex9phnBfPFHMhZ3XmMJT","hash160":"2393d21bdf4888db1d029afa1bb919a2b6ccc04f","txoutType":"pubkeyhash","spent":false,"nextTxHash":null,"nextTxinIndex":null}],"totalInputsValue":140011541000,"totalOutputsValue":140011531000,"fees":10000},{"txHash":"fcec4cda27609561df832b5407c2443936e536f901da7863eb9acd30d97fe305","version":1,"locktime":0,"size":226,"blockHash":null,"blockHeight":null,"blockTime":null,"estimatedTxTime":1395075393,"confirmations":0,"inputsCount":1,"outputsCount":2,"inputs":[{"prevTxHash":"26550edcaff29f37732497c4cbb23d6cf135dd2b4f74a43024c80eecd5b67c4e","prevTxoutIndex":1,"prevTxoutType":"pubkeyhash","value":78520700,"address":"n2ZQyQfvKs7H4FMdwouY2aiRVCBekQQPSf","hash160":"e6d1be5611333ca5ce030a6fd2e8a7eff9c00dec","scriptSig":"4830450221009999fa178b86a2636a7f4ec97171d9a606b9ba22e0d8e581e4cd9eb649b23a5102200d29121b7a0ec4c8d30ef765feff9f0b71b7acb7d8c677b2bfb96b70b08d44a1012102986b85e9c32eef642e428f303b68dedd67a7860ec6c905436549c28b31fc0731"}],"outputs":[{"index":0,"value":1000000,"scriptPubKey":"76a9149d9c3d5ceaf4a6645dee62d4421431ce4da2f20088ac","address":"mutKYtvQJ5FV6cs82hjXEfWNGZRFz6Y74S","hash160":"9d9c3d5ceaf4a6645dee62d4421431ce4da2f200","txoutType":"pubkeyhash","spent":false,"nextTxHash":null,"nextTxinIndex":null},{"index":1,"value":77510700,"scriptPubKey":"76a914e6d1be5611333ca5ce030a6fd2e8a7eff9c00dec88ac","address":"n2ZQyQfvKs7H4FMdwouY2aiRVCBekQQPSf","hash160":"e6d1be5611333ca5ce030a6fd2e8a7eff9c00dec","txoutType":"pubkeyhash","spent":false,"nextTxHash":null,"nextTxinIndex":null}],"totalInputsValue":78520700,"totalOutputsValue":78510700,"fees":10000},{"txHash":"db62bf614374d956eeb980907deb5c2c6bad9d763dead1f0e7c17d8a2f4eb883","version":1,"locktime":0,"size":223,"blockHash":null,"blockHeight":null,"blockTime":null,"estimatedTxTime":1395075363,"confirmations":0,"inputsCount":1,"outputsCount":1,"inputs":[{"prevTxHash":"42f5abfb92ec8506d8309b83d2b30dbde5562bc29ce122e6c3c976479fb6a60b","prevTxoutIndex":0,"prevTxoutType":"pubkeyhash","value":3000000000,"address":"mrEiHU4dJArbYip4L82UugmmCcnHZZmA7P","hash160":"7597087e67277142f57ec72fa4dbf6539b18aa83","scriptSig":"4730440220263b95f781834a3c5b2dfbc988523f4d3075ff2941ee9588fe13e317cd8b9a8f02207c3c529430567affdc2d23d61ecefd824dae1e7725bf08bdc8f1874328f661000141041e3eac0c521ae17115d74ac012f29708908f14678968400ea9b302e3b1b237316d575b515a85435057e6d1e2ea2fce5ba30710ceba81b60bb8d99dedc4e09b9a"}],"outputs":[{"index":0,"value":3000000000,"scriptPubKey":"76a9145edefbb378556730b639ea016d53d26a81a3a4ab88ac","address":"mpAawEM7TQT17cTmZS2YVaUSYXpBLhQP97","hash160":"5edefbb378556730b639ea016d53d26a81a3a4ab","txoutType":"pubkeyhash","spent":false,"nextTxHash":null,"nextTxinIndex":null}],"totalInputsValue":3000000000,"totalOutputsValue":3000000000,"fees":0},{"txHash":"2c2c0fc1f7412ecb90dabfcbc00dbb5df448302a4ff11406577ee1ef9fd63683","version":1,"locktime":0,"size":225,"blockHash":null,"blockHeight":null,"blockTime":null,"estimatedTxTime":1395075362,"confirmations":0,"inputsCount":1,"outputsCount":1,"inputs":[{"prevTxHash":"6c278459ea9285f21d9391347a8b677f0ad1a5b5e056167c8e672be0f1d7923f","prevTxoutIndex":0,"prevTxoutType":"pubkeyhash","value":1000000000,"address":"mxHYzPZrZsScHQVqrvqZUTsgwaLuL8ckYS","hash160":"b7f146f3e4d0ab835658ec52344ddaae563c6fd6","scriptSig":"493046022100c30edb441fdfe5fed8c99d73c52ee1592b0202f6d1f7af05ca25a5272a56a681022100f6dee9645bb42e258bed43a8abb74c41c1f79695c3abf61a091d503413f35b39014104514c61a9fa4f1b200e25cb13cde5555ea227469a957fae743992733859342223e454718a12dd9dd7e3f3d47b82fb6f967f85a9459394f42a75de5d29bed1d987"}],"outputs":[{"index":0,"value":1000000000,"scriptPubKey":"76a9145edefbb378556730b639ea016d53d26a81a3a4ab88ac","address":"mpAawEM7TQT17cTmZS2YVaUSYXpBLhQP97","hash160":"5edefbb378556730b639ea016d53d26a81a3a4ab","txoutType":"pubkeyhash","spent":false,"nextTxHash":null,"nextTxinIndex":null}],"totalInputsValue":1000000000,"totalOutputsValue":1000000000,"fees":0},{"txHash":"69a44ce97218557b79efaa72e6685f864afc86a23de5881a11af923620435a1a","version":1,"locktime":0,"size":109,"blockHash":"000000001e0ea50f348c938073910596001449028b4e9636de80b9c2c154de3c","blockHeight":205308,"blockTime":1395075885,"estimatedTxTime":1395075354,"confirmations":1,"inputsCount":1,"outputsCount":1,"inputs":[{"prevTxHash":"0000000000000000000000000000000000000000000000000000000000000000","prevTxoutIndex":-1,"prevTxoutType":"coinbase","value":0,"address":null,"hash160":null,"scriptSig":"03fc2103027f04062f503253482f"}],"outputs":[{"index":0,"value":5000040000,"scriptPubKey":"21034169a9396ab512b3b9428c75c8859dce4eb0332e6fb5518204e2b420d99ebe5eac","address":"mzXNj4Dho75xqgYttLnxMQ21d9SezENkuB","hash160":"d07ec8af554a0bc6639d0fab7d09b80d3a29f381","txoutType":"pubkey","spent":false,"nextTxHash":null,"nextTxinIndex":null}],"totalInputsValue":0,"totalOutputsValue":5000040000,"fees":0}]}}'
45
+ http_version:
46
+ recorded_at: Mon, 17 Mar 2014 16:59:08 GMT
47
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://testnet.helloblock.io/v1/transactions/?rawTxHex=0100000001ec71e2ceac8476bea21fbc4a97062c000f07def6c8ef8d9171fb1a5e113418e0010000008c493046022100e6f39b4393794ef03b0f9dc71395e0835a211015b42ab4329cb6a6c1c8b3c6ea022100f1ccae451f35e5c5ad25a8f7e7b5e778bafc4dc69dd560fab1cbadbb88767916014104e1934263e84e202ebffca95246b63c18c07cd369c4f02de76dbd1db89e6255dacb3ab1895af0422e24e1d1099e80f01b899cfcdf9b947575352dbc1af57466b5ffffffff0210270000000000001976a914652c453e3f8768d6d6e1f2985cb8939db91a4e0588ace065f81f000000001976a914cf0dfe6e0fa6ea5dda32c58ff699071b672e1faf88ac00000000
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - '*/*'
12
+ User-Agent:
13
+ - HelloBlock Gem 0.0.1
14
+ Content-Type:
15
+ - application/json; charset=UTF-8
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 400
21
+ message: Bad Request
22
+ headers:
23
+ Server:
24
+ - cloudflare-nginx
25
+ Date:
26
+ - Tue, 18 Mar 2014 05:52:38 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Content-Length:
30
+ - '64'
31
+ Connection:
32
+ - keep-alive
33
+ Set-Cookie:
34
+ - __cfduid=d7c0f68bbf036606292ce51aaabb6785f1395121958344; expires=Mon, 23-Dec-2019
35
+ 23:50:00 GMT; path=/; domain=.helloblock.io; HttpOnly
36
+ Access-Control-Allow-Origin:
37
+ - '*'
38
+ Etag:
39
+ - '"279040391"'
40
+ X-Powered-By:
41
+ - Express
42
+ Cf-Ray:
43
+ - 10cf2a4fa7cb070d-SJC
44
+ body:
45
+ encoding: UTF-8
46
+ string: '{"status":"fail","message":"No Transactions Given","details":[]}'
47
+ http_version:
48
+ recorded_at: Tue, 18 Mar 2014 05:52:38 GMT
49
+ recorded_with: VCR 2.8.0