create account

How to transfer SBD to multiple users quickly on Steemit? // 如何快速地在Steemit上轉移SBD到多個用戶? by kenchung

View this thread on: hive.blogpeakd.comecency.com
· @kenchung ·
$79.40
How to transfer SBD to multiple users quickly on Steemit? // 如何快速地在Steemit上轉移SBD到多個用戶?
If you have seen my competition series, you should know that I distribute SBD to 8 winners in every round. It is a very annoying and error-prone process to type the user name, SBD amount and memo for each of the winners and transfer them the prizes. Are there any ways to make this process more efficient?

Follow me to learn how to automate this process! :)

> 如果你有留意我的比賽系列,你應該知道我在每一輪都向8名獲獎者分發SBD。可是利用Steemit內置的轉帳功能來傳送獎金是一個非常煩人且容易出錯的過程。跟著我學習如何自動化這個過程吧!:)

---

<h3>Step 1 第一步</h3>

Visit https://cdn.steemjs.com/lib/latest/steem.min.js and press Ctrl + A and Ctrl + C to copy all the codes.

P.S. If you are interested you may take a look at the full API at https://github.com/steemit/steem-js.

> 瀏覽 https://cdn.steemjs.com/lib/latest/steem.min.js,然後按Ctrl + A和Ctrl + C複製所有代碼。
P.S. 如果你有興趣,可以瀏覽 https://github.com/steemit/steem-js 查看完整的API。

<h3>Step 2 第二步</h3>

Open a new tab in Chrome and press F12 to open the Console. Paste the codes there and press 'Enter'. 

> 在Chrome中打開一個新分頁,然後按F12打開控制台。貼上代碼並按'Enter'鍵。

<center>![](https://steemitimages.com/DQmRnj2nubvBvtSTrLu3KXJaN1QxiihQ85gCUwnJBVC7sVu/image.png)</center>

<h3>Step 3 第三步</h3>

Amend the following code snippet as appropriate, paste it to the Console and press 'Enter'. The first five lines should be amended according to your own need. 

Note that the active key can be obtained at Wallet --> Permissions --> Active key --> Show private key. Do NOT disclose this key to anyone else as it can be used to transfer your funds.

Also note that ```AMOUNT``` must consist of 3 decimal places. For example if you wish to transfer 5 SBD then write ```5.000 SBD```. This is due to the strange design of the API.

> 根據需要修改以下代碼,將其貼上到控制台,然後按'Enter'鍵。你應根據自己的需要而修改首五場行。
請注意,你可以通過 Wallet --> Permissions --> Active key --> Show private key 來獲取Active key。 不要向任何人透露這個密鑰,因為它可以用於轉移你的資金。
還要注意,由於API的不尋常設計,```AMOUNT```必須為3位小數位。例如,如果要傳送5 SBD,則需輸入“5.000 SBD”。

```
const ACTIVE_KEY = '',
	FROM_USER = 'kenchung',
	WINNERS = ['philipheihei', 'challk', 'shirlam', 'misalen', 'yenipaola', 'ghasemkiani', 'armandocat', 'dailyfortune'],
	AMOUNT = '6.571 SBD',
	MEMO = 'You have won the Math X Programming Competition #5! Congratulations!';

for (var i in WINNERS){
	transfer(WINNERS[i]);
}

function transfer(to_user){
	steem.broadcast.transfer(ACTIVE_KEY, FROM_USER, to_user, AMOUNT, MEMO, function(err, result) {
	  console.log(err, result);
	});
}
```

<center>![](https://steemitimages.com/DQmbfyPWaxW4TqYUshqUHxkVFDA4zSCfCFuYWqHX4eDaqit/image.png)</center>

After pressing 'Enter', you should observe outputs similar to the screen capture above.

> 按“Enter”後,你應該觀察到與上圖相似的輸出。

<h3>Step 4 第四步</h3>

Finally you may wish to verify the transactions by looking at your own wallet.

> 最後,你可以通過查看自己的錢包來驗證交易。

<center>![](https://steemitimages.com/DQmX3p9UfGukSFQDajfqudRLxj5SCjL3XDNwRviBL3DkY6R/image.png)</center>

---

<h3>Disclaimer 免責聲明</h3>

<h6>I shall not be responsible for any loss arising from the use of the above method. Use it at your own risk.</h6>

<h6>本人對於一切因使用上述方法而招致的損失恕不負責。使用上述方法前請自行衡量風險。</h6>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 73 others
properties (23)
authorkenchung
permlinkhow-to-transfer-sbd-to-multiple-users-quickly-on-steemit-steemit-sbd
categorycn
json_metadata{"tags":["cn","how-to","steemit","programming"],"image":["https://steemitimages.com/DQmRnj2nubvBvtSTrLu3KXJaN1QxiihQ85gCUwnJBVC7sVu/image.png","https://steemitimages.com/DQmbfyPWaxW4TqYUshqUHxkVFDA4zSCfCFuYWqHX4eDaqit/image.png","https://steemitimages.com/DQmX3p9UfGukSFQDajfqudRLxj5SCjL3XDNwRviBL3DkY6R/image.png"],"links":["https://cdn.steemjs.com/lib/latest/steem.min.js","https://github.com/steemit/steem-js","https://cdn.steemjs.com/lib/latest/steem.min.js,然後按Ctrl"],"app":"steemit/0.1","format":"markdown"}
created2017-09-06 15:19:45
last_update2017-09-06 15:19:45
depth0
children5
last_payout2017-09-13 15:19:45
cashout_time1969-12-31 23:59:59
total_payout_value61.785 HBD
curator_payout_value17.616 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,046
author_reputation41,181,348,504,685
root_title"How to transfer SBD to multiple users quickly on Steemit? // 如何快速地在Steemit上轉移SBD到多個用戶?"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id14,059,764
net_rshares24,076,971,934,001
author_curate_reward""
vote details (137)
@abay ·
谢谢你的教程,让我这个门外汉都能操作,谢谢!
给你个赞!
properties (22)
authorabay
permlinkre-kenchung-how-to-transfer-sbd-to-multiple-users-quickly-on-steemit-steemit-sbd-20170906t161854913z
categorycn
json_metadata{"tags":["cn"],"app":"steemit/0.1"}
created2017-09-06 16:19:00
last_update2017-09-06 16:19:00
depth1
children1
last_payout2017-09-13 16:19:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length28
author_reputation279,835,831,468
root_title"How to transfer SBD to multiple users quickly on Steemit? // 如何快速地在Steemit上轉移SBD到多個用戶?"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id14,065,139
net_rshares0
@kenchung ·
謝謝啦 :)
properties (22)
authorkenchung
permlinkre-abay-re-kenchung-how-to-transfer-sbd-to-multiple-users-quickly-on-steemit-steemit-sbd-20170907t031242259z
categorycn
json_metadata{"tags":["cn"],"app":"steemit/0.1"}
created2017-09-07 03:12:45
last_update2017-09-07 03:12:45
depth2
children0
last_payout2017-09-14 03:12:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length6
author_reputation41,181,348,504,685
root_title"How to transfer SBD to multiple users quickly on Steemit? // 如何快速地在Steemit上轉移SBD到多個用戶?"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id14,108,942
net_rshares0
@justyy ·
$1.10
这能吓坏普通用户,@jubi 前几天也让我弄一个相关的工具,我好好构思一下。
👍  
properties (23)
authorjustyy
permlinkre-kenchung-how-to-transfer-sbd-to-multiple-users-quickly-on-steemit-steemit-sbd-20170906t152755190z
categorycn
json_metadata{"tags":["cn"],"app":"steemit/0.1"}
created2017-09-06 15:27:54
last_update2017-09-06 15:27:54
depth1
children2
last_payout2017-09-13 15:27:54
cashout_time1969-12-31 23:59:59
total_payout_value1.097 HBD
curator_payout_value0.001 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length38
author_reputation280,616,224,641,976
root_title"How to transfer SBD to multiple users quickly on Steemit? // 如何快速地在Steemit上轉移SBD到多個用戶?"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id14,060,511
net_rshares333,582,321,395
author_curate_reward""
vote details (1)
@kenchung ·
哈哈也對的,普通用戶應該都被嚇怕了
要是加上html介面應該會好很多
properties (22)
authorkenchung
permlinkre-justyy-re-kenchung-how-to-transfer-sbd-to-multiple-users-quickly-on-steemit-steemit-sbd-20170906t153925990z
categorycn
json_metadata{"tags":["cn"],"app":"steemit/0.1"}
created2017-09-06 15:39:27
last_update2017-09-06 15:39:27
depth2
children1
last_payout2017-09-13 15:39:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length34
author_reputation41,181,348,504,685
root_title"How to transfer SBD to multiple users quickly on Steemit? // 如何快速地在Steemit上轉移SBD到多個用戶?"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id14,061,557
net_rshares0
@firstamendment ·
It could be much easier if we could actually see the get/post comments to do these task and skip the javascript blob.  I'm presently looking for the http[s] get/post headers (minus the passwords, keys,  and session info) of an upvote.
properties (22)
authorfirstamendment
permlinkre-kenchung-re-justyy-re-kenchung-how-to-transfer-sbd-to-multiple-users-quickly-on-steemit-steemit-sbd-20170906t202423135z
categorycn
json_metadata{"tags":["cn"],"app":"steemit/0.1"}
created2017-09-06 20:24:30
last_update2017-09-06 20:24:30
depth3
children0
last_payout2017-09-13 20:24:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length234
author_reputation2,418,296,227,484
root_title"How to transfer SBD to multiple users quickly on Steemit? // 如何快速地在Steemit上轉移SBD到多個用戶?"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id14,084,881
net_rshares0