Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How does EOS cleos create key account create keys, account numbers, and query account balances

2025-03-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

What this article shares with you is about how EOS cleos create key account creates keys, accounts, and query account balances. The editor thinks it is very practical, so I share it with you. I hope you can get something after reading this article. Let's take a look at it.

Create key

Command format: $cleos create key

To create an account, you need two new keys: the owner and the initiative. You can ask cleos to create some keys for you:

This will be your Owner Key.

$cleos create keypublic: EOS4toFS3YXEQCkuuw1aqDLrtHim86Gz9u3hBdcBw5KNPZcursVHqprivate: 5JKbLfCXgcafDQVwHMm3shHt6iRWgrr9adcmt6vX3FNjAEtJGaT

This will be your active key.

$cleos create keypublic: EOS7d9A3uLe6As66jzN8j44TXJUqJSK3bFjjEEqR4oTvNAB3iM9SAprivate: 5Hv22aPcjnENBv6X9o9nKGdkfrW44En6z4zJUt2PobAvbQXrT9z

Note: cleos does not save the generated private key.

Create an account

Command format: $cleos create account ${control_account} ${account_name} ${owner_public_key} ${active_public_key}

You will need your EOS key to create an account, you must register your EOS key on the Ethereum network, or you can use the create key feature to create a new set of keys

$cleos create account inita tester EOS4toFS3YXEQCkuuw1aqDLrtHim86Gz9u3hBdcBw5KNPZcursVHq EOS7d9A3uLe6As66jzN8j44TXJUqJSK3bFjjEEqR4oTvNAB3iM9SA {"transaction_id": "6acd2ece68c4b86c1fa209c3989235063384020781f2c67bbb80bc8d540ca120", "processed": {"refBlockNum": "25217", "refBlockPrefix": "2095475630", "expiration": "July 2017-25T17:54:55", "scope": ["eos", "inita"], "signatures": [], "messages": [{"code": "eos" "type": "newaccount", "authorization": [{"account": "inita", "permission": "active"}], "data": "c9251a0000000000b44c5a2400000000010000000102bcca6347d828d4e1868b7dfa91692a16d5b20d0ee3d16a7ca2ddcc7f6dd03344010000010000000102bcca6347d828d4e1868b7dfa91692a16d5b20d0ee3d16a7ca2ddcc7f6dd03344010000010000000001c9251a000000000061d0640b000000000100010000000000000008454f5300000000"}], "output": [{"notify": [], "sync_transactions": [] "async_transactions": []}]} sub-account

Command format: $cleos get servants ${account_name}

To check the sub-accounts created by the account (control account)

$cleos get servants inita {"controlled_accounts": ["tester"]} check the account balance

Command format: $cleos get account ${account_name}

$cleos get account tester {"name": "tester", "eos_balance": 0, "staked_balance": 1, "unstaking_balance": 0, "last_unstaking_time": "1969-12-31T23:59:59", "permissions": [{"name": "active", "parent": "owner", "required_auth": {"threshold": 1 "keys": [{"key": "EOS7d9A3uLe6As66jzN8j44TXJUqJSK3bFjjEEqR4oTvNAB3iM9SA", "weight": 1}], "accounts": []}}, {"name": "owner", "parent": "owner", "required_auth": {"threshold": 1 "keys": [{"key": "EOS4toFS3YXEQCkuuw1aqDLrtHim86Gz9u3hBdcBw5KNPZcursVHq", "weight": 1}], "accounts": []}}]} this is how EOS cleos create key account creates keys, accounts, and queries account balances The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report