1#include <xrpld/app/misc/DeliverMax.h>
3#include <xrpl/protocol/jss.h>
13 if (txnType == ttPAYMENT)
15 tx_json[jss::DeliverMax] = tx_json[jss::Amount];
Value removeMember(char const *key)
Remove and return the named member.
bool isMember(char const *key) const
Return true if the object has a member named key.
static constexpr std::integral_constant< unsigned, Version > apiVersion
void insertDeliverMax(Json::Value &tx_json, TxType txnType, unsigned int apiVersion)
Copy Amount field to DeliverMax field in transaction output JSON.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
TxType
Transaction type identifiers.