248 releases (5 breaking)

new 0.6.13-alpha.0 Apr 25, 2024
0.6.3 Mar 28, 2024
0.1.103 Dec 29, 2023
0.1.53 Nov 29, 2023

#378 in Network programming

Download history 129/week @ 2024-01-01 228/week @ 2024-01-08 464/week @ 2024-01-15 349/week @ 2024-01-22 170/week @ 2024-01-29 101/week @ 2024-02-05 755/week @ 2024-02-12 1321/week @ 2024-02-19 248/week @ 2024-02-26 566/week @ 2024-03-04 41/week @ 2024-03-11 3312/week @ 2024-03-18 447/week @ 2024-03-25 499/week @ 2024-04-01 206/week @ 2024-04-08 194/week @ 2024-04-15

1,351 downloads per month

GPL-3.0 license

1MB
15K 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

~52–93MB
~2M SLoC