|
xrpld
|
Handles the nft_buy_offers RPC method. More...
#include <NFTBuyOffers.h>


Public Member Functions | |
| NFTBuyOffersHandler (JsonContext &context) | |
| Construct a handler for a single request. | |
| std::expected< Output, ::rpc::Status > | process (Input const &input) const |
| Process the request. | |
Static Public Member Functions | |
| static void | writeResult (json::Value &value, Output const &output) |
| Write the output of process() into the response. | |
Protected Member Functions | |
| std::expected< Output, ::rpc::Status > | enumerateOffers (Input const &input, Keylet const &directory) const |
| Enumerate one page of an NFT offer directory. | |
Private Attributes | |
| std::reference_wrapper< JsonContext > | context_ |
Handles the nft_buy_offers RPC method.
The request is parsed by ::rpc::spec::handlers::nft_offers_common.
Definition at line 17 of file NFTBuyOffers.h.
|
explicit |
Construct a handler for a single request.
| context | The context of the request being handled. |
Definition at line 14 of file NFTBuyOffers.cpp.
|
nodiscard |
Process the request.
| input | The request, parsed and validated by the spec. |
Definition at line 19 of file NFTBuyOffers.cpp.
|
staticinherited |
Write the output of process() into the response.
| value | The response to write into. |
| output | The output process() returned. |
Definition at line 141 of file NFTOffersCommon.cpp.
|
nodiscardprotectedinherited |
Enumerate one page of an NFT offer directory.
| input | The request, parsed and validated by the spec. |
| directory | The buy or sell offer directory of the NFT. |
Definition at line 63 of file NFTOffersCommon.cpp.
|
privateinherited |
Definition at line 70 of file NFTOffersCommon.h.