Module service

Source
Expand description

Convenience functions for Cuprate’s various tower::Service requests/responses.

This module implements many methods for CupratedRpcHandler that are simple wrappers around the request/response API provided by the multiple tower::Services.

These exist to prevent noise like unreachable!() from being everywhere in the actual handler functions.

Each module implements methods for a specific API, e.g. the blockchain modules contains methods for the blockchain database tower::Service API.

Modules§

address_book 🔒
Functions to send AddressBookRequests.
blockchain 🔒
Functions to send BlockchainReadRequests.
blockchain_context 🔒
Functions to send BlockChainContextRequests.
blockchain_manager 🔒
Functions to send BlockchainManagerRequests.
txpool 🔒
Functions to send TxpoolReadRequests.