30class NFTHistoryHandler :
public rpc::spec::HandlerFor<rpc::spec::handlers::nft_history::Input> {
32 std::shared_ptr<BackendInterface> sharedPtrBackend_;
35 static constexpr auto kLimitMin = rpc::spec::handlers::nft_history::kLimitMin;
36 static constexpr auto kLimitMax = rpc::spec::handlers::nft_history::kLimitMax;
37 static constexpr auto kLimitDefault = rpc::spec::handlers::nft_history::kLimitDefault;
42 using Marker = rpc::spec::handlers::nft_history::Marker;
49 uint32_t ledgerIndexMin{0};
50 uint32_t ledgerIndexMax{0};
51 std::optional<uint32_t> limit;
52 std::optional<Marker> marker;
54 boost::json::array transactions;
56 bool validated =
true;
67 : sharedPtrBackend_(std::move(sharedPtrBackend))
89 tag_invoke(boost::json::value_from_tag, boost::json::value& jv, Output
const& output);
NFTHistoryHandler(std::shared_ptr< BackendInterface > sharedPtrBackend)
Construct a new NFTHistoryHandler object.
Definition NFTHistory.hpp:66
rpc::spec::handlers::nft_history::Marker Marker
A struct to hold the marker data.
Definition NFTHistory.hpp:42
friend void tag_invoke(boost::json::value_from_tag, boost::json::value &jv, Output const &output)
Convert the Output to a JSON object.
Definition NFTHistory.cpp:165
Result process(Input const &input, Context const &ctx) const
Process the NFTHistory command.
Definition NFTHistory.cpp:34
A struct to hold the output data of the command.
Definition NFTHistory.hpp:47