You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dash Core provides a remote procedure call (RPC) interface for various
@@ -57,6 +59,7 @@ format:
57
59
| → <br>`id` | string | Optional<br>(0 or 1) | An arbitrary string that will be returned with the response. May be omitted or set to an empty string ("")
58
60
| → <br>`method` | string | Required<br>(exactly 1) | The RPC method name (e.g. `getblock`). See the RPC section for a list of available methods.
59
61
| → <br>`params` | array | Optional<br>(0 or 1) | An array containing positional parameter values for the RPC. May be an empty array or omitted for RPC calls that don't have any required parameters.
62
+
| → <br>`params` | object | Optional<br>(0 or 1) | Starting from Dash Core 0.12.3 / Bitcoin Core 0.14.0 (replaces the params array above) An object containing named parameter values for the RPC. May be an empty object or omitted for RPC calls that don’t have any required parameters.
60
63
| → → <br>Parameter | *any* | Optional<br>(0 or more) | A parameter. May be any JSON type allowed by the particular RPC method
61
64
{:.ntpd}
62
65
@@ -109,6 +112,12 @@ The command to send this request using `dash-cli` is:
109
112
dash-cli getblockhash 0
110
113
{% endhighlight %}
111
114
115
+
The command to send this request using `dash-cli` with named parameters is:
116
+
117
+
{% highlight bash %}
118
+
dash-cli -named getblockhash height=0
119
+
{% endhighlight %}
120
+
112
121
Alternatively, we could `POST` this request using the cURL command-line program
113
122
as follows:
114
123
@@ -126,7 +135,7 @@ The HTTP response data for this request would be:
{% 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." %}
11
13
12
14
{% autocrossref %}
@@ -39,7 +41,7 @@ The `createrawtransaction` RPC {{summary_createRawTransaction}}
39
41
- n: "→ →<br>`Sequence`"
40
42
t: "number (int)"
41
43
p: "Optional<br>(0 or 1)"
42
-
d: "NOT IMPLEMENTED IN DASH.<br><br>The sequence number to use for the input"
44
+
d: "Added in Dash Core 0.12.3.0.<br><br>The sequence number to use for the input"
43
45
44
46
{% enditemplate %}
45
47
@@ -56,6 +58,11 @@ The `createrawtransaction` RPC {{summary_createRawTransaction}}
56
58
p: "Required<br>(1 or more)"
57
59
d: "A key/value pair with the address to pay as a string (key) and the amount to pay that address (value) in Dash"
58
60
61
+
- n: "→<br>Data/Hex"
62
+
t: "data : hex"
63
+
p: "Required<br>(1 or more)"
64
+
d: "A key/value pair where the key is 'data' and the value is hex encoded data"
{% assign summary_estimatePriority="estimates the priority that a transaction needs in order to be included within a certain number of blocks as a free high-priority transaction." %}
The `estimatepriority` RPC {{summary_estimatePriority}} This should not to be confused with the `prioritisetransaction` RPC which will remain supported for adding fee deltas to transactions.
17
19
18
-
{{WARNING}} `estimatepriority` has been [removed from Bitcoin](https://github.com/bitcoin/bitcoin/commit/fe282acd7604b5265762b24e531bdf1ebb1f009b) and will no longer be available in the next major release (planned for Bitcoin Core 0.15.0). Still present in Dash Core.
20
+
{{WARNING}} `estimatepriority` has been [removed from Bitcoin](https://github.com/bitcoin/bitcoin/commit/fe282acd7604b5265762b24e531bdf1ebb1f009b). While still present in Dash Core, it is deprecated as of 0.12.3 (should be considered unstable and will disappear in the future). Use the RPC listed in the "See Also" subsection below instead.
19
21
20
22
Transaction priority is relative to a transaction's byte size.
0 commit comments