Create an account with specific name in SophiaTX

in #sophiatx6 years ago (edited)

 

Prerequisites: You have installed cli_wallet in your machine and know how to open it. Also for security you know how to lock and unlock it.

Step One. Go to wallet.sophiatx.com an create a new account there. It will create you a random name for your account but this is the first step, save the keys it gave you. Also send at least 1 SPHTX to this account. Remember private keys start with 5 and public keys start with SPH.

Step Two. Open cli_wallet and unlock it, now import the key that wallet.sophiatx.com gave you, command: 

import_key PrivateKey

To know if everything is ok type list_keys, this command will list public and private keys in pairs, compare your keys web wallet gave you with the ones in the list, if are the same you can continue.

Step Three. Create new pair of keys for the new account, in cli_wallet type three times the command suggest_brain_key, first result will be your  owner keys, second result will be your active keys and last result will be your public memo key. 

Step Four. Create your new account. In cli_wallet if you type gethelp create_account_with_keys you will get the following response with the parameters you need to use:

  • Parameters:
  •    creator: The account creating the new account (type: string)
  •    seed: The seed used to generate the name of the new account (type: string)
  •    json_meta: JSON Metadata associated with the new account (type: string)
  •    owner: public owner key of the new account (type: public_key_type)
  •    active: public active key of the new account (type: public_key_type)
  •    memo: public memo key of the new account (type: public_key_type)
  •    broadcast: true if you wish to broadcast the transaction (type: bool)

Now you just only need to form the parameters and execute the command, example of the command:

create_account_with_keys g/5W3jeeQcyP3dw3Q4lGgzex9Mw my_new_account "{}" SPH8Xy7eFybaBvVroyTkbwn1czJYshroje6bUCLRNiaZwv41vnxvU SPH6PvkLBq1aX5C71gk7noCRRL1kJRn2Ar2jhNdCktQgppKcAQjuG SPH85JUkYJgru4STtkgqf7ZvkZ47iHspwLLm79DL6cHkWfFsPXQCT true

Now you have a new account called my_new_account. One important thing you need to know is that nobody can send you funds using as account name my_new_account, to get the real name of the account type get_account my_new_account and in the result you will see a field called "name" that is the real name of the account.

Step Five.  Import keys and verify that everything is under your control. Before you send all your funds to your new account always verify that you have saved your private keys and everything is in your control. As the step two you need to execute command import_key (twice) using your owner private key and your active private key. Now send 0.5 SPHTX to the new account using command transfer, remember to use the real name of the account:

transfer g/5W3jeeQcyP3dw3Q4lGgzex9Mw  0zr1THTnrQ5kHpagFQxGJP0n4Co "0.5 SPHTX" "" true

Now verify that your transaction arrived successfully with get_account my_new_account, if  your balance is correct now try to send 0.1 SPHTX back to the first account, remember every transfer transaction costs 0.01 SPHTX, this means you can't send all the amount you see in your balance, you need to leave at least 0.01 in your account in order to pay the transaction fee.

If transactions went from one account and the other you are good to receive all your funds in your new account.

-------------------------------------------------------------------------------------

I am running as a witness for SophiaTX, I have experience running DPoS miners/witness/validators in graphene and other technologies, I know the tech and I also know how to be a good validator. If you are also a validator I recommend you to set up the Sophiatx-bot I created, this can help you to know the health of your nodes and will alert you if you are missing blocks: https://github.com/space4tech/sophiatx-bot

Vote for my witness with command:

vote_for_witness your_own_account 0x1ca5a1b01264d9cd1e true true

Important links if you want to become witness:


Sort:  

Saw a post about twitter and i got quickly intrigued about this SPHTX https://twitter.com/Stewart57493738/status/1063602421950283778

Congratulations @space4! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Coin Marketplace

STEEM 0.21
TRX 0.25
JST 0.039
BTC 98660.01
ETH 3484.72
USDT 1.00
SBD 3.23