20 #ifndef RIPPLE_RPC_GRPCHANDLER_H_INCLUDED
21 #define RIPPLE_RPC_GRPCHANDLER_H_INCLUDED
23 #include <ripple/rpc/Context.h>
24 #include <grpcpp/grpcpp.h>
25 #include <org/xrpl/rpc/v1/xrp_ledger.pb.h>
39 RPC::GRPCContext<org::xrpl::rpc::v1::GetAccountInfoRequest>& context);
42 doFeeGrpc(RPC::GRPCContext<org::xrpl::rpc::v1::GetFeeRequest>& context);
46 RPC::GRPCContext<org::xrpl::rpc::v1::SubmitTransactionRequest>& context);
50 doTxGrpc(RPC::GRPCContext<org::xrpl::rpc::v1::GetTransactionRequest>& context);
53 org::xrpl::rpc::v1::GetAccountTransactionHistoryResponse,
56 RPC::GRPCContext<org::xrpl::rpc::v1::GetAccountTransactionHistoryRequest>&
60 doLedgerGrpc(RPC::GRPCContext<org::xrpl::rpc::v1::GetLedgerRequest>& context);
64 RPC::GRPCContext<org::xrpl::rpc::v1::GetLedgerEntryRequest>& context);
68 RPC::GRPCContext<org::xrpl::rpc::v1::GetLedgerDataRequest>& context);
72 RPC::GRPCContext<org::xrpl::rpc::v1::GetLedgerDiffRequest>& context);
std::pair< org::xrpl::rpc::v1::GetAccountTransactionHistoryResponse, grpc::Status > doAccountTxGrpc(RPC::GRPCContext< org::xrpl::rpc::v1::GetAccountTransactionHistoryRequest > &context)
std::pair< org::xrpl::rpc::v1::GetLedgerResponse, grpc::Status > doLedgerGrpc(RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerRequest > &context)
std::pair< org::xrpl::rpc::v1::GetLedgerDiffResponse, grpc::Status > doLedgerDiffGrpc(RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerDiffRequest > &context)
std::pair< org::xrpl::rpc::v1::GetLedgerEntryResponse, grpc::Status > doLedgerEntryGrpc(RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerEntryRequest > &context)
std::pair< org::xrpl::rpc::v1::GetTransactionResponse, grpc::Status > doTxGrpc(RPC::GRPCContext< org::xrpl::rpc::v1::GetTransactionRequest > &context)
std::pair< org::xrpl::rpc::v1::GetLedgerDataResponse, grpc::Status > doLedgerDataGrpc(RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerDataRequest > &context)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::pair< org::xrpl::rpc::v1::GetFeeResponse, grpc::Status > doFeeGrpc(RPC::GRPCContext< org::xrpl::rpc::v1::GetFeeRequest > &context)
std::pair< org::xrpl::rpc::v1::GetAccountInfoResponse, grpc::Status > doAccountInfoGrpc(RPC::GRPCContext< org::xrpl::rpc::v1::GetAccountInfoRequest > &context)
std::pair< org::xrpl::rpc::v1::SubmitTransactionResponse, grpc::Status > doSubmitGrpc(RPC::GRPCContext< org::xrpl::rpc::v1::SubmitTransactionRequest > &context)