Console Commands Documentation
Help
help([-h, -help, --h, --H, --help, -H, h])
- Provide help information
- 提供帮助信息
Node Management
addObserver
- Add an observer node
- 添加观察者节点
addSealer
- Add a sealer node
- 添加共识节点
generateGroup
- Generate a group for the specified node
- 为指定节点生成一个组
generateGroupFromFile
- Generate group according to the specified file
- 根据指定文件生成组
getNodeInfo
- Query the specified node information
- 查询指定节点信息
getNodeVersion
- Query the current node version
- 查询当前节点版本
getGroupList
- Query group list
- 查询组列表
getGroupPeers
- Query nodeId list for sealer and observer nodes
- 查询共识节点和观察者节点的节点ID列表
getSealerList
- Query nodeId list for sealer nodes
- 查询共识节点的节点ID列表
getObserverList
- Query nodeId list for observer nodes
- 查询观察者节点的节点ID列表
removeNode
- Remove a node
- 移除节点
startGroup
- Start the specified group of the specified node
- 启动指定节点的指定组
stopGroup
- Stop the specified group of the specified node
- 停止指定节点的指定组
switch([s])
- Switch to a specific group by group ID
- 切换到特定组(通过组ID)
registerCNS
- Register CNS information for the given contract
- 为给定合约注册CNS信息
queryCNS
- Query CNS information by contract name and contract version
- 根据合约名和合约版本查询CNS信息
revokeCNSManager
- Revoke permission for CNS by address
- 撤销地址对CNS的权限
Contract Management
deploy
- Deploy a contract on blockchain
- 在区块链上部署合约
call
- Call a contract by a function and parameters
- 调用合约的函数和参数
getContractStatus
- Get the status of the contract
- 获取合约状态
grantContractStatusManager
- Grant contract authorization to the user
- 授予用户对合约的授权
revokeContractStatusManager
- Revoke contract authorization to the user
- 撤销用户对合约的授权
Transaction and Block Information
getBlockByNumber
- Query information about a block by number
- 根据区块号查询区块信息
getBlockByHash
- Query information about a block by hash
- 根据哈希查询区块信息
getTransactionByHash
- Query information about a transaction by transaction hash
- 根据交易哈希查询交易信息
getTransactionReceipt
- Query the receipt of a transaction by transaction hash
- 根据交易哈希查询交易收据
getPendingTransactions
- Query pending transactions
- 查询待处理的交易
getSyncStatus
- Query sync status
- 查询同步状态
getTotalTransactionCount
- Query total transaction count
- 查询总交易数
getConsensusStatus
- Query consensus status
- 查询共识状态
System Configuration
getSystemConfigByKey
- Query a system config value by key
- 根据键查询系统配置值
setSystemConfigByKey
- Set a system config value by key
- 根据键设置系统配置值
Account Management
newAccount
- Create account
- 创建账户
loadAccount
- Load account for the transaction signature
- 为交易签名加载账户
getCurrentAccount
- Get the current account info
- 获取当前账户信息
Permission Management
grantNodeManager
- Grant permission for node configuration by address
- 授予地址对节点配置的权限
revokeNodeManager
- Revoke permission for node configuration by address
- 撤销地址对节点配置的权限
grantCNSManager
- Grant permission for CNS by address
- 授予地址对CNS的权限
revokeCNSManager
- Revoke permission for CNS by address
- 撤销地址对CNS的权限
grantDeployAndCreateManager
- Grant permission for deploy contract and create user table by address
- 授予地址对部署合约和创建用户表的权限
revokeDeployAndCreateManager
- Revoke permission for deploy contract and create user table by address
- 撤销地址对部署合约和创建用户表的权限
SQL Operations
create
- Create table by sql
- 通过SQL创建表
select
- Select records by sql
- 通过SQL选择记录
insert
- Insert records by sql
- 通过SQL插入记录
update
- Update records by sql
- 通过SQL更新记录
delete
- Remove records by sql
- 通过SQL删除记录
Other Operations
desc
- Description table information
- 描述表信息
listAbi
- List functions and events info of the contract
- 列出合约的函数和事件信息
listCommitteeMembers
- List all committee members
- 列出所有委员会成员
listOperators
- List all operators
- 列出所有运营者
Quit and Exit
quit([quit, q, exit])
- Quit console
- 退出控制台