Skip to content
This repository was archived by the owner on Nov 26, 2024. It is now read-only.

Commit 156be9c

Browse files
committed
f Drop submitpackage RPC example output comment
1 parent 0517507 commit 156be9c

File tree

1 file changed

+0
-52
lines changed

1 file changed

+0
-52
lines changed

json/src/v28/raw_transactions.rs

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -13,58 +13,6 @@ use serde::{Deserialize, Serialize};
1313
use crate::model::{self, SubmitPackageError};
1414

1515
/// Result of JSON-RPC method `submitpackage`.
16-
//submitpackage ["rawtx",...] ( maxfeerate maxburnamount )
17-
//
18-
//Submit a package of raw transactions (serialized, hex-encoded) to local node.
19-
//The package will be validated according to consensus and mempool policy rules. If any transaction passes, it will be accepted to mempool.
20-
//This RPC is experimental and the interface may be unstable. Refer to doc/policy/packages.md for documentation on package policies.
21-
//Warning: successful submission does not mean the transactions will propagate throughout the network.
22-
//
23-
//Arguments:
24-
//1. package (json array, required) An array of raw transactions.
25-
// The package must solely consist of a child and its parents. None of the parents may depend on each other.
26-
// The package must be topologically sorted, with the child being the last element in the array.
27-
// [
28-
// "rawtx", (string)
29-
// ...
30-
// ]
31-
//2. maxfeerate (numeric or string, optional, default="0.10") Reject transactions whose fee rate is higher than the specified value, expressed in BTC/kvB.
32-
// Fee rates larger than 1BTC/kvB are rejected.
33-
// Set to 0 to accept any fee rate.
34-
//3. maxburnamount (numeric or string, optional, default="0.00") Reject transactions with provably unspendable outputs (e.g. 'datacarrier' outputs that use the OP_RETURN opcode) greater than the specified value, expressed in BTC.
35-
// If burning funds through unspendable outputs is desired, increase this value.
36-
// This check is based on heuristics and does not guarantee spendability of outputs.
37-
//
38-
//
39-
//Result:
40-
//{ (json object)
41-
// "package_msg" : "str", (string) The transaction package result message. "success" indicates all transactions were accepted into or are already in the mempool.
42-
// "tx-results" : { (json object) transaction results keyed by wtxid
43-
// "wtxid" : { (json object) transaction wtxid
44-
// "txid" : "hex", (string) The transaction hash in hex
45-
// "other-wtxid" : "hex", (string, optional) The wtxid of a different transaction with the same txid but different witness found in the mempool. This means the submitted transaction was ignored.
46-
// "vsize" : n, (numeric, optional) Sigops-adjusted virtual transaction size.
47-
// "fees" : { (json object, optional) Transaction fees
48-
// "base" : n, (numeric) transaction fee in BTC
49-
// "effective-feerate" : n, (numeric, optional) if the transaction was not already in the mempool, the effective feerate in BTC per KvB. For example, the package feerate and/or feerate with modified fees from prioritisetransaction.
50-
// "effective-includes" : [ (json array, optional) if effective-feerate is provided, the wtxids of the transactions whose fees and vsizes are included in effective-feerate.
51-
// "hex", (string) transaction wtxid in hex
52-
// ...
53-
// ]
54-
// },
55-
// "error" : "str" (string, optional) The transaction error string, if it was rejected by the mempool
56-
// },
57-
// ...
58-
// },
59-
// "replaced-transactions" : [ (json array, optional) List of txids of replaced transactions
60-
// "hex", (string) The transaction id
61-
// ...
62-
// ]
63-
//}
64-
//
65-
//Examples:
66-
//> curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "submitpackage", "params": [["rawtx1", "rawtx2"]]}' -H 'content-type: application/json' http://127.0.0.1:8332/
67-
//> bitcoin-cli submitpackage '["rawtx1", "rawtx2"]'
6816
#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)]
6917
pub struct SubmitPackage {
7018
/// The transaction package result message. "success" indicates all transactions were accepted into or are already in the mempool.

0 commit comments

Comments
 (0)