mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 09:46:12 +00:00
P2P reference
- Update validateaddress RPC
This commit is contained in:
parent
7b42b6b8ba
commit
9b76d62b0c
2 changed files with 35 additions and 34 deletions
|
@ -6,8 +6,8 @@ http://opensource.org/licenses/MIT.
|
||||||
|
|
||||||
##### ValidateAddress
|
##### ValidateAddress
|
||||||
{% include helpers/subhead-links.md %}
|
{% include helpers/subhead-links.md %}
|
||||||
|
<!-- __ -->
|
||||||
{% assign summary_validateAddress="returns information about the given Bitcoin address." %}
|
{% assign summary_validateAddress="returns information about the given Dash address." %}
|
||||||
|
|
||||||
{% autocrossref %}
|
{% autocrossref %}
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ The `validateaddress` RPC {{summary_validateAddress}}
|
||||||
- n: "→<br>`address`"
|
- n: "→<br>`address`"
|
||||||
t: "string (base58)"
|
t: "string (base58)"
|
||||||
p: "Optional<br>(0 or 1)"
|
p: "Optional<br>(0 or 1)"
|
||||||
d: "The bitcoin address given as parameter"
|
d: "The Dash address given as parameter"
|
||||||
|
|
||||||
- n: "→<br>`scriptPubKey`"
|
- n: "→<br>`scriptPubKey`"
|
||||||
t: "string (hex)"
|
t: "string (hex)"
|
||||||
|
@ -81,7 +81,7 @@ The `validateaddress` RPC {{summary_validateAddress}}
|
||||||
p: "Optional<br>(0 or more)"
|
p: "Optional<br>(0 or more)"
|
||||||
d: "A P2PKH address"
|
d: "A P2PKH address"
|
||||||
|
|
||||||
- n: "→<br>`sigrequired`"
|
- n: "→<br>`sigsrequired`"
|
||||||
t: "number (int)"
|
t: "number (int)"
|
||||||
p: "Optional<br>(0 or 1)"
|
p: "Optional<br>(0 or 1)"
|
||||||
d: "Only returned for multisig P2SH addresses belonging to the wallet. The number of signatures required by this script"
|
d: "Only returned for multisig P2SH addresses belonging to the wallet. The number of signatures required by this script"
|
||||||
|
@ -113,54 +113,55 @@ The `validateaddress` RPC {{summary_validateAddress}}
|
||||||
|
|
||||||
{% enditemplate %}
|
{% enditemplate %}
|
||||||
|
|
||||||
*Example from Bitcoin Core 0.13.1*
|
*Example from Dash Core 0.12.2*
|
||||||
|
|
||||||
Validate the following P2PKH address from the wallet:
|
Validate the following P2PKH address from the wallet:
|
||||||
|
|
||||||
{% highlight bash %}
|
{% highlight bash %}
|
||||||
bitcoin-cli validateaddress 17fshh33qUze2yifiJ2sXgijSMzJ2KNEwu
|
dash-cli validateaddress yNpezfFDfoikDuT1f4iK75AiLp2YLPsGAb
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
Result:
|
Result:
|
||||||
|
|
||||||
{% highlight json %}
|
{% highlight json %}
|
||||||
{
|
{
|
||||||
"isvalid": true,
|
"isvalid": true,
|
||||||
"address": "17fshh33qUze2yifiJ2sXgijSMzJ2KNEwu",
|
"address": "yNpezfFDfoikDuT1f4iK75AiLp2YLPsGAb",
|
||||||
"scriptPubKey": "76a914492ae280d70af33acf0ae7cd329b961e65e9cbd888ac",
|
"scriptPubKey": "76a9141b767409bd8717b56cfcb00747811432ab1aa8a788ac",
|
||||||
"ismine": true,
|
"ismine": true,
|
||||||
"iswatchonly": false,
|
"iswatchonly": false,
|
||||||
"isscript": false,
|
"isscript": false,
|
||||||
"pubkey": "0312eeb9ae5f14c3cf43cece11134af860c2ef7d775060e3a578ceec888acada31",
|
"pubkey": "02eacba539d92eb88d4e73bb32749d79f53f6e8d7947ac40a71bd4b26c13b6ec29",
|
||||||
"iscompressed": true,
|
"iscompressed": true,
|
||||||
"account": "Test"
|
"account": "Test"
|
||||||
}
|
}
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
Validate the following P2SH multisig address from the wallet:
|
Validate the following P2SH multisig address from the wallet:
|
||||||
|
|
||||||
{% highlight bash %}
|
{% highlight bash %}
|
||||||
bitcoin-cli -testnet validateaddress 2MyVxxgNBk5zHRPRY2iVjGRJHYZEp1pMCSq
|
dash-cli -testnet validateaddress 8uJLxDxk2gEMbidF5vT8XLS2UCgQmVcroW
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
Result:
|
Result:
|
||||||
|
|
||||||
{% highlight json %}
|
{% highlight json %}
|
||||||
{
|
{
|
||||||
"isvalid" : true,
|
"isvalid": true,
|
||||||
"address" : "2MyVxxgNBk5zHRPRY2iVjGRJHYZEp1pMCSq",
|
"address": "8uJLxDxk2gEMbidF5vT8XLS2UCgQmVcroW",
|
||||||
"ismine" : true,
|
"scriptPubKey": "a914a33155e490d146e656a9bac2cbee9c625ef42f0a87",
|
||||||
"iswatchonly" : false,
|
"ismine": true,
|
||||||
"isscript" : true,
|
"iswatchonly": false,
|
||||||
"script" : "multisig",
|
"isscript": true,
|
||||||
"hex" : "522103ede722780d27b05f0b1169efc90fa15a601a32fc6c3295114500c586831b6aaf2102ecd2d250a76d204011de6bc365a56033b9b3a149f679bc17205555d3c2b2854f21022d609d2f0d359e5bc0e5d0ea20ff9f5d3396cb5b1906aa9c56a0e7b5edc0c5d553ae",
|
"script": "multisig",
|
||||||
"addresses" : [
|
"hex": "522102eacba539d92eb88d4e73bb32749d79f53f6e8d7947ac40a71bd4b26c13b6ec29210311f97539724e0de38fb1ff79f5148e5202459d06ed07193ab18c730274fd0d882103251f25a5c0291446d801ba6df122f67a7dd06c60a9b332b7b29cc94f3b8f57d053ae",
|
||||||
"mjbLRSidW1MY8oubvs4SMEnHNFXxCcoehQ",
|
"addresses": [
|
||||||
"mo1vzGwCzWqteip29vGWWW6MsEBREuzW94",
|
"yNpezfFDfoikDuT1f4iK75AiLp2YLPsGAb",
|
||||||
"mt17cV37fBqZsnMmrHnGCm9pM28R1kQdMG"
|
"yWAk1cDVvsRdPYjnzcFkySJux75yaCE7xz",
|
||||||
],
|
"yVJj7TB3ZhMcSP2wo65ZFNqy23BQH9tT87"
|
||||||
"sigsrequired" : 2,
|
],
|
||||||
"account" : "test account"
|
"sigsrequired": 2,
|
||||||
|
"account": "test account"
|
||||||
}
|
}
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
|
|
|
@ -128,7 +128,7 @@ This file is licensed under the terms of its source texts{%endcomment%}
|
||||||
{% assign summary_spork-rpc="reads or updates spork settings on the network." %}
|
{% assign summary_spork-rpc="reads or updates spork settings on the network." %}
|
||||||
{% assign summary_stop="safely shuts down the Dash Core server." %}
|
{% assign summary_stop="safely shuts down the Dash Core server." %}
|
||||||
{% assign summary_submitBlock="accepts a block, verifies it is a valid addition to the block chain, and broadcasts it to the network. Extra parameters are ignored by Dash Core but may be used by mining pools or other programs." %}
|
{% assign summary_submitBlock="accepts a block, verifies it is a valid addition to the block chain, and broadcasts it to the network. Extra parameters are ignored by Dash Core but may be used by mining pools or other programs." %}
|
||||||
{% assign summary_validateAddress="returns information about the given Bitcoin address." %}
|
{% assign summary_validateAddress="returns information about the given Dash address." %}
|
||||||
{% assign summary_verifyChain="verifies each entry in the local block chain database." %}
|
{% assign summary_verifyChain="verifies each entry in the local block chain database." %}
|
||||||
{% assign summary_verifyMessage="verifies a signed message." %}
|
{% assign summary_verifyMessage="verifies a signed message." %}
|
||||||
{% assign summary_verifyTxOutProof="verifies that a proof points to one or more transactions in a block, returning the transactions the proof commits to and throwing an RPC error if the block is not in our best block chain." %}
|
{% assign summary_verifyTxOutProof="verifies that a proof points to one or more transactions in a block, returning the transactions the proof commits to and throwing an RPC error if the block is not in our best block chain." %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue