This tool creates an export of the local blockchain version to a raw format.
This could be useful if you want to process blockchain efficiently with your custom tools, as the raw format is probably easier to work with than X-Cash's custom lmdb database. This can also be used to share the blockchain to others allowing them to download it quicker.
The tool works on your local copy of the blockchain and does not require xcashd
running.
./xcash-blockchain-export [options]
Example:
./xcash-blockchain-export --help
Go to directory where you unpacked X-Cash.
./xcash-blockchain-export --stagenet --output-file=/tmp/blockchain.raw
Option | Description |
| Enlist available options. |
Option | Description |
(missing) | By default |
| Export stagenet blockchain. |
| Export testnet blockchain. |
Specifying the log file path is not supported.
Option | Description |
|
|
Option | Description |
| Full path to data directory. This is where the blockchain, log files, and p2p network memory are stored. For defaults and details see data directory. |
| The default and only valid value is |
Option | Description |
| Specify output file path. The default is |
| Output in blocks.dat format. |
| Only export up to this block number. By default do the full export (value |