sn_node_rpc_client

Crates.iosn_node_rpc_client
lib.rssn_node_rpc_client
version0.6.25
sourcesrc
created_at2023-11-07 10:56:14.9629
updated_at2024-07-08 16:30:07.353697
descriptionSafe Node RPC Client
homepagehttps://maidsafe.net
repositoryhttps://github.com/maidsafe/safe_network
max_upload_size
id1027951
size208,278
MaidSafe-QA (MaidSafe-QA)

documentation

https://docs.rs/sn_node

README

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 itself
  • netinfo: Retrieve information about the node's connections to the network
  • events: Start listening for node events
  • transfers: Start listening for transfers events
  • restart: Restart the node after the specified delay
  • stop: Stop the node after the specified delay
  • update: Update to latest safenode released version, and restart it

For more information about each command, run cargo run -- <command> --help.

Commit count: 4014

cargo fmt