diff --git a/GRPCHandlers_8h_source.html b/GRPCHandlers_8h_source.html
index 576f5dd829..6c7d5ceb20 100644
--- a/GRPCHandlers_8h_source.html
+++ b/GRPCHandlers_8h_source.html
@@ -134,7 +134,7 @@ $(function() {
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::pair< org::xrpl::rpc::v1::GetLedgerResponse, grpc::Status > doLedgerGrpc(RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerRequest > &context)
-std::pair< org::xrpl::rpc::v1::GetLedgerEntryResponse, grpc::Status > doLedgerEntryGrpc(RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerEntryRequest > &context)
+std::pair< org::xrpl::rpc::v1::GetLedgerEntryResponse, grpc::Status > doLedgerEntryGrpc(RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerEntryRequest > &context)
std::pair< org::xrpl::rpc::v1::GetLedgerDiffResponse, grpc::Status > doLedgerDiffGrpc(RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerDiffRequest > &context)
std::pair< org::xrpl::rpc::v1::GetLedgerDataResponse, grpc::Status > doLedgerDataGrpc(RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerDataRequest > &context)
diff --git a/GRPCServer_8cpp_source.html b/GRPCServer_8cpp_source.html
index c74f7041b2..3c9e59fd45 100644
--- a/GRPCServer_8cpp_source.html
+++ b/GRPCServer_8cpp_source.html
@@ -801,7 +801,7 @@ $(function() {
bool isUnlimited(Role const &role)
ADMIN and IDENTIFIED roles shall have unlimited resources.
std::pair< org::xrpl::rpc::v1::GetLedgerResponse, grpc::Status > doLedgerGrpc(RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerRequest > &context)
-std::pair< org::xrpl::rpc::v1::GetLedgerEntryResponse, grpc::Status > doLedgerEntryGrpc(RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerEntryRequest > &context)
+std::pair< org::xrpl::rpc::v1::GetLedgerEntryResponse, grpc::Status > doLedgerEntryGrpc(RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerEntryRequest > &context)
void erase(STObject &st, TypedField< U > const &f)
Remove a field in an STObject.
Role
Indicates the level of administrative permission to grant.
diff --git a/Handler_8cpp_source.html b/Handler_8cpp_source.html
index e40e944ff7..bf40371b56 100644
--- a/Handler_8cpp_source.html
+++ b/Handler_8cpp_source.html
@@ -430,7 +430,7 @@ $(function() {
Json::Value doValidationCreate(RPC::JsonContext &)
Json::Value doGetAggregatePrice(RPC::JsonContext &context)
oracles: array of {account, oracle_document_id} base_asset: is the asset to be priced quote_asset: is...
Json::Value doSubmitMultiSigned(RPC::JsonContext &)
-Json::Value doLedgerEntry(RPC::JsonContext &)
+Json::Value doLedgerEntry(RPC::JsonContext &)
Json::Value doNFTBuyOffers(RPC::JsonContext &)
Json::Value doChannelAuthorize(RPC::JsonContext &)
Json::Value doNoRippleCheck(RPC::JsonContext &)
diff --git a/Handlers_8h_source.html b/Handlers_8h_source.html
index ce4739acd8..a8c8a4b610 100644
--- a/Handlers_8h_source.html
+++ b/Handlers_8h_source.html
@@ -259,7 +259,7 @@ $(function() {
Json::Value doValidationCreate(RPC::JsonContext &)
Json::Value doGetAggregatePrice(RPC::JsonContext &context)
oracles: array of {account, oracle_document_id} base_asset: is the asset to be priced quote_asset: is...
Json::Value doSubmitMultiSigned(RPC::JsonContext &)
-Json::Value doLedgerEntry(RPC::JsonContext &)
+Json::Value doLedgerEntry(RPC::JsonContext &)
Json::Value doNFTBuyOffers(RPC::JsonContext &)
Json::Value doChannelAuthorize(RPC::JsonContext &)
Json::Value doNoRippleCheck(RPC::JsonContext &)
diff --git a/LedgerEntry_8cpp_source.html b/LedgerEntry_8cpp_source.html
index c2c60577a4..7bb0a9e212 100644
--- a/LedgerEntry_8cpp_source.html
+++ b/LedgerEntry_8cpp_source.html
@@ -900,235 +900,241 @@ $(function() {
-
+
827 jvResult[jss::error] =
"malformedRequest";
-
- 832 (pd[jss::seq].
isInt() && pd[jss::seq].
asInt() < 0) ||
-
-
- 835 jvResult[jss::error] =
"malformedRequest";
-
-
-
- 839 auto const account = parseBase58<AccountID>(pd[jss::account].asString());
-
-
- 842 jvResult[jss::error] =
"malformedAddress";
-
-
-
-
-
-
-
-
+ 831 if (!pd[jss::account].isString())
+
+ 833 jvResult[jss::error] =
"malformedAddress";
+
+
+
+
+ 838 (pd[jss::seq].
isInt() && pd[jss::seq].
asInt() < 0) ||
+
+
+ 841 jvResult[jss::error] =
"malformedRequest";
+
+
+
+ 845 auto const account = parseBase58<AccountID>(pd[jss::account].asString());
+
+
+ 848 jvResult[jss::error] =
"malformedAddress";
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 873 static auto ledgerEntryParsers = std::to_array<LedgerEntry>({
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 894 {jss::permissioned_domain,
-
- 896 ltPERMISSIONED_DOMAIN},
-
-
-
-
- 901 {jss::xchain_owned_claim_id,
-
- 903 ltXCHAIN_OWNED_CLAIM_ID},
- 904 {jss::xchain_owned_create_account_claim_id,
-
- 906 ltXCHAIN_OWNED_CREATE_ACCOUNT_CLAIM_ID},
-
-
-
-
-
-
-
-
- 915 for (
const auto& ledgerEntry : ledgerEntryParsers)
-
-
-
- 919 expectedType = ledgerEntry.expectedType;
-
-
-
-
- 924 Json::Value const& params = ledgerEntry.fieldName == jss::bridge
-
- 926 : context.
params[ledgerEntry.fieldName];
- 927 uNodeIndex = ledgerEntry.parseFunction(params, jvResult)
- 928 .value_or(beast::zero);
- 929 if (jvResult.isMember(jss::error))
-
-
-
-
-
-
-
-
-
-
-
- 941 jvResult[jss::error] =
"unknownOption";
-
- 943 jvResult[jss::error] =
"invalidParams";
-
-
-
-
-
-
-
-
-
- 953 jvResult[jss::error] =
"invalidParams";
-
-
-
-
-
-
- 960 if (uNodeIndex.isZero())
-
- 962 jvResult[jss::error] =
"entryNotFound";
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 879 static auto ledgerEntryParsers = std::to_array<LedgerEntry>({
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 900 {jss::permissioned_domain,
+
+ 902 ltPERMISSIONED_DOMAIN},
+
+
+
+
+ 907 {jss::xchain_owned_claim_id,
+
+ 909 ltXCHAIN_OWNED_CLAIM_ID},
+ 910 {jss::xchain_owned_create_account_claim_id,
+
+ 912 ltXCHAIN_OWNED_CREATE_ACCOUNT_CLAIM_ID},
+
+
+
+
+
+
+
+
+ 921 for (
const auto& ledgerEntry : ledgerEntryParsers)
+
+
+
+ 925 expectedType = ledgerEntry.expectedType;
+
+
+
+
+ 930 Json::Value const& params = ledgerEntry.fieldName == jss::bridge
+
+ 932 : context.
params[ledgerEntry.fieldName];
+ 933 uNodeIndex = ledgerEntry.parseFunction(params, jvResult)
+ 934 .value_or(beast::zero);
+ 935 if (jvResult.isMember(jss::error))
+
+
+
+
+
+
+
+
+
+
+
+ 947 jvResult[jss::error] =
"unknownOption";
+
+ 949 jvResult[jss::error] =
"invalidParams";
+
+
+
+
+
+
+
+
+
+ 959 jvResult[jss::error] =
"invalidParams";
+
+
+
+
-
-
- 968 bool bNodeBinary =
false;
-
-
+ 966 if (uNodeIndex.isZero())
+
+ 968 jvResult[jss::error] =
"entryNotFound";
+
+
-
-
-
- 975 jvResult[jss::error] =
"entryNotFound";
-
-
-
- 979 if ((expectedType !=
ltANY) && (expectedType != sleNode->getType()))
-
- 981 jvResult[jss::error] =
"unexpectedLedgerType";
+
+
+ 974 bool bNodeBinary =
false;
+
+
+
+
+
+
+ 981 jvResult[jss::error] =
"entryNotFound";
-
+ 985 if ((expectedType !=
ltANY) && (expectedType != sleNode->getType()))
-
-
-
+ 987 jvResult[jss::error] =
"unexpectedLedgerType";
+
+
-
- 992 jvResult[jss::index] =
to_string(uNodeIndex);
-
-
-
-
- 997 jvResult[jss::index] =
to_string(uNodeIndex);
-
-
-
-
-
-
-
-
-
- 1007 org::xrpl::rpc::v1::GetLedgerEntryRequest& request = context.
params;
- 1008 org::xrpl::rpc::v1::GetLedgerEntryResponse response;
- 1009 grpc::Status status = grpc::Status::OK;
-
-
-
-
- 1014 grpc::Status errorStatus;
-
-
- 1017 errorStatus = grpc::Status(
- 1018 grpc::StatusCode::INVALID_ARGUMENT, status.message());
-
-
-
-
- 1023 grpc::Status(grpc::StatusCode::NOT_FOUND, status.message());
-
- 1025 return {response, errorStatus};
-
-
-
-
-
- 1031 grpc::Status errorStatus{
- 1032 grpc::StatusCode::INVALID_ARGUMENT,
"index malformed"};
- 1033 return {response, errorStatus};
-
-
-
-
-
- 1039 grpc::Status errorStatus{
- 1040 grpc::StatusCode::NOT_FOUND,
"object not found"};
- 1041 return {response, errorStatus};
-
-
-
-
-
- 1047 auto& stateObject = *response.mutable_ledger_object();
-
- 1049 stateObject.set_key(request.key());
- 1050 *(response.mutable_ledger()) = request.ledger();
- 1051 return {response, status};
-
-
+
+
+
+
+
+
+
+ 998 jvResult[jss::index] =
to_string(uNodeIndex);
+
+
+
+
+ 1003 jvResult[jss::index] =
to_string(uNodeIndex);
+
+
+
+
+
+
+
+
+
+ 1013 org::xrpl::rpc::v1::GetLedgerEntryRequest& request = context.
params;
+ 1014 org::xrpl::rpc::v1::GetLedgerEntryResponse response;
+ 1015 grpc::Status status = grpc::Status::OK;
+
+
+
+
+ 1020 grpc::Status errorStatus;
+
+
+ 1023 errorStatus = grpc::Status(
+ 1024 grpc::StatusCode::INVALID_ARGUMENT, status.message());
+
+
+
+
+ 1029 grpc::Status(grpc::StatusCode::NOT_FOUND, status.message());
+
+ 1031 return {response, errorStatus};
+
+
+
+
+
+ 1037 grpc::Status errorStatus{
+ 1038 grpc::StatusCode::INVALID_ARGUMENT,
"index malformed"};
+ 1039 return {response, errorStatus};
+
+
+
+
+
+ 1045 grpc::Status errorStatus{
+ 1046 grpc::StatusCode::NOT_FOUND,
"object not found"};
+ 1047 return {response, errorStatus};
+
+
+
+
+
+ 1053 auto& stateObject = *response.mutable_ledger_object();
+
+ 1055 stateObject.set_key(request.key());
+ 1056 *(response.mutable_ledger()) = request.ledger();
+ 1057 return {response, status};
+
+
Lightweight wrapper to tag static string.
@@ -1195,7 +1201,7 @@ $(function() {
static std::optional< uint256 > parseIndex(Json::Value const ¶ms, Json::Value &jvResult)
static STArray parseAuthorizeCredentials(Json::Value const &jv)
std::optional< Blob > strUnHex(std::size_t strSize, Iterator begin, Iterator end)
-Json::Value doLedgerEntry(RPC::JsonContext &)
+Json::Value doLedgerEntry(RPC::JsonContext &)
static std::optional< uint256 > parsePaymentChannel(Json::Value const ¶ms, Json::Value &jvResult)
static std::optional< uint256 > parseAMM(Json::Value const ¶ms, Json::Value &jvResult)
@@ -1211,7 +1217,7 @@ $(function() {
std::string strHex(FwdIt begin, FwdIt end)
static std::optional< uint256 > parseEscrow(Json::Value const ¶ms, Json::Value &jvResult)
std::size_t constexpr maxCredentialsArraySize
The maximum number of credentials can be passed in array.
-std::pair< org::xrpl::rpc::v1::GetLedgerEntryResponse, grpc::Status > doLedgerEntryGrpc(RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerEntryRequest > &context)
+std::pair< org::xrpl::rpc::v1::GetLedgerEntryResponse, grpc::Status > doLedgerEntryGrpc(RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerEntryRequest > &context)
static std::optional< uint256 > parseXChainOwnedCreateAccountClaimID(Json::Value const &claim_id, Json::Value &jvResult)
std::size_t constexpr maxCredentialTypeLength
The maximum length of a CredentialType inside a Credential.
uint256 getTicketIndex(AccountID const &account, std::uint32_t uSequence)
@@ -1235,10 +1241,10 @@ $(function() {
A pair of SHAMap key and LedgerEntryType.
-
-LedgerEntryType expectedType
-Json::StaticString fieldName
-FunctionType parseFunction
+
+LedgerEntryType expectedType
+Json::StaticString fieldName
+FunctionType parseFunction
diff --git a/LedgerRPC__test_8cpp_source.html b/LedgerRPC__test_8cpp_source.html
index ebce781c43..971a32973c 100644
--- a/LedgerRPC__test_8cpp_source.html
+++ b/LedgerRPC__test_8cpp_source.html
@@ -3263,72 +3263,83 @@ $(function() {
3189 params[jss::permissioned_domain][jss::account] = 1;
3190 params[jss::permissioned_domain][jss::seq] =
seq;
3191 auto const jrr = env.
rpc(
"json",
"ledger_entry",
to_string(params));
-
+
-
+
3198 params[jss::ledger_index] = jss::validated;
- 3199 params[jss::permissioned_domain][jss::account] =
"";
- 3200 params[jss::permissioned_domain][jss::seq] =
seq;
- 3201 auto const jrr = env.
rpc(
"json",
"ledger_entry",
to_string(params));
-
-
-
-
-
-
- 3208 params[jss::ledger_index] = jss::validated;
- 3209 params[jss::permissioned_domain][jss::account] = alice.human();
- 3210 params[jss::permissioned_domain][jss::seq] =
"12g";
- 3211 auto const jrr = env.
rpc(
"json",
"ledger_entry",
to_string(params));
-
-
-
+ 3199 params[jss::permissioned_domain][jss::account] =
+
+ 3201 params[jss::permissioned_domain][jss::seq] =
seq;
+ 3202 auto const jrr = env.
rpc(
"json",
"ledger_entry",
to_string(params));
+
+
+
+
+
+
+ 3209 params[jss::ledger_index] = jss::validated;
+ 3210 params[jss::permissioned_domain][jss::account] =
"";
+ 3211 params[jss::permissioned_domain][jss::seq] =
seq;
+ 3212 auto const jrr = env.
rpc(
"json",
"ledger_entry",
to_string(params));
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 3254BEAST_DEFINE_TESTSUITE(LedgerRPC, app,
ripple);
- 3255BEAST_DEFINE_TESTSUITE(LedgerRPC_XChain, app,
ripple);
-
-
+
+
+
+ 3219 params[jss::ledger_index] = jss::validated;
+ 3220 params[jss::permissioned_domain][jss::account] = alice.human();
+ 3221 params[jss::permissioned_domain][jss::seq] =
"12g";
+ 3222 auto const jrr = env.
rpc(
"json",
"ledger_entry",
to_string(params));
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 3265BEAST_DEFINE_TESTSUITE(LedgerRPC, app,
ripple);
+ 3266BEAST_DEFINE_TESTSUITE(LedgerRPC_XChain, app,
ripple);
+
+
@@ -3375,7 +3386,7 @@ $(function() {
void testMissingLedgerEntryLedgerHash()
void testLedgerAccounts()
void testLedgerEntryDepositPreauthCred()
-void run() override
Runs the suite.
+void run() override
Runs the suite.
void testLedgerEntryInvalidParams(unsigned int apiVersion)
void testLedgerEntryCLI()
diff --git a/classripple_1_1LedgerRPC__test.html b/classripple_1_1LedgerRPC__test.html
index d8327e254c..5db7f8e91d 100644
--- a/classripple_1_1LedgerRPC__test.html
+++ b/classripple_1_1LedgerRPC__test.html
@@ -1169,7 +1169,7 @@ Private Attributes
Implements beast::unit_test::suite.
-Definition at line 3218 of file LedgerRPC_test.cpp.
+Definition at line 3229 of file LedgerRPC_test.cpp.
diff --git a/namespaceripple.html b/namespaceripple.html
index 745689905c..f02e328d92 100644
--- a/namespaceripple.html
+++ b/namespaceripple.html
@@ -7780,7 +7780,7 @@ template<class T >
@@ -42172,7 +42172,7 @@ template<class T >
@@ -43278,7 +43278,7 @@ template<class T >
diff --git a/structripple_1_1LedgerEntry.html b/structripple_1_1LedgerEntry.html
index 007d870634..ecc1e1a15a 100644
--- a/structripple_1_1LedgerEntry.html
+++ b/structripple_1_1LedgerEntry.html
@@ -101,7 +101,7 @@ Public Attributes
-
Definition at line 852 of file LedgerEntry.cpp.
+
Definition at line 858 of file LedgerEntry.cpp.
◆ fieldName
@@ -115,7 +115,7 @@ Public Attributes
@@ -131,7 +131,7 @@ Public Attributes
@@ -147,7 +147,7 @@ Public Attributes