如何理解EOSIO cleos 命令,相信很多没有经验的人对此束手无策,为此本文总结了问题出现的原因和解决方法,通过这篇文章希望你能解决这个问题。
获取所有命令
命令格式:$ cleos
cleos包含所有命令的文档。有关cleos已知的所有命令的列表,只需简单地运行它,不带任何参数:
$ cleos
ERROR: RequiredError: Subcommand required
Command Line Interface to EOSIO Client
Usage: cleos [OPTIONS] SUBCOMMAND
Options:
-h,--help 打印帮助信息并且退出
-u,--url TEXT=http://localhost:8888/
nodeos 运行的http/https URL
--wallet-url TEXT=http://localhost:8888/
keosd运行的 http/https URL
-v,--verbose 输出对错误的详细操作
子命令:
version 返回版本信息
create 在区块链上和区域外创建数据
get 从区块链中检索各种数据和信息
set 设置或更新区块链状态
transfer 从账户到账户转移EOS
net 与本地p2p网络连接进行交互
wallet 与本地钱包互动
sign 签署交易
push 将任意事务推送到区块链
multisig Multisig合同命令
system 将eosio.system合约行为发送到区块链。
获取所有子命令
命令格式: $ cleos ${command}
要获得有关任何特定子命令的帮助,请使用无参数运行它:
$ cleos create
ERROR: RequiredError: Subcommand required
Create various items, on and off the blockchain
Usage: ./cleos create SUBCOMMAND
Subcommands:
key Create a new keypair and print the public and private keys
account Create a new account on the blockchain
producer Create a new producer on the blockchain
$ cleos create account
ERROR: RequiredError: creator
Create a new account on the blockchain
Usage: ./cleos create account creator name OwnerKey ActiveKey
Positionals:
creator TEXT The name of the account creating the new account
name TEXT The name of the new account
OwnerKey TEXT The owner public key for the account
ActiveKey TEXT The active public key for the account
看完上述内容,你们掌握如何理解EOSIO cleos 命令的方法了吗?如果还想学到更多技能或想了解更多相关内容,欢迎关注天达云行业资讯频道,感谢各位的阅读!