ngx-steem-keychain 1.1: Buffer Signing and Broadcast Available

in #utopian-io3 years ago

Repository

https://github.com/steeveproject/ngx-steem-keychain

New Features

This release synchronizes ngx-steem-keychain with Steem Keychain extension version 1.1.4 as current available on the Chrome extension store. The following public methods were added to SteemKeychainService:

  • requestSignBuffer - Sign a buffer with the selected private key (proxy to signature.Signature.signBuffer from steem-js).
  • requestBroadcast - Broadcast any operation to the blockchain (proxy to steem.broadcast.send from steem-js).
  • requestSignedCall - Execute a signed call (proxy to steem.api.signedCall from steem-js).

To see all changes, compare what is new with the 1.0 release.

Example: Claim Reward Balance

Any blockchain operation can be now broadcasted to the blockchain. The following snippet illustrates how to claim rewards for the selected user (having SteemKeychainService injected as this.steemKeychain):

claimRewardBalance(
  username: string,
  rewardSteem: string,
  rewardSbd: string,
  rewardVests: string
): Observable<any> {

  return this.steemKeychain.requestBroadcast(username, [
    new Operation('claim_reward_balance', {
      account: username,
      reward_steem: rewardSteem,
      reward_sbd: rewardSbd,
      reward_vests: rewardVests,
      })
  ], 'Posting');
 }

Using this method I managed to claim reward balance:


steem_keychain_claim_rewards.png

GitHub Account

https://github.com/steeveproject

https://github.com/tchap - @void - package maintainer


View this post on Steeve

Sort:  

Thanks for the contribution, @steeveapp! A small contribution, but a high quality one nonetheless - keep up the good work!


Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Yeah, just syncing with the current Steem Keychain release, you know ;-)

Posted using Steeve

Thank you for your review, @amosbastian! Keep up the good work!

Hi @steeveapp!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server

Hey, @steeveapp!

Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

So I have been thinking why is it that I haven’t ported my activities to Steeve yet. One of the main reasons is that there is no separate "recommendation feed". Sometimes I’m not interested in the recommendations and they only flood my feed. And when I am interested in recommendations, I don’t need to see my regular feed.

Feel free to create an issue in the issue tracker ;-)

Posted using Steeve