module Etherscan::Proxy
Public Class Methods
eth_block_number()
click to toggle source
# File lib/etherscan/api.rb, line 116 def eth_block_number call = Etherscan::Call.new(Etherscan.chain, 'proxy', 'eth_blockNumber') call.api_key = Etherscan.api_key call.fetch end
eth_call(to, data, tag)
click to toggle source
# File lib/etherscan/api.rb, line 182 def eth_call(to, data, tag) call = Etherscan::Call.new(Etherscan.chain, 'proxy', 'eth_call') call.api_key = Etherscan.api_key call.to = to call.data = data call.tag = tag call.fetch end
eth_estimate_gas(to, value, gas_price, gas)
click to toggle source
# File lib/etherscan/api.rb, line 214 def eth_estimate_gas(to, value, gas_price, gas) call = Etherscan::Call.new(Etherscan.chain, 'proxy', 'eth_estimateGas') call.api_key = Etherscan.api_key call.to = to call.value = value call.gasPrice = gas_price call.gas = gas call.fetch end
eth_gas_price()
click to toggle source
# File lib/etherscan/api.rb, line 208 def eth_gas_price call = Etherscan::Call.new(Etherscan.chain, 'proxy', 'eth_gasPrice') call.api_key = Etherscan.api_key call.fetch end
eth_get_block_by_number(tag, boolean)
click to toggle source
# File lib/etherscan/api.rb, line 122 def eth_get_block_by_number(tag, boolean) call = Etherscan::Call.new(Etherscan.chain, 'proxy', 'eth_getBlockByNumber') call.api_key = Etherscan.api_key call.tag = tag call.boolean = boolean call.fetch end
eth_get_block_transaction_count_by_number(tag)
click to toggle source
# File lib/etherscan/api.rb, line 145 def eth_get_block_transaction_count_by_number(tag) call = Etherscan::Call.new(Etherscan.chain, 'proxy', 'eth_getBlockTransactionCountByNumber') call.api_key = Etherscan.api_key call.tag = tag call.fetch end
eth_get_code(address, tag)
click to toggle source
# File lib/etherscan/api.rb, line 191 def eth_get_code(address, tag) call = Etherscan::Call.new(Etherscan.chain, 'proxy', 'eth_getCode') call.api_key = Etherscan.api_key call.address = address call.tag = tag call.fetch end
eth_get_storage_at(address, position, tag)
click to toggle source
# File lib/etherscan/api.rb, line 199 def eth_get_storage_at(address, position, tag) call = Etherscan::Call.new(Etherscan.chain, 'proxy', 'eth_getStorageAt') call.api_key = Etherscan.api_key call.address = address call.position = position call.tag = tag call.fetch end
eth_get_transaction_by_block_number_and_index(tag, index)
click to toggle source
# File lib/etherscan/api.rb, line 152 def eth_get_transaction_by_block_number_and_index(tag, index) call = Etherscan::Call.new(Etherscan.chain, 'proxy', 'eth_getTransactionByBlockNumberAndIndex') call.api_key = Etherscan.api_key call.tag = tag call.index = index call.fetch end
eth_get_transaction_by_hash(txhash)
click to toggle source
# File lib/etherscan/api.rb, line 130 def eth_get_transaction_by_hash(txhash) call = Etherscan::Call.new(Etherscan.chain, 'proxy', 'eth_getTransactionByHash') call.api_key = Etherscan.api_key call.txhash = txhash call.fetch end
eth_get_transaction_count(address, tag)
click to toggle source
# File lib/etherscan/api.rb, line 160 def eth_get_transaction_count(address, tag) call = Etherscan::Call.new(Etherscan.chain, 'proxy', 'eth_getTransactionCount') call.api_key = Etherscan.api_key call.address = address call.tag = tag call.fetch end
eth_get_transaction_receipt(txhash)
click to toggle source
# File lib/etherscan/api.rb, line 175 def eth_get_transaction_receipt(txhash) call = Etherscan::Call.new(Etherscan.chain, 'proxy', 'eth_getTransactionReceipt') call.api_key = Etherscan.api_key call.txhash = txhash call.fetch end
eth_get_uncle_by_block_number_and_index(tag, index)
click to toggle source
# File lib/etherscan/api.rb, line 137 def eth_get_uncle_by_block_number_and_index(tag, index) call = Etherscan::Call.new(Etherscan.chain, 'proxy', 'eth_getUncleByBlockNumberAndIndex') call.api_key = Etherscan.api_key call.tag = tag call.index = index call.fetch end
eth_send_raw_transaction(hex)
click to toggle source
# File lib/etherscan/api.rb, line 168 def eth_send_raw_transaction(hex) call = Etherscan::Call.new(Etherscan.chain, 'proxy', 'eth_sendRawTransaction') call.api_key = Etherscan.api_key call.hex = hex call.fetch end