Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
medvedev1088 committed May 20, 2018
1 parent ebaa269 commit 51279c7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
13 changes: 3 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,20 @@
# Ethereum ETL

One-liner for blocks and transactions:
Export blocks and transactions:

```bash
> python export_blocks_and_transactions.py --start-block=0 --end-block=500000 \
--ipc-path=$HOME/Library/Ethereum/geth.ipc --blocks-output=blocks.csv --transactions-output=transactions.csv
```

One-liner for blocks:

```bash
> python export_blocks_and_transactions.py --start-block=0 --end-block=500000 \
--ipc-path=$HOME/Library/Ethereum/geth.ipc --blocks-output=blocks.csv
```

One-liner for ERC20 transfers:
Export ERC20 transfers:

```bash
> python export_erc20_transfers.py --start-block=0 --end-block=500000 --ipc-path=$HOME/Library/Ethereum/geth.ipc \
--output=erc20_transfers.csv
```

One-liner for ERC20 transfers, filtered for list of tokens:
Export ERC20 transfers, filtered for the list of tokens:

```bash
> python export_erc20_transfers.py --start-block=0 --end-block=500000 --ipc-path=$HOME/Library/Ethereum/geth.ipc \
Expand Down
6 changes: 4 additions & 2 deletions export_blocks_and_transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@
parser.add_argument('--ipc-path', required=True, type=str, help='The full path to the ipc socket file.')
parser.add_argument('--ipc-timeout', default=300, type=int, help='The timeout in seconds for ipc calls.')
parser.add_argument('--blocks-output', default=None, type=str,
help='The output file for blocks. If not provided blocks will not be exported. - for stdout')
help='The output file for blocks. If not provided blocks will not be exported. '
'- for stdout')
parser.add_argument('--transactions-output', default=None, type=str,
help='The output file for transactions. If not provided transactions will not be exported. - for stdout')
help='The output file for transactions. If not provided transactions will not be exported. '
'- for stdout')
parser.add_argument('--strategy', default='default', type=str, choices=['default', 'unix-geth'],
help='Can be either default or unix-geth. unix-geth works about 2 times faster.')

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
web3~=4.2.0
web3~=4.2.1
typing
pytest~=3.2.0
pytest-mock~=1.10.0

0 comments on commit 51279c7

Please sign in to comment.