mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 09:46:12 +00:00
content - Update rawtransaction and generate RPCs
- CreateRawTransaction, GetRawTransaction, and FundRawTransaction minor updates - Some minor generate RPC updates for removed commands
This commit is contained in:
parent
923d6a4550
commit
b93ff39716
9 changed files with 37 additions and 24 deletions
|
@ -216,11 +216,11 @@ These RPCs are all Dash-specific and not found in Bitcoin Core
|
|||
|
||||
{% autocrossref %}
|
||||
|
||||
* [CreateRawTransaction][rpc createrawtransaction]: {{summary_createRawTransaction}} {{UPDATED0_14_1}}
|
||||
* [CreateRawTransaction][rpc createrawtransaction]: {{summary_createRawTransaction}} {{DASH_UPDATED0_12_3}} {{UPDATED0_14_1}}
|
||||
* [DecodeRawTransaction][rpc decoderawtransaction]: {{summary_decodeRawTransaction}} {{UPDATED0_13_0}}
|
||||
* [DecodeScript][rpc decodescript]: {{summary_decodeScript}}
|
||||
* [FundRawTransaction][rpc fundrawtransaction]: {{summary_fundRawTransaction}} {{NEW0_12_0}}, {{UPDATED0_14_0}}
|
||||
* [GetRawTransaction][rpc getrawtransaction]: {{summary_getRawTransaction}} {{UPDATED0_14_0}}
|
||||
* [FundRawTransaction][rpc fundrawtransaction]: {{summary_fundRawTransaction}} {{DASH_UPDATED0_12_3}} {{UPDATED0_14_0}}
|
||||
* [GetRawTransaction][rpc getrawtransaction]: {{summary_getRawTransaction}} {{DASH_UPDATED0_12_3}} {{UPDATED0_14_0}}
|
||||
* [SendRawTransaction][rpc sendrawtransaction]: {{summary_sendRawTransaction}}
|
||||
* [SignRawTransaction][rpc signrawtransaction]: {{summary_signRawTransaction}}
|
||||
|
||||
|
|
|
@ -7,6 +7,8 @@ http://opensource.org/licenses/MIT.
|
|||
##### CreateRawTransaction
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
||||
<!-- __ -->
|
||||
|
||||
{% assign summary_createRawTransaction="creates an unsigned serialized transaction that spends a previous output to a new output with a P2PKH or P2SH address. The transaction is not stored in the wallet or transmitted to the network." %}
|
||||
|
||||
{% autocrossref %}
|
||||
|
@ -39,7 +41,7 @@ The `createrawtransaction` RPC {{summary_createRawTransaction}}
|
|||
- n: "→ →<br>`Sequence`"
|
||||
t: "number (int)"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
d: "NOT IMPLEMENTED IN DASH.<br><br>The sequence number to use for the input"
|
||||
d: "Added in Dash Core 0.12.3.0.<br><br>The sequence number to use for the input"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
|
@ -56,6 +58,11 @@ The `createrawtransaction` RPC {{summary_createRawTransaction}}
|
|||
p: "Required<br>(1 or more)"
|
||||
d: "A key/value pair with the address to pay as a string (key) and the amount to pay that address (value) in Dash"
|
||||
|
||||
- n: "→<br>Data/Hex"
|
||||
t: "data : hex"
|
||||
p: "Required<br>(1 or more)"
|
||||
d: "A key/value pair where the key is 'data' and the value is hex encoded data"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Parameter #3---locktime*
|
||||
|
|
|
@ -7,6 +7,8 @@ http://opensource.org/licenses/MIT.
|
|||
##### FundRawTransaction
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
||||
<!-- __ -->
|
||||
|
||||
{% assign summary_fundRawTransaction="adds inputs to a transaction until it has enough in value to meet its out value." %}
|
||||
|
||||
{% autocrossref %}
|
||||
|
@ -29,15 +31,7 @@ All existing inputs must have their previous output transaction be in the wallet
|
|||
|
||||
*Parameter #2---Additional options*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "`includeWatching`"
|
||||
t: "bool"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
d: "Inputs from watch-only addresses are also considered. The default is `false`"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
The following options from Bitcoin are not implemented in Dash Core.
|
||||
Note: For backwards compatibility, passing in a `true` instead of an object will result in {\"includeWatching\":true}\n"
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "Options"
|
||||
|
@ -55,6 +49,11 @@ The following options from Bitcoin are not implemented in Dash Core.
|
|||
p: "Optional<br>(0 or 1)"
|
||||
d: "The index of the change output. If not set, the change position is randomly chosen"
|
||||
|
||||
- n: "`includeWatching`"
|
||||
t: "bool"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
d: "Inputs from watch-only addresses are also considered. The default is `false`"
|
||||
|
||||
- n: "→ <br>`lockUnspent`"
|
||||
t: "bool"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
|
|
|
@ -9,7 +9,7 @@ http://opensource.org/licenses/MIT.
|
|||
|
||||
<!-- __ -->
|
||||
|
||||
{% assign summary_getGenerate="returns if the server is set to generate coins or not." %}
|
||||
{% assign summary_getGenerate="was removed in Dash Core 0.12.3." %}
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
|
|
|
@ -7,12 +7,19 @@ http://opensource.org/licenses/MIT.
|
|||
##### GetRawTransaction
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
||||
<!-- __ -->
|
||||
|
||||
{% assign summary_getRawTransaction="gets a hex-encoded serialized transaction or a JSON object describing the transaction. By default, Dash Core only stores complete transaction data for UTXOs and your own transactions, so the RPC may fail on historic transactions unless you use the non-default `txindex=1` in your Dash Core startup settings." %}
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
The `getrawtransaction` RPC {{summary_getRawTransaction}}
|
||||
|
||||
Note: By default this function only works for mempool transactions. If the
|
||||
`-txindex` option is enabled, it also works for blockchain transactions. For now,
|
||||
it also works for transactions with unspent outputs although this feature is
|
||||
deprecated.
|
||||
|
||||
{{reindexNote}}
|
||||
|
||||
*Parameter #1---the TXID of the transaction to get*
|
||||
|
@ -31,7 +38,7 @@ The `getrawtransaction` RPC {{summary_getRawTransaction}}
|
|||
- n: "Format"
|
||||
t: "bool"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
d: "For Dash:<br>Set to `0` (the default) to return the serialized transaction as hex. Set to `1` to return a decoded transaction.<br><br>*Updated in Bitcoin Core 0.14.0*<br><br>Set to `false` (the default) to return the serialized transaction as hex. Set to `true` to return a decoded transaction. Before 0.14.0, use `0` and `1`, respectively"
|
||||
d: "*Updated in Dash Core 0.12.3 / Bitcoin Core 0.14.0*<br><br>Set to `false` (the default) to return the serialized transaction as hex. Set to `true` to return a decoded transaction. Before 0.12.3, use `0` and `1`, respectively"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ http://opensource.org/licenses/MIT.
|
|||
##### SetGenerate
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
||||
{% assign summary_setGenerate="enables or disables hashing to attempt to find the next block." %}
|
||||
{% assign summary_setGenerate="was removed in Dash Core 0.12.3." %}
|
||||
|
||||
<!-- __ -->
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ This file is licensed under the terms of its source texts{%endcomment%}
|
|||
{% assign summary_getChainTips="returns information about the highest-height block (tip) of each local block chain." %}
|
||||
{% assign summary_getConnectionCount="returns the number of connections to other nodes." %}
|
||||
{% assign summary_getDifficulty="returns the proof-of-work difficulty as a multiple of the minimum difficulty." %}
|
||||
{% assign summary_getGenerate="returns if the server is set to generate coins or not." %}
|
||||
{% assign summary_getGenerate="was removed in Dash Core 0.12.3." %}
|
||||
{% assign summary_getGovernanceInfo="returns an object containing governance parameters." %}
|
||||
{% assign summary_getHashesPerSec="was removed in Bitcoin Core 0.11.0 and is not part of Dash." %}
|
||||
{% assign summary_getInfo="prints various information about the node and the network." %}
|
||||
|
@ -124,7 +124,7 @@ This file is licensed under the terms of its source texts{%endcomment%}
|
|||
{% assign summary_sentinelPing="sends a Sentinel Ping to the network." %}
|
||||
{% assign summary_setAccount="puts the specified address in the given account." %}
|
||||
{% assign summary_setBan="attempts add or remove a IP/Subnet from the banned list." %}
|
||||
{% assign summary_setGenerate="enables or disables hashing to attempt to find the next block." %}
|
||||
{% assign summary_setGenerate="was removed in Dash Core 0.12.3." %}
|
||||
{% assign summary_setNetworkActive="disables/enables all P2P network activity." %}
|
||||
{% assign summary_setTxFee="sets the transaction fee per kilobyte paid by transactions created by this wallet." %}
|
||||
{% assign summary_signMessage="signs a message with the private key of an address." %}
|
||||
|
|
|
@ -427,4 +427,4 @@ NOT IN DASH
|
|||
{% assign WARNING=" **Warning:**" %}
|
||||
{% assign WARNING_ICON="" %}
|
||||
|
||||
{% assign reindexNote="Note: if you begin using `txindex=1` after downloading the block chain, you must rebuild your indexes by starting Bitcoin Core with the option `-reindex`. This may take several hours to complete, during which time your node will not process new blocks or transactions. This reindex only needs to be done once." %}
|
||||
{% assign reindexNote="Note: if you begin using `txindex=1` after downloading the block chain, you must rebuild your indexes by starting Dash Core with the option `-reindex`. This may take several hours to complete, during which time your node will not process new blocks or transactions. This reindex only needs to be done once." %}
|
||||
|
|
|
@ -308,13 +308,13 @@ th.tg-sort-header::-moz-selection { background:transparent; }th.tg-sort-header::
|
|||
<td class="tg-baqh">0.12.3.0+</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tg-b7b8">Generating</td>
|
||||
<td class="tg-b7b8">Removed</td>
|
||||
<td class="tg-b7b8"><a href="#getgenerate">GetGenerate</a></td>
|
||||
<td class="tg-dzk6">Y</td>
|
||||
<td class="tg-dzk6">Removed in 0.12.3.0</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tg-yw4l">Generating</td>
|
||||
<td class="tg-yw4l">Removed</td>
|
||||
<td class="tg-yw4l"><a href="#setgenerate">SetGenerate</a></td>
|
||||
<td class="tg-baqh">Y</td>
|
||||
<td class="tg-baqh">Removed in 0.12.3.0</td>
|
||||
|
@ -425,7 +425,7 @@ th.tg-sort-header::-moz-selection { background:transparent; }th.tg-sort-header::
|
|||
<td class="tg-yw4l">Rawtransactions</td>
|
||||
<td class="tg-yw4l"><a href="#createrawtransaction">CreateRawTransaction</a></td>
|
||||
<td class="tg-baqh">Y</td>
|
||||
<td class="tg-baqh"></td>
|
||||
<td class="tg-baqh">Updated in 0.12.3.0</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tg-b7b8">Rawtransactions</td>
|
||||
|
@ -443,13 +443,13 @@ th.tg-sort-header::-moz-selection { background:transparent; }th.tg-sort-header::
|
|||
<td class="tg-b7b8">Rawtransactions</td>
|
||||
<td class="tg-b7b8"><a href="#fundrawtransaction">FundRawTransaction</a></td>
|
||||
<td class="tg-dzk6">Y</td>
|
||||
<td class="tg-dzk6"></td>
|
||||
<td class="tg-dzk6">Updated in 0.12.3.0</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tg-yw4l">Rawtransactions</td>
|
||||
<td class="tg-yw4l"><a href="#getrawtransaction">GetRawTransaction</a></td>
|
||||
<td class="tg-baqh">Y</td>
|
||||
<td class="tg-baqh"></td>
|
||||
<td class="tg-baqh">Updated in 0.12.3.0</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tg-b7b8">Rawtransactions</td>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue