本篇文章给大家分享的是有关EOS cleos create key account如何创建密钥、账号、查询帐户余额,小编觉得挺实用的,因此分享给大家学习,希望大家阅读完这篇文章后可以有所收获,话不多说,跟着小编一起来看看吧。
公司专注于为企业提供成都网站设计、网站建设、外贸网站建设、微信公众号开发、电子商务商城网站建设,微信小程序定制开发,软件按需搭建网站等一站式互联网企业服务。凭借多年丰富的经验,我们会仔细了解各客户的需求而做出多方面的分析、设计、整合,为客户设计出具风格及创意性的商业解决方案,成都创新互联更提供一系列网站制作和网站推广的服务。
命令格式:$ cleos create key
为了创建一个帐户,你需要两个新的密钥:所有者和主动。您可以要求cleos为您创建一些钥匙:
这将是你的Owner Key,
$ cleos create key public: EOS4toFS3YXEQCkuuw1aqDLrtHim86Gz9u3hBdcBw5KNPZcursVHq private: 5JKbLfCXgcafDQVwHMm3shHt6iRWgrr9adcmt6vX3FNjAEtJGaT
这将是你的主动键,
$ cleos create key public: EOS7d9A3uLe6As66jzN8j44TXJUqJSK3bFjjEEqR4oTvNAB3iM9SA private: 5Hv22aPcjnENBv6X9o9nKGdkfrW44En6z4zJUt2PobAvbQXrT9z
注意:cleos不保存生成的私钥。
命令格式:$ cleos create account ${control_account} ${account_name} ${owner_public_key} ${active_public_key}
您将需要您的EOS密钥才能创建帐户,您必须在Ethereum网络上注册您的EOS密钥,或者您可以使用创建密钥功能创建一组新密钥
$ cleos create account inita tester EOS4toFS3YXEQCkuuw1aqDLrtHim86Gz9u3hBdcBw5KNPZcursVHq EOS7d9A3uLe6As66jzN8j44TXJUqJSK3bFjjEEqR4oTvNAB3iM9SA { "transaction_id": "6acd2ece68c4b86c1fa209c3989235063384020781f2c67bbb80bc8d540ca120", "processed": { "refBlockNum": "25217", "refBlockPrefix": "2095475630", "expiration": "2017-07-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": [] } ] } }
命令格式:$ cleos get servants ${account_name}
要检查由帐户(控制帐户)创建的子帐户
$ cleos get servants inita { "controlled_accounts": [ "tester" ] }
命令格式:$ 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": [] } } ] }
以上就是EOS cleos create key account如何创建密钥、账号、查询帐户余额,小编相信有部分知识点可能是我们日常工作会见到或用到的。希望你能通过这篇文章学到更多知识。更多详情敬请关注创新互联行业资讯频道。