Basic functionality
Changes
- The project now supports .NetStandard
- Changed the way to build transactions (become more flexible).
- New operations
Supported operations
Get:
- DynamicGlobalProperties
- Content
- GetAccounts
- GetCustomRequest
Post:
- VoteOperation (vote)
- UpVoteOperation inherit VoteOperation
- DownVoteOperation inherit VoteOperation
- FlagOperation inherit VoteOperation
- CustomJsonOperation (custom_json)
- RePostOperation inherit CustomJsonOperation
- FollowOperation inherit CustomJsonOperation
- UnfollowOperation inherit FollowOperation
- CommentOperation (comment)
- PostOperation inherit CommentOperation
- CommentOptionsOperation (comment_options)
- BeneficiaresOperation (beneficiaries) inherit CommentOptionsOperation
Supported chains:
- Golos
- Steemit
Usage
//set global properties
GlobalSettings.Init(Name, PostingKey, 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);