Keychain: How to sell your Dust Token - Wie verkauft man seine Staub-Token #19

DE (EN below)

In meinem letzten Beitrag habe ich gezeigt, wie man mehrere Token auf Hive-Engine verkaufen kann.

Bei dem Script, habe ich Hivejs verwendet. Damit der Verkauf möglich ist, muss dafür der private Aktivschlüssel eingegeben werden. Das ist aber nicht so sicher und recht umständlich, wenn man immer seinen Schlüssel heraussuchen muss. Ich glaube kaum, dass jemand diesen auswendig kennt.

Daher habe ich mich nun mit Hive Keychain beschäftigt und das Script angepasst. Jetzt muss man den Schlüssel nicht mehr eingeben, da der Verkauf über Hive Keychain läuft.

Am Script muss gar nicht viel verändert werden. Es muss lediglich der Aufruf von HiveJS durch den Aufruf von Hive Keychain ersetzt werden.

Aus diesem Aufruf

hive.broadcast.customJson($("#wif").val(),  [$("#username").val()] , null, id, JSON.stringify(hedata), function(err, result) {
  console.log(err, result);
});

wird folgender aufruf:

hive_keychain.requestCustomJson(
    $("#username").val(),
    id,
    "Active",
    JSON.stringify(hedata),
    'Transfer Your Dust',
    function (response) {
      console.log('main js response - custom JSON');
      console.log(response);
    },
     undefined,
  );

Mehr muss man gar nicht machen, ist doch ganz simpel oder? Hatte gedacht, das wäre schwieriger.

Wer den Dustseller mal testen möchte, kann das jetzt unter hivegadgets.com machen. Dort soll es in Zukunft weitere nützliche Tools geben. Der Dustseller ist bereits einsatzbereit, wird aber von mir in nächster Zeit noch ausgebaut und verbessert. Geplant ist auch das man transferieren, delegieren und staken kann.

Achtung, auch wenn dieser bereits von mir getestet wurde, seid vorsichtig, nicht, dass Ihr aus Versehen Token verkauft, die ihr gar nicht verkaufen wollt.

Über ein Feedback würde ich mich freuen. Was könnte ich verbessern?

EN

In my last post, I showed how to sell multiple tokens on Hive-Engine.

In the script, I used hivejs. For the sale to be possible, the private active key must be entered for it. But this is not so secure and quite inconvenient if you always have to find out your key. I don't think anyone knows it by heart.

That's why I have now worked with Hive Keychain and adapted the script. Now you don't have to enter the key anymore, because the sale is done by Hive Keychain.

Not much has to be changed at the script. Only the call of HiveJS has to be replaced by the call of Hive Keychain.

From this call

``javascript
hive.broadcast.customJson($("#wif").val(), [$("#username").val()] , null, id, JSON.stringify(hedata), function(err, result) {
console.log(err, result);
});

the following call is made:

``javascript
hive_keychain.requestCustomJson(
    $("#username").val(),
    id,
    "Active",
    JSON.stringify(hedata),
    'Transfer Your Dust'
    function (response) {
      console.log('main js response - custom JSON');
      console.log(response);
    },
     undefined,
  );

That's all you need to do, it's quite simple isn't it? I thought it would be more difficult.

If you want to test the Dustseller, you can do it now at hivegadgets.com. There will be more useful tools in the future. The Dustseller is already ready for use, but I will expand and improve it in the near future. It is also planned that you can transfer, delegate and stak.

Attention, even if this has already been tested by me, be careful, not that you accidentally sell tokens that you do not want to sell.

I would be happy about a feedback. What could I improve?

Translated with www.DeepL.com/Translator (free version)



0
0
0.000
4 comments
avatar

Yes, it does seem simple. Always thought configuring to use the Hive Keychain is going to be hard. I will try it. !PIZZA

0
0
0.000
avatar
(Edited)

I thought it too, thats why i tried first Hivejs.

0
0
0.000
avatar

Congratulations @hive-coding! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

You made more than 10 comments.
Your next target is to reach 50 comments.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

Check out our last posts:

The Hive Gamification Proposal
Support the HiveBuzz project. Vote for our proposal!
0
0
0.000