Hi there, here a simple python code I wrote recently to help me in creating new accounts from claimed account tokens both in the `steem` blockchain and in the `hive` one. It works with beem library, and you just need to insert the new account name, and the script will check its availability on the blockchain, than a solid password and the account will be created. It is important that you understand that the script uses the account creation ticket you should already have created to claim the new account. ```python #!/usr/bin/python from beem import Steem from beem.account import Account from beem.rc import RC from beem.vote import Vote from beem.instance import set_shared_steem_instance from beem.exceptions import ContentDoesNotExistsException from beem.comment import Comment import time def name(): new_account=input('Enter the new account name:') try: acc=Account(str.lower(new_account),steem_instance=stm) print (acc.name+' is UNAVAILABLE!') name() except Exception as e: print (new_account+' is AVAILABLE!') return new_account def password_(): password = input('Enter the new password for the new account:') password2= input('Re-Enter the new password for the new account:') if password==password2: print(stm.create_claimed_account(new_account_name, creator='[account creator]', password=password)) time.sleep(4) new_account = Account(new_account_name) new_account.print_info() print('CREATED') else: print ('Passwords are different please re-try') password_() stm = Steem("https://anyx.io",keys='')#insert hive private active key set_shared_steem_instance(stm) account=Account("[YOUR ACCOUNT NAME]",steem_instance=stm) new_account_name=name() password_() stm=0 stm = Steem("https://api.steemit.com",keys='')#insert steem private active key set_shared_steem_instance(stm) account=Account("[YOUR ACCOUNT NAME]",steem_instance=stm) new_account_name=name() password_() ``` This is the repo on github: https://github.com/digital-mine/steem-and-hive-account-creator
author | the.journal | ||||||
---|---|---|---|---|---|---|---|
permlink | steem-and-hive-account-creator | ||||||
category | steem | ||||||
json_metadata | {"app":"peakd/2020.05.5","format":"markdown","tags":["steem","hive","programming","code","beem","python","account"],"links":["https://github.com/digital-mine/steem-and-hive-account-creator"]} | ||||||
created | 2020-06-25 11:44:51 | ||||||
last_update | 2020-06-25 11:44:51 | ||||||
depth | 0 | ||||||
children | 2 | ||||||
last_payout | 2020-07-02 11:44:51 | ||||||
cashout_time | 1969-12-31 23:59:59 | ||||||
total_payout_value | 0.000 HBD | ||||||
curator_payout_value | 3.241 HBD | ||||||
pending_payout_value | 0.000 HBD | ||||||
promoted | 0.000 HBD | ||||||
body_length | 2,110 | ||||||
author_reputation | 5,799,246,878,950 | ||||||
root_title | "steem and hive account creator" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||
percent_hbd | 10,000 | ||||||
post_id | 98,168,666 | ||||||
net_rshares | 17,322,149,589,131 | ||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
tykee | 0 | 1,464,311,159 | 30% | ||
elaleman | 0 | 12,111,623,370 | 100% | ||
bala41288 | 0 | 29,252,155,172 | 12% | ||
digital.mine | 0 | 17,223,479,669,615 | 100% | ||
laissez-faire | 0 | 58,295,054 | 100% | ||
sreypov | 0 | 11,523,509,805 | 100% | ||
gitplait | 0 | 44,260,024,956 | 60% |
Amazing way to create an account. Easy and effortless. Thanks for sharing the code. We are looking for people like you in our platform Your post has been curated with @gitplait community account because this is the kind of publications we like to see in our community. Join our Community on [Hive](https://hive.blog/trending/hive-103590) and Chat with us on
author | gitplait-mod1 |
---|---|
permlink | qchi6p |
category | steem |
json_metadata | {"users":["gitplait"],"links":["https://hive.blog/trending/hive-103590"],"app":"hiveblog/0.1"} |
created | 2020-06-25 13:44:51 |
last_update | 2020-06-25 13:44:51 |
depth | 1 |
children | 1 |
last_payout | 2020-07-02 13:44: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 | 359 |
author_reputation | 64,455,719,431 |
root_title | "steem and hive account creator" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 98,170,416 |
net_rshares | 1,345,717,748 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
the.journal | 0 | 1,345,717,748 | 100% |
Thank you
author | the.journal |
---|---|
permlink | re-gitplait-mod1-qchl23 |
category | steem |
json_metadata | {"tags":["steem"],"app":"peakd/2020.05.5"} |
created | 2020-06-25 14:46:51 |
last_update | 2020-06-25 14:46:51 |
depth | 2 |
children | 0 |
last_payout | 2020-07-02 14:46: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 | 9 |
author_reputation | 5,799,246,878,950 |
root_title | "steem and hive account creator" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 98,171,336 |
net_rshares | 0 |