-
Notifications
You must be signed in to change notification settings - Fork 31
SteemJConfig
SteemJ comes with a common default configuration if you instantiate it which may not always fit your needs. This page describes which parameters can be changed and how the SteemJConfig works.
TOC
SteemJ ships with a default configuration that has been tested and that should allow you to execute all activities out of the box. For the case that this default configuration does not fit your needs you can find all required information in the following chapters to change it.
Before you continue to read you need to know one additional thing: SteemJConfig is Singleton, which means that there is only one existing instance per application. While this feature does not allow to define different configurations for different threads, it makes it unnecessary to pass the configuration object to every single method.
The following command shows how to get the currently used SteemJConfig-Instance.
[...]
SteemJConfig myConfig = SteemJConfig.getInstance();
[...]The following chapters explain and show the available configurations.
SteemJ allows you to provide sensitive data as system properties.
To provide credentials SteemJ should use to login into the node, you can use following parameters.
| Parameter | Description | Example |
|---|---|---|
| steemj.api.username | The username to login | java -jar yourApp.jar -Dsteemj.api.username="dez1337" |
| steemj.api.password | The password to login | java -jar yourApp.jar -Dsteemj.api.password="secretPassword123" |
Beside your credentials you can also provide your keys through system properties.
| Parameter | Description | Example |
|---|---|---|
| steemj.key.active | The username to login | java -jar yourApp.jar -Dsteemj.key.active="5JpbHHrEkoLsxNcddo5YaTgtmgDegTcjk8i7BDPiTbMefrPnjWK" |
| steemj.key.posting | The password to login | java -jar yourApp.jar -Dsteemj.key.posting="5J6a9B9H1rBC9XsxHUrv9Eu98cG4MaZPuaMk6LBfMSDGyk5SoiP" |
| steemj.key.owner | The password to login | java -jar yourApp.jar -Dsteemj.key.owner ="5JhxZZ6oGwFm2egPWyy21DWvroSoUur33sEHBamobDdSmhPN9U4" |
| steemj.key.memo | The password to login | java -jar yourApp.jar -Dsteemj.key.memo="5Hw3qRsC3f9yLtVazZpA8LyCUozBJq5aQv9tNNnz8fcg8BqoAWw" |
This project is developed by dez1337