MMX币CLI 命令,操作方法和详情

Words
836
Reading
4 min
Listen
Play
4y

要使用 CLI:

cd mmx-node
source ./activate.sh
对于 Windows:使用开始菜单中的快捷方式或mmx_cmd.cmd从终端/命令提示符手动运行。

要运行任何 mmx 命令(mmx wallet create 除外),节点需要运行。请参阅入门以了解如何启动它。

节点 CLI


检查节点:mmx node info

要检查对等点:mmx node peers

检查交易:mmx node tx <txid>

显示当前节点高度:mmx node get height

转储交易:mmx node get tx <txid>

要转储合同:mmx node get contract <address>

要获得地址的余额:mmx node get balance <address> <options>

-x <currency>
获取地址的原始余额:mmx node get amount <address> <options>
-x <currency>
要转储块:mmx node get block <height>

要转储块头:mmx node get header <height>

要显示已连接的对等点:mmx node get peers

要显示估计的网络空间:mmx node get netspace

显示流通硬币供应:mmx node get supply

调用智能合约 const 函数:mmx node call

显示智能合约状态变量:mmx node read

转储智能合约的所有存储:mmx node dump

转储智能合约的汇编代码:mmx node dump_code

从对等点获取块:mmx node fetch block <peer> <height>

从对等点获取块头:mmx node fetch header <peer> <height>

查看地址余额:mmx node balance <address>

要检查地址自特定块高度以来的历史记录:mmx node history <address> <block_height>

显示所有优惠:mmx node offers [open | closed]

要强制重新同步:mmx node sync

钱包命令行


要显示钱包中的所有内容:mmx wallet show

要显示钱包余额:mmx wallet show balance

显示钱包合约:mmx wallet show contracts

要显示钱包优惠:mmx wallet show offers

要获取特定的钱包地址:mmx wallet get address

要获得特定的钱包余额:mmx wallet get balance

要获得特定的原始钱包余额:mmx wallet get amount

获取所有合约地址的列表:mmx wallet get contracts

获取钱包的助记词:mmx wallet get seed

要显示最近 N 个高度的钱包活动:mmx wallet log -N

转移资金:mmx wallet send <options>

-a <amount to send, 1.23>
-r <tx fee multiplier>
-t <destination address>
-x <currency>
提取资金:mmx wallet send_from
-s <source address>
要转移 NFT,与使用一个 satoshi 发送相同:mmx wallet transfer

要在链上创建报价:mmx wallet offer

(-x / -z default MMX)
-a <bid amount> -b <ask amount>
-x <bid currency> -z <ask currency>
接受报价:mmx wallet accept <address>

铸造代币:mmx wallet mint

-a <amount>
-t <destination>
-x <currency>
部署合约:mmx wallet deploy <file>

修改合约:mmx wallet mutate <function> <args>

-x <contract>
执行智能合约功能:mmx wallet exec <function> <args>
-x <contract>
要创建一个新钱包:mmx wallet create -f [file_name]

从种子哈希恢复钱包:mmx wallet create [seed hash]

从一组 24 个助记词中恢复钱包:mmx wallet create --mnemonic [word1 word2 word3....]

显示所有钱包及其索引:mmx wallet accounts

要获取用于绘图的农民/池密钥:mmx wallet keys

如果启用了密码阶段,要锁定钱包:mmx wallet lock

使用密码解锁钱包:mmx wallet unlock

要使用非默认钱包,-j <index>请结合上述命令指定。 <index>从 0 开始,这是默认值。

农民 CLI


检查农场:mmx farm info

添加绘图目录:mmx farm add <dir>

要删除绘图目录:mmx farm remove <dir>

要显示绘图目录:mmx farm get dirs

要以字节为单位获取总空间:mmx farm get space

要重新加载图:mmx farm reload

MMX币CLI 命令,操作方法和详情 | Ecency