Skip to content

Ditch features release v2.2.2

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

Supported operations

Get:

  • DynamicGlobalProperties
  • Content
  • GetAccounts
  • GetCustomRequest
  • VerifyAuthority
  • GetFollowing
  • GetFollowers
  • LookupAccountNames
  • LookupAccounts
  • GetAccountCount
  • GetAccountBandwidth
  • GetWitnessSchedule
  • GetState
  • GetNextScheduledHardfork
  • GetKeyReferences
  • GetHardforkVersion
  • GetFeedHistory
  • GetCurrentMedianHistoryPrice
  • GetConfig
  • GetChainProperties
  • GetConversionRequests
  • GetAccountHistory
  • GetAccountReferences
  • (new!) GetTrendingTags
  • (new!) GetBlockHeader
  • (new!) GetBlock
  • (new!) GetOpsInBlock
  • (new!) GetTrendingCategories
  • (new!) GetBestCategories
  • (new!) GetActiveCategories
  • (new!) GetRecentCategories
  • (new!) GetOwnerHistory
  • (new!) GetRecoveryRequest
  • (new!) GetEscrow
  • (new!) GetWithdrawRoutes

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

Supported chains:

  • Golos
  • Steem

Additional features:

  • Transliteration (Cyrillic to Latin)
  • 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("5**************************************************") \\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);