pub struct SubmitpackageParams {
pub package: Vec<Value>,
pub maxfeerate: Option<Value>,
pub maxburnamount: Option<Value>,
}Expand description
Submit a package of raw transactions (serialized, hex-encoded) to local node. The package will be validated according to consensus and mempool policy rules. If any transaction passes, it will be accepted to mempool. This RPC is experimental and the interface may be unstable. Refer to doc/policy/packages.md for documentation on package policies. Warning: successful submission does not mean the transactions will propagate throughout the network.
Fields§
§package: Vec<Value>An array of raw transactions. The package must consist of a transaction with (some, all, or none of) its unconfirmed parents. A single transaction is permitted. None of the parents may depend on each other. Parents that are already in mempool do not need to be present in the package. The package must be topologically sorted, with the child being the last element in the array if there are multiple elements.
maxfeerate: Option<Value>Reject transactions whose fee rate is higher than the specified value, expressed in BTC/kvB. Fee rates larger than 1BTC/kvB are rejected. Set to 0 to accept any fee rate.
maxburnamount: Option<Value>Reject transactions with provably unspendable outputs (e.g. ‘datacarrier’ outputs that use the OP_RETURN opcode) greater than the specified value, expressed in BTC. If burning funds through unspendable outputs is desired, increase this value. This check is based on heuristics and does not guarantee spendability of outputs.