Dash RPCs

- Finish details for GObject (voting related)
This commit is contained in:
thephez 2017-12-04 15:30:55 -05:00
parent 28e8294592
commit 04a062f5d8
3 changed files with 397 additions and 11 deletions

View file

@ -13,7 +13,7 @@ This file is licensed under the terms of its source texts{%endcomment%}
{% assign summary_decodeRawTransaction="decodes a serialized transaction hex string into a JSON object describing the transaction." %}
{% assign summary_decodeScript="decodes a hex-encoded P2SH redeem script." %}
{% assign summary_disconnectNode="immediately disconnects from a specified node." %}
{% assign summary_dumpHDInfo="" %}
{% assign summary_dumpHDInfo="returns an object containing sensitive private info about this HD wallet" %}
{% assign summary_dumpPrivKey="returns the wallet-import-format (WIP) private key corresponding to an address. (But does not remove it from the wallet.)" %}
{% assign summary_dumpWallet="creates or overwrites a file with all wallet keys in a human-readable format." %}
{% assign summary_encryptWallet="encrypts the wallet with a passphrase. This is only to enable encryption for the first time. After encryption is enabled, you will need to enter the passphrase to use private keys." %}
@ -86,7 +86,7 @@ This file is licensed under the terms of its source texts{%endcomment%}
{% assign summary_importPrunedFunds="imports funds without the need of a rescan. Meant for use with pruned wallets." %}
{% assign summary_importPubKey="imports a public key (in hex) that can be watched as if it were in your wallet but cannot be used to spend" %}
{% assign summary_importWallet="imports private keys from a file in wallet dump file format (see the `dumpwallet` RPC). These keys will be added to the keys currently in the wallet. This call may need to rescan all or parts of the block chain for transactions affecting the newly-added keys, which may take several minutes." %}
{% assign summary_instantSendToAddress="" %}
{% assign summary_instantSendToAddress="InstantSend an amount to a given address." %}
{% assign summary_keepass="" %}
{% assign summary_keyPoolRefill="fills the cache of unused pre-generated keys (the keypool)." %}
{% assign summary_listAccounts="lists accounts and their balances." %}

View file

@ -329,6 +329,100 @@ NOT IN DASH
{% enditemplate %}
{% endcapture %}
{% capture INCLUDE_GOVERNANCE_OBJECT %}
{% itemplate ntpd1 %}
- n: "Result"
t: "object"
p: "Required<br>(exactly 1)"
d: "Information about the governance object"
- n: "→<br>Governance Object(s)"
t: "object"
p: "Required<br>(1 or more)"
d: "Key: Governance object hash<br>Values: Governance object details"
- n: "→ →<br>`DataHex`"
t: "string (hex)"
p: "Required<br>(exactly 1)"
d: "Governance object info as hex string"
- n: "→ →<br>`DataString`"
t: "string"
p: "Required<br>(exactly 1)"
d: "Governance object info as string"
- n: "→ →<br>`Hash`"
t: "string (hex)"
p: "Required<br>(exactly 1)"
d: "Hash of this governance object"
- n: "→ →<br>`CollateralHash`"
t: "string (hex)"
p: "Required<br>(exactly 1)"
d: "Hash of the collateral payment transaction"
- n: "→ →<br>`ObjectType`"
t: "number"
p: "Required<br>(exactly 1)"
d: "Object types:<br>`1` - Unknown<br>`2` - Proposal<br>`3` - Trigger<br>`4` - Watchdog"
- n: "→ →<br>`CreationTime`"
t: "number"
p: "Required<br>(exactly 1)"
d: "Object creation time as Unix epoch time"
- n: "→ →<br>`AbsoluteYesCount`"
t: "number"
p: "Required<br>(exactly 1)"
d: "Number of `Yes` votes minus number of `No` votes"
- n: "→ →<br>`YesCount`"
t: "number"
p: "Required<br>(exactly 1)"
d: "Number of `Yes` votes"
- n: "→ →<br>`NoCount`"
t: "number"
p: "Required<br>(exactly 1)"
d: "Number of `No` votes"
- n: "→ →<br>`AbstainCount`"
t: "number"
p: "Required<br>(exactly 1)"
d: "Number of `Abstain` votes"
- n: "→<br>`fLocalValidity`"
t: "boolean"
p: "Required<br>(exactly 1)"
d: "Valid by the blockchain"
- n: "→<br>`IsValidReason`"
t: "string"
p: "Required<br>(exactly 1)"
d: "`fLocalValidity` error result. Empty if no error returned."
- n: "→<br>`fCachedValid`"
t: "boolean"
p: "Required<br>(exactly 1)"
d: "Minimum network support has been reached flagging this object as a valid and understood governance object (e.g, the serialized data is correct format, etc)"
- n: "→<br>`fCachedFunding`"
t: "boolean"
p: "Required<br>(exactly 1)"
d: "Minimum network support has been reached for this object to be funded (doesn't mean it will be for sure though)"
- n: "→<br>`fCachedDelete`"
t: "boolean"
p: "Required<br>(exactly 1)"
d: "Minimum network support has been reached saying this object should be deleted from the system entirely"
- n: "→<br>`fCachedEndorsed`"
t: "boolean"
p: "Required<br>(exactly 1)"
d: "Minimum network support has been reached flagging this object as endorsed"
{% enditemplate %}
{% endcapture %}
{% assign WARNING="![Warning icon](/img/icons/icon_warning.svg) **Warning:**" %}
{% assign WARNING_ICON="![Warning icon](/img/icons/icon_warning.svg)" %}