Skip to content

Ditch features release v2.1.10

Compare
Choose a tag to compare
@KorzunAV KorzunAV released this 30 Nov 07:34
· 223 commits to master since this release

Supported operations

Get:

  • DynamicGlobalProperties
  • Content
  • GetAccounts
  • GetCustomRequest
  • (new!) VerifyAuthority
  • (new!) GetFollowing
  • (new!) GetFollowers
  • (new!) LookupAccountNames
  • (new!) LookupAccounts
  • (new!) GetAccountCount
  • (new!) GetAccountBandwidth
  • (new!) GetWitnessSchedule
  • (new!) GetState
  • (new!) GetNextScheduledHardfork
  • (new!) GetKeyReferences
  • (new!) GetHardforkVersion
  • (new!) GetFeedHistory
  • (new!) GetCurrentMedianHistoryPrice
  • (new!) GetConfig
  • (new!) GetChainProperties
  • (new!) GetConversionRequests
  • (new!) GetAccountHistory
  • (new!) GetAccountReferences

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
    • (new!) ReplyOperation inherit CommentOperation
  • CommentOptionsOperation (comment_options)
    • BeneficiaresOperation (beneficiaries) inherit CommentOptionsOperation

Supported chains:

  • Golos
  • Steem

Additional features:

  • (new!) Transliteration (Cyrillic to Latin)
  • (new!) Base58 converter

Usage

//set global properties
public void SetUp()
{
    Chain = ChainManager.GetChainInfo(KnownChains.Steem);
    OperationManager = new OperationManager(Chain.Url, Chain.ChainId, Chain.JsonSerializerSettings);
    YouPrivateKeys = new List<byte[]>
    {
        Base58.GetBytes("WIF")
    };        
    YouLogin = "username";
}

//Create new post with some beneficiaries
var postOp = new PostOperation("parentPermlink", YouLogin, "Title", "Body", "jsonMetadata");
var benOp = new BeneficiaresOperation(YouLogin, postOp.Permlink, Chain.SbdSymbol, new Beneficiary("someBeneficiarName", 1000));
var responce = _operationManager.BroadcastOberations(YouPrivateKeys, postOp, benOp);

//UpVote
var voteOp = new UpVoteOperation(YouLogin, "someUserName", "somePermlink");
var responce = _operationManager.BroadcastOberations(YouPrivateKeys, voteOp);

//Follow
var followOp = new FollowOperation(YouLogin, "someUserName", FollowType.Blog, YouLogin);
var responce = _operationManager.BroadcastOperations(YouPrivateKeys, followOp);