dexX7
9c7167d1bc
Return all available information via validateaddress
`"validateaddress"` omits some information, even in cases where is it available.
The primary motivation is to be able to retrieve redeemScripts, after using `"addmultisigaddress"`, when not all keys are available in the keystore, but the redeemScript actually is.
The output of `"validateaddress"` with this commit:
Keys not available:
```js
validateaddress "n4KWZKx349gdMQGgTnZ8W6WfgSwybkGSK3"
{
"isvalid": true,
"address": "n4KWZKx349gdMQGgTnZ8W6WfgSwybkGSK3",
"scriptPubKey": "76a914fa20d564550b105787f7ce3a9ad7fd9a45cd407088ac",
"ismine": false,
"iswatchonly": false,
"isscript": false
}
```
```js
validateaddress "2N2g2H7gjA8a11g1yKBgh5VTqndyvbnWpBK"
{
"isvalid": true,
"address": "2N2g2H7gjA8a11g1yKBgh5VTqndyvbnWpBK",
"scriptPubKey": "a9146769c19a16c9400b908756e19a4d2afb9e9760e187",
"ismine": false,
"iswatchonly": false,
"isscript": true
}
```
After adding the redeemScript:
```js
addmultisigaddress 2 '["02537357B156A33306A7A014A3748631C59DF405B56F11BA4AA4A3CE81501AF095","02F1FB200390E7864EF4450C07B15988179A57C3CF3A878F668E1070CB615749FE"]'
2N2g2H7gjA8a11g1yKBgh5VTqndyvbnWpBK
validateaddress "2N2g2H7gjA8a11g1yKBgh5VTqndyvbnWpBK"
{
"isvalid": true,
"address": "2N2g2H7gjA8a11g1yKBgh5VTqndyvbnWpBK",
"scriptPubKey": "a9146769c19a16c9400b908756e19a4d2afb9e9760e187",
"ismine": false,
"iswatchonly": false,
"isscript": true,
"script": "multisig",
"hex": "522102537357b156a33306a7a014a3748631c59df405b56f11ba4aa4a3ce81501af0952102f1fb200390e7864ef4450c07b15988179a57c3cf3a878f668e1070cb615749fe52ae",
"addresses": [
"n4KWZKx349gdMQGgTnZ8W6WfgSwybkGSK3",
"mmSKNtbYYHRrhTLKiok5TuYrGEs4Y2A4k6"
],
"sigsrequired": 2,
"account": ""
}
```
All keys available:
```js
validateaddress "n4KWZKx349gdMQGgTnZ8W6WfgSwybkGSK3"
{
"isvalid": true,
"address": "n4KWZKx349gdMQGgTnZ8W6WfgSwybkGSK3",
"scriptPubKey": "76a914fa20d564550b105787f7ce3a9ad7fd9a45cd407088ac",
"ismine": true,
"iswatchonly": false,
"isscript": false,
"pubkey": "02537357b156a33306a7a014a3748631c59df405b56f11ba4aa4a3ce81501af095",
"iscompressed": true,
"account": ""
}
```
```js
validateaddress "2N2g2H7gjA8a11g1yKBgh5VTqndyvbnWpBK"
{
"isvalid": true,
"address": "2N2g2H7gjA8a11g1yKBgh5VTqndyvbnWpBK",
"scriptPubKey": "a9146769c19a16c9400b908756e19a4d2afb9e9760e187",
"ismine": true,
"iswatchonly": false,
"isscript": true,
"script": "multisig",
"hex": "522102537357b156a33306a7a014a3748631c59df405b56f11ba4aa4a3ce81501af0952102f1fb200390e7864ef4450c07b15988179a57c3cf3a878f668e1070cb615749fe52ae",
"addresses": [
"n4KWZKx349gdMQGgTnZ8W6WfgSwybkGSK3",
"mmSKNtbYYHRrhTLKiok5TuYrGEs4Y2A4k6"
],
"sigsrequired": 2,
"account": ""
}
```
2017-03-02 13:23:03 -08:00
..
2015-06-23 09:03:09 +02:00
2014-06-21 19:47:43 +02:00
2016-10-22 00:43:26 -05:00
2017-01-30 21:14:46 +01:00
2017-02-22 11:04:17 -08:00
2015-11-04 23:48:07 +01:00
2012-04-27 10:14:33 -04:00
2012-01-23 14:27:08 -05:00
2016-10-20 11:17:17 -07:00
2016-10-22 15:59:44 -05:00
2017-02-28 11:44:07 -08:00
2017-02-23 12:40:45 +00:00
2016-10-21 23:32:51 -04:00
2016-10-04 00:45:56 -07:00
2015-05-15 11:44:58 +02:00
2017-03-02 13:23:03 -08:00
2017-02-10 02:18:46 +00:00
2017-03-02 13:23:03 -08:00
2017-01-31 23:05:19 +01:00
2017-02-08 22:11:53 +00:00
2016-07-11 13:22:20 +01:00
2016-06-06 17:11:15 +08:00
2016-05-24 22:47:00 -07:00
2016-09-23 17:26:43 +12:00
2016-09-23 17:26:43 +12:00
2016-07-15 19:57:55 -07:00
2014-12-19 19:55:32 +01:00
2014-12-19 19:55:32 +01:00
2015-03-06 17:21:59 +01:00
2015-04-20 13:29:22 +02:00
2017-02-10 00:52:57 +00:00
2017-02-10 02:19:06 +00:00
2016-09-08 21:46:15 -07:00
2016-09-08 21:46:14 -07:00
2016-10-03 23:53:14 -07:00
2016-10-03 23:53:14 -07:00
2016-09-09 00:22:18 -06:00
2017-02-10 02:18:51 +00:00
2016-10-18 16:45:43 -05:00
2017-02-10 02:18:51 +00:00
2016-09-09 00:22:18 -06:00
2017-02-11 13:52:15 -06:00
2016-09-07 15:12:09 -07:00
2015-10-02 12:17:49 +02:00
2014-12-19 19:55:32 +01:00
2016-10-18 17:19:54 -05:00
2017-03-02 02:18:33 +00:00
2016-10-30 16:37:44 -07:00
2016-06-17 00:21:58 +12:00
2016-10-20 11:05:30 -07:00
2016-05-27 11:37:41 -07:00
2015-05-06 11:38:39 +02:00
2015-05-06 11:38:39 +02:00
2015-05-01 11:21:27 +00:00
2016-10-12 10:50:05 -07:00
2017-02-10 09:55:49 -08:00
2014-12-19 19:55:32 +01:00
2016-12-09 08:10:21 +00:00
2016-07-18 10:06:18 -06:00
2016-10-20 00:36:32 +01:00
2014-12-19 19:55:32 +01:00
2016-10-20 22:59:50 -07:00
2014-12-31 10:50:06 +01:00
2017-02-10 02:18:51 +00:00
2017-02-10 02:18:51 +00:00
2014-12-19 19:55:32 +01:00
2014-12-19 19:55:32 +01:00
2016-09-30 18:54:16 +13:00
2014-12-19 19:55:32 +01:00
2015-05-06 17:22:46 +02:00
2015-05-06 17:22:46 +02:00
2017-02-23 12:42:28 +00:00
2017-01-16 09:38:09 -08:00
2017-01-23 17:06:54 +01:00
2015-05-06 18:37:49 +02:00
2016-09-01 11:48:15 +12:00
2016-09-13 14:21:49 +12:00
2015-09-22 00:43:13 +00:00
2014-12-19 19:55:32 +01:00
2014-12-19 19:55:32 +01:00
2017-02-09 22:10:58 +00:00
2017-02-28 11:43:04 -08:00
2017-02-10 02:19:03 +00:00
2017-02-10 02:19:06 +00:00
2017-02-10 02:18:51 +00:00
2017-02-10 02:18:51 +00:00
2017-02-10 02:18:51 +00:00
2017-01-23 18:29:22 +01:00
2015-05-11 17:56:48 -07:00
2016-09-07 15:12:09 -07:00
2015-05-01 11:21:27 +00:00
2017-02-23 12:55:14 +00:00
2017-01-05 08:18:29 +01:00
2017-02-06 11:55:06 +00:00
2017-02-06 11:55:06 +00:00
2015-07-28 20:15:51 +02:00
2017-03-02 13:23:03 -08:00
2017-03-02 13:23:03 -08:00
2017-03-02 13:23:03 -08:00
2017-03-02 13:23:03 -08:00
2017-02-23 12:40:45 +00:00
2014-12-19 19:55:32 +01:00
2016-09-08 12:22:08 +12:00
2016-09-08 12:22:08 +12:00
2015-04-19 11:10:23 -07:00
2015-04-19 11:10:23 -07:00
2015-05-06 17:22:46 +02:00
2016-05-30 11:05:55 -06:00
2017-01-23 17:06:54 +01:00
2017-01-23 17:06:54 +01:00
2017-02-10 02:18:51 +00:00
2015-12-22 09:20:42 -08:00
2017-03-02 13:23:03 -08:00
2017-03-02 13:23:03 -08:00
2017-02-10 02:18:51 +00:00
2017-02-10 02:18:51 +00:00
2017-03-02 13:23:03 -08:00
2017-03-02 13:23:03 -08:00
2017-02-10 02:19:06 +00:00
2017-03-02 13:23:03 -08:00
2017-02-10 02:18:51 +00:00
2017-03-02 13:23:03 -08:00
2017-03-02 13:23:03 -08:00
2015-09-22 00:43:13 +00:00
2015-05-16 17:59:23 -04:00
2017-02-17 11:55:41 -08:00
2016-08-30 00:29:49 +12:00
2016-10-20 22:59:50 -07:00
2015-04-24 02:28:47 -07:00
2015-09-22 00:43:15 +00:00
2014-12-19 19:55:32 +01:00
2015-08-20 17:14:22 +02:00
2014-12-19 19:55:32 +01:00
2016-10-25 19:48:38 +01:00
2017-03-02 13:23:03 -08:00
2016-07-18 10:07:30 -06:00
2016-09-07 15:12:09 -07:00
2016-10-20 11:28:22 -07:00
2017-02-23 12:40:45 +00:00
2016-08-09 17:38:25 +12:00
2015-03-12 22:17:22 +06:00
2016-08-13 11:12:18 -04:00
2016-01-19 14:36:04 -07:00
2017-01-23 17:06:54 +01:00
2017-01-19 00:56:47 +00:00
2017-02-10 02:18:55 +00:00
2017-02-10 02:18:55 +00:00
2017-02-10 02:19:02 +00:00
2017-02-10 02:18:58 +00:00
2016-12-09 16:59:34 +13:00
2016-11-17 22:26:46 +13:00
2016-10-21 23:14:00 -05:00
2014-12-19 19:55:32 +01:00
2017-02-08 22:10:42 +00:00
2017-02-08 22:10:42 +00:00
2016-07-19 19:07:14 -06:00
2017-01-30 21:14:46 +01:00
2016-12-14 15:28:00 +13:00