Crate melwalletd_prot

Crate melwalletd_prot 

Source
Expand description

Crate defining the nanorpc (JSON-RPC 2.0) protocol exposed by melwalletd, the reference Themelio wallet microservice implementation.

As a user, you almost certainly only care about MelwalletdClient, which you would generally want to wrap around an HTTP-based nanorpc::RpcTransport in order to talk to melwalletd.

Modules§

types

Structs§

MelwalletdClient
Automatically generated client type that communicates to servers implementing the MelwalletdProtocol protocol. The easiest way to use this is by using the From<RpcTransport> implementation.
MelwalletdService
Automatically generated struct that wraps any ‘business logic’ struct implementing MelwalletdProtocol, and returns a JSON-RPC server implementing nanorpc::RpcService. See the MelwalletdProtocol trait for further documentation.

Enums§

MelwalletdError
Automatically generated error type that MelwalletdClient instances return from its methods

Traits§

MelwalletdProtocol
A nanorpc_derive trait that describes the RPC protocol exposed by a melwalletd daemon.