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." %}
|
||||
|
||||
<!-- __ -->
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue