xrpld
Loading...
Searching...
No Matches
NFTBuyOffers.cpp
1#include <xrpld/rpc/handlers/orderbook/NFTBuyOffers.h>
2
3#include <xrpld/rpc/Context.h>
4#include <xrpld/rpc/handlers/orderbook/NFTOffersCommon.h>
5
6#include <xrpl/protocol/Indexes.h>
7
8#include <rpcspec/Errors.hpp>
9
10#include <expected>
11
12namespace xrpl::rpc {
13
17
18std::expected<NFTBuyOffersHandler::Output, ::rpc::Status>
19NFTBuyOffersHandler::process(Input const& input) const
20{
21 return enumerateOffers(input, keylet::nftBuys(input.nftID));
22}
23
24} // namespace xrpl::rpc
std::expected< Output, ::rpc::Status > process(Input const &input) const
Process the request.
NFTBuyOffersHandler(JsonContext &context)
Construct a handler for a single request.
NFTOffersHandlerBase(JsonContext &context)
Construct a handler for a single request.
std::expected< Output, ::rpc::Status > enumerateOffers(Input const &input, Keylet const &directory) const
Enumerate one page of an NFT offer directory.
Keylet nftBuys(UInt256 const &id) noexcept
The directory of buy offers for the specified NFT.
Definition Indexes.cpp:471
The api_version numbers this server serves.
Definition ApiVersion.h:26