这几个月参与了Quilibrium这个项目,近期主网2.0上线,现在是2.0.3版本,可以使用一个服务器节点的Qclient查看多个过去运行过的节点的Quil余额,并对余额进行转账、合并等操作,无需开启其他服务器。以下为自己实践过的操作:

首先确保node和qclient都更新到2.0.3版本

在node文件夹下运行以下命令,注意,linux和amd64需要更改为运行设备的实际系统和架构:

~/ceremonyclient/node# ./../client/qclient-2.0.2.3-linux-amd64 help

显示结果:

Signature check passed
Quilibrium RPC Client

Usage:
qclient [command]

Available Commands:
completion Generate the autocompletion script for the specified shell
config Performs a configuration operation
cross-mint Signs a payload from the Quilibrium bridge to mint tokens on Ethereum L1 and prints the result to stdout
help Help about any command
token Performs a token operation

Flags:
–config string config directory (default is .config/) (default “.config/”)
–dry-run runs the command (if applicable) without actually mutating state (printing effect output)
-h, –help help for qclient
–signature-check bypass signature check (not recommended for binaries) (default true)

Use “qclient [command] –help” for more information about a command.

我们看看Available Commands里面的token都能做些什么:

~/ceremonyclient/node# ./../client/qclient-2.0.2.3-linux-amd64 token --help

得到的结果是:

Performs a token operation

Usage:
qclient token [command]

Available Commands:
accept Accepts a pending transfer
balance Lists the total balance of tokens in the managing account
coins Lists all coins under control of the managing account
merge Merges multiple coins
mint Performs a mint operation
mutual-receive Initiates a mutual receive
mutual-transfer Initiates a mutual transfer
reject Rejects the pending transaction
split Splits a coin into multiple coins
transfer Creates a pending transfer of coin

Flags:
-h, –help help for token

Global Flags:
–config string config directory (default is .config/) (default “.config/”)
–dry-run runs the command (if applicable) without actually mutating state (printing effect output)
–signature-check bypass signature check (not recommended for binaries) (default true)

Use “qclient token [command] –help” for more information about a command.

那我们现在来根据命令查看.config节点的余额

~/ceremonyclient/node# ./../client/qclient-2.0.2.3-linux-amd64 token balance
Signature check passed
Total balance: 0.000000000000 QUIL (Account 0x240

还可以查看其他节点的余额,只需要将其他节点的.config文件夹重命名,例如重命名为.config1,放入与.config相同的文件夹,然后运行以下命令:

~/ceremonyclient/node# ./../client/qclient-2.0.2.3-linux-amd64 token balance --config .config1
Signature check passed
Total balance: 294.219085000000 QUIL (Account 0x1

在命令后加上–config的global flag,可以在不运行其他节点服务器的情况下查询到节点余额。同理也可以对其他节点执行转账、合并等操作。

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注