5 releases

new 0.6.41 Jan 14, 2025
0.6.40 Jan 9, 2025
0.6.39 Jan 6, 2025
0.6.38 Dec 21, 2024
0.6.37 Dec 18, 2024

#513 in Network programming

Download history 88/week @ 2024-12-13 112/week @ 2024-12-20 2/week @ 2024-12-27 179/week @ 2025-01-03 157/week @ 2025-01-10

481 downloads per month

GPL-3.0 license

445KB
7.5K SLoC

Antnode RPC Client

This crate provides a client for the RPC protocol for interacting with antnode. 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 antnode 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 antnode released version, and restart it

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

Dependencies

~71–110MB
~2M SLoC