20 #include <ripple/rpc/NFTokenOfferID.h>
22 #include <ripple/app/ledger/LedgerMaster.h>
23 #include <ripple/app/ledger/OpenLedger.h>
24 #include <ripple/app/misc/Transaction.h>
25 #include <ripple/ledger/View.h>
26 #include <ripple/net/RPCErr.h>
27 #include <ripple/protocol/AccountID.h>
28 #include <ripple/protocol/Feature.h>
29 #include <ripple/rpc/Context.h>
30 #include <ripple/rpc/impl/RPCHelpers.h>
31 #include <boost/algorithm/string/case_conv.hpp>
39 TxMeta const& transactionMeta)
44 TxType const tt = serializedTx->getTxnType();
73 TxMeta const& transactionMeta)
@ ttNFTOKEN_CREATE_OFFER
This transaction creates a new offer to buy or sell an NFT.
bool canHaveNFTokenOfferID(std::shared_ptr< STTx const > const &serializedTx, TxMeta const &transactionMeta)
Add an offer_id field to the meta output parameter.
const SF_UINT256 sfLedgerIndex
TxType
Transaction type identifiers.
@ ltNFTOKEN_OFFER
A ledger object which identifies an offer to buy or sell an NFT.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
const SF_UINT16 sfLedgerEntryType
const SField sfCreatedNode
std::optional< uint256 > getOfferIDFromCreatedOffer(TxMeta const &transactionMeta)
std::string to_string(Manifest const &m)
Format the specified manifest to a string for debugging purposes.
void insertNFTokenOfferID(Json::Value &response, std::shared_ptr< STTx const > const &transaction, TxMeta const &transactionMeta)