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></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></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></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>
author | kenchung |
---|---|
permlink | how-to-transfer-sbd-to-multiple-users-quickly-on-steemit-steemit-sbd |
category | cn |
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"} |
created | 2017-09-06 15:19:45 |
last_update | 2017-09-06 15:19:45 |
depth | 0 |
children | 5 |
last_payout | 2017-09-13 15:19:45 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 61.785 HBD |
curator_payout_value | 17.616 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 3,046 |
author_reputation | 41,181,348,504,685 |
root_title | "How to transfer SBD to multiple users quickly on Steemit? // 如何快速地在Steemit上轉移SBD到多個用戶?" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 14,059,764 |
net_rshares | 24,076,971,934,001 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
anu | 0 | 6,389,443,599 | 0.5% | ||
pharesim | 0 | 103,128,170,701 | 0.02% | ||
enki | 0 | 12,468,344,846 | 0.3% | ||
abit | 0 | 8,914,972,313,663 | 15% | ||
boy | 0 | 198,600,214 | 100% | ||
bue-witness | 0 | 242,159,422 | 100% | ||
bue | 0 | 13,605,720,790 | 100% | ||
someone | 0 | 59,617,796,479 | 100% | ||
mini | 0 | 106,148,518 | 100% | ||
healthcare | 0 | 79,116,643 | 100% | ||
daniel.pan | 0 | 62,582,192 | 100% | ||
cheftony | 0 | 1,167,007,075 | 0.03% | ||
arcange | 0 | 27,134,766,234 | 10% | ||
celsius100 | 0 | 646,171,022,429 | 100% | ||
raphaelle | 0 | 4,572,238,590 | 10% | ||
ace108 | 0 | 151,749,347,697 | 11% | ||
tensaix2j | 0 | 2,269,122,743 | 100% | ||
craigslist | 0 | 53,534,085 | 100% | ||
magicmonk | 0 | 33,968,789,030 | 100% | ||
cryptoninja | 0 | 254,200,139 | 3% | ||
freyman | 0 | 2,287,410,219 | 67% | ||
helene | 0 | 47,536,639,929 | 20% | ||
anotherjoe | 0 | 11,522,633,269 | 1% | ||
tumutanzi | 0 | 1,475,525,022,731 | 8% | ||
shieha | 0 | 63,803,230,902 | 33% | ||
justyy | 0 | 100,074,696,418 | 30% | ||
openwert | 0 | 148,125,706 | 100% | ||
olferqas | 0 | 148,063,868 | 100% | ||
yuxi | 0 | 4,834,212,101 | 100% | ||
dixonloveart | 0 | 1,759,606,048 | 3% | ||
happyukgo | 0 | 452,091,380 | 30% | ||
lydiachan | 0 | 13,631,705,286 | 55% | ||
tradeqwik | 0 | 85,212,411,872 | 5% | ||
gazetagaleguia | 0 | 1,980,082,178 | 67% | ||
buzzbeergeek | 0 | 828,548,725 | 0.3% | ||
ygern | 0 | 8,313,061,629 | 37% | ||
huko | 0 | 507,503,021 | 100% | ||
cqf | 0 | 24,289,520,394 | 100% | ||
ananasik | 0 | 511,064,681 | 100% | ||
furrror | 0 | 508,899,323 | 100% | ||
donnaya | 0 | 510,649,975 | 100% | ||
animestar | 0 | 503,294,351 | 100% | ||
htliao | 0 | 3,858,649,283,652 | 27% | ||
aarkay | 0 | 136,980,426 | 100% | ||
susanlo | 0 | 35,838,148,466 | 80% | ||
guyverckw | 0 | 43,566,999,503 | 60% | ||
mkt | 0 | 21,922,467,490 | 100% | ||
nanosesame | 0 | 10,099,780,670 | 100% | ||
greemmy | 0 | 599,294,164 | 100% | ||
cpyjeffrey | 0 | 5,641,099,834 | 100% | ||
john.liao | 0 | 665,617,296 | 100% | ||
kenchung | 0 | 33,393,823,207 | 100% | ||
pakyeechan | 0 | 34,252,307,905 | 80% | ||
jeffreytong | 0 | 7,826,171,985 | 100% | ||
johnliao | 0 | 3,885,218,732 | 100% | ||
helloworld123 | 0 | 678,700,301 | 100% | ||
nuagnorab | 0 | 12,416,185,401 | 100% | ||
kitcat | 0 | 51,008,259,633 | 50% | ||
victorier | 0 | 38,716,929,199 | 100% | ||
linuslee0216 | 0 | 3,837,512,816,320 | 20% | ||
chl | 0 | 15,851,871,984 | 100% | ||
wilkinshui | 0 | 51,449,965,054 | 100% | ||
carobetc | 0 | 1,071,295,096 | 100% | ||
thomaskikansha | 0 | 34,397,948,490 | 100% | ||
chingyi | 0 | 4,327,263,445 | 100% | ||
mrjt | 0 | 1,526,446,143 | 100% | ||
aaronli | 0 | 14,357,327,963 | 100% | ||
marylaw | 0 | 18,392,300,672 | 70% | ||
firstamendment | 0 | 1,937,142,829 | 100% | ||
jenthedreamer | 0 | 2,508,132,075 | 100% | ||
tobykai | 0 | 6,784,701,186 | 100% | ||
pyc1512 | 0 | 560,665,600 | 100% | ||
krischy | 0 | 39,776,716,030 | 100% | ||
wdix4uohadr7 | 0 | 577,689,566 | 100% | ||
claratze | 0 | 562,271,827 | 100% | ||
pps | 0 | 696,334,503 | 100% | ||
biuiam | 0 | 12,874,347,076 | 100% | ||
kristytyxd | 0 | 967,207,351 | 100% | ||
carinewhy | 0 | 52,798,889,549 | 100% | ||
doughtaker | 0 | 6,806,803,918 | 100% | ||
mcw | 0 | 4,870,792,146 | 25% | ||
sanzo | 0 | 482,782,715 | 100% | ||
yuwineryyuvia | 0 | 2,027,166,565 | 100% | ||
boooster | 0 | 555,911,188 | 100% | ||
votebooster | 0 | 594,368,105 | 100% | ||
shirlam | 0 | 3,554,682,762 | 100% | ||
everrich | 0 | 526,802,303 | 100% | ||
steembusiness | 0 | 1,503,961,731 | 3% | ||
kawaiiiiiiii030 | 0 | 1,873,793,777 | 100% | ||
hannahwu | 0 | 7,998,012,483 | 34% | ||
nicolemoker | 0 | 3,827,876,931,518 | 20% | ||
mawardi | 0 | 865,328,053 | 100% | ||
korpo | 0 | 1,101,832,124 | 50% | ||
challk | 0 | 871,419,494 | 100% | ||
idx | 0 | 2,850,588,178 | 15% | ||
kangnajiang | 0 | 381,158,426 | 30% | ||
palinnna | 0 | 458,444,800 | 100% | ||
fakire1sadaka | 0 | 136,899,712 | 50% | ||
stonichevs | 0 | 1,104,473,345 | 100% | ||
sevenstonesgfx | 0 | 1,131,463,595 | 100% | ||
geass | 0 | 166,985,201 | 30% | ||
rstiy | 0 | 847,283,620 | 100% | ||
andstolia | 0 | 586,303,876 | 100% | ||
removskiya | 0 | 592,193,492 | 100% | ||
omanchuki | 0 | 586,303,969 | 100% | ||
amuel | 0 | 439,859,200 | 100% | ||
tvb | 0 | 4,428,320,696 | 100% | ||
b0ssburyanov | 0 | 576,997,464 | 100% | ||
dushgoscha | 0 | 581,990,728 | 100% | ||
yinlovesu0914 | 0 | 3,634,204,583 | 100% | ||
danyamilo | 0 | 595,333,150 | 100% | ||
evgenij.dolgov | 0 | 583,434,327 | 100% | ||
dusuve | 0 | 589,445,159 | 100% | ||
mrsquiggle | 0 | 14,657,155,620 | 10% | ||
yhhhhhhhhh | 0 | 2,916,280,059 | 100% | ||
ryal | 0 | 594,203,303 | 100% | ||
deskart | 0 | 378,273,901 | 100% | ||
linabeloo | 0 | 576,844,027 | 100% | ||
pashkef | 0 | 1,099,660,091 | 100% | ||
alinakalach | 0 | 1,113,978,061 | 100% | ||
abay | 0 | 69,164,274,012 | 100% | ||
ryanfan11 | 0 | 2,364,790,829 | 100% | ||
derny74 | 0 | 1,087,556,287 | 100% | ||
cysu13 | 0 | 1,096,807,428 | 100% | ||
gorodovaj | 0 | 1,115,443,647 | 100% | ||
bayeco06 | 0 | 9,166,972,746 | 10% | ||
natalyabbuz | 0 | 1,096,797,117 | 100% | ||
superbing | 0 | 1,721,273,856 | 30% | ||
dailyfortune | 0 | 894,660,126 | 30% | ||
xoxois | 0 | 278,550,696 | 100% | ||
dailystats | 0 | 801,434,787 | 30% | ||
sonyamed | 0 | 1,160,623,677 | 100% | ||
soldatenko | 0 | 1,160,623,037 | 100% | ||
benmirchi | 0 | 1,160,622,979 | 100% | ||
brendashockley | 0 | 127,667,797 | 25% | ||
dennisphillips | 0 | 127,667,797 | 25% | ||
johnnyzhou | 0 | 0 | 100% |
谢谢你的教程,让我这个门外汉都能操作,谢谢! 给你个赞!
author | abay |
---|---|
permlink | re-kenchung-how-to-transfer-sbd-to-multiple-users-quickly-on-steemit-steemit-sbd-20170906t161854913z |
category | cn |
json_metadata | {"tags":["cn"],"app":"steemit/0.1"} |
created | 2017-09-06 16:19:00 |
last_update | 2017-09-06 16:19:00 |
depth | 1 |
children | 1 |
last_payout | 2017-09-13 16:19:00 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 28 |
author_reputation | 279,835,831,468 |
root_title | "How to transfer SBD to multiple users quickly on Steemit? // 如何快速地在Steemit上轉移SBD到多個用戶?" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 14,065,139 |
net_rshares | 0 |
謝謝啦 :)
author | kenchung |
---|---|
permlink | re-abay-re-kenchung-how-to-transfer-sbd-to-multiple-users-quickly-on-steemit-steemit-sbd-20170907t031242259z |
category | cn |
json_metadata | {"tags":["cn"],"app":"steemit/0.1"} |
created | 2017-09-07 03:12:45 |
last_update | 2017-09-07 03:12:45 |
depth | 2 |
children | 0 |
last_payout | 2017-09-14 03:12:45 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 6 |
author_reputation | 41,181,348,504,685 |
root_title | "How to transfer SBD to multiple users quickly on Steemit? // 如何快速地在Steemit上轉移SBD到多個用戶?" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 14,108,942 |
net_rshares | 0 |
这能吓坏普通用户,@jubi 前几天也让我弄一个相关的工具,我好好构思一下。
author | justyy |
---|---|
permlink | re-kenchung-how-to-transfer-sbd-to-multiple-users-quickly-on-steemit-steemit-sbd-20170906t152755190z |
category | cn |
json_metadata | {"tags":["cn"],"app":"steemit/0.1"} |
created | 2017-09-06 15:27:54 |
last_update | 2017-09-06 15:27:54 |
depth | 1 |
children | 2 |
last_payout | 2017-09-13 15:27:54 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 1.097 HBD |
curator_payout_value | 0.001 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 38 |
author_reputation | 280,616,224,641,976 |
root_title | "How to transfer SBD to multiple users quickly on Steemit? // 如何快速地在Steemit上轉移SBD到多個用戶?" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 14,060,511 |
net_rshares | 333,582,321,395 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
justyy | 0 | 333,582,321,395 | 100% |
哈哈也對的,普通用戶應該都被嚇怕了 要是加上html介面應該會好很多
author | kenchung |
---|---|
permlink | re-justyy-re-kenchung-how-to-transfer-sbd-to-multiple-users-quickly-on-steemit-steemit-sbd-20170906t153925990z |
category | cn |
json_metadata | {"tags":["cn"],"app":"steemit/0.1"} |
created | 2017-09-06 15:39:27 |
last_update | 2017-09-06 15:39:27 |
depth | 2 |
children | 1 |
last_payout | 2017-09-13 15:39:27 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 34 |
author_reputation | 41,181,348,504,685 |
root_title | "How to transfer SBD to multiple users quickly on Steemit? // 如何快速地在Steemit上轉移SBD到多個用戶?" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 14,061,557 |
net_rshares | 0 |
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.
author | firstamendment |
---|---|
permlink | re-kenchung-re-justyy-re-kenchung-how-to-transfer-sbd-to-multiple-users-quickly-on-steemit-steemit-sbd-20170906t202423135z |
category | cn |
json_metadata | {"tags":["cn"],"app":"steemit/0.1"} |
created | 2017-09-06 20:24:30 |
last_update | 2017-09-06 20:24:30 |
depth | 3 |
children | 0 |
last_payout | 2017-09-13 20:24:30 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 234 |
author_reputation | 2,418,296,227,484 |
root_title | "How to transfer SBD to multiple users quickly on Steemit? // 如何快速地在Steemit上轉移SBD到多個用戶?" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 14,084,881 |
net_rshares | 0 |