<h1>beempy 利用RC领取的新号资源创建steem 新号</h1> 最近虽然在做[steem-python](https://github.com/steemit/steem-python) 实战教程,但不支持利用RC领取的新号资源创建steem 新号,需要使用beempy. 代码如下(create_account_with_RC.py): -------------------------------------- ```python #!/usr/bin/python # -*- coding: UTF-8 -*- # python create_account_with_RC.py creator account from contextlib import suppress import sys import json # from beem import Steem from beem.account import Account from beem.instance import shared_steem_instance from beemgraphenebase.account import BrainKey, PasswordKey def run(): # need creator and name of the new account try: creator = sys.argv[1] account = sys.argv[2] except Exception as e: sys.exit() print('creator:', creator) print('account:', account) # gen a set of keys bk = BrainKey() brainkey = bk.get_brainkey() print('brain key:', str(brainkey)) prikey = str(bk.get_private()) print('private key:', str(prikey)) pubkey = format(bk.get_public(), "STM") print('public key:', str(pubkey)) # unlock local wallet stm = shared_steem_instance() stm.wallet.unlock(password) try: # Account of creator creatorA = Account(creator, steem_instance=stm) # test the new account is exist on steem blockchain? accountA = Account(account, steem_instance=stm) except Exception as e: print('account can be created:', account) # create new account tx = stm.create_claimed_account(account, creator=creatorA, password=pubkey) print('create_claimed_account:', json.dumps(tx, indent=4)) # get keys posting_key = PasswordKey(account, pubkey, role="posting", prefix=stm.prefix) active_key = PasswordKey(account, pubkey, role="active", prefix=stm.prefix) memo_key = PasswordKey(account, pubkey, role="memo", prefix=stm.prefix) owner_key = PasswordKey(account, pubkey, role="owner", prefix=stm.prefix) # get publick keys # active_pubkey = active_key.get_public_key() # owner_pubkey = owner_key.get_public_key() # posting_pubkey = posting_key.get_public_key() memo_pubkey = memo_key.get_public_key() # get private keys active_privkey = active_key.get_private_key() posting_privkey = posting_key.get_private_key() owner_privkey = owner_key.get_private_key() memo_privkey = memo_key.get_private_key() print('posting_privkey:', str(posting_privkey)) print('active_privkey:', str(active_privkey)) print('owner_privkey:', str(owner_privkey)) print('memo_privkey:', str(memo_privkey)) if __name__ == '__main__': with suppress(KeyboardInterrupt): run() ``` 执行程序:`python create_account_with_RC.py dappcoder newcoder` 执行结果符合预期: 
author | dappcoder | ||||||
---|---|---|---|---|---|---|---|
permlink | beempy-rc-steem | ||||||
category | hive-180932 | ||||||
json_metadata | {"tags":["cn","chinese","hive-143316","cn-reader","cn-curation","sct","sct-cn","sct-freeboard","whalepower","dblog","actnearn","neoxian","palnet","upfundme","zzan","jjm","lifestyle","mediaofficials","lassecash","liv","steemleo","busy","esteem","esteem-cn","marlians"],"links":["https://github.com/steemit/steem-python"],"app":"busy/2.5.4","format":"markdown","community":"esteemapp","image":["https://cdn.steemitimages.com/DQmfXKRqpmd3WWxduwMjh7YZY4U5V782TYYUQYhyHsM2i2P/%E5%B1%8F%E5%B9%95%E5%BF%AB%E7%85%A7%202020-02-14%20%E4%B8%8A%E5%8D%8812.50.30.png"]} | ||||||
created | 2020-02-11 21:04:39 | ||||||
last_update | 2020-02-13 16:55:21 | ||||||
depth | 0 | ||||||
children | 3 | ||||||
last_payout | 2020-02-18 21:04:39 | ||||||
cashout_time | 1969-12-31 23:59:59 | ||||||
total_payout_value | 1.006 HBD | ||||||
curator_payout_value | 0.845 HBD | ||||||
pending_payout_value | 0.000 HBD | ||||||
promoted | 0.000 HBD | ||||||
body_length | 2,919 | ||||||
author_reputation | 9,480,331,507,174 | ||||||
root_title | "beempy 利用RC领取的新号资源创建steem 新号" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||
percent_hbd | 10,000 | ||||||
post_id | 95,345,785 | ||||||
net_rshares | 7,565,442,626,952 | ||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
team | 0 | 85,020,580,912 | 10% | ||
justyy | 0 | 540,319,463,043 | 20% | ||
happyukgo | 0 | 401,588,836 | 20% | ||
busy.org | 0 | 86,753,536 | 0.53% | ||
steemitboard | 0 | 17,185,612,294 | 1% | ||
techken | 0 | 194,218,017 | 1% | ||
exe8422 | 0 | 434,046,154 | 5% | ||
robinlee | 0 | 55,459,409 | 20% | ||
pixelfan | 0 | 7,236,592,666 | 1.25% | ||
rainyapril | 0 | 55,780,266 | 20% | ||
al2ping | 0 | 0 | 20% | ||
kikima | 0 | 106,325,237 | 20% | ||
geass | 0 | 83,403,712 | 20% | ||
pixresteemer | 0 | 978,388,620 | 2.15% | ||
superbing | 0 | 8,613,689,122 | 20% | ||
dailyfortune | 0 | 2,617,422,948 | 20% | ||
xiaoshancun | 0 | 18,599,927,547 | 100% | ||
dailystats | 0 | 17,291,878,112 | 20% | ||
jianan | 0 | 7,408,681,580 | 20% | ||
anxin | 0 | 490,573,836 | 20% | ||
nean | 0 | 55,313,065 | 20% | ||
foodielifestyle | 0 | 43,369,986 | 20% | ||
woolfe19861008 | 0 | 416,866,036 | 20% | ||
vincenthan | 0 | 63,265,350 | 20% | ||
dongfengman | 0 | 2,230,504,974 | 20% | ||
serenazz | 0 | 195,834,503 | 20% | ||
yedda | 0 | 55,602,083 | 20% | ||
zasilla | 0 | 56,171,703 | 20% | ||
fishaa | 0 | 921,629,171 | 20% | ||
aaronstar | 0 | 0 | 20% | ||
ethanlee | 0 | 719,849,343 | 20% | ||
twinsnicole | 0 | 56,722,342 | 20% | ||
deepthinking | 0 | 57,435,316 | 20% | ||
gogoabc | 0 | 919,599,835 | 20% | ||
fanso | 0 | 248,519,466 | 20% | ||
lilypang22 | 0 | 227,164,968 | 20% | ||
fishcc | 0 | 917,307,536 | 20% | ||
fishdd | 0 | 743,861,623 | 20% | ||
yuting | 0 | 793,020,258 | 20% | ||
lilyan | 0 | 800,038,758 | 20% | ||
zens | 0 | 57,156,831 | 20% | ||
andrewma | 0 | 53,330,150 | 0.5% | ||
steemitvip | 0 | 55,509,901 | 20% | ||
regals | 0 | 55,056,771 | 20% | ||
joelone | 0 | 57,263,011 | 20% | ||
sweet-jenny8 | 0 | 4,292,203,750 | 20% | ||
atinna | 0 | 916,266,726 | 20% | ||
moneybaby | 0 | 801,917,948 | 2.5% | ||
ffbank | 0 | 937,265,107 | 20% | ||
weicomenew | 0 | 1,017,707,769 | 20% | ||
laiyuehta | 0 | 864,781,015 | 20% | ||
turtlegraphics | 0 | 192,277,587 | 20% | ||
anonyvoter | 0 | 465,346,926 | 2% | ||
laissez-faire | 0 | 67,538,191 | 100% | ||
witnesstools | 0 | 84,824,251 | 20% | ||
ilovecoding | 0 | 41,610,669 | 20% | ||
steemfuckeos | 0 | 0 | 20% | ||
hero777 | 0 | 336,929,959 | 1% | ||
haxxdump | 0 | 68,336,895 | 3% | ||
aaronli.sct | 0 | 704,075,455 | 10% | ||
steem-drivers | 0 | 4,130,513,826 | 34% | ||
cn-zzang | 0 | 1,366,311,676 | 5% | ||
cn-leo | 0 | 113,582,930 | 2% | ||
cn-pal | 0 | 572,741,205 | 5% | ||
cn-mot | 0 | 204,303,328 | 34% | ||
justsoso | 0 | 0 | 20% | ||
cn-marlians | 0 | 1,633,995,064 | 5% | ||
cn-neoxag | 0 | 97,279,852 | 5% | ||
cn-actnearn | 0 | 203,972,527 | 34% | ||
cn-lifestyle | 0 | 0 | 5% | ||
longhash | 0 | 1,222,753,745 | 20% | ||
cnlifes | 0 | 778,975,317 | 20% | ||
cnfish | 0 | 916,266,638 | 20% | ||
llfestyle | 0 | 847,976,737 | 20% | ||
dappcoder | 0 | 229,241,396,883 | 100% | ||
tex.fund | 0 | 566,812,778 | 100% | ||
hnt | 0 | 647,177,334 | 100% | ||
acu.fund | 0 | 934,339,192 | 100% | ||
dblogbasicincome | 0 | 76,910,210 | 7% | ||
mana.bank | 0 | 3,852,801,165 | 100% | ||
acu.fund.witness | 0 | 662,074,057 | 100% | ||
spbank | 0 | 554,301,504 | 100% | ||
yaowl | 0 | 554,598,391 | 100% | ||
alanyao | 0 | 576,530,553 | 100% | ||
missingwolf | 0 | 586,132,651 | 100% | ||
xinhuaren | 0 | 545,525,685 | 100% | ||
acufund | 0 | 543,956,535 | 100% | ||
downvoter | 0 | 214,379,105,329 | 100% | ||
manabot1 | 0 | 538,240,713 | 100% | ||
manabot | 0 | 546,454,738 | 100% | ||
huaren.news | 0 | 5,738,696,822,652 | 100% | ||
cameron.barnes | 0 | 525,516,912 | 100% | ||
manabot2 | 0 | 537,129,205 | 100% | ||
sherryzhou | 0 | 557,046,778 | 98% | ||
goodvoter | 0 | 533,917,150 | 100% | ||
anonymity.inlet | 0 | 683,694,670 | 100% | ||
manabot3 | 0 | 540,775,146 | 100% | ||
manabot4 | 0 | 0 | 100% | ||
manabank | 0 | 520,615,292 | 100% | ||
texfund | 0 | 533,029,778 | 100% | ||
goodreader | 0 | 526,373,569 | 100% | ||
goodposter | 0 | 533,466,735 | 100% | ||
goodcurator | 0 | 2,529,849,140 | 100% | ||
goodauthor | 0 | 565,528,523 | 100% | ||
shanyi | 0 | 538,195,831 | 100% | ||
yuwenzhaobin | 0 | 534,343,247 | 100% | ||
huangyiru | 0 | 536,477,792 | 100% | ||
qiuruling | 0 | 540,072,716 | 100% | ||
tongpingxia | 0 | 628,897,080 | 100% | ||
fushuo | 0 | 530,027,755 | 100% | ||
downscaner | 0 | 595,819,500 | 100% | ||
wang.han | 0 | 542,120,550 | 100% | ||
anonym.inlet | 0 | 552,469,694 | 100% | ||
rongyongyu | 0 | 522,315,524 | 100% | ||
heyaochen | 0 | 529,049,373 | 100% | ||
miyijuan | 0 | 538,899,560 | 100% | ||
xiangsong | 0 | 524,221,713 | 100% | ||
haiyaochang | 0 | 523,459,455 | 100% | ||
zhangyanxie | 0 | 676,849,742 | 100% | ||
jiduanren | 0 | 532,416,404 | 100% | ||
hanyiya | 0 | 522,315,324 | 100% | ||
guxiefeng | 0 | 522,311,745 | 100% | ||
hejuangang | 0 | 522,311,335 | 100% | ||
mengyin | 0 | 522,314,630 | 100% | ||
liaohepeng | 0 | 526,085,502 | 100% | ||
gaituan | 0 | 522,310,459 | 100% | ||
quxibei | 0 | 522,310,574 | 100% | ||
dblogvoter | 0 | 71,338,684 | 1.95% | ||
neoxvoter | 0 | 73,389,981 | 1.5% | ||
huarennews | 0 | 582,947,295 | 100% | ||
qukehan | 0 | 16,689,565 | 100% | ||
lvziyun | 0 | 229,187,349,143 | 100% | ||
steem-holder | 0 | 10,327,593 | 2.25% | ||
telangpu | 0 | 0 | 100% | ||
chinesebi | 0 | 201,056,477,337 | 100% | ||
erlcet | 0 | 916,266,244 | 20% | ||
staryao | 0 | 170,219,087,044 | 100% | ||
steeemmonsters | 0 | 916,266,242 | 20% | ||
maiydue | 0 | 916,266,274 | 20% | ||
wongshiylng | 0 | 916,266,829 | 20% | ||
deepcrypti8 | 0 | 916,269,653 | 20% | ||
myiord1992 | 0 | 916,266,283 | 20% | ||
wilhb82 | 0 | 916,266,306 | 20% | ||
morningshlne | 0 | 916,266,392 | 20% | ||
leodec | 0 | 916,266,288 | 20% | ||
splinterislands | 0 | 761,183,535 | 20% | ||
keivinzhang | 0 | 761,183,571 | 20% |
# According to the Bible, *How do you influence faith to Christian believers? (Part 3 of 3)* ***(Sorry for sending this comment. We are not looking for our self profit, our intentions is to preach the words of God in any means possible.)*** https://youtu.be/QUE64WdiKMg https://i.postimg.cc/SxmKZFY2/image.jpg Comment what you understand of our Youtube Video to receive our full votes. We have 30,000 #SteemPower. It's our little way to **Thank you, our beloved friend.** Check our [Discord Chat](https://discord.gg/vzHFNd6) Join our Official Community: https://beta.steemit.com/trending/hive-182074
author | hero777 |
---|---|
permlink | nk84mjj9zcg |
category | hive-180932 |
json_metadata | "" |
created | 2020-02-11 21:12:54 |
last_update | 2020-02-11 21:12:54 |
depth | 1 |
children | 0 |
last_payout | 2020-02-18 21:12:54 |
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 | 604 |
author_reputation | -12,129,381,532,907 |
root_title | "beempy 利用RC领取的新号资源创建steem 新号" |
beneficiaries | [] |
max_accepted_payout | 10,000.000 HBD |
percent_hbd | 100 |
post_id | 95,345,966 |
net_rshares | -23,393,096,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
mack-bot | 0 | -23,727,324,562 | -0.25% | ||
hero777 | 0 | 334,228,562 | 1% |
Congratulations @dappcoder! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) : <table><tr><td><img src="https://steemitimages.com/60x70/http://steemitboard.com/@dappcoder/votes.png?202002120508"></td><td>You distributed more than 600 upvotes. Your next target is to reach 700 upvotes.</td></tr> </table> <sub>_You can view [your badges on your Steem Board](https://steemitboard.com/@dappcoder) and compare to others on the [Steem Ranking](https://steemitboard.com/ranking/index.php?name=dappcoder)_</sub> <sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub> To support your work, I also upvoted your post! ###### [Vote for @Steemitboard as a witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1) to get one more award and increased upvotes!
author | steemitboard |
---|---|
permlink | steemitboard-notify-dappcoder-20200212t055532000z |
category | hive-180932 |
json_metadata | {"image":["https://steemitboard.com/img/notify.png"]} |
created | 2020-02-12 05:55:33 |
last_update | 2020-02-12 05:55:33 |
depth | 1 |
children | 0 |
last_payout | 2020-02-19 05:55:33 |
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 | 899 |
author_reputation | 38,975,615,169,260 |
root_title | "beempy 利用RC领取的新号资源创建steem 新号" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 95,356,792 |
net_rshares | 0 |
不错啊。免得在第三方网站上创建,还需要提供active蜜月,不太安全
author | tongpingxia | ||||||
---|---|---|---|---|---|---|---|
permlink | re-dappcoder-2020213t1764529z | ||||||
category | hive-180932 | ||||||
json_metadata | {"tags":["cn","chinese","hive-143316","cn-reader","cn-curation","sct","sct-cn","sct-freeboard","whalepower","dblog","actnearn","neoxian","palnet","upfundme","zzan","jjm","lifestyle","mediaofficials","lassecash","liv","steemleo","busy","esteem","esteem-cn","marlians"],"app":"esteem/2.2.4-mobile","format":"markdown+html","community":"hive-125125"} | ||||||
created | 2020-02-13 09:06:51 | ||||||
last_update | 2020-02-13 09:06:51 | ||||||
depth | 1 | ||||||
children | 0 | ||||||
last_payout | 2020-02-20 09:06:51 | ||||||
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 | 1,001,811,627,665 | ||||||
root_title | "beempy 利用RC领取的新号资源创建steem 新号" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||
percent_hbd | 10,000 | ||||||
post_id | 95,403,302 | ||||||
net_rshares | 0 |