20#ifndef RIPPLE_RPC_GRPCHANDLER_H_INCLUDED
21#define RIPPLE_RPC_GRPCHANDLER_H_INCLUDED
23#include <xrpld/rpc/Context.h>
25#include <xrpl/proto/org/xrpl/rpc/v1/xrp_ledger.pb.h>
27#include <grpcpp/grpcpp.h>
40doLedgerGrpc(RPC::GRPCContext<org::xrpl::rpc::v1::GetLedgerRequest>& context);
44 RPC::GRPCContext<org::xrpl::rpc::v1::GetLedgerEntryRequest>& context);
48 RPC::GRPCContext<org::xrpl::rpc::v1::GetLedgerDataRequest>& context);
52 RPC::GRPCContext<org::xrpl::rpc::v1::GetLedgerDiffRequest>& context);
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::pair< org::xrpl::rpc::v1::GetLedgerResponse, grpc::Status > doLedgerGrpc(RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerRequest > &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::GetLedgerDiffResponse, grpc::Status > doLedgerDiffGrpc(RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerDiffRequest > &context)
std::pair< org::xrpl::rpc::v1::GetLedgerDataResponse, grpc::Status > doLedgerDataGrpc(RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerDataRequest > &context)