20 #include <ripple/app/main/Application.h>
21 #include <ripple/ledger/ReadView.h>
22 #include <ripple/protocol/jss.h>
23 #include <ripple/rpc/Context.h>
24 #include <ripple/rpc/impl/RPCHelpers.h>
46 jvResult[jss::error] =
"fieldNotFoundTransaction";
53 jvResult[jss::error] =
"notYetImplemented";
62 jvResult[jss::error] =
"malformedRequest";
66 auto [sttx, stobj] = lpLedger->
txRead(uTransID);
69 jvResult[jss::error] =
"transactionNotFound";
Value get(UInt index, const Value &defaultValue) const
If the array contains at least index+1 elements, returns the element value, otherwise returns default...
bool isNull() const
isNull() tests to see if this field is null.
Status lookupLedger(std::shared_ptr< ReadView const > &ledger, JsonContext &context, Json::Value &result)
Look up a ledger from a request and fill a Json::Result with the data representing a ledger.
virtual tx_type txRead(key_type const &key) const =0
Read a transaction from the tx map.
bool isMember(const char *key) const
Return true if the object has a member named key.
Json::Value doTransactionEntry(RPC::JsonContext &)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
constexpr bool parseHex(std::string_view sv)
Parse a hex string into a base_uint.
std::string asString() const
Returns the unquoted string value.