Config models¶
Pydantic models for configuration endpoints — server config, user config, setup, save results.
rainbowminer_api_client.models.config ¶
Models for config-related endpoints.
Covers: /config, /userconfig, /loadconfig, /saveconfig,
/loadconfigjson, /saveconfigjson, /setup.json.
Config ¶
UserConfig ¶
MinerConfig ¶
Bases: RainbowMinerModel
A single miner entry from /loadconfig?ConfigName=Miners.
Attributes:
| Name | Type | Description |
|---|---|---|
Name |
str
|
Miner base name. |
Device |
str
|
Target device. |
MainAlgorithm |
str
|
Primary algorithm. |
SecondaryAlgorithm |
str
|
Secondary algorithm (dual mining). |
Params |
str
|
Extra miner command-line parameters. |
MSIAprofile |
str | None
|
MSI Afterburner profile index. |
OCprofile |
str | None
|
Overclock profile name. |
Difficulty |
str | None
|
Pool difficulty override. |
Penalty |
float | int | str | None
|
Profit penalty factor. |
Disable |
bool
|
Whether the miner is disabled. |
Tuning |
dict[str, Any] | None
|
Miner-specific tuning parameters. |
PoolsConfig ¶
LoadConfigJsonResult ¶
SaveResult ¶
SetupJson ¶
Bases: RainbowMinerModel
Response of /setup.json — aggregated setup config.
Attributes:
| Name | Type | Description |
|---|---|---|
Autostart |
dict[str, Any] | None
|
Autostart configuration. |
Exclude |
list[str]
|
List of server config vars excluded from sync. |
Config |
Any | None
|
Main config object. |
Pools |
Any | None
|
Pools config object. |
Coins |
Any | None
|
Coins config object. |
OCProfiles |
Any | None
|
OC profiles config object. |
Scheduler |
Any | None
|
Scheduler config object. |
Userpools |
Any | None
|
Userpools config object. |