Module: GeneratedWeb3Methods
- Included in:
- Web3
- Defined in:
- lib/generated_web3_methods.rb
Instance Method Summary collapse
- #eth_accounts ⇒ Object
- #eth_blockNumber ⇒ Object
- #eth_call(trans_object, block) ⇒ Object
- #eth_coinbase ⇒ Object
- #eth_compileLLL(code) ⇒ Object
- #eth_compileSerpent(code) ⇒ Object
- #eth_compileSolidity(code) ⇒ Object
- #eth_estimateGas(trans_object, block) ⇒ Object
- #eth_gasPrice ⇒ Object
- #eth_getBalance(address, block = "latest") ⇒ Object
- #eth_getBlockByHash(hash, full_transactions = true) ⇒ Object
- #eth_getBlockByNumber(number, full_transactions = true) ⇒ Object
- #eth_getBlockTransactionCountByHash(data) ⇒ Object
- #eth_getBlockTransactionCountByNumber(block = "latest") ⇒ Object
- #eth_getCode(address, block = "latest") ⇒ Object
- #eth_getCompilers ⇒ Object
- #eth_getFilterChanges(id) ⇒ Object
- #eth_getFilterLogs(id) ⇒ Object
- #eth_getLogs(filter_obj) ⇒ Object
- #eth_getStorageAt(storage_address, position, block = "latest") ⇒ Object
- #eth_getTransactionByBlockHashAndIndex(hash, index) ⇒ Object
- #eth_getTransactionByBlockNumberAndIndex(number, index) ⇒ Object
- #eth_getTransactionByHash(hash) ⇒ Object
- #eth_getTransactionCount(address, block = "latest") ⇒ Object
- #eth_getTransactionReceipt(hash) ⇒ Object
- #eth_getUncleByBlockHashAndIndex(hash, index) ⇒ Object
- #eth_getUncleByBlockNumberAndIndex(number, index) ⇒ Object
- #eth_getUncleCountByBlockHash(data) ⇒ Object
- #eth_getUncleCountByBlockNumber(data) ⇒ Object
- #eth_getWork ⇒ Object
- #eth_hashrate ⇒ Object
- #eth_mining ⇒ Object
- #eth_newBlockFilter ⇒ Object
- #eth_newFilter(fromBlock, toBlock, address, topics) ⇒ Object
- #eth_newPendingTransactionFilter ⇒ Object
- #eth_protocolVersion ⇒ Object
- #eth_sendRawTransaction(data) ⇒ Object
- #eth_sendTransaction(trans_object) ⇒ Object
- #eth_sign(address, data) ⇒ Object
- #eth_submitHashrate(hashrate, id) ⇒ Object
- #eth_submitWork(nonce, powHash, mixDigest) ⇒ Object
- #eth_syncing ⇒ Object
- #eth_uninstallFilter(id) ⇒ Object
- #net_listening ⇒ Object
- #net_peerCount ⇒ Object
- #net_version ⇒ Object
- #shh_addToGroup(address) ⇒ Object
- #shh_getFilterChanges(id) ⇒ Object
- #shh_getMessages(id) ⇒ Object
- #shh_hasIdentity(address) ⇒ Object
- #shh_newFilter(filter_object) ⇒ Object
- #shh_newGroup ⇒ Object
- #shh_newIdentity ⇒ Object
- #shh_post(post_object) ⇒ Object
- #shh_uninstallFilter(id) ⇒ Object
- #shh_version ⇒ Object
- #web3_clientVersion ⇒ Object
- #web3_sha3(data) ⇒ Object
Instance Method Details
#eth_accounts ⇒ Object
69 70 71 72 |
# File 'lib/generated_web3_methods.rb', line 69 def eth_accounts() response = do_request("eth_accounts") response["result"] end |
#eth_blockNumber ⇒ Object
75 76 77 78 |
# File 'lib/generated_web3_methods.rb', line 75 def eth_blockNumber() response = do_request("eth_blockNumber") to_decimal response["result"] end |
#eth_call(trans_object, block) ⇒ Object
147 148 149 150 |
# File 'lib/generated_web3_methods.rb', line 147 def eth_call(trans_object,block) response = do_request("eth_call",[trans_object, block]) response["result"] end |
#eth_coinbase ⇒ Object
45 46 47 48 |
# File 'lib/generated_web3_methods.rb', line 45 def eth_coinbase() response = do_request("eth_coinbase") response["result"] end |
#eth_compileLLL(code) ⇒ Object
213 214 215 216 |
# File 'lib/generated_web3_methods.rb', line 213 def eth_compileLLL(code) response = do_request("eth_compileLLL",[code]) response["result"] end |
#eth_compileSerpent(code) ⇒ Object
225 226 227 228 |
# File 'lib/generated_web3_methods.rb', line 225 def eth_compileSerpent(code) response = do_request("eth_compileSerpent",[code]) response["result"] end |
#eth_compileSolidity(code) ⇒ Object
219 220 221 222 |
# File 'lib/generated_web3_methods.rb', line 219 def eth_compileSolidity(code) response = do_request("eth_compileSolidity",[code]) response["result"] end |
#eth_estimateGas(trans_object, block) ⇒ Object
153 154 155 156 |
# File 'lib/generated_web3_methods.rb', line 153 def eth_estimateGas(trans_object,block) response = do_request("eth_estimateGas",[trans_object, block]) response["result"] end |
#eth_gasPrice ⇒ Object
63 64 65 66 |
# File 'lib/generated_web3_methods.rb', line 63 def eth_gasPrice() response = do_request("eth_gasPrice") to_decimal response["result"] end |
#eth_getBalance(address, block = "latest") ⇒ Object
81 82 83 84 |
# File 'lib/generated_web3_methods.rb', line 81 def eth_getBalance(address, block = "latest") response = do_request("eth_getBalance",[address, block]) to_decimal response["result"] end |
#eth_getBlockByHash(hash, full_transactions = true) ⇒ Object
159 160 161 162 |
# File 'lib/generated_web3_methods.rb', line 159 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
165 166 167 168 |
# File 'lib/generated_web3_methods.rb', line 165 def eth_getBlockByNumber(number, full_transactions = true) response = do_request("eth_getBlockByNumber",[number, full_transactions]) response["result"] end |
#eth_getBlockTransactionCountByHash(data) ⇒ Object
99 100 101 102 |
# File 'lib/generated_web3_methods.rb', line 99 def eth_getBlockTransactionCountByHash(data) response = do_request("eth_getBlockTransactionCountByHash",[data]) to_decimal response["result"] end |
#eth_getBlockTransactionCountByNumber(block = "latest") ⇒ Object
105 106 107 108 |
# File 'lib/generated_web3_methods.rb', line 105 def eth_getBlockTransactionCountByNumber(block = "latest") response = do_request("eth_getBlockTransactionCountByNumber",[block]) to_decimal response["result"] end |
#eth_getCode(address, block = "latest") ⇒ Object
123 124 125 126 |
# File 'lib/generated_web3_methods.rb', line 123 def eth_getCode(address, block = "latest") response = do_request("eth_getCode",[address, block]) response["result"] end |
#eth_getCompilers ⇒ Object
207 208 209 210 |
# File 'lib/generated_web3_methods.rb', line 207 def eth_getCompilers() response = do_request("eth_getCompilers") response["result"] end |
#eth_getFilterChanges(id) ⇒ Object
255 256 257 258 |
# File 'lib/generated_web3_methods.rb', line 255 def eth_getFilterChanges(id) response = do_request("eth_getFilterChanges",[id]) response["result"] end |
#eth_getFilterLogs(id) ⇒ Object
261 262 263 264 |
# File 'lib/generated_web3_methods.rb', line 261 def eth_getFilterLogs(id) response = do_request("eth_getFilterLogs",[id]) response["result"] end |
#eth_getLogs(filter_obj) ⇒ Object
267 268 269 270 |
# File 'lib/generated_web3_methods.rb', line 267 def eth_getLogs(filter_obj) response = do_request("eth_getLogs",[filter_obj]) response["result"] end |
#eth_getStorageAt(storage_address, position, block = "latest") ⇒ Object
87 88 89 90 |
# File 'lib/generated_web3_methods.rb', line 87 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
177 178 179 180 |
# File 'lib/generated_web3_methods.rb', line 177 def eth_getTransactionByBlockHashAndIndex(hash, index) response = do_request("eth_getTransactionByBlockHashAndIndex",[hash, index]) response["result"] end |
#eth_getTransactionByBlockNumberAndIndex(number, index) ⇒ Object
183 184 185 186 |
# File 'lib/generated_web3_methods.rb', line 183 def eth_getTransactionByBlockNumberAndIndex(number, index) response = do_request("eth_getTransactionByBlockNumberAndIndex",[number, index]) response["result"] end |
#eth_getTransactionByHash(hash) ⇒ Object
171 172 173 174 |
# File 'lib/generated_web3_methods.rb', line 171 def eth_getTransactionByHash(hash) response = do_request("eth_getTransactionByHash",[hash]) response["result"] end |
#eth_getTransactionCount(address, block = "latest") ⇒ Object
93 94 95 96 |
# File 'lib/generated_web3_methods.rb', line 93 def eth_getTransactionCount(address, block = "latest") response = do_request("eth_getTransactionCount",[address, block]) to_decimal response["result"] end |
#eth_getTransactionReceipt(hash) ⇒ Object
189 190 191 192 |
# File 'lib/generated_web3_methods.rb', line 189 def eth_getTransactionReceipt(hash) response = do_request("eth_getTransactionReceipt",[hash]) response["result"] end |
#eth_getUncleByBlockHashAndIndex(hash, index) ⇒ Object
195 196 197 198 |
# File 'lib/generated_web3_methods.rb', line 195 def eth_getUncleByBlockHashAndIndex(hash, index) response = do_request("eth_getUncleByBlockHashAndIndex",[hash, index]) response["result"] end |
#eth_getUncleByBlockNumberAndIndex(number, index) ⇒ Object
201 202 203 204 |
# File 'lib/generated_web3_methods.rb', line 201 def eth_getUncleByBlockNumberAndIndex(number, index) response = do_request("eth_getUncleByBlockNumberAndIndex",[number, index]) response["result"] end |
#eth_getUncleCountByBlockHash(data) ⇒ Object
111 112 113 114 |
# File 'lib/generated_web3_methods.rb', line 111 def eth_getUncleCountByBlockHash(data) response = do_request("eth_getUncleCountByBlockHash",[data]) to_decimal response["result"] end |
#eth_getUncleCountByBlockNumber(data) ⇒ Object
117 118 119 120 |
# File 'lib/generated_web3_methods.rb', line 117 def eth_getUncleCountByBlockNumber(data) response = do_request("eth_getUncleCountByBlockNumber",[data]) to_decimal response["result"] end |
#eth_getWork ⇒ Object
273 274 275 276 |
# File 'lib/generated_web3_methods.rb', line 273 def eth_getWork() response = do_request("eth_getWork") response["result"] end |
#eth_hashrate ⇒ Object
57 58 59 60 |
# File 'lib/generated_web3_methods.rb', line 57 def eth_hashrate() response = do_request("eth_hashrate") to_decimal response["result"] end |
#eth_mining ⇒ Object
51 52 53 54 |
# File 'lib/generated_web3_methods.rb', line 51 def eth_mining() response = do_request("eth_mining") response["result"] end |
#eth_newBlockFilter ⇒ Object
237 238 239 240 |
# File 'lib/generated_web3_methods.rb', line 237 def eth_newBlockFilter() response = do_request("eth_newBlockFilter") to_decimal response["result"] end |
#eth_newFilter(fromBlock, toBlock, address, topics) ⇒ Object
231 232 233 234 |
# File 'lib/generated_web3_methods.rb', line 231 def eth_newFilter(fromBlock, toBlock, address, topics) response = do_request("$CODE",[fromBlock, toBlock, address, topics]) to_decimal response["result"] end |
#eth_newPendingTransactionFilter ⇒ Object
243 244 245 246 |
# File 'lib/generated_web3_methods.rb', line 243 def eth_newPendingTransactionFilter() response = do_request("eth_newPendingTransactionFilter") to_decimal response["result"] end |
#eth_protocolVersion ⇒ Object
34 35 36 |
# File 'lib/generated_web3_methods.rb', line 34 def eth_protocolVersion() raise NotImplementedError.new "JSON-RPC call to eth_protocolVersion is not currently supported" end |
#eth_sendRawTransaction(data) ⇒ Object
141 142 143 144 |
# File 'lib/generated_web3_methods.rb', line 141 def eth_sendRawTransaction(data) response = do_request("eth_sendRawTransaction",[data]) response["result"] end |
#eth_sendTransaction(trans_object) ⇒ Object
135 136 137 138 |
# File 'lib/generated_web3_methods.rb', line 135 def eth_sendTransaction(trans_object) response = do_request("eth_sendTransaction",[trans_object]) response["result"] end |
#eth_sign(address, data) ⇒ Object
129 130 131 132 |
# File 'lib/generated_web3_methods.rb', line 129 def eth_sign(address, data) response = do_request("eth_sign",[address, data]) response["result"] end |
#eth_submitHashrate(hashrate, id) ⇒ Object
285 286 287 288 |
# File 'lib/generated_web3_methods.rb', line 285 def eth_submitHashrate(hashrate, id) response = do_request("eth_submitHashrate",[hashrate, id]) response["result"] end |
#eth_submitWork(nonce, powHash, mixDigest) ⇒ Object
279 280 281 282 |
# File 'lib/generated_web3_methods.rb', line 279 def eth_submitWork(nonce, powHash, mixDigest) response = do_request("eth_submitWork",[nonce, powHash, mixDigest]) response["result"] end |
#eth_syncing ⇒ Object
39 40 41 42 |
# File 'lib/generated_web3_methods.rb', line 39 def eth_syncing() response = do_request("eth_syncing") response["result"] end |
#eth_uninstallFilter(id) ⇒ Object
249 250 251 252 |
# File 'lib/generated_web3_methods.rb', line 249 def eth_uninstallFilter(id) response = do_request("eth_uninstallFilter",[id]) response["result"] end |
#net_listening ⇒ Object
28 29 30 31 |
# File 'lib/generated_web3_methods.rb', line 28 def net_listening() response = do_request("net_listening") response["result"] end |
#net_peerCount ⇒ Object
22 23 24 25 |
# File 'lib/generated_web3_methods.rb', line 22 def net_peerCount() response = do_request("net_peerCount") to_decimal response["result"] end |
#net_version ⇒ Object
16 17 18 19 |
# File 'lib/generated_web3_methods.rb', line 16 def net_version() response = do_request("net_version") response["result"] end |
#shh_addToGroup(address) ⇒ Object
321 322 323 324 |
# File 'lib/generated_web3_methods.rb', line 321 def shh_addToGroup(address) response = do_request("shh_addToGroup",[address]) response["result"] end |
#shh_getFilterChanges(id) ⇒ Object
339 340 341 342 |
# File 'lib/generated_web3_methods.rb', line 339 def shh_getFilterChanges(id) response = do_request("shh_getFilterChanges",[id]) response["result"] end |
#shh_getMessages(id) ⇒ Object
345 346 347 348 |
# File 'lib/generated_web3_methods.rb', line 345 def shh_getMessages(id) response = do_request("shh_getMessages",[id]) response["result"] end |
#shh_hasIdentity(address) ⇒ Object
309 310 311 312 |
# File 'lib/generated_web3_methods.rb', line 309 def shh_hasIdentity(address) response = do_request("shh_hasIdentity",[address]) response["result"] end |
#shh_newFilter(filter_object) ⇒ Object
327 328 329 330 |
# File 'lib/generated_web3_methods.rb', line 327 def shh_newFilter(filter_object) response = do_request("shh_newFilter",[filter_object]) to_decimal response["result"] end |
#shh_newGroup ⇒ Object
315 316 317 318 |
# File 'lib/generated_web3_methods.rb', line 315 def shh_newGroup() response = do_request("shh_newGroup") response["result"] end |
#shh_newIdentity ⇒ Object
303 304 305 306 |
# File 'lib/generated_web3_methods.rb', line 303 def shh_newIdentity() response = do_request("shh_newIdentity") response["result"] end |
#shh_post(post_object) ⇒ Object
297 298 299 300 |
# File 'lib/generated_web3_methods.rb', line 297 def shh_post(post_object) response = do_request("shh_post",[post_object]) response["result"] end |
#shh_uninstallFilter(id) ⇒ Object
333 334 335 336 |
# File 'lib/generated_web3_methods.rb', line 333 def shh_uninstallFilter(id) response = do_request("shh_uninstallFilter",[id]) response["result"] end |
#shh_version ⇒ Object
291 292 293 294 |
# File 'lib/generated_web3_methods.rb', line 291 def shh_version() response = do_request("shh_version") response["result"] end |
#web3_clientVersion ⇒ Object
4 5 6 7 |
# File 'lib/generated_web3_methods.rb', line 4 def web3_clientVersion() response = do_request("web3_clientVersion") response["result"] end |
#web3_sha3(data) ⇒ Object
10 11 12 13 |
# File 'lib/generated_web3_methods.rb', line 10 def web3_sha3(data) response = do_request("web3_sha3",[data]) response["result"] end |