Commands

All commands accept -h parameter for help, e.g.:

zilliqaetl export_ds_blocks -h

Usage: zilliqaetl export_ds_blocks [OPTIONS]

  Export directory service blocks.

Options:
  -s, --start-block INTEGER       Start block  [default: 0]
  -e, --end-block INTEGER         End block  [required]
  -p, --provider-uri TEXT         The URI of the remote Zilliqa node  [default:
                                  https://api.zilliqa.com]
  -w, --max-workers INTEGER       The maximum number of workers.  [default: 5]
  -o, --output-dir TEXT           The output directory for block data.
  -h, --help                      Show this message and exit.

export_ds_blocks

zilliqaetl export_ds_blocks --start-block 1 --end-block 100 \
--provider-uri https://api.zilliqa.com --output-dir output 

Exports ds_blocks to the folder specified in --output-dir.

Options:
  -s, --start-block INTEGER       Start block  [default: 0]
  -e, --end-block INTEGER         End block  [required]
  -p, --provider-uri TEXT         The URI of the remote Zilliqa node  [default:
                                  https://api.zilliqa.com]
  -w, --max-workers INTEGER       The maximum number of workers.  [default: 5]
  -o, --output-dir TEXT           The output directory for block data.
  -f, --output-format [json]      The output format.  [default: json]
  -h, --help                      Show this message and exit.

export_tx_blocks

zilliqaetl export_ts_blocks --start-block 1 --end-block 100 \
--provider-uri https://api.zilliqa.com --output-dir output 

Exports tx_blocks, transactions, event_logs, transitions and exceptions to individual files in the folder specified in --output-dir.

Options:
  -s, --start-block INTEGER       Start block  [default: 0]
  -e, --end-block INTEGER         End block  [required]
  -p, --provider-uri TEXT         The URI of the remote Zilliqa node  [default:
                                  https://api.zilliqa.com]
  -w, --max-workers INTEGER       The maximum number of workers.  [default: 5]
  -o, --output-dir TEXT           The output directory for block data.
  -f, --output-format [json]      The output format.  [default: json]
  -h, --help                      Show this message and exit.

get_ds_block_range_for_date

zilliqaetl get_ds_block_range_for_date --provider-uri=https://api.zilliqa.com --date 2020-08-01
7004,7021

Outputs start and end ds blocks for given date.

Options:
  -p, --provider-uri TEXT  The URI of the remote Zilliqa API  [default:
                           https://api.zilliqa.com]
  -d, --date YYYY-MM-DD    The date e.g. 2020-01-01.  [required]
  -o, --output TEXT        The output file. If not specified stdout is used.
  -h, --help               Show this message and exit.

get_tx_block_range_for_date

zilliqaetl get_tx_block_range_for_date --provider-uri=https://api.zilliqa.com --date 2020-08-01
700286,702099

Outputs start and end tx blocks for given date.

Options:
  -p, --provider-uri TEXT  The URI of the remote Zilliqa API  [default:
                           https://api.zilliqa.com]
  -d, --date YYYY-MM-DD    The date e.g. 2020-01-01.  [required]
  -o, --output TEXT        The output file. If not specified stdout is used.
  -h, --help               Show this message and exit.