271 releases

new 0.6.35 Nov 12, 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

#701 in Network programming

Download history 130/week @ 2024-07-27 6/week @ 2024-08-03 136/week @ 2024-08-24 11/week @ 2024-08-31 107/week @ 2024-09-07 52/week @ 2024-09-14 143/week @ 2024-09-21 208/week @ 2024-09-28 161/week @ 2024-10-05 25/week @ 2024-10-12 133/week @ 2024-10-19 134/week @ 2024-10-26 112/week @ 2024-11-02 116/week @ 2024-11-09

497 downloads per month

GPL-3.0 license

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 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

~70–110MB
~2M SLoC