| Crates.io | sn_node_rpc_client |
| lib.rs | sn_node_rpc_client |
| version | 0.6.36 |
| created_at | 2023-11-07 10:56:14.9629+00 |
| updated_at | 2024-11-27 17:19:04.96136+00 |
| description | Safe Node RPC Client |
| homepage | https://maidsafe.net |
| repository | https://github.com/maidsafe/safe_network |
| max_upload_size | |
| id | 1027951 |
| size | 222,366 |
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.
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 latest safenode released version, and restart itFor more information about each command, run cargo run -- <command> --help.