Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/etherscan.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
require_relative 'etherscan/client'
require_relative 'etherscan/accounts'
require_relative 'etherscan/tokens'
require_relative 'etherscan/proxy'
require_relative 'etherscan/engine' if defined?(Rails)

module Etherscan
Expand Down
21 changes: 21 additions & 0 deletions lib/etherscan/proxy.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
require_relative 'api'

module Etherscan
class Proxy < Etherscan::Api
def eth_get_transaction_by_hash(tx_hash)
params = {
module: 'proxy', action: 'eth_getTransactionByHash',
txhash: tx_hash
}
get(params)
end

def eth_get_transaction_receipt(tx_hash)
params = {
module: 'proxy', action: 'eth_getTransactionReceipt',
txhash: tx_hash
}
get(params)
end
end
end