An Elixir wrapper for the Etherscan API
Etherscan is available on Hex. You can install the package via:
def deps do
[
{:etherscan, "~> 2.0.0"}
]
end
An API key is not required to use the Etherscan API, however, you can set one with the following:
config :etherscan,
api_key: "<YOUR-API-KEY>"
You can use one of the test networks with the following:
config :etherscan,
network: :ropsten
You can set additional request options which are passed to HTTPoison:
config :etherscan,
request: [recv_timeout: 500]
Check out the HTTPoison README for all available options.