3个不稳定版本
0.2.1 | 2023年11月28日 |
---|---|
0.2.0 | 2023年10月29日 |
0.1.0 | 2023年10月14日 |
#42 in #cli-client
6.5MB
197K SLoC
Quilibrium客户端CLI
安装
- 如果您尚未安装,请安装Rust工具链管理器:https://rustup.rs/
- 安装Quilibrium CLI:
cargo install quilclient
示例用法
从节点的节点存储中获取对等节点并打印到stdout作为CSV
quilclient network-info --node-uri http://1.2.3.4:5678
节点URI是Quilibrium节点的gRPC URI。有关节点URI的更多信息,请参阅仪式客户端readme。
或者以环境变量的形式提供节点URI
export QUILCLIENT_NODE_URI=http://1.2.3.4:5678
quilclient network-info
输出
peer_id,multiaddr,peer_score
QmT9ihPGK3U2MPFXyiy9Djhoiv9V2F3uPx2aq5PwTxepMP,/ip4/71.212.120.219/udp/8336/quic,0.0
QmcYNKu7FBUfjUvNRbj2shHXX18KC4t3PEypzkcGXu21RT,/ip4/51.81.48.32/udp/26946/quic,0.0
QmcYNKu7FBUfjUvNRbj2shHXX18KC4t3PEypzkcGXu21RT,/ip4/51.81.48.32/udp/54697/quic,0.0
...
您可以将输出保存到磁盘并用电子表格程序打开,或者将输出管道传输到命令行CSV查看器,如xsv:
文档
Quilibrium CLI client
Usage: quilclient [OPTIONS] <COMMAND>
Commands:
download-frame Download a frame as a protobuffer and save it to disk
frames Fetch frame metadata from the node and print it to stdout as CSV
network-info Fetch the peers from the node's peer store and print them to stdout as CSV
peer-info Fetch the broadcasted sync info that gets replicated through the network mesh and print it to stdout as CSV
token-balance Fetch the token balance of the node and print it to stdout in QUIL units as an integer
token-supply Fetch the confirmed token supply and print it to stdout in QUIL units as an integer
help Print this message or the help of the given subcommand(s)
Options:
-u, --node-uri <NODE_URI> The gRPC URI of the Quilibrium node, e.g. <http://1.2.3.4:5678>. See the Ceremony Client readme for more: <https://github.com/quilibriumnetwork/ceremonyclient#experimental--grpcrest-support> [env: QUILCLIENT_NODE_URI=]
-h, --help Print help
-V, --version Print version
故障排除
请确保$HOME/.cargo/bin
在您的路径上。
变更日志
依赖关系
~13MB
~233K SLoC