Methods
(async, inner) autoMine(userConfig, miningStrategyopt, firstRunopt)
- Source:
Builds and submits a mining transaction based on the provided user configuration and mining strategy
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
userConfig |
Array.<Object> | An object that contains properties for each question name and related answers as a values | ||
miningStrategy |
Array.<Object> |
<optional> |
{}
|
An object that contains properties for automatically calculating a commit |
firstRun |
boolean |
<optional> |
true
|
A boolean that indicates if this is the first run of the script |
(async, inner) promptFeeStrategy() → {Array.<Object>}
- Source:
Prompts the user for a custom fee multiplier
Returns:
An object that contains the value for the fee multiplier
- Type
- Array.<Object>
(async, inner) promptMiningStrategy() → {Array.<Object>}
- Source:
Prompts the user for a custom mining strategy
Returns:
An object that contains properties for each question name and related answers as a values
- Type
- Array.<Object>
(async, inner) promptUserConfig() → {Array.<Object>}
- Source:
Prompts the user for configuration options at the start of the script
Returns:
An object that contains properties for each question name and related answers as a values
- Type
- Array.<Object>