rippled
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
xrpl::RPC::LedgerHandler Class Reference

#include <LedgerHandler.h>

Collaboration diagram for xrpl::RPC::LedgerHandler:
Collaboration graph
[legend]

Public Member Functions

 LedgerHandler (JsonContext &)
 
Status check ()
 
void writeResult (Json::Value &)
 

Static Public Attributes

static constexpr char name [] = "ledger"
 
static constexpr unsigned minApiVer = RPC::apiMinimumSupportedVersion
 
static constexpr unsigned maxApiVer = RPC::apiMaximumValidVersion
 
static constexpr Role role = Role::USER
 
static constexpr Condition condition = NO_CONDITION
 

Private Attributes

JsonContextcontext_
 
std::shared_ptr< ReadView const > ledger_
 
std::vector< TxQ::TxDetailsqueueTxs_
 
Json::Value result_
 
int options_ = 0
 

Detailed Description

Definition at line 31 of file LedgerHandler.h.

Constructor & Destructor Documentation

◆ LedgerHandler()

xrpl::RPC::LedgerHandler::LedgerHandler ( JsonContext context)
explicit

Definition at line 16 of file LedgerHandler.cpp.

Member Function Documentation

◆ check()

Status xrpl::RPC::LedgerHandler::check ( )

Definition at line 21 of file LedgerHandler.cpp.

◆ writeResult()

void xrpl::RPC::LedgerHandler::writeResult ( Json::Value value)

Definition at line 79 of file LedgerHandler.cpp.

Member Data Documentation

◆ name

constexpr char xrpl::RPC::LedgerHandler::name[] = "ledger"
staticconstexpr

Definition at line 42 of file LedgerHandler.h.

◆ minApiVer

constexpr unsigned xrpl::RPC::LedgerHandler::minApiVer = RPC::apiMinimumSupportedVersion
staticconstexpr

Definition at line 44 of file LedgerHandler.h.

◆ maxApiVer

constexpr unsigned xrpl::RPC::LedgerHandler::maxApiVer = RPC::apiMaximumValidVersion
staticconstexpr

Definition at line 46 of file LedgerHandler.h.

◆ role

constexpr Role xrpl::RPC::LedgerHandler::role = Role::USER
staticconstexpr

Definition at line 48 of file LedgerHandler.h.

◆ condition

constexpr Condition xrpl::RPC::LedgerHandler::condition = NO_CONDITION
staticconstexpr

Definition at line 50 of file LedgerHandler.h.

◆ context_

JsonContext& xrpl::RPC::LedgerHandler::context_
private

Definition at line 53 of file LedgerHandler.h.

◆ ledger_

std::shared_ptr<ReadView const> xrpl::RPC::LedgerHandler::ledger_
private

Definition at line 54 of file LedgerHandler.h.

◆ queueTxs_

std::vector<TxQ::TxDetails> xrpl::RPC::LedgerHandler::queueTxs_
private

Definition at line 55 of file LedgerHandler.h.

◆ result_

Json::Value xrpl::RPC::LedgerHandler::result_
private

Definition at line 56 of file LedgerHandler.h.

◆ options_

int xrpl::RPC::LedgerHandler::options_ = 0
private

Definition at line 57 of file LedgerHandler.h.