Please let me know what specific information you want me to clarify or improve in addition to this.
Can I get a pointer on how to update my custom coins automatically via either the C# or HTTP API? It's useless for me to update them manually..
Patrike, can you point me in the right direction? I'm trying to update a custom coin with the C# scripting interface and I am unsure how to save my updates back (or if It even functions like this)
public class ActionScript
{
private ContextProvider Context = ScriptManager.Context;
public bool Execute(List list)
{
Muncoin bob = new Muncoin();
bob.SetProperties("", 0, 0, 0);
return true;
}
}
public class Muncoin : ICoinStatProvider
{
public string coinShortName;
public double difficulty;
public double reward;
public double valueBtc;
public Muncoin()
{
}
public void SetProperties(string _coinShortName, double _difficulty, double _reward, double _valueBtc)
{
coinShortName = "MUN";
difficulty = 10;
reward = 10;
valueBtc = 10;
}
}
I REALLY need some way to automatically update custom coins..
What's possible with C# script today is using:
void SetProperties(string coinShortName, double difficulty, double reward, double valueBtc);
public class ActionScript
{
private ContextProvider Context = ScriptManager.Context;
public bool Execute(List list)
{
Context.CoinStat.SetProperties("LTC", 3700000, 25, 0.019);
return true;
}
}
The drawback is that it's more intended for coin properties based on difficult and similar parameters.
Sometimes it's easier to just set profitability in BTC per MH/s, and I can implement that for you over the HTTP API in the next release if needed. It could be something like:
POST /api/coins/LTC?profit=0.000014