6#ifndef OPENCBDC_TX_SRC_COORDINATOR_CLIENT_H_
7#define OPENCBDC_TX_SRC_COORDINATOR_CLIENT_H_
19 explicit client(std::vector<network::endpoint_t> endpoints);
46 std::unique_ptr<cbdc::rpc::tcp_client<request, response>> m_client;
Interface for a coordinator.
std::function< void(std::optional< bool >)> callback_type
Signature of callback function for a transaction execution result.
RPC client for a coordinator.
auto init() -> bool
Initializes the RPC client by connecting to the coordinator cluster and starting a response handler t...
auto operator=(const client &) -> client &=delete
client(const client &)=delete
auto operator=(client &&) -> client &=delete
~client() override=default
auto execute_transaction(transaction::compact_tx tx, callback_type result_callback) -> bool override
Requests execution of the given transaction using the coordinator cluster.
A condensed, hash-only transaction representation.