pub struct SubmitPackage {
pub package_msg: String,
pub tx_results: BTreeMap<String, SubmitPackageTxResult>,
pub replaced_transactions: Vec<String>,
}
Expand description
Result of JSON-RPC method submitpackage
.
submitpackage [“rawtx”,…] ( maxfeerate maxburnamount )
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.
Arguments:
- package (json array, required) An array of raw transactions. The package must solely consist of a child and its parents. None of the parents may depend on each other. The package must be topologically sorted, with the child being the last element in the array. [ “rawtx”, (string) … ]
Fields§
§package_msg: String
The transaction package result message.
“success” indicates all transactions were accepted into or are already in the mempool.
tx_results: BTreeMap<String, SubmitPackageTxResult>
Transaction results keyed by wtxid.
replaced_transactions: Vec<String>
List of txids of replaced transactions.
Trait Implementations§
Source§impl Clone for SubmitPackage
impl Clone for SubmitPackage
Source§fn clone(&self) -> SubmitPackage
fn clone(&self) -> SubmitPackage
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more