You are viewing a single comment's thread from:
RE: C# lib Ditch 2.0 for Graphene from Steepshot team
This looks like an interesting tool. Could you provide use-examples perhaps?
Thanks for sharing!
This looks like an interesting tool. Could you provide use-examples perhaps?
Thanks for sharing!
....
//set global properties
GlobalSettings.Init(UserLogin, PrivatePostingKey, ChainManager.KnownChains.Steem);
_operationManager = new OperationManager();
....
//Create new post with some beneficiaries
var op1 = new PostOperation(parentPermlink, GlobalSettings.Login, permlink, title, body, jsonMetadata);
var op2 = new BeneficiaresOperation(GlobalSettings.Login, permlink, GlobalSettings.ChainInfo.SbdSymbol, new Beneficiary(beneficiar, 1000));
var responce = _operationManager.BroadcastOberations(op1, op2);
....
//UpVote
var op1 = new UpVoteOperation(GlobalSettings.Login, author, permlink);
var responce = _operationManager.BroadcastOberations(op1);
....
Was wondering the same.
Our dev answered the question? Or do you need any further explanations? Well, If you are going to develop an app for Steem, then you will need to focus only on the client side. Operations with the blockchain will be performed by the library. Gradually we add support for new operations to the Ditch lib if there are still any.