Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iov-one/iov-scraper-ethereum
Blockchain scraper for ethereum, built with iov-core, API compatible with etherscan
https://github.com/iov-one/iov-scraper-ethereum
Last synced: 10 days ago
JSON representation
Blockchain scraper for ethereum, built with iov-core, API compatible with etherscan
- Host: GitHub
- URL: https://github.com/iov-one/iov-scraper-ethereum
- Owner: iov-one
- License: apache-2.0
- Created: 2019-02-07T11:42:57.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-23T23:39:55.000Z (almost 2 years ago)
- Last Synced: 2024-11-06T22:12:56.733Z (about 2 months ago)
- Language: TypeScript
- Size: 189 KB
- Stars: 0
- Watchers: 10
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# iov-scraper-ethereum
[![Build Status](https://travis-ci.com/iov-one/iov-scraper-ethereum.svg?branch=master)](https://travis-ci.com/iov-one/iov-scraper-ethereum)
[![Docker Pulls](https://img.shields.io/docker/pulls/iov1/iov-scraper-ethereum.svg)](https://hub.docker.com/r/iov1/iov-scraper-ethereum/)The usage of this scraper is very simple, to install it, run:
```
yarn install
yarn build
```Then start it for a IOV development blockchain using:
```
yarn dev-start
```
It plays very well with [ganache](https://github.com/trufflesuite/ganache-cli). So we recommend to have a local instance of ganache running on `http://localhost:8545`## Usage
```
Usage: iov-scraper-ethereum action [arguments...]Positional arguments per action are listed below. Arguments in parentheses are optional.
help Shows a help text and exits
version Prints the version and exits
start Starts the scraper
1 Ganache base URL, e.g. http://localhost:8545Environment variables
SCRAPER_PORT Port of the webserver. Defaults to 8546.
```### Development
The yarn script `dev-start` calls `start` with a set of default options for local development. It uses the default development ganache node `http://localhost:8545`, and exports the API enty point URL `http://localhost:8546`.## API
This scraper is intended to use same API as [etherscan](https://etherscan.io/apis)### Status
Get current status
```
curl http://localhost:8546/status
```### Blocks
Get all blocks
```
curl http://localhost:8546/blocks
```
### Accounts
Get all accounts listed by address
```
curl http://localhost:8546/accounts
```Get account by address
```
curl "http://localhost:8546/api?module=account&action=txlist&address=0x65E2fF4C989dd53387dfeFF8b36e58265047Cf34"
```## TODO
- [x] Get a list of 'Internal' Transactions by Address
- [x] Allow url path querying as etherscan
- [ ] Add tests
- [ ] Complete set of APIs
- [ ] Implement local DB to load full chain