@@ -77,7 +77,7 @@ Flag | Description | Environment Variable | Default Value
77
77
---| --- | --- | ---
78
78
` -r, --rpc-url <RPC_URL> ` | URL of the RPC node that provides the blockchain data. | ` RPC_URL ` | wss://xcbws.coreblockchain.net
79
79
` -n, --network <NETWORK> ` | Network to sync data from (e.g., mainnet, devin, private). | ` NETWORK ` | Mainnet
80
- ` --storage <STORAGE> ` | Storage type for saving blockchain data (e.g., sqlite3-storage , postgres-storage ). | ` STORAGE ` | sqlite3-storage
80
+ ` --storage <STORAGE> ` | Storage type for saving blockchain data (e.g., sqlite3, postgres). | ` STORAGE ` | sqlite3
81
81
` -s, --sqlite3-path <SQLITE3_PATH> ` | Path to SQLite3 file where the blockchain data is saved. | ` SQLITE3_PATH ` | None
82
82
` -p, --postgres-db-dsn <POSTGRES_DB_DSN> ` | Postgres database DSN where the blockchain data is saved. | ` POSTGRES_DB_DSN ` | None
83
83
` -t, --tables-prefix <TABLES_PREFIX> ` | Prefix for the tables in the database. Useful when running multiple instances. | ` TABLES_PREFIX ` | etl
@@ -173,7 +173,7 @@ You can configure `core-etl` using environment variables or command-line flags.
173
173
174
174
``` bash
175
175
export NETWORK=" mainnet"
176
- export STORAGE=" sqlite3-storage "
176
+ export STORAGE=" sqlite3"
177
177
export SQLITE3_PATH=" /path/to/your/sqlite3.db"
178
178
export TABLES_PREFIX=" etl"
179
179
export MODULES=" blocks,transactions,token_transfers"
@@ -182,7 +182,7 @@ export MODULES="blocks,transactions,token_transfers"
182
182
### Command-Line Flags
183
183
184
184
``` bash
185
- ./core-etl -n mainnet --storage sqlite3-storage -s /path/to/your/sqlite3.db -t etl -m blocks,transactions,token_transfers export
185
+ ./core-etl -n mainnet --storage sqlite3 -s /path/to/your/sqlite3.db -t etl -m blocks,transactions,token_transfers export
186
186
```
187
187
188
188
## Examples
@@ -204,7 +204,7 @@ Export only transaction data for the Devin network to SQLite3 storage, using 10
204
204
Export transactions and CTN transfers to Postgres with a cleanup interval of 1 hour and retention period of 24 hours:
205
205
206
206
``` bash
207
- ./core-etl --storage postgres-storage -p postgres://user:password@localhost:5432/dbname -m transactions,token_transfers export -w " ctn" -r 86400 -c 3600
207
+ ./core-etl --storage postgres -p postgres://user:password@localhost:5432/dbname -m transactions,token_transfers export -w " ctn" -r 86400 -c 3600
208
208
```
209
209
210
210
Export blocks and transactions using a local node, with the ` filtered_etl ` table prefix. Do not sync data until the node is synced. Also, filter transactions by address ` cb22as..21 ` :
0 commit comments