3#include <xrpl/protocol/tokens.h>
6#include <xrpl/basics/UnorderedContainers.h>
7#include <xrpl/basics/base_uint.h>
8#include <xrpl/json/json_value.h>
9#include <xrpl/protocol/json_get_or_throw.h>
72 return c == beast::kZero;
113 using namespace xrpl;
Integers of any length that is a multiple of 32-bits.
JSON (JavaScript Object Notation).
xrpl::AccountID getOrThrow(json::Value const &v, xrpl::SField const &field)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
bool isXRP(AccountID const &c)
std::optional< AccountID > parseBase58(std::string const &s)
Parse AccountID from checked, base58 string.
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
std::ostream & operator<<(std::ostream &out, BaseUInt< Bits, Tag > const &u)
std::string to_string(BaseUInt< Bits, Tag > const &a)
void initAccountIdCache(std::size_t count)
Initialize the global cache used to map AccountID to base58 conversions.
BaseUInt< 160, detail::AccountIDTag > AccountID
A 160-bit unsigned that uniquely identifies an account.
AccountID const & noAccount()
A placeholder for empty accounts.
AccountID const & xrpAccount()
Compute AccountID from public key.
bool toIssuer(AccountID &, std::string const &)
Convert hex or base58 string to AccountID.
XRPL_NO_SANITIZE_ADDRESS void Throw(Args &&... args)