You are viewing a single comment's thread from:

RE: C# lib Ditch 2.0 for Graphene from Steepshot team

in #steem7 years ago

This looks like an interesting tool. Could you provide use-examples perhaps?

Thanks for sharing!

Sort:  

....
//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.

Coin Marketplace

STEEM 0.28
TRX 0.12
JST 0.033
BTC 66858.35
ETH 3088.97
USDT 1.00
SBD 3.72