Etherscan

Build StatusCoverage StatusHex.pmHex.pm

An Elixir wrapper for the Etherscan API

Official API Documentation

Create API Key (optional)

Installation

Etherscan is available on Hex. You can install the package via:

def deps do
  [
    {:etherscan, "~> 2.0.0"}
  ]
end

Usage

Setting Your API Key

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>"

Using a Testnet

You can use one of the test networks with the following:

config :etherscan,
  network: :ropsten

Setting Request Options

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.