Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/l1h3r/etherscan
An Elixir library for the Etherscan API
https://github.com/l1h3r/etherscan
blockchain cryptocurrency elixir ethereum etherscan etherscan-api
Last synced: 11 days ago
JSON representation
An Elixir library for the Etherscan API
- Host: GitHub
- URL: https://github.com/l1h3r/etherscan
- Owner: l1h3r
- License: mit
- Created: 2017-08-26T03:17:49.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-10-05T20:10:54.000Z (about 3 years ago)
- Last Synced: 2024-10-29T08:41:51.279Z (19 days ago)
- Topics: blockchain, cryptocurrency, elixir, ethereum, etherscan, etherscan-api
- Language: Elixir
- Homepage:
- Size: 153 KB
- Stars: 18
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Etherscan
[![Build Status](https://travis-ci.org/l1h3r/etherscan.svg?branch=master)](https://travis-ci.org/l1h3r/etherscan)
[![Coverage Status](https://coveralls.io/repos/github/l1h3r/etherscan/badge.svg?branch=master)](https://coveralls.io/github/l1h3r/etherscan?branch=master)
[![Hex.pm](https://img.shields.io/hexpm/v/etherscan.svg?style=flat-square)](https://hex.pm/packages/etherscan)
[![Hex.pm](https://img.shields.io/hexpm/dt/etherscan.svg?style=flat-square)](https://hex.pm/packages/etherscan)An Elixir wrapper for the [Etherscan](https://etherscan.io/) API
[Official API Documentation](https://etherscan.io/apis)
[Create API Key (optional)](https://etherscan.io/myapikey)
## Installation
Etherscan is available on [Hex](https://hex.pm/). You can install the package via:
```elixir
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:
```elixir
config :etherscan,
api_key: ""
```#### Using a Testnet
You can use one of the test networks with the following:
```elixir
config :etherscan,
network: :ropsten
```#### Setting Request Options
You can set additional request options which are passed to [HTTPoison]:
```elixir
config :etherscan,
request: [recv_timeout: 500]
```Check out the HTTPoison [README](https://github.com/edgurgel/httpoison#options) for all available options.
[HTTPoison]: https://github.com/edgurgel/httpoison