forked from bitcoin-dot-org/Bitcoin.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Devdoc RPC calls up-to-date as of 0.13.1
- Loading branch information
Showing
42 changed files
with
1,535 additions
and
335 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
_includes/devdoc/bitcoin-core/rpcs/rpcs/addwitnessaddress.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{% comment %} | ||
This file is licensed under the MIT License (MIT) available on | ||
http://opensource.org/licenses/MIT. | ||
{% endcomment %} | ||
{% assign filename="_includes/devdoc/bitcoin-core/rpcs/rpcs/addwitnessaddress.md" %} | ||
|
||
##### AddWitnessAddress | ||
{% include helpers/subhead-links.md %} | ||
|
||
{% assign summary_addWitnessAddress="adds a witness address for a script (with pubkey or redeemscript known)." %} | ||
|
||
{% autocrossref %} | ||
|
||
*Added in Bitcoin Core 0.13.0* | ||
|
||
*Requires wallet support. Requires an unlocked wallet or an | ||
unencrypted wallet.* | ||
|
||
The `addwitnessaddress` RPC {{summary_addWitnessAddress}} | ||
|
||
*Parameter #1---the witness address* | ||
|
||
{% itemplate ntpd1 %} | ||
- n: "Address" | ||
t: "string (base58)" | ||
p: "Required<br>(exactly 1)" | ||
d: "A witness address that gets added to a script. Needs to be in the wallet and uncompressed" | ||
|
||
{% enditemplate %} | ||
|
||
*Result---the witness script* | ||
|
||
{% itemplate ntpd1 %} | ||
- n: "`result`" | ||
t: "string (base58)" | ||
p: "Required<br>(exactly 1)" | ||
d: "The value of the new address (P2SH of witness script)" | ||
|
||
{% enditemplate %} | ||
|
||
*Example from Bitcoin Core 0.13.1* | ||
|
||
{% highlight bash %} | ||
bitcoin-cli addwitnessaddress 1BRo7qrYHMPrzdBDzfjmzteBdYAyTMXW75 | ||
{% endhighlight %} | ||
|
||
Result: | ||
|
||
The RPC is disabled by default on mainet as long as Segregated Witness has not been activated. | ||
`-walletprematurewitness` enables the RPC. | ||
|
||
{% highlight text %} | ||
3LfAujMsBHgQKoxLn59dVbeYPmfUrHSAQb | ||
{% endhighlight %} | ||
|
||
*See also* | ||
|
||
{% endautocrossref %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.