Module: GeneratedWeb3Methods

Defined in:
lib/generated_web3_methods.rb

Instance Method Summary collapse

Instance Method Details

#eth_accountsObject



57
58
59
60
# File 'lib/generated_web3_methods.rb', line 57

def eth_accounts()
  response = do_request("eth_accounts")
  response["result"]
end

#eth_blockNumberObject



62
63
64
65
# File 'lib/generated_web3_methods.rb', line 62

def eth_blockNumber()
  response = do_request("eth_blockNumber")
  to_decimal response["result"]
end

#eth_call(trans_object, block) ⇒ Object



122
123
124
125
# File 'lib/generated_web3_methods.rb', line 122

def eth_call(trans_object,block)
  response = do_request("eth_call",[trans_object, block])
  response["result"]
end

#eth_coinbaseObject



37
38
39
40
# File 'lib/generated_web3_methods.rb', line 37

def eth_coinbase()
  response = do_request("eth_coinbase")
  response["result"]
end

#eth_compileLLL(code) ⇒ Object



177
178
179
180
# File 'lib/generated_web3_methods.rb', line 177

def eth_compileLLL(code)
  response = do_request("eth_compileLLL",[code])
  response["result"]
end

#eth_compileSerpent(code) ⇒ Object



187
188
189
190
# File 'lib/generated_web3_methods.rb', line 187

def eth_compileSerpent(code)
  response = do_request("eth_compileSerpent",[code])
  response["result"]
end

#eth_compileSolidity(code) ⇒ Object



182
183
184
185
# File 'lib/generated_web3_methods.rb', line 182

def eth_compileSolidity(code)
  response = do_request("eth_compileSolidity",[code])
  response["result"]
end

#eth_estimateGas(trans_object, block) ⇒ Object



127
128
129
130
# File 'lib/generated_web3_methods.rb', line 127

def eth_estimateGas(trans_object,block)
  response = do_request("eth_estimateGas",[trans_object, block])
  response["result"]
end

#eth_gasPriceObject



52
53
54
55
# File 'lib/generated_web3_methods.rb', line 52

def eth_gasPrice()
  response = do_request("eth_gasPrice")
  to_decimal response["result"]
end

#eth_getBalance(address = @address, block = "latest") ⇒ Object



67
68
69
70
# File 'lib/generated_web3_methods.rb', line 67

def eth_getBalance(address = @address, block = "latest")
  response = do_request("eth_getBalance",[address, block])
  to_decimal response["result"]
end

#eth_getBlockByHash(hash, full_transactions = true) ⇒ Object



132
133
134
135
# File 'lib/generated_web3_methods.rb', line 132

def eth_getBlockByHash(hash, full_transactions = true)
  response = do_request("eth_getBlockByHash",[hash, full_transactions])
  response["result"]
end

#eth_getBlockByNumber(number, full_transactions = true) ⇒ Object



137
138
139
140
# File 'lib/generated_web3_methods.rb', line 137

def eth_getBlockByNumber(number, full_transactions = true)
  response = do_request("eth_getBlockByNumber",[number, full_transactions])
  response["result"]
end

#eth_getBlockTransactionCountByHash(data) ⇒ Object



82
83
84
85
# File 'lib/generated_web3_methods.rb', line 82

def eth_getBlockTransactionCountByHash(data)
  response = do_request("eth_getBlockTransactionCountByHash",[data])
  to_decimal response["result"]
end

#eth_getBlockTransactionCountByNumber(block = "latest") ⇒ Object



87
88
89
90
# File 'lib/generated_web3_methods.rb', line 87

def eth_getBlockTransactionCountByNumber(block = "latest")
  response = do_request("eth_getBlockTransactionCountByNumber",[block])
  to_decimal response["result"]
end

#eth_getCode(address = @address, block = "latest") ⇒ Object



102
103
104
105
# File 'lib/generated_web3_methods.rb', line 102

def eth_getCode(address = @address, block = "latest")
  response = do_request("eth_getCode",[address, block])
  response["result"]
end

#eth_getCompilersObject



172
173
174
175
# File 'lib/generated_web3_methods.rb', line 172

def eth_getCompilers()
  response = do_request("eth_getCompilers")
  response["result"]
end

#eth_getFilterChanges(id) ⇒ Object



212
213
214
215
# File 'lib/generated_web3_methods.rb', line 212

def eth_getFilterChanges(id)
  response = do_request("eth_getFilterChanges",[id])
  response["result"]
end

#eth_getFilterLogs(id) ⇒ Object



217
218
219
220
# File 'lib/generated_web3_methods.rb', line 217

def eth_getFilterLogs(id)
  response = do_request("eth_getFilterLogs",[id])
  response["result"]
end

#eth_getLogs(filter_obj) ⇒ Object



222
223
224
225
# File 'lib/generated_web3_methods.rb', line 222

def eth_getLogs(filter_obj)
  response = do_request("eth_getLogs",[filter_obj])
  response["result"]
end

#eth_getStorageAt(storage_address, position, block = "latest") ⇒ Object



72
73
74
75
# File 'lib/generated_web3_methods.rb', line 72

def eth_getStorageAt(storage_address, position, block = "latest")
  response = do_request("eth_getStorageAt",[storage_address, to_hex(position), block])
  response["result"]
end

#eth_getTransactionByBlockHashAndIndex(hash, index) ⇒ Object



147
148
149
150
# File 'lib/generated_web3_methods.rb', line 147

def eth_getTransactionByBlockHashAndIndex(hash, index)
  response = do_request("eth_getTransactionByBlockHashAndIndex",[hash, index])
  response["result"]
end

#eth_getTransactionByBlockNumberAndIndex(number, index) ⇒ Object



152
153
154
155
# File 'lib/generated_web3_methods.rb', line 152

def eth_getTransactionByBlockNumberAndIndex(number, index)
  response = do_request("eth_getTransactionByBlockNumberAndIndex",[number, index])
  response["result"]
end

#eth_getTransactionByHash(hash) ⇒ Object



142
143
144
145
# File 'lib/generated_web3_methods.rb', line 142

def eth_getTransactionByHash(hash)
  response = do_request("eth_getTransactionByHash",[hash])
  response["result"]
end

#eth_getTransactionCount(address = @address, block = "latest") ⇒ Object



77
78
79
80
# File 'lib/generated_web3_methods.rb', line 77

def eth_getTransactionCount(address = @address, block = "latest")
  response = do_request("eth_getTransactionCount",[address, block])
  to_decimal response["result"]
end

#eth_getTransactionReceipt(hash) ⇒ Object



157
158
159
160
# File 'lib/generated_web3_methods.rb', line 157

def eth_getTransactionReceipt(hash)
  response = do_request("eth_getTransactionReceipt",[hash])
  response["result"]
end

#eth_getUncleByBlockHashAndIndex(hash, index) ⇒ Object



162
163
164
165
# File 'lib/generated_web3_methods.rb', line 162

def eth_getUncleByBlockHashAndIndex(hash, index)
  response = do_request("eth_getUncleByBlockHashAndIndex",[hash, index])
  response["result"]
end

#eth_getUncleByBlockNumberAndIndex(number, index) ⇒ Object



167
168
169
170
# File 'lib/generated_web3_methods.rb', line 167

def eth_getUncleByBlockNumberAndIndex(number, index)
  response = do_request("eth_getUncleByBlockNumberAndIndex",[number, index])
  response["result"]
end

#eth_getUncleCountByBlockHash(data) ⇒ Object



92
93
94
95
# File 'lib/generated_web3_methods.rb', line 92

def eth_getUncleCountByBlockHash(data)
  response = do_request("eth_getUncleCountByBlockHash",[data])
  to_decimal response["result"]
end

#eth_getUncleCountByBlockNumber(data) ⇒ Object



97
98
99
100
# File 'lib/generated_web3_methods.rb', line 97

def eth_getUncleCountByBlockNumber(data)
  response = do_request("eth_getUncleCountByBlockNumber",[data])
  to_decimal response["result"]
end

#eth_getWorkObject



227
228
229
230
# File 'lib/generated_web3_methods.rb', line 227

def eth_getWork()
  response = do_request("eth_getWork")
  response["result"]
end

#eth_hashrateObject



47
48
49
50
# File 'lib/generated_web3_methods.rb', line 47

def eth_hashrate()
  response = do_request("eth_hashrate")
  to_decimal response["result"]
end

#eth_miningObject



42
43
44
45
# File 'lib/generated_web3_methods.rb', line 42

def eth_mining()
  response = do_request("eth_mining")
  response["result"]
end

#eth_newBlockFilterObject



197
198
199
200
# File 'lib/generated_web3_methods.rb', line 197

def eth_newBlockFilter()
  response = do_request("eth_newBlockFilter")
  to_decimal response["result"]
end

#eth_newFilter(fromBlock, toBlock, address, topics) ⇒ Object



192
193
194
195
# File 'lib/generated_web3_methods.rb', line 192

def eth_newFilter(fromBlock, toBlock, address, topics)
  response = do_request("$CODE",[fromBlock, toBlock, address, topics])
  to_decimal response["result"]
end

#eth_newPendingTransactionFilterObject



202
203
204
205
# File 'lib/generated_web3_methods.rb', line 202

def eth_newPendingTransactionFilter()
  response = do_request("eth_newPendingTransactionFilter")
  to_decimal response["result"]
end

#eth_protocolVersionObject



28
29
30
# File 'lib/generated_web3_methods.rb', line 28

def eth_protocolVersion()
  raise NotImplementedError.new "JSON-RPC call to eth_protocolVersion is not currently supported"
end

#eth_sendRawTransaction(data) ⇒ Object



117
118
119
120
# File 'lib/generated_web3_methods.rb', line 117

def eth_sendRawTransaction(data)
  response = do_request("eth_sendRawTransaction",[data])
  response["result"]
end

#eth_sendTransaction(trans_object) ⇒ Object



112
113
114
115
# File 'lib/generated_web3_methods.rb', line 112

def eth_sendTransaction(trans_object)
  response = do_request("eth_sendTransaction",[trans_object])
  response["result"]
end

#eth_sign(data, address = @address) ⇒ Object



107
108
109
110
# File 'lib/generated_web3_methods.rb', line 107

def eth_sign(data, address = @address)
  response = do_request("eth_sign",[address, data])
  response["result"]
end

#eth_submitHashrate(hashrate, id) ⇒ Object



237
238
239
240
# File 'lib/generated_web3_methods.rb', line 237

def eth_submitHashrate(hashrate, id)
  response = do_request("eth_submitHashrate",[hashrate, id])
  response["result"]
end

#eth_submitWork(nonce, powHash, mixDigest) ⇒ Object



232
233
234
235
# File 'lib/generated_web3_methods.rb', line 232

def eth_submitWork(nonce, powHash, mixDigest)
  response = do_request("eth_submitWork",[nonce, powHash, mixDigest])
  response["result"]
end

#eth_syncingObject



32
33
34
35
# File 'lib/generated_web3_methods.rb', line 32

def eth_syncing()
  response = do_request("eth_syncing")
  response["result"]
end

#eth_uninstallFilter(id) ⇒ Object



207
208
209
210
# File 'lib/generated_web3_methods.rb', line 207

def eth_uninstallFilter(id)
  response = do_request("eth_uninstallFilter",[id])
  response["result"]
end

#net_listeningObject



23
24
25
26
# File 'lib/generated_web3_methods.rb', line 23

def net_listening()
  response = do_request("net_listening")
  response["result"]
end

#net_peerCountObject



18
19
20
21
# File 'lib/generated_web3_methods.rb', line 18

def net_peerCount()
  response = do_request("net_peerCount")
  to_decimal response["result"]
end

#net_versionObject



13
14
15
16
# File 'lib/generated_web3_methods.rb', line 13

def net_version()
  response = do_request("net_version")
  response["result"]
end

#shh_addToGroup(address) ⇒ Object



267
268
269
270
# File 'lib/generated_web3_methods.rb', line 267

def shh_addToGroup(address)
  response = do_request("shh_addToGroup",[address])
  response["result"]
end

#shh_getFilterChanges(id) ⇒ Object



282
283
284
285
# File 'lib/generated_web3_methods.rb', line 282

def shh_getFilterChanges(id)
  response = do_request("shh_getFilterChanges",[id])
  response["result"]
end

#shh_getMessages(id) ⇒ Object



287
288
289
290
# File 'lib/generated_web3_methods.rb', line 287

def shh_getMessages(id)
  response = do_request("shh_getMessages",[id])
  response["result"]
end

#shh_hasIdentity(address) ⇒ Object



257
258
259
260
# File 'lib/generated_web3_methods.rb', line 257

def shh_hasIdentity(address)
  response = do_request("shh_hasIdentity",[address])
  response["result"]
end

#shh_newFilter(filter_object) ⇒ Object



272
273
274
275
# File 'lib/generated_web3_methods.rb', line 272

def shh_newFilter(filter_object)
  response = do_request("shh_newFilter",[filter_object])
  to_decimal response["result"]
end

#shh_newGroupObject



262
263
264
265
# File 'lib/generated_web3_methods.rb', line 262

def shh_newGroup()
  response = do_request("shh_newGroup")
  response["result"]
end

#shh_newIdentityObject



252
253
254
255
# File 'lib/generated_web3_methods.rb', line 252

def shh_newIdentity()
  response = do_request("shh_newIdentity")
  response["result"]
end

#shh_post(post_object) ⇒ Object



247
248
249
250
# File 'lib/generated_web3_methods.rb', line 247

def shh_post(post_object)
  response = do_request("shh_post",[post_object])
  response["result"]
end

#shh_uninstallFilter(id) ⇒ Object



277
278
279
280
# File 'lib/generated_web3_methods.rb', line 277

def shh_uninstallFilter(id)
  response = do_request("shh_uninstallFilter",[id])
  response["result"]
end

#shh_versionObject



242
243
244
245
# File 'lib/generated_web3_methods.rb', line 242

def shh_version()
  response = do_request("shh_version")
  response["result"]
end

#web3_clientVersionObject



3
4
5
6
# File 'lib/generated_web3_methods.rb', line 3

def web3_clientVersion()
  response = do_request("web3_clientVersion")
  response["result"]
end

#web3_sha3(data) ⇒ Object



8
9
10
11
# File 'lib/generated_web3_methods.rb', line 8

def web3_sha3(data)
  response = do_request("web3_sha3",[data])
  response["result"]
end