module Etherscan::Account
Public Class Methods
balance(address, tag)
click to toggle source
# File lib/etherscan/api.rb, line 39 def balance(address, tag) call = Etherscan::Call.new(Etherscan.chain, 'account', 'balance') call.api_key = Etherscan.api_key call.address = address call.tag = tag call.fetch end
balancemulti(address, tag)
click to toggle source
# File lib/etherscan/api.rb, line 57 def balancemulti(address, tag) call = Etherscan::Call.new(Etherscan.chain, 'account', 'balancemulti') call.api_key = Etherscan.api_key call.address = address call.tag = tag call.fetch end
getminedblocks(address, blocktype, page = nil, offset = nil)
click to toggle source
# File lib/etherscan/api.rb, line 47 def getminedblocks(address, blocktype, page = nil, offset = nil) call = Etherscan::Call.new(Etherscan.chain, 'account', 'getminedblocks') call.api_key = Etherscan.api_key call.page = page call.offset = offset call.address = address call.blocktype = blocktype call.fetch end
txlist(address, startblock, endblock, sort = 'desc', page = nil, offset = nil)
click to toggle source
# File lib/etherscan/api.rb, line 8 def txlist(address, startblock, endblock, sort = 'desc', page = nil, offset = nil) call = Etherscan::Call.new(Etherscan.chain, 'account', 'txlist') call.api_key = Etherscan.api_key call.address = address call.startblock = startblock call.endblock = endblock call.page = page call.offset = offset call.sort = sort call.fetch end
txlistinternal(address, startblock, endblock, sort = 'desc', page = nil, offset = nil)
click to toggle source
# File lib/etherscan/api.rb, line 20 def txlistinternal(address, startblock, endblock, sort = 'desc', page = nil, offset = nil) call = Etherscan::Call.new(Etherscan.chain, 'account', 'txlistinternal') call.api_key = Etherscan.api_key call.address = address call.startblock = startblock call.endblock = endblock call.page = page call.offset = offset call.sort = sort call.fetch end
txlistinternal_txhash(txhash)
click to toggle source
# File lib/etherscan/api.rb, line 32 def txlistinternal_txhash(txhash) call = Etherscan::Call.new(Etherscan.chain, 'account', 'txlistinternal') call.api_key = Etherscan.api_key call.txhash = txhash call.fetch end