You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Only allow "packages" with no conflicts, sorted in order of dependency,
and no more than 25 for now. Note that these groups of transactions
don't necessarily need to adhere to some strict definition of a package
or have any dependency relationships. Clients are free to pass in a
batch of 25 unrelated transactions if they want to.
"\nReturns result of mempool acceptance tests indicating if raw transaction (serialized, hex-encoded) would be accepted by mempool.\n"
889
-
"\nThis checks if the transaction violates the consensus or policy rules.\n"
889
+
"\nReturns result of mempool acceptance tests indicating if raw transaction(s) (serialized, hex-encoded) would be accepted by mempool.\n"
890
+
"\nIf multiple transactions are passed in, parents must come before children and package policies apply: the transactions cannot conflict with any mempool transactions or each other.\n"
891
+
"\nIf one transaction fails, other transactions may not be fully validated (the 'allowed' key will be blank).\n"
892
+
"\nThe maximum number of transactions allowed is 25 (MAX_PACKAGE_COUNT)\n"
893
+
"\nThis checks if transactions violate the consensus or policy rules.\n"
890
894
"\nSee sendrawtransaction call.\n",
891
895
{
892
896
{"rawtxs", RPCArg::Type::ARR, RPCArg::Optional::NO, "An array of hex strings of raw transactions.\n"
"Reject transactions whose fee rate is higher than the specified value, expressed in " + CURRENCY_UNIT + "/kvB\n"},
899
904
},
900
905
RPCResult{
901
906
RPCResult::Type::ARR, "", "The result of the mempool acceptance test for each raw transaction in the input array.\n"
902
-
"Length is exactly one for now.",
907
+
"Returns results for each transaction in the same order they were passed in.\n"
908
+
"It is possible for transactions to not be fully validated ('allowed' unset) if an earlier transaction failed.\n",
903
909
{
904
910
{RPCResult::Type::OBJ, "", "",
905
911
{
906
912
{RPCResult::Type::STR_HEX, "txid", "The transaction hash in hex"},
907
913
{RPCResult::Type::STR_HEX, "wtxid", "The transaction witness hash in hex"},
908
-
{RPCResult::Type::BOOL, "allowed", "If the mempool allows this tx to be inserted"},
914
+
{RPCResult::Type::STR, "package-error", "Package validation error, if any (only possible if rawtxs had more than 1 transaction)."},
915
+
{RPCResult::Type::BOOL, "allowed", "Whether this tx would be accepted to the mempool and pass client-specified maxfeerate."
916
+
"If not present, the tx was not fully validated due to a failure in another tx in the list."},
909
917
{RPCResult::Type::NUM, "vsize", "Virtual transaction size as defined in BIP 141. This is different from actual serialized size for witness transactions as witness data is discounted (only present when 'allowed' is true)"},
910
918
{RPCResult::Type::OBJ, "fees", "Transaction fees (only present if 'allowed' is true)",
0 commit comments