create account

steem and hive account creator by the.journal

View this thread on: hive.blogpeakd.comecency.com
· @the.journal ·
$3.24
steem and hive account creator
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
👍  , , , , , ,
properties (23)
authorthe.journal
permlinksteem-and-hive-account-creator
categorysteem
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"]}
created2020-06-25 11:44:51
last_update2020-06-25 11:44:51
depth0
children2
last_payout2020-07-02 11:44:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value3.241 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,110
author_reputation5,799,246,878,950
root_title"steem and hive account creator"
beneficiaries
0.
accountdigital.mine
weight10,000
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id98,168,666
net_rshares17,322,149,589,131
author_curate_reward""
vote details (7)
@gitplait-mod1 ·
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
👍  
properties (23)
authorgitplait-mod1
permlinkqchi6p
categorysteem
json_metadata{"users":["gitplait"],"links":["https://hive.blog/trending/hive-103590"],"app":"hiveblog/0.1"}
created2020-06-25 13:44:51
last_update2020-06-25 13:44:51
depth1
children1
last_payout2020-07-02 13:44:51
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_length359
author_reputation64,455,719,431
root_title"steem and hive account creator"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id98,170,416
net_rshares1,345,717,748
author_curate_reward""
vote details (1)
@the.journal ·
Thank you
properties (22)
authorthe.journal
permlinkre-gitplait-mod1-qchl23
categorysteem
json_metadata{"tags":["steem"],"app":"peakd/2020.05.5"}
created2020-06-25 14:46:51
last_update2020-06-25 14:46:51
depth2
children0
last_payout2020-07-02 14:46:51
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_length9
author_reputation5,799,246,878,950
root_title"steem and hive account creator"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id98,171,336
net_rshares0