4#include <xrpl/protocol/STTx.h>
5#include <xrpl/protocol/STParsedJSON.h>
6#include <xrpl/protocol/jss.h>
7#include <xrpl/protocol_autogen/TransactionBase.h>
8#include <xrpl/protocol_autogen/TransactionBuilderBase.h>
9#include <xrpl/json/json_value.h>
16class NFTokenMintBuilder;
55 SF_UINT32::type::value_type
58 return this->
tx_->at(sfNFTokenTaxon);
71 return this->
tx_->at(sfTransferFee);
84 return this->
tx_->isFieldPresent(sfTransferFee);
97 return this->
tx_->at(sfIssuer);
110 return this->
tx_->isFieldPresent(sfIssuer);
123 return this->
tx_->at(sfURI);
136 return this->
tx_->isFieldPresent(sfURI);
149 return this->
tx_->at(sfAmount);
162 return this->
tx_->isFieldPresent(sfAmount);
175 return this->
tx_->at(sfDestination);
188 return this->
tx_->isFieldPresent(sfDestination);
201 return this->
tx_->at(sfExpiration);
214 return this->
tx_->isFieldPresent(sfExpiration);
251 if (tx->getTxnType() != ttNFTOKEN_MINT)
267 object_[sfNFTokenTaxon] = value;
278 object_[sfTransferFee] = value;
322 object_[sfDestination] = value;
346 sign(publicKey, secretKey);
Builder for NFTokenMint transactions.
NFTokenMintBuilder & setExpiration(std::decay_t< typename SF_UINT32::type::value_type > const &value)
Set sfExpiration (soeOPTIONAL)
NFTokenMintBuilder & setIssuer(std::decay_t< typename SF_ACCOUNT::type::value_type > const &value)
Set sfIssuer (soeOPTIONAL)
NFTokenMint build(PublicKey const &publicKey, SecretKey const &secretKey)
Build and return the NFTokenMint wrapper.
NFTokenMintBuilder & setDestination(std::decay_t< typename SF_ACCOUNT::type::value_type > const &value)
Set sfDestination (soeOPTIONAL)
NFTokenMintBuilder & setNFTokenTaxon(std::decay_t< typename SF_UINT32::type::value_type > const &value)
Transaction-specific field setters.
NFTokenMintBuilder(std::shared_ptr< STTx const > tx)
Construct a NFTokenMintBuilder from an existing STTx object.
NFTokenMintBuilder & setAmount(std::decay_t< typename SF_AMOUNT::type::value_type > const &value)
Set sfAmount (soeOPTIONAL)
NFTokenMintBuilder & setTransferFee(std::decay_t< typename SF_UINT16::type::value_type > const &value)
Set sfTransferFee (soeOPTIONAL)
NFTokenMintBuilder(SF_ACCOUNT::type::value_type account, std::decay_t< typename SF_UINT32::type::value_type > const &nFTokenTaxon, std::optional< SF_UINT32::type::value_type > sequence=std::nullopt, std::optional< SF_AMOUNT::type::value_type > fee=std::nullopt)
Construct a new NFTokenMintBuilder with required fields.
NFTokenMintBuilder & setURI(std::decay_t< typename SF_VL::type::value_type > const &value)
Set sfURI (soeOPTIONAL)
Transaction: NFTokenMint.
bool hasTransferFee() const
Check if sfTransferFee is present.
bool hasAmount() const
Check if sfAmount is present.
bool hasURI() const
Check if sfURI is present.
protocol_autogen::Optional< SF_ACCOUNT::type::value_type > getIssuer() const
Get sfIssuer (soeOPTIONAL)
NFTokenMint(std::shared_ptr< STTx const > tx)
Construct a NFTokenMint transaction wrapper from an existing STTx object.
protocol_autogen::Optional< SF_UINT16::type::value_type > getTransferFee() const
Get sfTransferFee (soeOPTIONAL)
protocol_autogen::Optional< SF_ACCOUNT::type::value_type > getDestination() const
Get sfDestination (soeOPTIONAL)
protocol_autogen::Optional< SF_UINT32::type::value_type > getExpiration() const
Get sfExpiration (soeOPTIONAL)
protocol_autogen::Optional< SF_AMOUNT::type::value_type > getAmount() const
Get sfAmount (soeOPTIONAL)
bool hasExpiration() const
Check if sfExpiration is present.
SF_UINT32::type::value_type getNFTokenTaxon() const
Get sfNFTokenTaxon (soeREQUIRED)
bool hasDestination() const
Check if sfDestination is present.
bool hasIssuer() const
Check if sfIssuer is present.
protocol_autogen::Optional< SF_VL::type::value_type > getURI() const
Get sfURI (soeOPTIONAL)
static constexpr xrpl::TxType txType
Base class for all transaction wrapper types.
std::shared_ptr< STTx const > tx_
The underlying transaction object being wrapped.
Base class for all transaction builders.
NFTokenMintBuilder & sign(PublicKey const &publicKey, SecretKey const &secretKey)
Sign the transaction with the given keys.
TxType
Transaction type identifiers.