链接:https://github.com/EOSIO/eos/wiki/Command-Reference
钱包:
1. 创建钱包
cleos wallet create
2. 解锁钱包
cleos wallet unlock -password wallet_key
3. 导入秘钥
cleos wallet import owner_key
cleos wallet import active_key
4. 创建账号
cleos create account creator_account new_account owner_key active_key
5. 查看钱包列表
cleos wallet list
6. 查看导入到钱包里的keys
cleos wallet keys
合约:
1. 生成.wast文件
eosiocpp -o hello.wast hello.cpp2. 生成.abi文件
eosiocpp -g hello.abi hello.cpp
3. 部署合约
cleos set contract account_name hello_dir hello.wast(可省略) hello.abi(可省略) -p account_name
4. 执行合约
cleos push action account_name function 'json数据' -p account_name