helloblock-ruby 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.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +48 -0
- data/Rakefile +1 -0
- data/fixture/vcr_cassettes/addresses.yml +46 -0
- data/helloblock-ruby.gemspec +32 -0
- data/lib/helloblock.rb +6 -0
- data/lib/helloblock/client.rb +25 -0
- data/lib/helloblock/client/connection.rb +34 -0
- data/lib/helloblock/client/endpoints.rb +47 -0
- data/lib/helloblock/client/request.rb +31 -0
- data/lib/helloblock/version.rb +3 -0
- data/spec/fixture/vcr_cassettes/addresses.yml +46 -0
- data/spec/fixture/vcr_cassettes/blocks.yml +46 -0
- data/spec/fixture/vcr_cassettes/faucet.yml +45 -0
- data/spec/fixture/vcr_cassettes/latest_blocks.yml +45 -0
- data/spec/fixture/vcr_cassettes/latest_transaction.yml +45 -0
- data/spec/fixture/vcr_cassettes/propagate.yml +46 -0
- data/spec/fixture/vcr_cassettes/transactions.yml +47 -0
- data/spec/fixture/vcr_cassettes/transactions_for_address.yml +47 -0
- data/spec/fixture/vcr_cassettes/unspents.yml +47 -0
- data/spec/fixture/vcr_cassettes/wallet.yml +45 -0
- data/spec/fixture/vcr_cassettes/withdrawal.yml +46 -0
- data/spec/integration/calls_api_spec.rb +144 -0
- data/spec/lib/client_spec.rb +9 -0
- data/spec/lib/helloblock/endpoints_spec.rb +84 -0
- data/spec/lib/helloblock/request_spec.rb +35 -0
- data/spec/spec_helper.rb +8 -0
- metadata +229 -0
@@ -0,0 +1,45 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://testnet.helloblock.io/blocks/latest
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- HelloBlock Ruby 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, 11 Mar 2014 08:44:36 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=d9ab7aa6b4b8cde5a17ef6eec60b0a5631394527476004; 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
|
+
- 109678950a0c070d-SJC
|
40
|
+
body:
|
41
|
+
encoding: UTF-8
|
42
|
+
string: '{"status":"success","data":{"blocks":[{"blockHeight":204357,"blockHash":"00000000ec714889ab873657397c57f91c312ebf8a624486e79d744b3ed2febd","blockTime":1394528547,"previousBlockHash":"000000002cade2b04e2968f43d19c80e8f0cd1abb413da9a35a8736d9fc8a6b5","bits":486604799,"version":2,"merkleRootHash":"8334e8b4ce06aa727f48e4b0e164d107fc6fe90c76fdb47ebdeafab8a8ce1dd8","nonce":2768450816,"totalInputsValue":262306630652,"totalOutputsValue":267306630652,"transactionsCount":23,"confirmations":1},{"blockHeight":204356,"blockHash":"000000002cade2b04e2968f43d19c80e8f0cd1abb413da9a35a8736d9fc8a6b5","blockTime":1394527308,"previousBlockHash":"00000000082ed0727cdea1e16e9ac233028b8f323fbf0ffc5941ca185df40fbe","bits":486604799,"version":2,"merkleRootHash":"a351d51e413604a1c30922b5e752c879759ae08e451c0651aa3f515b298a14f2","nonce":1565375744,"totalInputsValue":11306375476,"totalOutputsValue":16306375476,"transactionsCount":6,"confirmations":2},{"blockHeight":204355,"blockHash":"00000000082ed0727cdea1e16e9ac233028b8f323fbf0ffc5941ca185df40fbe","blockTime":1394526095,"previousBlockHash":"00000000000bd6268992f269d3396a89de401a735ec80b17ba8f0a898df76d14","bits":486604799,"version":2,"merkleRootHash":"5a549974029eb0c6e5497fece7cfd61713d87d9ea93f6b79f0c6ba3b7689aa78","nonce":4235737856,"totalInputsValue":154164877430,"totalOutputsValue":159164877430,"transactionsCount":5,"confirmations":3},{"blockHeight":204354,"blockHash":"00000000000bd6268992f269d3396a89de401a735ec80b17ba8f0a898df76d14","blockTime":1394524886,"previousBlockHash":"00000000fa3842c017ba7075e25948b9e0146efc81ac06638121dbf5b010ceee","bits":454560432,"version":2,"merkleRootHash":"847fdb7c25c053cd8d64291e91785a231fe0472b510c0e2298fe541ca1967005","nonce":4222893197,"totalInputsValue":199833427362,"totalOutputsValue":204833427362,"transactionsCount":98,"confirmations":4},{"blockHeight":204353,"blockHash":"00000000fa3842c017ba7075e25948b9e0146efc81ac06638121dbf5b010ceee","blockTime":1394525618,"previousBlockHash":"0000000026a8ad72eeae36934e31256e8cd5cadbd773750b1180c9ef9ab99e38","bits":486604799,"version":2,"merkleRootHash":"13919213ef42f003e7f791471944f0e4c3b1eee325001c43427d8725fc4649d8","nonce":4089321472,"totalInputsValue":117345259943,"totalOutputsValue":122345259943,"transactionsCount":20,"confirmations":5},{"blockHeight":204352,"blockHash":"0000000026a8ad72eeae36934e31256e8cd5cadbd773750b1180c9ef9ab99e38","blockTime":1394524375,"previousBlockHash":"00000000601be2b052a03d1a43d840242e78b5ba3cc3413cd52b3fbddf76c77b","bits":486604799,"version":2,"merkleRootHash":"41bc6bdd4b7d6f97abfd11f2d7f8800d17b4701a69e14695d64a716f1936120c","nonce":2950594816,"totalInputsValue":132835709155,"totalOutputsValue":137835709155,"transactionsCount":6,"confirmations":6},{"blockHeight":204351,"blockHash":"00000000601be2b052a03d1a43d840242e78b5ba3cc3413cd52b3fbddf76c77b","blockTime":1394523158,"previousBlockHash":"000000000013da91970746e91405e6596267ed0b063c279abd2e9900fef4cb7f","bits":486604799,"version":2,"merkleRootHash":"c328c6b26df7e878562f2161f1a512faa1816a15d3add26aaa897ff2c910be0c","nonce":3229986816,"totalInputsValue":118847747435,"totalOutputsValue":123847747435,"transactionsCount":20,"confirmations":7},{"blockHeight":204350,"blockHash":"000000000013da91970746e91405e6596267ed0b063c279abd2e9900fef4cb7f","blockTime":1394521939,"previousBlockHash":"0000000018b30c353662d9ce9816b902fd777313370da81302faadf86434704c","bits":454560432,"version":2,"merkleRootHash":"04a67eaeaedd7449f8c5dd9f6b992002a7bfa271d64adf4ba0be75162920178e","nonce":1471646756,"totalInputsValue":7601720000,"totalOutputsValue":12601720000,"transactionsCount":12,"confirmations":8},{"blockHeight":204349,"blockHash":"0000000018b30c353662d9ce9816b902fd777313370da81302faadf86434704c","blockTime":1394522886,"previousBlockHash":"00000000fe37e055e9c1a6ae23c1501425edf43911ca1f348032e14a3c9cfd37","bits":486604799,"version":2,"merkleRootHash":"f40ee51ee4409bb97e33895e9df71d1e4184022333b23f7179f106eb5edcb9fe","nonce":1162205696,"totalInputsValue":255850406750,"totalOutputsValue":260850406750,"transactionsCount":13,"confirmations":9},{"blockHeight":204348,"blockHash":"00000000fe37e055e9c1a6ae23c1501425edf43911ca1f348032e14a3c9cfd37","blockTime":1394521683,"previousBlockHash":"000000000001f78c6c6378c7cdde85775ab2ac6d618716c1b87e29dbbe69352c","bits":486604799,"version":2,"merkleRootHash":"60e53e8aaa26b792456b3d7fa9db14363dffac8b122543ecd5524c25108c47a6","nonce":543932672,"totalInputsValue":781413082760,"totalOutputsValue":786413082760,"transactionsCount":18,"confirmations":10},{"blockHeight":204347,"blockHash":"000000000001f78c6c6378c7cdde85775ab2ac6d618716c1b87e29dbbe69352c","blockTime":1394520435,"previousBlockHash":"00000000000e5cac6f817c10e1503fe4ecad0e088300c63f7dee80d45c936889","bits":454560432,"version":2,"merkleRootHash":"eac3faee9352ec20fb34896eaf811dd1e9a2d202505c18f249360f696fc84db2","nonce":444450679,"totalInputsValue":67528510280,"totalOutputsValue":72528510280,"transactionsCount":4,"confirmations":11},{"blockHeight":204346,"blockHash":"00000000000e5cac6f817c10e1503fe4ecad0e088300c63f7dee80d45c936889","blockTime":1394520345,"previousBlockHash":"00000000000e69086f918eaa087c327c5001e4a9b22960e966c0334354fa8e14","bits":454560432,"version":2,"merkleRootHash":"0fa2556faa39608036b107886b17aed97af6f2dd3f740256f3eae97d76f26c3c","nonce":1382705324,"totalInputsValue":69497126293,"totalOutputsValue":74497126293,"transactionsCount":7,"confirmations":12},{"blockHeight":204345,"blockHash":"00000000000e69086f918eaa087c327c5001e4a9b22960e966c0334354fa8e14","blockTime":1394520185,"previousBlockHash":"00000000b58f8f4e61725a9db000f36d4c784a9ea157f8531a1c91b5ee4a0937","bits":454560432,"version":2,"merkleRootHash":"ca2d27dd8fc32724f1b51bd2d61837b991134c351da0f4fcfc6efb2c81ca6db0","nonce":1274719315,"totalInputsValue":50695431685,"totalOutputsValue":55695431685,"transactionsCount":5,"confirmations":13},{"blockHeight":204344,"blockHash":"00000000b58f8f4e61725a9db000f36d4c784a9ea157f8531a1c91b5ee4a0937","blockTime":1394521055,"previousBlockHash":"0000000000094466bffe8fffb3a69f813e460ccc748c4ffa2d8e28770b49098b","bits":486604799,"version":2,"merkleRootHash":"fa920a990afe5b7fd2f7f697022e36c4b3ef551de6b7086000f192e3f88b2d2c","nonce":3947585024,"totalInputsValue":0,"totalOutputsValue":5000000000,"transactionsCount":1,"confirmations":14},{"blockHeight":204343,"blockHash":"0000000000094466bffe8fffb3a69f813e460ccc748c4ffa2d8e28770b49098b","blockTime":1394519796,"previousBlockHash":"000000009dd7bd84faaf02ab70427ba7efa33dba46e213a581ed0a4e9e49b3e8","bits":454560432,"version":2,"merkleRootHash":"ff9074a383cc8d572d406a000747375d9488ba8fce372aa5e28c1faf077ecc32","nonce":1849651270,"totalInputsValue":261449018,"totalOutputsValue":5261449018,"transactionsCount":3,"confirmations":15},{"blockHeight":204342,"blockHash":"000000009dd7bd84faaf02ab70427ba7efa33dba46e213a581ed0a4e9e49b3e8","blockTime":1394519885,"previousBlockHash":"00000000001771cf3aa462f10d2f0b3a39c11bf7279d2f56e164584ea02b143c","bits":486604799,"version":2,"merkleRootHash":"4b6b3fe6802026bace5268d9c5d5e31c9ca4c814299d29dd16e9a62606838ec4","nonce":1857325056,"totalInputsValue":95943549298,"totalOutputsValue":100943549298,"transactionsCount":20,"confirmations":16},{"blockHeight":204341,"blockHash":"00000000001771cf3aa462f10d2f0b3a39c11bf7279d2f56e164584ea02b143c","blockTime":1394518633,"previousBlockHash":"000000000008bff4e1e9aab9744e9df86fd34bcea212f7698ef678137616ad9c","bits":454560432,"version":2,"merkleRootHash":"7dc524233925223f3d8b8f60a0a2f57839ce6d8afd34c6702af8ea9ac89b924c","nonce":410508312,"totalInputsValue":0,"totalOutputsValue":5000000000,"transactionsCount":1,"confirmations":17},{"blockHeight":204340,"blockHash":"000000000008bff4e1e9aab9744e9df86fd34bcea212f7698ef678137616ad9c","blockTime":1394518494,"previousBlockHash":"00000000689c3450cb346a97b5a31807700f0182a170a2b8d1a7fbda9acaaef8","bits":454560432,"version":2,"merkleRootHash":"fd112e727fe33e8af4a56d1bcdacfe541b24bce115dc136c7542ed832e054a83","nonce":899431270,"totalInputsValue":133223156934,"totalOutputsValue":138223156934,"transactionsCount":114,"confirmations":18},{"blockHeight":204339,"blockHash":"00000000689c3450cb346a97b5a31807700f0182a170a2b8d1a7fbda9acaaef8","blockTime":1394518916,"previousBlockHash":"0000000000169d276fcf1908811cebafc70c7e69446654624412047629686067","bits":486604799,"version":2,"merkleRootHash":"2a019700e184067a896e392f2f8e10b71b921fdf7d3901b0b687f542fe2b6524","nonce":3092147712,"totalInputsValue":0,"totalOutputsValue":5000000000,"transactionsCount":1,"confirmations":19},{"blockHeight":204338,"blockHash":"0000000000169d276fcf1908811cebafc70c7e69446654624412047629686067","blockTime":1394517691,"previousBlockHash":"00000000c881e0efc98059046558fae7fdea6264d4efc1c7011639e58542bf1d","bits":454560432,"version":2,"merkleRootHash":"b8f23cbf1f599087773d46d1b774653954f0b0b1704cae715a1227dd372243bf","nonce":710182555,"totalInputsValue":86097711475,"totalOutputsValue":91097711475,"transactionsCount":10,"confirmations":20}]}}'
|
43
|
+
http_version:
|
44
|
+
recorded_at: Tue, 11 Mar 2014 08:44:36 GMT
|
45
|
+
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/transactions/latest
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- HelloBlock Ruby 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, 11 Mar 2014 08:44:35 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=d8712cfdc3d4c6af4a2125246f4d5e34f1394527475573; 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
|
+
- 109678925eaa070d-SJC
|
40
|
+
body:
|
41
|
+
encoding: UTF-8
|
42
|
+
string: '{"status":"success","data":{"transactions":[{"txHash":"eb09a2492f200eb3583913fb2804717124089935ba03d894e1f14adc8470b095","version":1,"size":227,"blockHash":null,"blockHeight":null,"blockTime":null,"estimatedTxTime":1394527435,"confirmations":0,"inputsCount":1,"outputsCount":2,"inputs":[{"index":1,"txHash":"7252a673c04ac103a3e68062d00d0a2bca2980ee7d4ee81e8d37c9de41a6a086","value":341500775,"address":"mjuMXYpfU5EZ9BqA53vV1v1FUvb2qTEGhe","hash160":"301d0c470d8a7226ee5f5223c351d7c28dc58233","scriptSig":"4930460221009a4131be630389f0e804dc5cb3e8f67804738f1f2d1714c430973015d698d6ae022100a5c65952020f6cc8ddbc950e09e64f76179293474fd5859dadea251fe2c2f923012103962ee2b70c67e0fcdc8507521c3f800ef1165b110ab37f30cc85e4c5cf469264"}],"outputs":[{"index":0,"value":306606565,"scriptPubKey":"76a91410561a64f3773b6e63590acadc09cf2cc8dcd4b088ac","spent":false,"address":"mh1LFfv7YwYtvst3qSuKrYMt1pC8RcDKWf","hash160":"10561a64f3773b6e63590acadc09cf2cc8dcd4b0","type":"pubkeyhash"},{"index":1,"value":34884210,"scriptPubKey":"76a914c133837e2906e9f0ea93342c19ec53071c7c9e5388ac","spent":false,"address":"my8WRJpQQwvdVJW8FkPBtkL2jvtdN4EL8F","hash160":"c133837e2906e9f0ea93342c19ec53071c7c9e53","type":"pubkeyhash"}],"totalInputsValue":341500775,"totalOutputsValue":341490775,"fees":10000},{"txHash":"d9679ebeb78efe61992c2788e9ac5a5411f167cf9c3e1895c698c537b94bc894","version":1,"size":225,"blockHash":null,"blockHeight":null,"blockTime":null,"estimatedTxTime":1394527435,"confirmations":0,"inputsCount":1,"outputsCount":2,"inputs":[{"index":1,"txHash":"f9f3b29981784a368593b76576e482410d657d3dac9182f89fb8d970dc0f6c28","value":17915877240,"address":"mqyydGyknTHBEtSSrgrbnB8zEaJMJWmVNr","hash160":"72cd99a7eb3f987d7487bc3008707aeff616653f","scriptSig":"4730440220753c549b024ea519080a6055c058ca1b1b4f8c99337460531ee805a8cd8baee3022030eebe1a439c5887d3ff3e07ebbccac9fd2c688cd7e34936070024042ce814130121033a0905a91cb32198aaf4701f9f5be2b41b0bc76ac52c22eae8b21656f2706b09"}],"outputs":[{"index":0,"value":55233820,"scriptPubKey":"76a9141dc3e45aa6ffb64f89ab25bf1641e2425a4cfd3a88ac","spent":false,"address":"miELZS31nK1nUmvkeSouuQpwRkz2eR55oS","hash160":"1dc3e45aa6ffb64f89ab25bf1641e2425a4cfd3a","type":"pubkeyhash"},{"index":1,"value":17860643420,"scriptPubKey":"76a9144adab9a1dc904741b6f99d15a42d049237a0dcec88ac","spent":false,"address":"mnLkKY8w2sTxULiZUeqtyQfQAGzJSXthMK","hash160":"4adab9a1dc904741b6f99d15a42d049237a0dcec","type":"pubkeyhash"}],"totalInputsValue":17915877240,"totalOutputsValue":17915877240,"fees":0},{"txHash":"17faea8915b06ca73658389455fe09706d9a0befd8ec7e006295f853cc1d26bf","version":1,"size":226,"blockHash":null,"blockHeight":null,"blockTime":null,"estimatedTxTime":1394527430,"confirmations":0,"inputsCount":1,"outputsCount":2,"inputs":[{"index":0,"txHash":"2d1c152bef7258bebb044227a25c1f34736104ae3b60d53dca22ff8dfbdbb056","value":190000,"address":"mwoFeHhFyADuEGNfsTW8o9EsfiA7hFaE4y","hash160":"b2972668f17b3c35b903d7cb07da829bcad12d1c","scriptSig":"483045022100ca8aacbc24f6204c3278445b1807affd2d2fc79cf12c0ad07f378151865765e802205b616cbe68f31ac6a2531b7479f8777529dfcce1526be96e356b33b3406457b701210368f4597cef5378380b0b199709e6137f71d72ce8cdaa36b805517f161a850f3e"}],"outputs":[{"index":0,"value":10000,"scriptPubKey":"76a91411ba36ab7dd14b1aa00686e33699b57e3f61884288ac","spent":false,"address":"mh8grfDXPmJqtk22NnP56gqqWh7vQew4hr","hash160":"11ba36ab7dd14b1aa00686e33699b57e3f618842","type":"pubkeyhash"},{"index":1,"value":170000,"scriptPubKey":"76a914b2972668f17b3c35b903d7cb07da829bcad12d1c88ac","spent":false,"address":"mwoFeHhFyADuEGNfsTW8o9EsfiA7hFaE4y","hash160":"b2972668f17b3c35b903d7cb07da829bcad12d1c","type":"pubkeyhash"}],"totalInputsValue":190000,"totalOutputsValue":180000,"fees":10000},{"txHash":"c804221a71dc73d838477690c8aaf686b5c1fe26fba5b88183ea744884c23cc2","version":1,"size":226,"blockHash":null,"blockHeight":null,"blockTime":null,"estimatedTxTime":1394527257,"confirmations":0,"inputsCount":1,"outputsCount":2,"inputs":[{"index":1,"txHash":"1759a94d45fc67be8e4787c2e7e711e959b6fd1f3074020334522ae7fd9dbabb","value":9709980000,"address":"mkVrHS5d4bWw6mTb5REdT8LYG7vvt7DQpy","hash160":"36a3320a9f86f3d9cadd2faa4ccb454d4f56a176","scriptSig":"483045022017ab0620eeb081d49cdf3a494cae07c5b56d701aec49a3d6d0d01ac51c88386702210088b787dfbca1811bb169d16bc84a057832e78415feb7a11e43da667859e511b301210276083f8bc11e25385c1d70d4fabaed0c58b15dfb076282775aadb5c4bd0a13c1"}],"outputs":[{"index":0,"value":9349980000,"scriptPubKey":"76a9148439f8b24febc38f4343a235a296173520d003e888ac","spent":false,"address":"msa6wJb4GhCVJjCxVH3fJXKzpTjEgA5ZFt","hash160":"8439f8b24febc38f4343a235a296173520d003e8","type":"pubkeyhash"},{"index":1,"value":360000000,"scriptPubKey":"76a9140c9451db405303b4a15b5e09b3897655eb847cac88ac","spent":false,"address":"mgfU5nwvPxHRoJ3nDtsKRZSdT9RPEnPeQ1","hash160":"0c9451db405303b4a15b5e09b3897655eb847cac","type":"pubkeyhash"}],"totalInputsValue":9709980000,"totalOutputsValue":9709980000,"fees":0},{"txHash":"37f89d72c86accfcc35acd61895c822104481e178266ab94b1a942d53f778055","version":1,"size":226,"blockHash":null,"blockHeight":null,"blockTime":null,"estimatedTxTime":1394526945,"confirmations":0,"inputsCount":1,"outputsCount":2,"inputs":[{"index":1,"txHash":"536295bedff39134c490999114f62c031ebeb04458b038c688e1a1c1e53de2a9","value":1689160000,"address":"mwoFeHhFyADuEGNfsTW8o9EsfiA7hFaE4y","hash160":"b2972668f17b3c35b903d7cb07da829bcad12d1c","scriptSig":"483045022100baf2b23e90bd44bdb1a6b29400f564b9fc9153fb18abe7bcccf9a61553b3f36802203ae974a9732c09fb359ac08b5e76b2cee8d7dcf6e88bad615cf4b42276a668e401210368f4597cef5378380b0b199709e6137f71d72ce8cdaa36b805517f161a850f3e"}],"outputs":[{"index":0,"value":10000,"scriptPubKey":"76a91411ba36ab7dd14b1aa00686e33699b57e3f61884288ac","spent":false,"address":"mh8grfDXPmJqtk22NnP56gqqWh7vQew4hr","hash160":"11ba36ab7dd14b1aa00686e33699b57e3f618842","type":"pubkeyhash"},{"index":1,"value":1689140000,"scriptPubKey":"76a914b2972668f17b3c35b903d7cb07da829bcad12d1c88ac","spent":false,"address":"mwoFeHhFyADuEGNfsTW8o9EsfiA7hFaE4y","hash160":"b2972668f17b3c35b903d7cb07da829bcad12d1c","type":"pubkeyhash"}],"totalInputsValue":1689160000,"totalOutputsValue":1689150000,"fees":10000},{"txHash":"c479bd24694a123d76e9f8f1d6869a9146ca1d834e4b8e70d71892dd50502b8e","version":1,"size":226,"blockHash":"00000000ec714889ab873657397c57f91c312ebf8a624486e79d744b3ed2febd","blockHeight":204357,"blockTime":1394528547,"estimatedTxTime":1394526829,"confirmations":1,"inputsCount":1,"outputsCount":2,"inputs":[{"index":1,"txHash":"06d12245e06e7c43125edddb73ee45ca205797c4fc7c2b07a7b3d48f3514c1f8","value":47622103560,"address":"mwBhBcQ3FBSv6WQdFgcjY19K8zJcqbni8g","hash160":"abdd7ec358bded0ad75556cafe9969bb9ba59a9d","scriptSig":"4830450220258c26967df6b995c0f3ad12c7addfacbfc1328894e703fdf1b53a5916667642022100e57e1166a6e22fd702d145a8ddd1af3911f07b654185028057ac65e41728f09e01210387396d858dff05070e65eda7ecb45108350e8dfe25652da85ff400f2626947e1"}],"outputs":[{"index":0,"value":47565113690,"scriptPubKey":"76a914b9d0680a3317aa9b82d42424f6f1c242edd862c488ac","spent":false,"address":"mxTSxscwWu4gNpZfCCMjEeYwqkpxUXWkHj","hash160":"b9d0680a3317aa9b82d42424f6f1c242edd862c4","type":"pubkeyhash"},{"index":1,"value":56989870,"scriptPubKey":"76a9146e826c2e9480ffa5748506163d600b9c36be309e88ac","spent":false,"address":"mqbGs5LCz3nMmdBSnCtdjyFs6SDBNaxz9n","hash160":"6e826c2e9480ffa5748506163d600b9c36be309e","type":"pubkeyhash"}],"totalInputsValue":47622103560,"totalOutputsValue":47622103560,"fees":0},{"txHash":"06d12245e06e7c43125edddb73ee45ca205797c4fc7c2b07a7b3d48f3514c1f8","version":1,"size":226,"blockHash":"00000000ec714889ab873657397c57f91c312ebf8a624486e79d744b3ed2febd","blockHeight":204357,"blockTime":1394528547,"estimatedTxTime":1394526829,"confirmations":1,"inputsCount":1,"outputsCount":2,"inputs":[{"index":0,"txHash":"4b146b8186a253feaf74ae17a32044494a1c89836439e1a22373c035d1f38676","value":47676229320,"address":"min4nZonbio5xieiFB6bE4PwoKZ4CWt1HU","hash160":"23c40922d28cbbcc3517c620c236189c4d58319a","scriptSig":"48304502204aba5577b7c357eaf2227e7de3dedfe19a48e351fab4e5f4872db43a6fc7759e022100a6fb699bd27688c23cfa68258467110c80bf857421071528662b494ea8af1684012103b29d8071a510899c60c1cfb21403674cacb6fd24ccae426f70a312322372c0d2"}],"outputs":[{"index":0,"value":54125760,"scriptPubKey":"76a914107e4c814d224df3818b0436e7b27af34ea6fc9d88ac","spent":false,"address":"mh2AQXBGC275hv793yQGvi9hnpfa1TR9E9","hash160":"107e4c814d224df3818b0436e7b27af34ea6fc9d","type":"pubkeyhash"},{"index":1,"value":47622103560,"scriptPubKey":"76a914abdd7ec358bded0ad75556cafe9969bb9ba59a9d88ac","spent":true,"address":"mwBhBcQ3FBSv6WQdFgcjY19K8zJcqbni8g","hash160":"abdd7ec358bded0ad75556cafe9969bb9ba59a9d","type":"pubkeyhash"}],"totalInputsValue":47676229320,"totalOutputsValue":47676229320,"fees":0},{"txHash":"78d9dc927e90ef0de6eec987eb33a97ba1b84de40ed723d64d1747c9289fffae","version":1,"size":109,"blockHash":"00000000ec714889ab873657397c57f91c312ebf8a624486e79d744b3ed2febd","blockHeight":204357,"blockTime":1394528547,"estimatedTxTime":1394526829,"confirmations":1,"inputsCount":1,"outputsCount":1,"inputs":[{"index":null,"txHash":null,"value":null,"address":null,"hash160":null,"scriptSig":"03451e03023603062f503253482f"}],"outputs":[{"index":0,"value":5000380000,"scriptPubKey":"210335c4b0d0b9949f3bbbff7cfcefb289bff6b2bbce71f211843b0991f4c2d4e30fac","spent":false,"address":"mvybrFMb91b1g2egHt6nBNrLHcan2G8b7w","hash160":"a9940d18d6c4c9daeafd018b8ae2a2bf2e779952","type":"pubkey"}],"totalInputsValue":null,"totalOutputsValue":5000380000,"fees":null},{"txHash":"536295bedff39134c490999114f62c031ebeb04458b038c688e1a1c1e53de2a9","version":1,"size":225,"blockHash":"00000000ec714889ab873657397c57f91c312ebf8a624486e79d744b3ed2febd","blockHeight":204357,"blockTime":1394528547,"estimatedTxTime":1394526685,"confirmations":1,"inputsCount":1,"outputsCount":2,"inputs":[{"index":1,"txHash":"10bfec8645191f182aef63232a661622c118c4f7e3cc24b4f973abc7653c9eb3","value":1689180000,"address":"mwoFeHhFyADuEGNfsTW8o9EsfiA7hFaE4y","hash160":"b2972668f17b3c35b903d7cb07da829bcad12d1c","scriptSig":"47304402202629dac6b273297194f0ed2a7966c7210caff08d1200ce515a0685a766859da8022001b4cfa79be146717843d183cd35d1bfc2e6660fc1f08bc908635d1779aad41d01210368f4597cef5378380b0b199709e6137f71d72ce8cdaa36b805517f161a850f3e"}],"outputs":[{"index":0,"value":10000,"scriptPubKey":"76a91411ba36ab7dd14b1aa00686e33699b57e3f61884288ac","spent":false,"address":"mh8grfDXPmJqtk22NnP56gqqWh7vQew4hr","hash160":"11ba36ab7dd14b1aa00686e33699b57e3f618842","type":"pubkeyhash"},{"index":1,"value":1689160000,"scriptPubKey":"76a914b2972668f17b3c35b903d7cb07da829bcad12d1c88ac","spent":true,"address":"mwoFeHhFyADuEGNfsTW8o9EsfiA7hFaE4y","hash160":"b2972668f17b3c35b903d7cb07da829bcad12d1c","type":"pubkeyhash"}],"totalInputsValue":1689180000,"totalOutputsValue":1689170000,"fees":10000},{"txHash":"aa2e890f7d1250a21e8ce367dfdef99977c96607137d19d6d1b306fffc3ace3d","version":1,"size":226,"blockHash":"00000000ec714889ab873657397c57f91c312ebf8a624486e79d744b3ed2febd","blockHeight":204357,"blockTime":1394528547,"estimatedTxTime":1394526502,"confirmations":1,"inputsCount":1,"outputsCount":2,"inputs":[{"index":1,"txHash":"88e52e9ca1cfeddafd81d8d89a456d8ac24a3052eeefc70f5f6ba7cec56c7218","value":54970000,"address":"mpstVU1FAunTdm38BNHPXFZufzgrnjA6Nd","hash160":"66aeb145c9345edebab9b96bf18d17efc9450457","scriptSig":"483045022100eb1306dfe19a60e7b2c254a5acf00fb3342eeef9b73ca30355a72bd5e7db5743022026e6283cdbf28bdcc3e87baa92e07147fa717d6fc48af229e95555c47207aadc012102446a23344f9db7c51d418f52cc55fa884e981e74847270933a8ff598b8db3b0e"}],"outputs":[{"index":0,"value":44960000,"scriptPubKey":"76a914745870e3f74b864c871d61fcefce2d187d74ac6d88ac","spent":false,"address":"mr88dHxnvp6H4j853gmYPxj7Pse4im5bVH","hash160":"745870e3f74b864c871d61fcefce2d187d74ac6d","type":"pubkeyhash"},{"index":1,"value":10000000,"scriptPubKey":"76a914a400a8c15ed8de07c98c1a10570682453dfef12088ac","spent":false,"address":"mvU7uKJBpq87e7DNM5hUK2i1Maw1BS97e7","hash160":"a400a8c15ed8de07c98c1a10570682453dfef120","type":"pubkeyhash"}],"totalInputsValue":54970000,"totalOutputsValue":54960000,"fees":10000},{"txHash":"4f1d7511969b4b1dc4cdbd566b8ed0e28e6879161b574dde01fe9c318b8a6ae1","version":1,"size":226,"blockHash":"00000000ec714889ab873657397c57f91c312ebf8a624486e79d744b3ed2febd","blockHeight":204357,"blockTime":1394528547,"estimatedTxTime":1394526483,"confirmations":1,"inputsCount":1,"outputsCount":2,"inputs":[{"index":1,"txHash":"c2a554c3e3d42757144c9a143e15d7cdfadc757e4f06eafa40ae05f651562b44","value":7900000,"address":"mjPBMXwbR2qB7nXKHDPDTEoUR5mZ9XdGuT","hash160":"2a6813cf696b0ffbfce7b071ab2a376b95e5c20f","scriptSig":"483045022100ab73eceba737987a22c8f5476801d6df725f8a2bfbc41302310bdda15427a9fa022025def31e6f063078dcd0765688e73b06c3ddf8e55eefb6202b9b8600698d769c01210206c79be2b6a5a38aee9c16a5deca17aa947eb5d56af79e26c069266d89b37305"}],"outputs":[{"index":0,"value":1000000,"scriptPubKey":"76a9148bab392bcc5cfce30affc16336cdd68e807147a288ac","spent":false,"address":"mtFTLXKfDxHuJT36cHugYTZw5CVLejqccq","hash160":"8bab392bcc5cfce30affc16336cdd68e807147a2","type":"pubkeyhash"},{"index":1,"value":6850000,"scriptPubKey":"76a9142a6813cf696b0ffbfce7b071ab2a376b95e5c20f88ac","spent":false,"address":"mjPBMXwbR2qB7nXKHDPDTEoUR5mZ9XdGuT","hash160":"2a6813cf696b0ffbfce7b071ab2a376b95e5c20f","type":"pubkeyhash"}],"totalInputsValue":7900000,"totalOutputsValue":7850000,"fees":50000},{"txHash":"0757ab040af05a36c0bc6331ac7b9527fe82b032ace372e12b333d7ea7f18ff4","version":1,"size":226,"blockHash":"00000000ec714889ab873657397c57f91c312ebf8a624486e79d744b3ed2febd","blockHeight":204357,"blockTime":1394528547,"estimatedTxTime":1394526483,"confirmations":1,"inputsCount":1,"outputsCount":2,"inputs":[{"index":1,"txHash":"77728db09bc3693d163ae148e1e6df7ebeb6976868dedb126577769627a2fe5d","value":7900000,"address":"mmyE733i4HM6t4UqegBDgfEocZuMk4gBPS","hash160":"46c8c46b5180d8f1e660771ae457a78ab31eecb1","scriptSig":"483045022100fb2b55ffac0e5ef8231bd105d58a56d9527d0d4379bf1142aa408618a8423d62022012839a2813398d52f8bbd85814b5ccd8f7da4a59350ba7868272c4a222da0b2d0121037d144c88ccc558e6ab2b7c074b14cc4a21fbee32f7180469cd2c80ea37cff568"}],"outputs":[{"index":0,"value":1000000,"scriptPubKey":"76a9148bab392bcc5cfce30affc16336cdd68e807147a288ac","spent":false,"address":"mtFTLXKfDxHuJT36cHugYTZw5CVLejqccq","hash160":"8bab392bcc5cfce30affc16336cdd68e807147a2","type":"pubkeyhash"},{"index":1,"value":6850000,"scriptPubKey":"76a91446c8c46b5180d8f1e660771ae457a78ab31eecb188ac","spent":false,"address":"mmyE733i4HM6t4UqegBDgfEocZuMk4gBPS","hash160":"46c8c46b5180d8f1e660771ae457a78ab31eecb1","type":"pubkeyhash"}],"totalInputsValue":7900000,"totalOutputsValue":7850000,"fees":50000},{"txHash":"d7e7be59a353804fca4d978f59d5f66c801d8d98dc50136f31471237c4e49c6c","version":1,"size":226,"blockHash":"00000000ec714889ab873657397c57f91c312ebf8a624486e79d744b3ed2febd","blockHeight":204357,"blockTime":1394528547,"estimatedTxTime":1394526482,"confirmations":1,"inputsCount":1,"outputsCount":2,"inputs":[{"index":1,"txHash":"54c19259aa1405aac9d7d8330ad20d4a40406cefbeee4bcffab3bff0b53caa4d","value":7900000,"address":"mktyAdiNd63SyyYeMia3AsUpezEtRM8eHv","hash160":"3b02820f04962bafb3874ce594bdacae19ed6741","scriptSig":"4830450221008f652249a2f49a7dfaef1be77e2a6eca585060c8101da4e2bdbea666ca080b7d022032ba2ddf86705e686e9f9eaa8b7383be81552a8d714a8386c79bcda1ca01a46f0121032bcc6b391c16ec21fb2ef4058f693250ee8440e9ed52713342090d33ea99c3cd"}],"outputs":[{"index":0,"value":1000000,"scriptPubKey":"76a9148bab392bcc5cfce30affc16336cdd68e807147a288ac","spent":false,"address":"mtFTLXKfDxHuJT36cHugYTZw5CVLejqccq","hash160":"8bab392bcc5cfce30affc16336cdd68e807147a2","type":"pubkeyhash"},{"index":1,"value":6850000,"scriptPubKey":"76a9143b02820f04962bafb3874ce594bdacae19ed674188ac","spent":false,"address":"mktyAdiNd63SyyYeMia3AsUpezEtRM8eHv","hash160":"3b02820f04962bafb3874ce594bdacae19ed6741","type":"pubkeyhash"}],"totalInputsValue":7900000,"totalOutputsValue":7850000,"fees":50000},{"txHash":"6e6a5730f0492c9141edbf94eb376e6499c6017c2542492703e49687401dc7c1","version":1,"size":225,"blockHash":"00000000ec714889ab873657397c57f91c312ebf8a624486e79d744b3ed2febd","blockHeight":204357,"blockTime":1394528547,"estimatedTxTime":1394526482,"confirmations":1,"inputsCount":1,"outputsCount":2,"inputs":[{"index":1,"txHash":"ee7edc122a388445ef08383fa31c4118fa7c6087702757647fecd92ebb8e6e51","value":7900000,"address":"n2qRc9PpEx2Gi4ztVqHPmdpQgedLsKW33e","hash160":"e9d8ed7843df3417e157ab4a0b913254ba60b770","scriptSig":"47304402200ed3006b3f47c070b85fc45a75c9610450d052b19a6fafab4437b290c2198e3502201aefa396f89b4209c6093772e213faa4c5491dd6db4a358ae6212d49c8a1b0a201210356ca8f4661bfcd7c02c539d18b7eff2a6e3cac065f5002b286dc0ec3976fcfdc"}],"outputs":[{"index":0,"value":1000000,"scriptPubKey":"76a9148bab392bcc5cfce30affc16336cdd68e807147a288ac","spent":false,"address":"mtFTLXKfDxHuJT36cHugYTZw5CVLejqccq","hash160":"8bab392bcc5cfce30affc16336cdd68e807147a2","type":"pubkeyhash"},{"index":1,"value":6850000,"scriptPubKey":"76a914e9d8ed7843df3417e157ab4a0b913254ba60b77088ac","spent":false,"address":"n2qRc9PpEx2Gi4ztVqHPmdpQgedLsKW33e","hash160":"e9d8ed7843df3417e157ab4a0b913254ba60b770","type":"pubkeyhash"}],"totalInputsValue":7900000,"totalOutputsValue":7850000,"fees":50000},{"txHash":"50bd2726df993e0f9cc364ae098efb9c74cb4314af844c439031761e5c809a84","version":1,"size":225,"blockHash":"00000000ec714889ab873657397c57f91c312ebf8a624486e79d744b3ed2febd","blockHeight":204357,"blockTime":1394528547,"estimatedTxTime":1394526481,"confirmations":1,"inputsCount":1,"outputsCount":2,"inputs":[{"index":1,"txHash":"8af4a3d2362e0aaa356666dcf8c8918f0fffbf33645516fe47c98044eea2c6a7","value":7900000,"address":"mzZkLGV1FxgQNhKAiNDgM4emGALmtbXk2y","hash160":"d0f1a70d0824b75007a9465bd27c62c91a9edc83","scriptSig":"4730440220488fe8a8c3381ae19718799ac9371ab8cd5fcdad6980b6ffe986daba490779d002202f5e607f3a8594093c60ceeb3dede2f1c83830fcdac36bee21d0e55d593e698a01210316af74404aeb24e4e84c1aa4c1af174d2f0eed02dbdf0321338c534f0de4af4f"}],"outputs":[{"index":0,"value":1000000,"scriptPubKey":"76a9148bab392bcc5cfce30affc16336cdd68e807147a288ac","spent":false,"address":"mtFTLXKfDxHuJT36cHugYTZw5CVLejqccq","hash160":"8bab392bcc5cfce30affc16336cdd68e807147a2","type":"pubkeyhash"},{"index":1,"value":6850000,"scriptPubKey":"76a914d0f1a70d0824b75007a9465bd27c62c91a9edc8388ac","spent":false,"address":"mzZkLGV1FxgQNhKAiNDgM4emGALmtbXk2y","hash160":"d0f1a70d0824b75007a9465bd27c62c91a9edc83","type":"pubkeyhash"}],"totalInputsValue":7900000,"totalOutputsValue":7850000,"fees":50000},{"txHash":"040c93ef43f2c95746b27ac794c40ab7ac80badf5d4b8bc3af470f6d1b82f7a2","version":1,"size":225,"blockHash":"00000000ec714889ab873657397c57f91c312ebf8a624486e79d744b3ed2febd","blockHeight":204357,"blockTime":1394528547,"estimatedTxTime":1394526481,"confirmations":1,"inputsCount":1,"outputsCount":2,"inputs":[{"index":1,"txHash":"47b53c142b502858b862ad1994358be4c1df89d65c10966995c6d27e5abad381","value":6850000,"address":"mr8KmFMZXAfBEpbR5f7Lv8ZJjaMY7QHMPc","hash160":"7461bce0fd6fa47ddf9238ef0591e53f199fa995","scriptSig":"4730440220039d1c3fb54b6617b969a288479db4d825a6b054ac86ba3756afa689c659356e02204b7dd9444a2b15eada728e6d3339a44b83384d9e05db51e0ff256f1b2e9036490121022736ff8edff36078436ca38f013e385ab981df983381ababcf8e804335d0e140"}],"outputs":[{"index":0,"value":1000000,"scriptPubKey":"76a9148bab392bcc5cfce30affc16336cdd68e807147a288ac","spent":false,"address":"mtFTLXKfDxHuJT36cHugYTZw5CVLejqccq","hash160":"8bab392bcc5cfce30affc16336cdd68e807147a2","type":"pubkeyhash"},{"index":1,"value":5800000,"scriptPubKey":"76a9147461bce0fd6fa47ddf9238ef0591e53f199fa99588ac","spent":false,"address":"mr8KmFMZXAfBEpbR5f7Lv8ZJjaMY7QHMPc","hash160":"7461bce0fd6fa47ddf9238ef0591e53f199fa995","type":"pubkeyhash"}],"totalInputsValue":6850000,"totalOutputsValue":6800000,"fees":50000},{"txHash":"f1e33733b6f0f4c9dcac47d310e13f82a936404dd6d71a39db15690af7c5e5da","version":1,"size":226,"blockHash":"00000000ec714889ab873657397c57f91c312ebf8a624486e79d744b3ed2febd","blockHeight":204357,"blockTime":1394528547,"estimatedTxTime":1394526463,"confirmations":1,"inputsCount":1,"outputsCount":2,"inputs":[{"index":0,"txHash":"369aa3cd53a46d7bbb4dcc6619bd8c1066476a4538d647684fb1116b9fe182b3","value":117830000000,"address":"myNdKjHDgibqs8etxSdxiE6KJkbCM988du","hash160":"c3df19a2271c8f6727cb61f39cd098b6d62ded8e","scriptSig":"483045022100d2b59aad9abdf4bb761ed13ba4bed262b0b141a4a814bea2767133b5f9a67d6002200fd484e8bde108190504c3940c75b5b172c32ccdbbe25d9c504975fc9ada2fe9012103fbdda0f2dd7a8c7fa30d99b845eb264c3565ffa53c144de5cd87f5749b8f6a59"}],"outputs":[{"index":0,"value":360000000,"scriptPubKey":"76a914a400a8c15ed8de07c98c1a10570682453dfef12088ac","spent":false,"address":"mvU7uKJBpq87e7DNM5hUK2i1Maw1BS97e7","hash160":"a400a8c15ed8de07c98c1a10570682453dfef120","type":"pubkeyhash"},{"index":1,"value":117470000000,"scriptPubKey":"76a9146fc09b630ca33a0866cf2fee4d5a67c2b2e8d43188ac","spent":false,"address":"mqhr2v1bvW75zZCqf11GLwt2L2ePRhBzNs","hash160":"6fc09b630ca33a0866cf2fee4d5a67c2b2e8d431","type":"pubkeyhash"}],"totalInputsValue":117830000000,"totalOutputsValue":117830000000,"fees":0},{"txHash":"41c52d5bd9b3097ce743cf487c53d7f8ef5ba73cce817d28b434fcc55ba1380e","version":1,"size":224,"blockHash":"00000000ec714889ab873657397c57f91c312ebf8a624486e79d744b3ed2febd","blockHeight":204357,"blockTime":1394528547,"estimatedTxTime":1394526447,"confirmations":1,"inputsCount":1,"outputsCount":1,"inputs":[{"index":0,"txHash":"744554cba6dc94d72a61b149d03d6c72cdf0dd5417043ae79969a522e0eb177a","value":10000000,"address":"ms8AY69GN2WgNtMzsg74oRjYf84tMxDS8Y","hash160":"7f5229506b9af15289783ee7be1e22826b56cff9","scriptSig":"483045022100bd7e1456db2e85b4aa4f7f42ff0d9c0b2ff57a8d5bc3700c605d9214a6c1106602207981b75a9b736881171d73f7f0d943ef056e03136430065a932f6244600b985a014104d8146b1d37a5994a6a347b9334dab58ab331ed529847ee27b4c8621721eb98dc6c11d72918957bac2cb50d739662420688f03d003e97a3f1940df0aee9559b4c"}],"outputs":[{"index":0,"value":10000000,"scriptPubKey":"76a91497cb9657e4a490abe29157ce57455ec3f1d5112788ac","spent":false,"address":"muMaDWgNnGWLNLiYXxM9cZdRNkjEoiviwW","hash160":"97cb9657e4a490abe29157ce57455ec3f1d51127","type":"pubkeyhash"}],"totalInputsValue":10000000,"totalOutputsValue":10000000,"fees":0},{"txHash":"1759a94d45fc67be8e4787c2e7e711e959b6fd1f3074020334522ae7fd9dbabb","version":1,"size":226,"blockHash":"00000000ec714889ab873657397c57f91c312ebf8a624486e79d744b3ed2febd","blockHeight":204357,"blockTime":1394528547,"estimatedTxTime":1394526444,"confirmations":1,"inputsCount":1,"outputsCount":2,"inputs":[{"index":1,"txHash":"7deab0f9478893228a0a2c6fe66d7c1f5b9851746b2c7edfd08d24d49b62746e","value":10079980000,"address":"mhrPeZpe7DQrUYveaqZVoStEq53Xc36kbw","hash160":"199d51ab170bc73e323d701cba166dde5f605d6b","scriptSig":"483045022057bfaa63c3f563c050172594de0f47970bc35c40206edd286760dc760c69c69c022100a91e9f5efb6ef88646d89d2fdbea5e7bf093aeb399760c9f941140309b3e9d95012103184f651d72ae6958576162e1b6ae009e8ff52824bcf13c2fc6e8bbff3cc4f623"}],"outputs":[{"index":0,"value":370000000,"scriptPubKey":"76a91405347297ef77d4858ca8450b0f5db8343019368388ac","spent":false,"address":"mfzUW8z112E3tsXhmXDTk9qoiUFT3uhx5f","hash160":"05347297ef77d4858ca8450b0f5db83430193683","type":"pubkeyhash"},{"index":1,"value":9709980000,"scriptPubKey":"76a91436a3320a9f86f3d9cadd2faa4ccb454d4f56a17688ac","spent":true,"address":"mkVrHS5d4bWw6mTb5REdT8LYG7vvt7DQpy","hash160":"36a3320a9f86f3d9cadd2faa4ccb454d4f56a176","type":"pubkeyhash"}],"totalInputsValue":10079980000,"totalOutputsValue":10079980000,"fees":0},{"txHash":"16549188d091487dbbba29f6d47e5f717b7ab286b70784b6e965bbde1947d4dd","version":1,"size":2147,"blockHash":"00000000ec714889ab873657397c57f91c312ebf8a624486e79d744b3ed2febd","blockHeight":204357,"blockTime":1394528547,"estimatedTxTime":1394526401,"confirmations":1,"inputsCount":14,"outputsCount":2,"inputs":[{"index":1,"txHash":"56cbb9241894a546dc62c6a74fa8a94d4b0f675d860518847a728bdca5dfa42e","value":1000000,"address":"mvU7uKJBpq87e7DNM5hUK2i1Maw1BS97e7","hash160":"a400a8c15ed8de07c98c1a10570682453dfef120","scriptSig":"49304602210080420a752734f4973ec5efb01d203473f11c73d7578f6e5646e400febf1ec7b2022100ff0f207680bc679a6f961c76ccc634a6e764edd9968a40b166636d06b447e5e4012102dfde454e8b40f69f59150a172c896aa720e9e9efa6874186394cb895be46956c"},{"index":0,"txHash":"6f8aad498fd64d57ab86da2e8360ba4f59b554a795bb24eec8bb5cc7a98e6274","value":29790000,"address":"moz3CcL9kQhMGWpkjjernaLdSDGbVbYRx4","hash160":"5ce0552a35b9a9a43e2c397ad36c2d6f22218628","scriptSig":"48304502205dbe5323cb52d0ed33154a59ce0c921fc00eeb4a530cf2975c6acd6099b00f86022100802fc479401f5bd67af61672eebdd6b88dc58a8697273812189c08d948e7fd790121023afa7a4cef613c6243036e23e95bb4aeba37c16125313eac6ce33e1c4b80169b"},{"index":0,"txHash":"b66a36ddf8ab0cf4b20b18fda21e434a49a01496e51bbddea112c412f777efc6","value":1000000,"address":"mo18WVnp1T7MT2DNt94mpqPLcoZQmHbsNw","hash160":"521d0dd86247b1dc24908130f36e54bf887110e8","scriptSig":"483045022100a5fd2dd9eedfd794c0c15f2c7a17fc0213e85c0728933c3abf7ab01840a71ee10220304505a00e29c6eb04379b17dae2ed2194fb04b8c7211fe1753c256a93153daf01210266faee3c2432d638bfa540f8212c4f7b2bb0f7e57683c7e0873343d08c18c836"},{"index":1,"txHash":"ae187dbb43644f5d4567d32b4d8982a3b9a1cb4e8ff770f3b5f95533ec892764","value":156131180,"address":"mvU7uKJBpq87e7DNM5hUK2i1Maw1BS97e7","hash160":"a400a8c15ed8de07c98c1a10570682453dfef120","scriptSig":"47304402201c08250611fb479f6f0dc626561c42545c6babc6f22539834d8953f600a12eb4022066ff6814c7cbfe4a94d6b170554e67fe506b3c192591b969925d08cd23e2c831012102dfde454e8b40f69f59150a172c896aa720e9e9efa6874186394cb895be46956c"},{"index":0,"txHash":"18360f0eeccb009daddc4c2e66af657049982df242ec721344c2c20ede530a60","value":3607404,"address":"mmErpWohiYKY7tcMLqLQdms6FJpv5AtUSd","hash160":"3ec587778be93d065a5601d1f7e18dc006735030","scriptSig":"47304402202855f16a0b79cbe6c9482d72f8980ceb7f9185daf966060fe33d6d84b7991503022043972fb9cdcb5f2527227946d7a308d1e089a92c813f04628e8790d6ad6d67bb012102af896eb13fb9ec0fd94f8541cc705a4564bfc6c8b4ae54870d9d4f6ee21510b8"},{"index":0,"txHash":"761139af0a44248211a8aed9338bd6dba9ac1a8def9a0323207a962077615a24","value":3607404,"address":"mmErpWohiYKY7tcMLqLQdms6FJpv5AtUSd","hash160":"3ec587778be93d065a5601d1f7e18dc006735030","scriptSig":"47304402205184c30f4a2b6d6b683fccd077b1ce6192ab81128812e3a5c85337d12f7dea6602207eff6e23fa2aea7f26fe3e7651c7575c4b1101a117338d48d8b4cbef0db462a3012102af896eb13fb9ec0fd94f8541cc705a4564bfc6c8b4ae54870d9d4f6ee21510b8"},{"index":0,"txHash":"5c9a21e4c36b54a4c6aac70d114f4ef7aa1e3811ab4d2b39b38658a3c99d65b2","value":360572,"address":"mnKkGBhEgCPgY2SNtT9phPqXd6FpvMXRUi","hash160":"4aaa42cb47c318cfafafa8ab48b1a4c0721a1ad7","scriptSig":"473044022012b8d48bd09386abf0fd695f3765315b42e0db2f517af58415ff2d1d2cc33a0a022075032d3e7b3d967e0021b19e191b4ac010dd93651546c3b7a42bfacc3c9ac747012102b0fe183efaceda7005ac999cc734505f6d80b969b1fd77484526dc85c8f70e39"},{"index":0,"txHash":"381eb0786c0f34ca16a3191d4929d950419c50f556b20867bd0bccb468cb6232","value":100000,"address":"mhkEpSqyAuTeKk9vfD5weD1cMLAxKXgaaX","hash160":"187373deb43ba87823461c4ed76498547a3e2651","scriptSig":"483045022100f617af07039c1a3ea98e4f7bc4004d6860a2cc52fde88291d340debfadf24a56022031130c3d464b4590d9edcfa33bb8e6890e0f4229b906a353beea8c8f7b9132b101210270793200f42991297650591dd33d47b95d596364bab4821a7cd0f533e7f93396"},{"index":0,"txHash":"367045c9194cf0be6ca8c301e60d71722ba213ba6d803d0b7987c821f7a5eb2b","value":3608222,"address":"mjGmGWDwX4vAqEtpDqU26yLRsibwx9buCh","hash160":"2931799bcc3f2084e6ab74b9b502c081513032b0","scriptSig":"48304502207cba898e496c39bc387e7e14f5b8cc20d71f9baf2590726afbb66d8eab7cb60e02210089756e072f7f3386c5946fed98683d1795ae899abb46a514f41560a51c2fb432012103a81fea0708d78fe7edfcaac0c0f555986121f6e75363d5e1b25c1817233daa3b"},{"index":0,"txHash":"cb6138c53f8999b72a11b99f7db415bb96fd1c9eb3b7e66ba63dff09d39086c1","value":361315,"address":"mu2Fr19n4VYPdhshsUinLgogajAaAc69Si","hash160":"9424594a94f9cdb26611fcdf72ff1fd51820e06d","scriptSig":"493046022100e1448fcbd5a11a9376a55e9face21f9a01b0642b34309a01b602940eaa206246022100fcf84840411ed9833c2db83b45fca154d6d0cdc6af63534472e37cc7e9ac1dc1012103ed0d35796ba69411836505d22f930327d0723dd49e40e29bc5b614c41e4c8a20"},{"index":0,"txHash":"1a001b966619e2975359a429f208a532429b72fa757a7783a97c24c7680a8dc8","value":361315,"address":"mu2Fr19n4VYPdhshsUinLgogajAaAc69Si","hash160":"9424594a94f9cdb26611fcdf72ff1fd51820e06d","scriptSig":"483045022100be2fc7e130435a1dae1d62649d75a8d0220e97ca1a810a5ff97683edde7f756c022001df47b92d5b4c70337a1428e71205848ab54f54b540c6681c9fee225e646cdc012103ed0d35796ba69411836505d22f930327d0723dd49e40e29bc5b614c41e4c8a20"},{"index":0,"txHash":"2c6aa187948756b60b8026a008a7778d55cefd3b7999fdd9621a52b2d9cd81f0","value":361315,"address":"mu2Fr19n4VYPdhshsUinLgogajAaAc69Si","hash160":"9424594a94f9cdb26611fcdf72ff1fd51820e06d","scriptSig":"483045022100c70eb25885fa290a10996f3c893afd1466ee492ce78471e0676b7d2162c6abbe02202bd475bfd6e78fe769690e4d2464a4289bdee6dc864489b91caad4a71b422bfc012103ed0d35796ba69411836505d22f930327d0723dd49e40e29bc5b614c41e4c8a20"},{"index":0,"txHash":"7365e436c5bf176227daefbd8940ebdfb5969df37f69ad8a3ca77c064a5465c1","value":360572,"address":"mnKkGBhEgCPgY2SNtT9phPqXd6FpvMXRUi","hash160":"4aaa42cb47c318cfafafa8ab48b1a4c0721a1ad7","scriptSig":"48304502205613ad922c0cef4dae537e763a9a39e3f7fdbb98e72365a122b7a93867f663bb022100f2a04c031de33126f5da7d43390e4d0b62c3f762bf9382dd264995d7e743f333012102b0fe183efaceda7005ac999cc734505f6d80b969b1fd77484526dc85c8f70e39"},{"index":0,"txHash":"dd198768ec09039b344c15ff8cf983eea246b66172f6c0441523a55867d4b0a4","value":361315,"address":"mu2Fr19n4VYPdhshsUinLgogajAaAc69Si","hash160":"9424594a94f9cdb26611fcdf72ff1fd51820e06d","scriptSig":"47304402201adc729c472d0cd8667381826312485d6cbca849775488a5d772fa6afe8c9790022032734770e3463e7a88ac76f236768edb31effc5f233e9ca0c4cc992996516b2f012103ed0d35796ba69411836505d22f930327d0723dd49e40e29bc5b614c41e4c8a20"}],"outputs":[{"index":0,"value":1010614,"scriptPubKey":"76a91491e40b7ff2a8c9abede5216a39d1a84b97106dc988ac","spent":false,"address":"mtpMTi34o4TmyQDPhH64NewFxqDUeafS9i","hash160":"91e40b7ff2a8c9abede5216a39d1a84b97106dc9","type":"pubkeyhash"},{"index":1,"value":200000000,"scriptPubKey":"76a91405347297ef77d4858ca8450b0f5db8343019368388ac","spent":false,"address":"mfzUW8z112E3tsXhmXDTk9qoiUFT3uhx5f","hash160":"05347297ef77d4858ca8450b0f5db83430193683","type":"pubkeyhash"}],"totalInputsValue":201010614,"totalOutputsValue":201010614,"fees":0}]}}'
|
43
|
+
http_version:
|
44
|
+
recorded_at: Tue, 11 Mar 2014 08:44:35 GMT
|
45
|
+
recorded_with: VCR 2.8.0
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://testnet.helloblock.io/transactions
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"body":{"body":{"raxTxHash":""}}}'
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- HelloBlock Ruby 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, 11 Mar 2014 08:40:09 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Content-Length:
|
30
|
+
- '144'
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
Set-Cookie:
|
34
|
+
- __cfduid=d0163bf5aff3ca6457f8a8c3ba34a4a2f1394527209650; 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
|
+
- 1096721458b6070d-SJC
|
40
|
+
body:
|
41
|
+
encoding: UTF-8
|
42
|
+
string: '{"status":"fail","message":"No transaction hex given. Note: Hex must
|
43
|
+
be in the body of the post request and not as a query string","details":[]}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Tue, 11 Mar 2014 08:40:09 GMT
|
46
|
+
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/transactions?txHashes=
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- HelloBlock Ruby 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, 11 Mar 2014 08:40:09 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=d4765db974f36eaf5b2f70a55e86d3f381394527209293; expires=Mon, 23-Dec-2019
|
35
|
+
23:50:00 GMT; path=/; domain=.helloblock.io; HttpOnly
|
36
|
+
Etag:
|
37
|
+
- '"279040391"'
|
38
|
+
X-Powered-By:
|
39
|
+
- Express
|
40
|
+
Cf-Ray:
|
41
|
+
- 10967212116c070d-SJC
|
42
|
+
body:
|
43
|
+
encoding: UTF-8
|
44
|
+
string: '{"status":"fail","message":"No Transactions Given","details":[]}'
|
45
|
+
http_version:
|
46
|
+
recorded_at: Tue, 11 Mar 2014 08:40:09 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/addresses/transactions?addresses=1DQN9nopGvSCDnM3LH1w7j36FtnQDZKnej
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- HelloBlock Ruby 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, 11 Mar 2014 08:26:18 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=dde156a9e0d6072fe3ebd82a78ceff6e11394526378443; expires=Mon, 23-Dec-2019
|
35
|
+
23:50:00 GMT; path=/; domain=.helloblock.io; HttpOnly
|
36
|
+
Etag:
|
37
|
+
- '"576461842"'
|
38
|
+
X-Powered-By:
|
39
|
+
- Express
|
40
|
+
Cf-Ray:
|
41
|
+
- 10965dc94adb0651-SJC
|
42
|
+
body:
|
43
|
+
encoding: UTF-8
|
44
|
+
string: '{"status":"success","data":{"transactions":[]}}'
|
45
|
+
http_version:
|
46
|
+
recorded_at: Tue, 11 Mar 2014 08:26:18 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/addresses/unspents?addresses=1DQN9nopGvSCDnM3LH1w7j36FtnQDZKnej
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- HelloBlock Ruby 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, 11 Mar 2014 08:24:42 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=d3ed8c81ba50eb13dc182d4faf8e81f601394526281584; expires=Mon, 23-Dec-2019
|
35
|
+
23:50:00 GMT; path=/; domain=.helloblock.io; HttpOnly
|
36
|
+
Etag:
|
37
|
+
- '"-1484056770"'
|
38
|
+
X-Powered-By:
|
39
|
+
- Express
|
40
|
+
Cf-Ray:
|
41
|
+
- 10965b6be826070d-SJC
|
42
|
+
body:
|
43
|
+
encoding: UTF-8
|
44
|
+
string: '{"status":"success","data":{"unspents":[]}}'
|
45
|
+
http_version:
|
46
|
+
recorded_at: Tue, 11 Mar 2014 08:24:42 GMT
|
47
|
+
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/wallet?addresses=1DQN9nopGvSCDnM3LH1w7j36FtnQDZKnej
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- HelloBlock Ruby 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, 11 Mar 2014 08:40: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=d14cd790bd5116dd0945af7f2ed034f101394527210092; 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
|
+
- 109672171193070d-SJC
|
40
|
+
body:
|
41
|
+
encoding: UTF-8
|
42
|
+
string: '{"status":"success","data":{"summary":{"transactionsCount":0,"totalReceivedValue":0,"totalSentValue":0,"balance":0},"addresses":[{"totalReceivedValue":0,"totalReceivedCount":0,"totalSentValue":0,"totalSentCount":0,"balance":0,"transactionsCount":0,"address":"msvKSqto5wsSztpf3qzJweFR7tP76etSew","hash160":"880cbba2942bc34739fbd2d8d792a6ce607ef3b9"}],"exchangeRates":{"BTCUSD":{"mtgox":133.10734,"bitstamp":631,"btce":621}},"latestBlock":{"blockHeight":204357,"blockHash":"00000000ec714889ab873657397c57f91c312ebf8a624486e79d744b3ed2febd","blockTime":1394528547,"previousBlockHash":"000000002cade2b04e2968f43d19c80e8f0cd1abb413da9a35a8736d9fc8a6b5","bits":486604799,"version":2,"merkleRootHash":"8334e8b4ce06aa727f48e4b0e164d107fc6fe90c76fdb47ebdeafab8a8ce1dd8","nonce":2768450816,"totalInputsValue":262306630652,"totalOutputsValue":267306630652,"transactionsCount":23,"confirmations":1},"transactions":[]}}'
|
43
|
+
http_version:
|
44
|
+
recorded_at: Tue, 11 Mar 2014 08:40:10 GMT
|
45
|
+
recorded_with: VCR 2.8.0
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://testnet.helloblock.io/withdrawal
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"body":{"body":{"amount":100000,"toAddress":"1DQN9nopGvSCDnM3LH1w7j36FtnQDZKnej"}}}'
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- HelloBlock Ruby 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: 404
|
21
|
+
message: Not Found
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- cloudflare-nginx
|
25
|
+
Date:
|
26
|
+
- Tue, 11 Mar 2014 08:40:11 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=d82a161e814dbac59e8c9313fb1b154d11394527211572; 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
|
+
- 1096722058d3070d-SJC
|
40
|
+
body:
|
41
|
+
encoding: UTF-8
|
42
|
+
string: '{"status":"fail","message":"The endpoint you are looking for does not
|
43
|
+
exist!","details":[]}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Tue, 11 Mar 2014 08:40:11 GMT
|
46
|
+
recorded_with: VCR 2.8.0
|
@@ -0,0 +1,144 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'pry'
|
3
|
+
|
4
|
+
describe HelloBlock::Client, '#addresses' do
|
5
|
+
let(:client) { HelloBlock::Client.new }
|
6
|
+
let(:address) { '1DQN9nopGvSCDnM3LH1w7j36FtnQDZKnej' }
|
7
|
+
|
8
|
+
it 'hits the api endpoint for addresses' do
|
9
|
+
VCR.use_cassette(:addresses) do
|
10
|
+
response = client.addresses(addresses: [address])
|
11
|
+
|
12
|
+
expect(response['status']).to eq 'success'
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
describe HelloBlock::Client, '#unspents' do
|
18
|
+
let(:client) { HelloBlock::Client.new }
|
19
|
+
let(:address) { '1DQN9nopGvSCDnM3LH1w7j36FtnQDZKnej' }
|
20
|
+
|
21
|
+
it 'hits the api endpoint for unspents' do
|
22
|
+
VCR.use_cassette(:unspents) do
|
23
|
+
response = client.unspents(addresses: [address])
|
24
|
+
|
25
|
+
expect(response['status']).to eq 'success'
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe HelloBlock::Client, '#transactions_for_address' do
|
31
|
+
let(:client) { HelloBlock::Client.new }
|
32
|
+
let(:address) { '1DQN9nopGvSCDnM3LH1w7j36FtnQDZKnej' }
|
33
|
+
|
34
|
+
it 'hits the api endpoint for address transactions' do
|
35
|
+
VCR.use_cassette(:transactions_for_address) do
|
36
|
+
response = client.transactions_for_address(addresses: [address])
|
37
|
+
|
38
|
+
expect(response['status']).to eq 'success'
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
describe HelloBlock::Client, '#transactions' do
|
44
|
+
let(:client) { HelloBlock::Client.new }
|
45
|
+
let(:txHash) { '' }
|
46
|
+
|
47
|
+
it 'hits the api endpoint for transactions' do
|
48
|
+
VCR.use_cassette(:transactions) do
|
49
|
+
response = client.transactions(txHashes: [txHash])
|
50
|
+
|
51
|
+
expect(response['status']).to eq 'success'
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
describe HelloBlock::Client, '#latest_transaction' do
|
57
|
+
let(:client) { HelloBlock::Client.new }
|
58
|
+
|
59
|
+
it 'hits the api endpoint for latest transactions' do
|
60
|
+
VCR.use_cassette(:latest_transaction) do
|
61
|
+
response = client.latest_transaction
|
62
|
+
|
63
|
+
expect(response['status']).to eq 'success'
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
describe HelloBlock::Client, '#propagate' do
|
69
|
+
let(:client) { HelloBlock::Client.new }
|
70
|
+
let(:rawTxHash) { '' }
|
71
|
+
|
72
|
+
it 'hits the api endpoint for propagating' do
|
73
|
+
VCR.use_cassette(:propagate) do
|
74
|
+
response = client.propagate(raxTxHash: rawTxHash)
|
75
|
+
|
76
|
+
expect(response['status']).to eq 'success'
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
describe HelloBlock::Client, '#blocks' do
|
82
|
+
let(:client) { HelloBlock::Client.new }
|
83
|
+
let(:blockId) { '' }
|
84
|
+
|
85
|
+
it 'hits the api endpoint for blocks' do
|
86
|
+
VCR.use_cassette(:blocks) do
|
87
|
+
response = client.blocks(blockId: blockId)
|
88
|
+
|
89
|
+
expect(response['status']).to eq 'success'
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
describe HelloBlock::Client, '#latest_blocks' do
|
95
|
+
let(:client) { HelloBlock::Client.new }
|
96
|
+
|
97
|
+
it 'hits the api endpoint for latest blocks' do
|
98
|
+
VCR.use_cassette(:latest_blocks) do
|
99
|
+
response = client.latest_blocks
|
100
|
+
|
101
|
+
expect(response['status']).to eq 'success'
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
describe HelloBlock::Client, '#wallet' do
|
107
|
+
let(:client) { HelloBlock::Client.new }
|
108
|
+
let(:address) { '1DQN9nopGvSCDnM3LH1w7j36FtnQDZKnej' }
|
109
|
+
|
110
|
+
it 'hits the api endpoint for wallets' do
|
111
|
+
VCR.use_cassette(:wallet) do
|
112
|
+
response = client.wallet(addresses: [address])
|
113
|
+
|
114
|
+
expect(response['status']).to eq 'success'
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
describe HelloBlock::Client, '#faucet' do
|
120
|
+
let(:client) { HelloBlock::Client.new }
|
121
|
+
let(:type) { 3 }
|
122
|
+
|
123
|
+
it 'hits the api endpoint for the faucet' do
|
124
|
+
VCR.use_cassette(:faucet) do
|
125
|
+
response = client.faucet(type: [type])
|
126
|
+
|
127
|
+
expect(response['status']).to eq 'success'
|
128
|
+
end
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
describe HelloBlock::Client, '#withdrawal' do
|
133
|
+
let(:client) { HelloBlock::Client.new }
|
134
|
+
let(:amount) { 100000 }
|
135
|
+
let(:address) { '1DQN9nopGvSCDnM3LH1w7j36FtnQDZKnej' }
|
136
|
+
|
137
|
+
it 'hits the api endpoint for withdrawal' do
|
138
|
+
VCR.use_cassette(:withdrawal) do
|
139
|
+
response = client.withdrawal(amount: amount, toAddress: address)
|
140
|
+
|
141
|
+
expect(response['status']).to eq 'success'
|
142
|
+
end
|
143
|
+
end
|
144
|
+
end
|