Package nxt.http
Class BundleTransactions
java.lang.Object
nxt.http.APIServlet.APIRequestHandler
nxt.http.CreateTransaction
nxt.http.BundleTransactions
Transaction created by this call must expire before any transaction bundled.
For this reason if deadline not set it is calculated based on transactions bundled.
But not greater than configured by 'nxt.defaultChildBlockDeadline' property.
When isChildrenListEnrichment is true, the list of child
transactions is supplemented with currently circulating unconfirmed transactions that
meet the bundling rules specified in enrichmentBundlingRulesJSON.
Additionally:
-
If no
transactionFullHash-es are provided, the list includes only circulating transactions, effectively performing a single iteration of the bundler procedure. In this case, theenrichmentChildChainparameter should be provided. -
If the
feeNQTparameter is not provided, the fee for the ChildBlock transaction created by this call is calculated internally, with a limit specified inenrichmentTotalFeeLimitFQT. The minimum fee applies to the providedtransactionFullHash-es, while other transactions pay a fee according to the bundling rule that accepts them. -
The
enrichmentBundlingRulesJSONis a JSON-formatted string containing an array of bundling rule objects. Each object must include the required fieldminRateNQTPerFXT. An optionalfilterfield can also be provided to exclude specific transactions. The other two fields,overpayFQTPerFXTandfeeCalculatorName, are used either to calculate the actual fee paid by the ChildBlock transaction (iffeeNQTis provided) or to filter out transactions that would exceed thefeeNQT.
-
Nested Class Summary
Nested classes/interfaces inherited from class nxt.http.CreateTransaction
CreateTransaction.CreateTransactionParameters -
Method Summary
Modifier and TypeMethodDescriptionprotected org.json.simple.JSONStreamAwareprocessRequest(javax.servlet.http.HttpServletRequest req) Methods inherited from class nxt.http.CreateTransaction
allowRequiredBlockParameters, createTransaction, getCommonFileParameters, getCommonParameters, getRecipientFileParameters, getRecipientParameters, isChainSpecific, requirePost, transactionParametersMethods inherited from class nxt.http.APIServlet.APIRequestHandler
canHaveRecipient, getAPITags, getCreateTransactionTypes, getFileParameters, getParameters, getSensitiveParameters, isIgnisOnly, isTextArea, processRequest, requireBlockchain, requiredBlockUpdateLock, requireFullClient, requirePassword, startDbTransaction
-
Method Details
-
processRequest
protected org.json.simple.JSONStreamAware processRequest(javax.servlet.http.HttpServletRequest req) throws NxtException - Specified by:
processRequestin classAPIServlet.APIRequestHandler- Throws:
NxtException
-