项目作者: l1h3r

项目描述 :
An Elixir library for the Etherscan API
高级语言: Elixir
项目地址: git://github.com/l1h3r/etherscan.git
创建时间: 2017-08-26T03:17:49Z
项目社区:https://github.com/l1h3r/etherscan

开源协议:MIT License

下载


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:

  1. def deps do
  2. [
  3. {:etherscan, "~> 2.0.0"}
  4. ]
  5. 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:

  1. config :etherscan,
  2. api_key: "<YOUR-API-KEY>"

Using a Testnet

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

  1. config :etherscan,
  2. network: :ropsten

Setting Request Options

You can set additional request options which are passed to HTTPoison:

  1. config :etherscan,
  2. request: [recv_timeout: 500]

Check out the HTTPoison README for all available options.