block_explorer 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/CHANGELOG.md +3 -0
- data/Gemfile +4 -0
- data/Guardfile +7 -0
- data/LICENSE +22 -0
- data/README.md +33 -0
- data/Rakefile +2 -0
- data/block_explorer.gemspec +21 -0
- data/lib/block_explorer.rb +11 -0
- data/lib/block_explorer/block_chain.rb +26 -0
- data/lib/block_explorer/constants.rb +3 -0
- data/lib/block_explorer/version.rb +3 -0
- data/spec/block_explorer/block_explorer_spec.rb +36 -0
- data/spec/cassettes/BlockExplorer/mytransactions/getting_transactions_for_2_addresses.yml +2841 -0
- data/spec/cassettes/BlockExplorer/mytransactions/getting_transactions_for_one_address.yml +59 -0
- data/spec/spec_helper.rb +13 -0
- metadata +146 -0
@@ -0,0 +1,59 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://blockexplorer.com/q/mytransactions/1JDfUiJHZ6pDY6wWYTx86RYjDCW7QxCofs
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- Ruby
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
Date:
|
20
|
+
- Tue, 22 May 2012 00:03:46 GMT
|
21
|
+
Server:
|
22
|
+
- Apache/2.2
|
23
|
+
Etag:
|
24
|
+
- W/"00000000000004e0e2245a428d80ba7ad3f50a4bf01c78eb11fc8539151d7b9b-1"
|
25
|
+
Content-Length:
|
26
|
+
- '2472'
|
27
|
+
Content-Type:
|
28
|
+
- text/plain; charset=iso-8859-1
|
29
|
+
body:
|
30
|
+
encoding: US-ASCII
|
31
|
+
string: ! "{\n \"6c5067ee83752022110fafefefcbbba9f006c2c90bce0d7cba4c28258831e0af\":{\n
|
32
|
+
\ \"hash\":\"6c5067ee83752022110fafefefcbbba9f006c2c90bce0d7cba4c28258831e0af\",\n
|
33
|
+
\ \"ver\":1,\n \"vin_sz\":1,\n \"vout_sz\":2,\n \"lock_time\":0,\n
|
34
|
+
\ \"size\":257,\n \"in\":[\n {\n \"prev_out\":{\n \"hash\":\"d52cfc7d0786e3ceb7af6d2bb2e5d02a80a48651f4c2e9295f360ed3bf6c9489\",\n
|
35
|
+
\ \"n\":1\n },\n \"scriptSig\":\"30440220230ab2bead38e30d06cc631474e83c09d97c82a8c47538456b91d8c69bcb869b0220257cf84f920adad1e9bbbc0a5456c3010bdcfdcee1d128187d4e0ad3d90c8b6001
|
36
|
+
04923246220dbf3be96e3eefdc529c90100ce4c44c6f64f8ac3a6aae33ff0702918569f6b01cfe77a058ec4f56ef118d24791da792604f17ecddbeec342985d174\",\n
|
37
|
+
\ \"address\":\"1McjPsUHS7ifNwSnRDrvKud7h3o4aCs5Pu\"\n }\n ],\n
|
38
|
+
\ \"out\":[\n {\n \"value\":\"0.16200000\",\n \"scriptPubKey\":\"OP_DUP
|
39
|
+
OP_HASH160 ae2cb4549afa541f1cac338aa4c380ef2595fc4c OP_EQUALVERIFY OP_CHECKSIG\",\n
|
40
|
+
\ \"address\":\"1Gsx8VkmTnJ9sWM7Z1PiCyCBd3KCWRmd9t\"\n },\n {\n
|
41
|
+
\ \"value\":\"0.10000000\",\n \"scriptPubKey\":\"OP_DUP OP_HASH160
|
42
|
+
bcdf3fdfe8e660cb1c9b17a4da6af31da584ce03 OP_EQUALVERIFY OP_CHECKSIG\",\n \"address\":\"1JDfUiJHZ6pDY6wWYTx86RYjDCW7QxCofs\"\n
|
43
|
+
\ }\n ],\n \"block\":\"0000000000000756dd7a215636aa59375c692afe83631d18010a7a4a3446baa2\",\n
|
44
|
+
\ \"blocknumber\":\"161186\",\n \"time\":\"2012-01-08 04:55:28\"\n },\n
|
45
|
+
\ \"21dd59c14dc771550b78dbfb3fd57386ad21bb02ad8c8989c7e6bbd8a2e85418\":{\n
|
46
|
+
\ \"hash\":\"21dd59c14dc771550b78dbfb3fd57386ad21bb02ad8c8989c7e6bbd8a2e85418\",\n
|
47
|
+
\ \"ver\":1,\n \"vin_sz\":1,\n \"vout_sz\":1,\n \"lock_time\":0,\n
|
48
|
+
\ \"size\":223,\n \"in\":[\n {\n \"prev_out\":{\n \"hash\":\"6c5067ee83752022110fafefefcbbba9f006c2c90bce0d7cba4c28258831e0af\",\n
|
49
|
+
\ \"n\":1\n },\n \"scriptSig\":\"3044022072f51b80086021ed330cf933b6470546e51497d3543d80673eb0f89bd4b0ca330220157535d1507ddd085501b8f1c9ade8125f425380438fef8d2831cbc2ddd13c0201
|
50
|
+
04923c2ff44fc75eb907ff6743c9463fa8f6be97388a2e4244b7c3baa7f80b2f6b03d08276ddc10f5b389521fe59729e1b6ceaa3aa5f5c67d2b589a5108e62c684\",\n
|
51
|
+
\ \"address\":\"1JDfUiJHZ6pDY6wWYTx86RYjDCW7QxCofs\"\n }\n ],\n
|
52
|
+
\ \"out\":[\n {\n \"value\":\"0.10000000\",\n \"scriptPubKey\":\"OP_DUP
|
53
|
+
OP_HASH160 97d689504e753306d5522574572b59a329031cc9 OP_EQUALVERIFY OP_CHECKSIG\",\n
|
54
|
+
\ \"address\":\"1Eqr3DVzC1c2n85WkffznhXTp2dmUY6RLm\"\n }\n ],\n
|
55
|
+
\ \"block\":\"00000000000004e0e2245a428d80ba7ad3f50a4bf01c78eb11fc8539151d7b9b\",\n
|
56
|
+
\ \"blocknumber\":\"166328\",\n \"time\":\"2012-02-11 12:55:43\"\n }\n}"
|
57
|
+
http_version:
|
58
|
+
recorded_at: Tue, 22 May 2012 00:03:47 GMT
|
59
|
+
recorded_with: VCR 2.1.1
|
data/spec/spec_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,146 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: block_explorer
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Mat Holroyd
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-05-22 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rspec
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: vcr
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: ir_b
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: guard-rspec
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: webmock
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
description: ! 'BlockExplorer is a Ruby wrapper for the Block Explorer API. Block
|
95
|
+
Explorer (http://blockexplorer.com) is a popular bitcoin blockchain explorer. '
|
96
|
+
email:
|
97
|
+
- matholroyd@gmail.com
|
98
|
+
executables: []
|
99
|
+
extensions: []
|
100
|
+
extra_rdoc_files: []
|
101
|
+
files:
|
102
|
+
- .gitignore
|
103
|
+
- CHANGELOG.md
|
104
|
+
- Gemfile
|
105
|
+
- Guardfile
|
106
|
+
- LICENSE
|
107
|
+
- README.md
|
108
|
+
- Rakefile
|
109
|
+
- block_explorer.gemspec
|
110
|
+
- lib/block_explorer.rb
|
111
|
+
- lib/block_explorer/block_chain.rb
|
112
|
+
- lib/block_explorer/constants.rb
|
113
|
+
- lib/block_explorer/version.rb
|
114
|
+
- spec/block_explorer/block_explorer_spec.rb
|
115
|
+
- spec/cassettes/BlockExplorer/mytransactions/getting_transactions_for_2_addresses.yml
|
116
|
+
- spec/cassettes/BlockExplorer/mytransactions/getting_transactions_for_one_address.yml
|
117
|
+
- spec/spec_helper.rb
|
118
|
+
homepage: ''
|
119
|
+
licenses: []
|
120
|
+
post_install_message:
|
121
|
+
rdoc_options: []
|
122
|
+
require_paths:
|
123
|
+
- lib
|
124
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
125
|
+
none: false
|
126
|
+
requirements:
|
127
|
+
- - ! '>='
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '0'
|
130
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
131
|
+
none: false
|
132
|
+
requirements:
|
133
|
+
- - ! '>='
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: '0'
|
136
|
+
requirements: []
|
137
|
+
rubyforge_project:
|
138
|
+
rubygems_version: 1.8.24
|
139
|
+
signing_key:
|
140
|
+
specification_version: 3
|
141
|
+
summary: Ruby wrapper for the Block Explorer API
|
142
|
+
test_files:
|
143
|
+
- spec/block_explorer/block_explorer_spec.rb
|
144
|
+
- spec/cassettes/BlockExplorer/mytransactions/getting_transactions_for_2_addresses.yml
|
145
|
+
- spec/cassettes/BlockExplorer/mytransactions/getting_transactions_for_one_address.yml
|
146
|
+
- spec/spec_helper.rb
|