1#include <test/jtx/pay.h>
3#include <test/jtx/Account.h>
4#include <test/jtx/amount.h>
6#include <xrpl/json/json_value.h>
7#include <xrpl/protocol/AccountID.h>
8#include <xrpl/protocol/TxFlags.h>
9#include <xrpl/protocol/jss.h>
21 jv[jss::TransactionType] = jss::Payment;
28 return pay(account.id(), to.
id(), amount);
json::Value getJson(JsonOptions=JsonOptions::Values::None) const override
Immutable cryptographic account descriptor.
AccountID id() const
Returns the Account ID.
json::Value pay(AccountID const &account, AccountID const &to, AnyAmount amount)
Create a payment.
std::string to_string(BaseUInt< Bits, Tag > const &a)
BaseUInt< 160, detail::AccountIDTag > AccountID
A 160-bit unsigned that uniquely identifies an account.
constexpr FlagValue tfFullyCanonicalSig
Amount specifier with an option for any issuer.
void to(AccountID const &id)