Skip to main content

Crate sal_mycelium

Crate sal_mycelium 

Source
Expand description

SAL Mycelium - Client interface for interacting with Mycelium node’s HTTP API

This crate provides a client interface for interacting with a Mycelium node’s HTTP API. Mycelium is a decentralized networking project, and this SAL module allows Rust applications and herodo Rhai scripts to manage and communicate over a Mycelium network.

The module enables operations such as:

  • Querying node status and information
  • Managing peer connections (listing, adding, removing)
  • Inspecting routing tables (selected and fallback routes)
  • Sending messages to other Mycelium nodes
  • Receiving messages from subscribed topics

All interactions with the Mycelium API are performed asynchronously.

Modules§

rhai
Rhai wrappers for Mycelium client module functions

Functions§

add_peer
Add a new peer to the Mycelium node
get_node_info
Get information about the Mycelium node
list_fallback_routes
List all fallback routes in the Mycelium node
list_peers
List all peers connected to the Mycelium node
list_selected_routes
List all selected routes in the Mycelium node
receive_messages
Receive messages from a topic via the Mycelium node
remove_peer
Remove a peer from the Mycelium node
send_message
Send a message to a destination via the Mycelium node