Module: GeneratedWeb3Methods
- 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 = @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 = @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 = @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(data, address = @address) ⇒ 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
57 58 59 60 |
# File 'lib/generated_web3_methods.rb', line 57 def eth_accounts() response = do_request("eth_accounts") response["result"] end |
#eth_blockNumber ⇒ Object
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_coinbase ⇒ Object
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_gasPrice ⇒ Object
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_getCompilers ⇒ Object
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_getWork ⇒ Object
227 228 229 230 |
# File 'lib/generated_web3_methods.rb', line 227 def eth_getWork() response = do_request("eth_getWork") response["result"] end |
#eth_hashrate ⇒ Object
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_mining ⇒ Object
42 43 44 45 |
# File 'lib/generated_web3_methods.rb', line 42 def eth_mining() response = do_request("eth_mining") response["result"] end |
#eth_newBlockFilter ⇒ Object
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_newPendingTransactionFilter ⇒ Object
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_protocolVersion ⇒ Object
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_syncing ⇒ Object
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_listening ⇒ Object
23 24 25 26 |
# File 'lib/generated_web3_methods.rb', line 23 def net_listening() response = do_request("net_listening") response["result"] end |
#net_peerCount ⇒ Object
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_version ⇒ Object
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_newGroup ⇒ Object
262 263 264 265 |
# File 'lib/generated_web3_methods.rb', line 262 def shh_newGroup() response = do_request("shh_newGroup") response["result"] end |
#shh_newIdentity ⇒ Object
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_version ⇒ Object
242 243 244 245 |
# File 'lib/generated_web3_methods.rb', line 242 def shh_version() response = do_request("shh_version") response["result"] end |
#web3_clientVersion ⇒ Object
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 |