Skip to content

Commit

Permalink
update docs [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
shinyfoil committed Oct 7, 2020
1 parent 7e59c92 commit 5fd065c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,10 @@ Omit `--receipts-output` or `--logs-output` options if you want to export only l
You can tune `--batch-size`, `--max-workers` for performance.

[Receipts and logs schema](schema.md#receiptscsv).

#### get_block_range_for_date

```bash
> iconetl get_block_range_for_date --provider-uri=https://ctz.solidwallet.io/api/v3 --date 2019-01-01
156585,157566
```
18 changes: 18 additions & 0 deletions docs/exporting-the-blockchain.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,21 @@
1. Install python 3.6+ https://www.python.org/downloads/

1. Install ICON ETL: `> pip3 install icon-etl`

1. Export all:

```bash
> iconetl export_all --help
> iconetl export_all -s 0 -e 10000000 -b 100000 -o output
```

In case `iconetl` command is not available in PATH, use `python3 -m iconetl` instead.

The result will be in the `output` subdirectory, partitioned in Hive style:
```bash
output/blocks/start_block=00000000/end_block=00099999/blocks_00000000_00099999.csv
output/blocks/start_block=00100000/end_block=00199999/blocks_00100000_00199999.csv
...
output/transactions/start_block=00000000/end_block=00099999/transactions_00000000_00099999.csv
...
```

0 comments on commit 5fd065c

Please sign in to comment.