Skip to main content
stellar-etl GitHub repository stellar/stellar-etl docker images Generally if you do not need to modify any of the stellar-etl code, it is recommended that you use the stellar/stellar-etl docker images. Example to run locally with docker:

Building and Running Locally

Install Golang

  • Make sure your golang version >= 1.22.1

Clone the repo

Build stellar-etl

  • Run go build in the cloned stellar-etl repo

Run stellar-etl

  • A stellar-etl executable should have been created in your stellar-etl repo
  • Example stellar-etl command:
This should create a exported_ledgers.txt file with the output of ledgers from ledgers 10 to 11:

stellar-etl Commands

export_ledgers

This command exports ledgers within the provided range.

export_transactions

This command exports transactions within the provided range.

export_operations

This command exports operations within the provided range.

export_effects

This command exports effects within the provided range.

export_assets

Exports the assets that are created from payment operations over a specified ledger range.

export_trades

Exports trade data within the specified range to an output file

export_diagnostic_events

Exports diagnostic events data within the specified range to an output file

export_ledger_entry_changes

This command exports ledger changes within the provided ledger range. Note that this command will also exports every state change for each ledger entry type. Information on options to only output specifc ledger entry types.