272 releases
0.6.36 | Nov 27, 2024 |
---|---|
0.6.33 | Oct 29, 2024 |
0.6.26 | Jul 29, 2024 |
0.6.3 | Mar 28, 2024 |
0.1.53 | Nov 29, 2023 |
#799 in Network programming
320 downloads per month
710KB
12K
SLoC
Safenode RPC Client
This crate provides a client for the RPC protocol for interacting with safenode
. It wraps the Protobuf-generated code and types such that users of the RPC protocol don't need to redefine that code.
It also provides a binary which is a CLI for interacting with a running safenode
instance via the protocol.
Binary Usage
Run cargo run -- <ADDR> <command>
to connect to a node. Provide the address of the node's RPC service, e.g. 127.0.0.1:12001. Followed by the command to execute. Some of the commands available are:
info
: Retrieve information about the node itselfnetinfo
: Retrieve information about the node's connections to the networkevents
: Start listening for node eventstransfers
: Start listening for transfers eventsrestart
: Restart the node after the specified delaystop
: Stop the node after the specified delayupdate
: Update to latestsafenode
released version, and restart it
For more information about each command, run cargo run -- <command> --help
.
Dependencies
~69–110MB
~2M SLoC