add nft_page (#637)

Fixes #638
This commit is contained in:
cyan317
2023-05-15 13:00:35 +01:00
committed by GitHub
parent 9adcaeb21b
commit 14978ca91d
3 changed files with 16 additions and 4 deletions

View File

@@ -189,6 +189,7 @@ tag_invoke(boost::json::value_to_tag<LedgerEntryHandler::Input>, boost::json::va
{JS(payment_channel), ripple::ltPAYCHAN},
{JS(deposit_preauth), ripple::ltDEPOSIT_PREAUTH},
{JS(ticket), ripple::ltTICKET},
{JS(nft_page), ripple::ltNFTOKEN_PAGE},
};
auto const indexFieldType =

View File

@@ -28,7 +28,6 @@ namespace RPC {
/**
* @brief The ledger_entry method returns a single ledger object from the XRP Ledger in its raw format.
* The clio has not supported: nft_page
*
* For more details see: https://xrpl.org/ledger_entry.html
*/
@@ -47,7 +46,6 @@ public:
bool validated = true;
};
// TODO: nft_page has not been implemented
struct Input
{
std::optional<std::string> ledgerHash;
@@ -156,6 +154,7 @@ public:
{JS(ticket_seq), validation::Required{}, validation::Type<uint32_t>{}},
},
}},
{JS(nft_page), validation::Uint256HexStringValidator},
};
return rpcSpec;