xrpld
Loading...
Searching...
No Matches
xrpl::RPC::LedgerHandler Class Reference

#include <Ledger.h>

Collaboration diagram for xrpl::RPC::LedgerHandler:

Public Member Functions

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

Static Public Attributes

static constexpr char name [] = "ledger"
static constexpr unsigned minApiVer = RPC::kApiMinimumSupportedVersion
static constexpr unsigned maxApiVer = RPC::kApiMaximumValidVersion
static constexpr Role role = Role::USER
static constexpr Condition condition = Condition::NoCondition

Private Attributes

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

Detailed Description

Definition at line 29 of file src/xrpld/rpc/handlers/ledger/Ledger.h.

Constructor & Destructor Documentation

◆ LedgerHandler()

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

Definition at line 39 of file xrpld/rpc/handlers/ledger/Ledger.cpp.

Member Function Documentation

◆ check()

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

Definition at line 44 of file xrpld/rpc/handlers/ledger/Ledger.cpp.

◆ writeResult()

void xrpl::RPC::LedgerHandler::writeResult ( json::Value & value)

Definition at line 129 of file xrpld/rpc/handlers/ledger/Ledger.cpp.

Member Data Documentation

◆ name

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

Definition at line 41 of file src/xrpld/rpc/handlers/ledger/Ledger.h.

◆ minApiVer

unsigned xrpl::RPC::LedgerHandler::minApiVer = RPC::kApiMinimumSupportedVersion
staticconstexpr

Definition at line 43 of file src/xrpld/rpc/handlers/ledger/Ledger.h.

◆ maxApiVer

unsigned xrpl::RPC::LedgerHandler::maxApiVer = RPC::kApiMaximumValidVersion
staticconstexpr

Definition at line 45 of file src/xrpld/rpc/handlers/ledger/Ledger.h.

◆ role

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

Definition at line 47 of file src/xrpld/rpc/handlers/ledger/Ledger.h.

◆ condition

Condition xrpl::RPC::LedgerHandler::condition = Condition::NoCondition
staticconstexpr

Definition at line 49 of file src/xrpld/rpc/handlers/ledger/Ledger.h.

◆ context_

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

Definition at line 53 of file src/xrpld/rpc/handlers/ledger/Ledger.h.

◆ ledger_

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

Definition at line 54 of file src/xrpld/rpc/handlers/ledger/Ledger.h.

◆ queueTxs_

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

Definition at line 55 of file src/xrpld/rpc/handlers/ledger/Ledger.h.

◆ result_

json::Value xrpl::RPC::LedgerHandler::result_
private

Definition at line 56 of file src/xrpld/rpc/handlers/ledger/Ledger.h.

◆ options_

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

Definition at line 57 of file src/xrpld/rpc/handlers/ledger/Ledger.h.