<img src="https://steemit-production-imageproxy-thumbnail.s3.amazonaws.com/U5drxhdemuq4r4ezSCFC6xhAknvQspB_1680x8400"> #### Creating accounts *** Do you know that you can actually create accounts with 1 STEEM fee and 10 SP delegation? Otherwise, it wouldn't make any sense since, in a decentralized blockchain, we would be bounded to Steemit. Creating an account is actually an "account\_create\_with\_delegation" operation broadcasted to the network. Creating accounts has a cost because every account needs a little SP to interact with the blockchain. (SP gives voting power and bandwidth allocation to steem accounts) Steemit [does that](https://steemd.com/@steem) for you if you are willing to wait for their approval and give up your privacy. (Phone number) But if you want to create an account for your friends, family, you can actually do it yourself without waiting for Steemit's approval. Also, if you create an account, automatically, you become the recovery account of the created account, which may be better in certain situations. #### Account creator script *** Out script's main flow should be like this: - Get an input with new_account_username, new_account_master_key and creator account. - Broadcast an "account\_create\_with\_delegation " operation to the network - Get new account's posting, active, owner, memo keys. (both private and public.) *Basic example to create an account:* ``` from steem import Steem from steem.account import Account s = Steem( nodes=["https://api.steemit.com"], keys=["active_key_of_creator_account",] ) steemd_instance.create_account( new_account, delegation_fee_steem="1 STEEM", password=new_account_master_key, creator=creator_account, ) ``` <img src="https://s17.postimg.org/wsw3u76lb/Screen_Shot_2018-03-02_at_10.07.09.png"> <center><sup>Steemd representation of account\_create\_with\_delegation operation.</sup></center> This script will create the account successfully. But you don't know to get the private keys, yet. (posting, active, owner, memo.) These keys can be obtained with the master key. #### The Ultimate Account Creator Script *** ``` from steem import Steem from steembase.account import PasswordKey def create_account(steemd_instance, new_account, new_account_master_key, creator): steemd_instance.create_account( new_account, delegation_fee_steem="1 STEEM", password=new_account_master_key, creator=creator, ) keys = {} for key_type in ['posting','active','owner','memo']: private_key = PasswordKey( new_account, new_account_master_key, key_type).get_private_key() keys[key_type] = { "public": str(private_key.pubkey), "private": str(private_key), } return keys if __name__ == '__main__': s = Steem(nodes=["https://api.steemit.com"], keys=["creator_acc_active_wif"]) keys = create_account( s, "new_account_username", "new_account_master_key", "creator_account_username" ) for key, subkeys in keys.items(): print("Key Type: %s" % key) print("Public: %s\nPrivate: %s\n--" % ( subkeys["public"], subkeys["private"])) ``` <center><sup>See the script nicely formatted at [Github gists](https://gist.github.com/emre/1b1d819f8a369fc3b48893432813f207).</sup></center> It should give an output like this when you execute it. <img src="https://s17.postimg.org/5iasm6vxr/Screen_Shot_2018-03-02_at_10.13.31.png"> #### Notes *** - It will cost you 1 STEEM and 10 SP delegation. You can take back the delegation later on and power down the STEEM. - Make sure you have picked up a complicated and secure password for the master key. These are similar to brain wallets so it might be ugly if you pick 123456. - You need steem-python installed in your local environment to execute this script. Have fun.
author | emrebeyler |
---|---|
permlink | steem-python-tips-2-create-steem-accounts-yourself |
category | steem-python |
json_metadata | {"community":"busy","app":"busy/2.4.0","format":"markdown","users":["steem"],"links":["https://steemd.com/@steem","https://gist.github.com/emre/1b1d819f8a369fc3b48893432813f207"],"image":["https://steemitimages.com/0x0/https://steemit-production-imageproxy-thumbnail.s3.amazonaws.com/U5drxhdemuq4r4ezSCFC6xhAknvQspB_1680x8400","https://steemitimages.com/0x0/https://s17.postimg.org/wsw3u76lb/Screen_Shot_2018-03-02_at_10.07.09.png","https://steemitimages.com/0x0/https://s17.postimg.org/5iasm6vxr/Screen_Shot_2018-03-02_at_10.13.31.png"],"tags":["steem-python","python","steem","steemstem","sndbox"]} |
created | 2018-03-02 07:19:51 |
last_update | 2018-03-02 11:04:09 |
depth | 0 |
children | 3 |
last_payout | 2018-03-09 07:19:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 41.615 HBD |
curator_payout_value | 9.132 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 3,919 |
author_reputation | 448,535,049,068,622 |
root_title | "steem-python tips #2 - Create Steem accounts yourself" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 41,572,395 |
net_rshares | 10,327,915,986,580 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
team | 0 | 42,876,443,168 | 5% | ||
leprechaun | 0 | 0 | 100% | ||
olegn | 0 | 2,449,067,827 | 100% | ||
kiraxoy | 0 | 8,291,952,907 | 20% | ||
shaka | 0 | 518,635,821,902 | 16% | ||
felixxx | 0 | 435,557,392,084 | 100% | ||
lgm-1 | 0 | 2,040,713,977 | 25% | ||
mindfreak | 0 | 24,432,937,930 | 12.5% | ||
smasher | 0 | 833,946,660 | 16% | ||
sambillingham | 0 | 39,288,939,803 | 25% | ||
hansikhouse | 0 | 105,302,691,694 | 12.5% | ||
voronoi | 0 | 189,964,880,244 | 25% | ||
teamhumble | 0 | 3,110,174,245 | 6% | ||
alfarisi | 0 | 156,437,258 | 25% | ||
elizacheng | 0 | 794,485,910 | 5% | ||
damla | 0 | 4,757,454,480 | 20% | ||
erb | 0 | 9,261,378,469 | 25% | ||
oendertuerk | 0 | 36,248,403,305 | 20% | ||
dbzfan4awhile | 0 | 3,420,801,920 | 3.75% | ||
luvabi | 0 | 4,653,997,366 | 12.5% | ||
world-travel-pro | 0 | 1,052,615,461 | 1.25% | ||
coquiunlimited | 0 | 305,797,335 | 2.5% | ||
lastozgur | 0 | 2,838,854,578 | 100% | ||
sndbox | 0 | 4,030,456,726,587 | 25% | ||
viraldrome | 0 | 2,002,861,439 | 6% | ||
leotrap | 0 | 9,662,733,105 | 25% | ||
nettybot | 0 | 9,749,762,980 | 20% | ||
matrixonsteem | 0 | 536,296,007 | 100% | ||
somethingburger | 0 | 1,402,462,536 | 25% | ||
steemliberator | 0 | 690,282,786 | 100% | ||
garudi | 0 | 7,613,791,307 | 51% | ||
msp3k | 0 | 4,339,427,722 | 100% | ||
make-a-whale | 0 | 101,968,879,146 | 16% | ||
witnessstats | 0 | 546,208,028 | 100% | ||
mohdmira | 0 | 430,152,650 | 100% | ||
boontjie | 0 | 16,909,392,384 | 100% | ||
crokkon | 0 | 10,493,937,951 | 50% | ||
buildawhale | 0 | 3,740,074,397,541 | 4.81% | ||
espoem | 0 | 24,340,964,501 | 50% | ||
playitforward | 0 | 5,753,002,959 | 7.5% | ||
tach | 0 | 18,798,831,900 | 50% | ||
mrblinddraw | 0 | 3,891,504,716 | 10% | ||
r2steem2 | 0 | 550,095,133 | 100% | ||
steemcreate | 0 | 571,569,971 | 100% | ||
keepcalmandread | 0 | 4,604,171,520 | 100% | ||
omersurer | 0 | 748,746,380 | 5% | ||
christianschmidt | 0 | 511,693,679 | 4.81% | ||
favcau | 0 | 31,669,444,780 | 100% | ||
emrebeyler | 0 | 723,343,879,510 | 100% | ||
zoltarian | 0 | 66,616,434,478 | 100% | ||
turbot | 0 | 489,039,306 | 77% | ||
ethemkibar | 0 | 1,068,598,173 | 5% | ||
shaff.aff | 0 | 107,738,108 | 25% | ||
evilest-fiend | 0 | 1,216,975,460 | 50% | ||
thashadowbrokers | 0 | 66,612,808 | 100% | ||
gokos | 0 | 446,761,731 | 75% | ||
muhammetcan | 0 | 486,102,800 | 79% | ||
aydant | 0 | 601,730,744 | 100% | ||
intelligencer | 0 | 17,751,382,183 | 100% | ||
irfandogan | 0 | 1,597,326,361 | 10% | ||
brotato | 0 | 318,958,110 | 100% | ||
pizaz | 0 | 318,306,904 | 100% | ||
triplethreat | 0 | 66,576,521 | 100% | ||
dootdoot | 0 | 52,183,317 | 100% | ||
wewt | 0 | 5,255,234,617 | 20% | ||
conflaxus | 0 | 65,310,994 | 100% | ||
tittilatey | 0 | 65,365,332 | 100% | ||
cajun | 0 | 318,848,690 | 100% | ||
coonass | 0 | 312,502,533 | 100% | ||
squirrelnuts | 0 | 318,371,153 | 100% | ||
luoq | 0 | 2,546,343,670 | 25% | ||
ewq | 0 | 1,470,328,705 | 6% | ||
ademkrgl | 0 | 1,167,001,118 | 25% | ||
steemdevs | 0 | 318,161,916 | 100% | ||
jeezy | 0 | 65,283,088 | 100% | ||
test.with.dots | 0 | 66,516,151 | 100% | ||
pi-pi | 0 | 65,251,499 | 100% | ||
listentosteem | 0 | 66,479,073 | 100% | ||
gravy | 0 | 66,459,334 | 100% | ||
sauronbey | 0 | 405,488,789 | 20% | ||
yucealiosman | 0 | 488,813,700 | 81% | ||
onursa | 0 | 482,665,100 | 81% | ||
zubir01 | 0 | 1,261,347,837 | 100% | ||
osmania | 0 | 578,814,350 | 100% | ||
zorto | 0 | 552,678,654 | 100% | ||
selamtux | 0 | 571,485,000 | 93% | ||
ucmuharfli | 0 | 500,642,832 | 16% | ||
embesilikat | 0 | 62,702,486 | 10% | ||
deejee | 0 | 76,632,842 | 12.5% | ||
eshapunver | 0 | 99,242,105 | 20% | ||
folken | 0 | 1,738,204,708 | 100% | ||
debruyne844 | 0 | 76,618,568 | 12.5% | ||
ooleyjulie | 0 | 76,617,813 | 12.5% | ||
samedb | 0 | 529,526,806 | 86% | ||
putinlbn | 0 | 119,827,500 | 100% | ||
maanabdullah | 0 | 260,621,338 | 100% | ||
jbeguna04 | 0 | 189,734,535 | 25% | ||
steem-rocks | 0 | 562,718,720 | 91% | ||
patrici | 0 | 113,768,370 | 100% | ||
pojgaerlan | 0 | 107,269,100 | 25% | ||
cement3 | 0 | 491,117,014 | 100% | ||
tolgahanuzun | 0 | 3,469,470,868 | 100% | ||
hakancelik | 0 | 2,763,857,304 | 100% | ||
rjrudillas14 | 0 | 104,390,464 | 25% | ||
aponkl | 0 | 512,089,808 | 100% | ||
azat1 | 0 | 346,802,956 | 100% | ||
privacybydesign | 0 | 612,915,642 | 100% | ||
firster78 | 0 | 171,616,379 | 28% | ||
feronio | 0 | 521,382,192 | 100% | ||
trupvote | 0 | 615,308,409 | 100% | ||
jumbot | 0 | 16,841,391,729 | 40% | ||
esme-svh | 0 | 453,032,482 | 100% | ||
keybordjp | 0 | 70,929,266 | 12.5% | ||
testorz | 0 | 359,850,018 | 80% | ||
arysanjaya | 0 | 417,820,278 | 100% |
Great postings, very important and useful for all steemians, and I say thanks to @emrebeyler for helping steemians.
author | arysanjaya | ||||||
---|---|---|---|---|---|---|---|
permlink | re-emrebeyler-201832t14302594z | ||||||
category | steem-python | ||||||
json_metadata | {"tags":["steem-python","python","steem","steemstem","sndbox"],"app":"esteem/1.5.1","format":"markdown+html","community":"esteem"} | ||||||
created | 2018-03-02 07:30:12 | ||||||
last_update | 2018-03-02 07:30:12 | ||||||
depth | 1 | ||||||
children | 0 | ||||||
last_payout | 2018-03-09 07:30:12 | ||||||
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 | 115 | ||||||
author_reputation | 26,301,830,722 | ||||||
root_title | "steem-python tips #2 - Create Steem accounts yourself" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||
percent_hbd | 10,000 | ||||||
post_id | 41,574,090 | ||||||
net_rshares | 0 |
You got a 4.81% upvote from @buildawhale courtesy of @emrebeyler! If you believe this post is spam or abuse, please report it to our [Discord](https://discord.gg/yv2TMPu) #abuse channel. If you want to support our [Curation Digest](https://steemit.com/curation/@buildawhale/buildawhale-curation-digest-02-06-18) or our Spam & Abuse prevention efforts, please vote [@themarkymark](https://v2.steemconnect.com/sign/account-witness-vote?witness=themarkymark&approve=1) as witness.
author | buildawhale |
---|---|
permlink | re-emrebeyler-steem-python-tips-2-create-steem-accounts-yourself-20180302t090409936z |
category | steem-python |
json_metadata | {"app":"postpromoter/1.8.7"} |
created | 2018-03-02 09:04:09 |
last_update | 2018-03-02 09:04:09 |
depth | 1 |
children | 0 |
last_payout | 2018-03-09 09:04:09 |
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 | 479 |
author_reputation | 26,761,520,358,321,264 |
root_title | "steem-python tips #2 - Create Steem accounts yourself" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 41,589,907 |
net_rshares | 0 |
Didn't know this. Thanks for posting helpful information.
author | ulqu3 |
---|---|
permlink | re-emrebeyler-steem-python-tips-2-create-steem-accounts-yourself-20180302t072814209z |
category | steem-python |
json_metadata | {"tags":["steem-python"],"app":"steemit/0.1"} |
created | 2018-03-02 07:28:21 |
last_update | 2018-03-02 07:28:21 |
depth | 1 |
children | 0 |
last_payout | 2018-03-09 07:28:21 |
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 | 57 |
author_reputation | 43,754,280,289,730 |
root_title | "steem-python tips #2 - Create Steem accounts yourself" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 41,573,813 |
net_rshares | 0 |