1#include <xrpld/app/main/Application.h>
2#include <xrpld/app/misc/DeliverMax.h>
3#include <xrpld/app/misc/Transaction.h>
4#include <xrpld/rpc/Context.h>
5#include <xrpld/rpc/Role.h>
7#include <xrpl/protocol/ErrorCodes.h>
8#include <xrpl/protocol/RPCErr.h>
9#include <xrpl/protocol/jss.h>
10#include <xrpl/rdb/RelationalDatabase.h>
11#include <xrpl/resource/Fees.h>
29 unsigned int const startIndex = context.
params[jss::start].
asUInt();
38 obj[jss::index] = startIndex;
40 for (
auto const& t : trans)
Value & append(Value const &value)
Append value to array at the end.
bool isMember(char const *key) const
Return true if the object has a member named key.
virtual Config & config()=0
virtual std::vector< std::shared_ptr< Transaction > > getTxHistory(LedgerIndex startIndex)=0
getTxHistory Returns the 20 most recent transactions starting from the given number.
virtual RelationalDatabase & getRelationalDatabase()=0
void insertDeliverMax(json::Value &txJson, TxType txnType, unsigned int apiVersion)
Copy Amount field to DeliverMax field in transaction output JSON.
Charge const kFeeMediumBurdenRpc
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
json::Value rpcError(ErrorCodeI iError)
json::Value doTxHistory(RPC::JsonContext &)
bool isUnlimited(Role const &role)
ADMIN and IDENTIFIED roles shall have unlimited resources.
Resource::Charge & loadType