切换到eos/build/programs/cleos路径接下来。
秘钥需要保存好,后面解锁时会用到。
liyuechun:cleos yuechunli$ https://www.baoguzi.com/cleos wallet createCreating wallet: defaultSave password to use in the future to unlock this wallet.Without password imported keys will not be retrievable."PW5HtkrzGaNKGNKVGXc6icWiWdo7PFsjWJAdE2dJbt5bSnbwb7spd"liyuechun:cleos yuechunli$ https://www.baoguzi.com/cleos set contract eosio /contracts/eosio.bios -p eosioliyuechun:cleos yuechunli$ https://www.baoguzi.com/cleos set contract 尚力财经小编2022 eosio /contracts/eosio.bios -p eosio Reading WAST/WASM from /contracts/eosio.bios/eosio.bios.wast...Assembling WASM...Publishing contract...executed transaction: 32735994889238e18ba60341bb79f6b674738727e9d599.991f8f34b496e3a18 3288 bytes 2200576 cycles# eosio <= eosio::setcode {"account":"eosio","vmtype":0,"vmversion":0,"code":"0061736d0100000001581060037f7e7f0060057f7e7e7e7e...# eosio <= eosio::setabi {"account":"eosio","abi":{"types":[],"structs":[{"name":"set_account_limits","base":"","fields":[{"n...liyuechun:cleos yuechunli$ liyuechun:cleos yuechunli$ https://www.baoguzi.com/cleos create keyPrivate key: 5Kg4i6WW6mfGXGjriU552KdAQ8tQyCU4mqtevVganWWbzQf1rD1Public key: EOS5MSkE5DGgSurc7k3Sv9kWrev6E3GBBqasdiiC3yajPwrW7c4Uqliyuechun:cleos yuechunli$ https://www.baoguzi.com/cleos create key Private key: 尚力财经小编2022 5Kg2P7PRA7wWrW2s53JiaBur7PhDtDsCMZUwQ8Yvn8uAmu8xEMBPublic key: EOS7wERhooVJwqYLuQn5v6UDZnL5KQpGJBDMQoktkxz4baNzicwLXliyuechun:cleos yuechunli$ https://www.baoguzi.com/cleos wallet import 5Kg4i6WW6mfGXGjriU552KdAQ8tQyCU4mqtevVganWWbzQf1rD1imported private key for: EOS5MSkE5DGgSurc7k3Sv9kWrev6E3GBBqasdiiC3yajPwrW7c4Uqliyuechun:cleos yuechunli$ https://www.baoguzi.com/cleos wallet import 5Kg2P7PRA7wWrW2s53JiaBur7PhDtDsCMZUwQ8Yvn8uAmu8xEMBimported private key for: EOS7wERhooVJwqYLuQn5v6UDZnL5KQpGJBDMQoktkxz4baNzicwLXliyuechun:cleos yuechunli$ $ liyuechun:cleos yuechunli$ https://www.baoguzi.com/cleos create account eosio eostoken EOS5MSkE5DGgSurc7k3Sv9kWrev6E3GBBqasdiiC3yajPwrW7c4Uq EOS7wERhooVJwqYLuQn5v6UDZnL5KQpGJBDMQoktkxz4baNzicwLXliyuechun:cleos yuechunli$ https://www.baoguzi.com/cleos create account eosio eostoken EOS5MSkE5DGgSurc7k3Sv9kWrev6E3GBBqasdiiC3yajPwrW7c4Uq EOS7wERhooVJwqYLuQn5v6UDZnL5KQpGJBDMQoktkxz4baNzicwLXexecuted 尚力财经小编2022 transaction: e691042df8074a25f47b8364f58a03c2c407e64d2cbc7248e1e9a611a06fe547 352 bytes 102400 cycles# eosio <= eosio::newaccount {"creator":"eosio","name":"eostoken","owner":{"threshold":1,"keys":[{"key":"EOS5MSkE5DGgSurc7k3Sv9kW...liyuechun:cleos yuechunli$ https://www.baoguzi.com/cleos get account eostokenliyuechun:cleos yuechunli$ https://www.baoguzi.com/cleos get account eostoken{ "account_name": "eostoken", "permissions": [{ "perm_name": "active", "parent": "owner", "required_auth": { "threshold": 1, "keys": [{ "key": "EOS7wERhooVJwqYLuQn5v6UDZnL5KQpGJBDMQoktkxz4baNzicwLX", "weight": 1 } ], "accounts": [] } },{ "perm_name": "owner", "parent": "", "required_auth": { "threshold": 1, "keys": [{ "key": "EOS5MSkE5DGgSurc7k3Sv9kWrev6E3GBBqasdiiC3yajPwrW7c4Uq", "weight": 1 } ], "accounts": [] } } ]}liyuechun:cleos yuechunli$$ https://www.baoguzi.com/cleos get code currency$ https://www.baoguzi.com/cleos set contract currency /contracts/currency $ https://www.baoguzi.com/cleos get code currency liyuechun:cleos yuechunli$ https://www.baoguzi.com/cleos get code currency code hash: 0000000000000000000000000000000000000000000000000000000000000000liyuechun:cleos yuechunli$ https://www.baoguzi.com/cleos set contract currency /contracts/currency Reading WAST/WASM from /contracts/currency/currency.wast...Assembling WASM...Publishing contract...executed transaction: eec4d42d5c1aab8785ce8e55618bf209d2e4dbcaf881e004c260c779d5571cef 7112 bytes 2200576 cycles# eosio <= eosio::setcode {"account":"currency","vmtype":0,"vmversion":0,"code":"0061736d010000000199011860000060027e7e0060017...# eosio <= eosio::setabi {"account":"currency","abi":{"types":[{"new_type_name":"account_name","type":"name"}],"structs":[{"n...liyuechun:cleos yuechunli$ https://www.baoguzi.com/cleos get code currency code hash: d6c891fbdfcff597d82e17c81354574399b01d533e53d412093f03e1950fb9d4liyuechun:cleos yuechunli$ $ https://www.baoguzi.com/cleos push action currency create '{"issuer":"currency","maximum_supply":"1000000.0000 CUR","can_freeze":"0","can_recall":"0","can_whitelist":"0"}' --permission currency@activeliyuechun:cleos yuechunli$ https://www.baoguzi.com/cleos push action currency create '{"issuer":"currency","maximum_supply":"1000000.0000 CUR","can_freeze":"0","can_recall":"0","can_whitelist":"0"}' --permission currency@activeexecuted transaction: ae92a14b810e1437e9a0e8ae0527268a1e0fbd834d8c0a6906c8b65d9b503dc4 248 bytes 103424 cycles# currency > createliyuechun:cleos yuechunli$$ https://www.baoguzi.com/cleos push action currency issue '{"to":"currency","quantity":"1000.0000 CUR","memo":""}' --permission currency@active liyuechun:cleos yuechunli$ https://www.baoguzi.com/cleos push action currency issue '{"to":"currency","quantity":"1000.0000 CUR","memo":""}' --permission currency@active executed transaction: 7b8108d19aba6c8dcc601c321ef3c433cd2a3aedbd3ac1b217f06477792b40f7 248 bytes 106496 cycles# currency > issueliyuechun:cleos yuechunli$ $ https://www.baoguzi.com/cleos get table currency currency accounts liyuechun:cleos yuechunli$ https://www.baoguzi.com/cleos get table currency currency accounts { "rows": [{ "balance": "1000.0000 CUR", "frozen": 0, "whitelist": 1 } ], "more": false}liyuechun:cleos yuechunli$ $ https://www.baoguzi.com/cleos push action currency transfer '{"from":"currency","to":"eosio","quantity":"20.0000 CUR","memo":"my first transfer"}' --permission currency@active $ https://www.baoguzi.com/cleos get table currency currency accountsliyuechun:cleos yuechunli$ https://www.baoguzi.com/cleos push action currency transfer '{"from":"currency","to":"eosio","quantity":"20.0000 CUR","memo":"my first transfer"}' --permission currency@active executed transaction: 4a24e5a9afd17abe61dcb3b3aff06a1c5ec94663f803d3d1801bd7a5046fea9e 272 bytes 109568 cycles# currency > transfer# eosio <= currency::transfer {"from":"currency","to":"eosio","quantity":"20.0000 CUR","memo":"my first transfer"}liyuechun:cleos yuechunli$ https://www.baoguzi.com/cleos get table currency currency accounts { "rows": [{ "balance": "980.0000 CUR", "frozen": 0, "whitelist": 1 } ], "more": false}标签: do
版权声明:本文内容由互联网用户贡献,该文观点仅代表作者本人。本站不拥有所有权,不承担相关法律责任。如发现有侵权/违规的内容, 请联系我们:dudu818907@gmail.com,本站将立刻清除。