261 releases (5 breaking)

0.6.25 Jul 8, 2024
0.6.18 May 24, 2024
0.6.3 Mar 28, 2024
0.1.103 Dec 29, 2023
0.1.53 Nov 29, 2023

#1407 in Network programming

Download history 453/week @ 2024-03-26 505/week @ 2024-04-02 195/week @ 2024-04-09 193/week @ 2024-04-16 372/week @ 2024-04-23 3/week @ 2024-04-30 452/week @ 2024-05-07 251/week @ 2024-05-14 190/week @ 2024-05-21 191/week @ 2024-05-28 657/week @ 2024-06-04 17/week @ 2024-06-11 104/week @ 2024-07-02 55/week @ 2024-07-09

159 downloads per month

GPL-3.0 license

1MB
17K 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 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.

Dependencies

~62–100MB
~2M SLoC