l1h3r / etherscan

An Elixir library for the Etherscan API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Etherscan

Build Status Coverage Status Hex.pm Hex.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.

About

An Elixir library for the Etherscan API

License:MIT License


Languages

Language:Elixir 100.0%