Method: Etherscan::Contract.getabi

Defined in:
lib/etherscan/api.rb

.getabi(address) ⇒ Object



69
70
71
72
73
74
# File 'lib/etherscan/api.rb', line 69

def getabi(address)
  call = Etherscan::Call.new(Etherscan.chain, 'contract', 'getabi')
  call.api_key = Etherscan.api_key
  call.address = address
  call.fetch
end