Add GetBlockHeaders details

Minor formatting updates
This commit is contained in:
thephez 2017-10-09 12:45:30 -04:00
parent 19de466c40
commit 37888c23fc
4 changed files with 15 additions and 6 deletions

View file

@ -20,7 +20,7 @@ Use v0.n.n in abbreviation title to prevent autocrossrefing.
{% assign DASH_NOT_IMPLEMENTED='**<abbr title="Not Implemented in Dash">Not Implemented</abbr>**' %} {% assign DASH_NOT_IMPLEMENTED='**<abbr title="Not Implemented in Dash">Not Implemented</abbr>**' %}
<!-- Dash Core 0.12.1.0 Feb 2017 --> <!-- Dash Core 0.12.1.0 Feb 2017 -->
{% assign DASH_NEW0_12_1='*<abbr title="New in Dash Core v0.12.1">New in Dash Core 0.12.0</abbr>*' %} {% assign DASH_NEW0_12_1='*<abbr title="New in Dash Core v0.12.1">New in Dash Core 0.12.1</abbr>*' %}
{% assign DASH_UPDATED0_12_1='**<abbr title="Updated in Dash Core v0.12.1">Updated in Dash Core 0.12.1</abbr>**' %} {% assign DASH_UPDATED0_12_1='**<abbr title="Updated in Dash Core v0.12.1">Updated in Dash Core 0.12.1</abbr>**' %}
<!-- Deprecated --> <!-- Deprecated -->
@ -84,9 +84,9 @@ These RPCs are all Dash-specific and not found in Bitcoin Core
* [GetBlockChainInfo][rpc getblockchaininfo]: {{summary_getBlockChainInfo}} {{UPDATED0_12_1}} * [GetBlockChainInfo][rpc getblockchaininfo]: {{summary_getBlockChainInfo}} {{UPDATED0_12_1}}
* [GetBlockCount][rpc getblockcount]: {{summary_getBlockCount}} * [GetBlockCount][rpc getblockcount]: {{summary_getBlockCount}}
* [GetBlockHash][rpc getblockhash]: {{summary_getBlockHash}} * [GetBlockHash][rpc getblockhash]: {{summary_getBlockHash}}
* [GetBlockHashes][rpc getblockhashes]: {{summary_getBlockHashes}} * [GetBlockHashes][rpc getblockhashes]: {{summary_getBlockHashes}} {{DASH_NEW0_12_1}}
* [GetBlockHeader][rpc getblockheader]: {{summary_getBlockHeader}} {{NEW0_12_0}} * [GetBlockHeader][rpc getblockheader]: {{summary_getBlockHeader}} {{NEW0_12_0}}
* [GetBlockHeaders][rpc getblockheaders]: {{summary_getBlockHeaders}} * [GetBlockHeaders][rpc getblockheaders]: {{summary_getBlockHeaders}} {{DASH_NEW0_12_1}}
* [GetChainTips][rpc getchaintips]: {{summary_getChainTips}} {{DASH_UPDATED0_12_1}} * [GetChainTips][rpc getchaintips]: {{summary_getChainTips}} {{DASH_UPDATED0_12_1}}
* [GetDifficulty][rpc getdifficulty]: {{summary_getDifficultly}} * [GetDifficulty][rpc getdifficulty]: {{summary_getDifficultly}}
* [GetMemPoolInfo][rpc getmempoolinfo]: {{summary_getMemPoolInfo}} {{UPDATED0_12_0}} * [GetMemPoolInfo][rpc getmempoolinfo]: {{summary_getMemPoolInfo}} {{UPDATED0_12_0}}

View file

@ -7,10 +7,12 @@ http://opensource.org/licenses/MIT.
##### GetBlockHashes ##### GetBlockHashes
{% include helpers/subhead-links.md %} {% include helpers/subhead-links.md %}
{% assign summary_getBlockHashes="returns array of hashes of blocks within the timestamp range provided." %} {% assign summary_getBlockHashes="returns array of hashes of blocks within the timestamp range provided (requires `timestampindex` to be enabled)." %}
{% autocrossref %} {% autocrossref %}
*Added in Dash Core 0.12.1*
The `getblockhashes` RPC {{summary_getBlockHashes}} The `getblockhashes` RPC {{summary_getBlockHashes}}
*Parameter #1---high block timestamp* *Parameter #1---high block timestamp*

View file

@ -78,6 +78,11 @@ The `getblockheader` RPC {{summary_getBlockHeader}}
p: "Required<br>(exactly 1)" p: "Required<br>(exactly 1)"
d: "The merkle root for this block, encoded as hex in RPC byte order" d: "The merkle root for this block, encoded as hex in RPC byte order"
- n: "→<br>`time`"
t: "number (int)"
p: "Required<br>(exactly 1)"
d: "The time of the block"
- n: "→<br>`mediantime`" - n: "→<br>`mediantime`"
t: "number (int)" t: "number (int)"
p: "Required<br>(exactly 1)" p: "Required<br>(exactly 1)"
@ -178,6 +183,8 @@ Result:
* [GetBlock][rpc getblock]: {{summary_getBlock}} * [GetBlock][rpc getblock]: {{summary_getBlock}}
* [GetBlockHash][rpc getblockhash]: {{summary_getBlockHash}} * [GetBlockHash][rpc getblockhash]: {{summary_getBlockHash}}
* [GetBlockHashes][rpc getblockhashes]: {{summary_getBlockHashes}}
* [GetBlockHeaders][rpc getblockheaders]: {{summary_getBlockHeaders}}
* [GetBestBlockHash][rpc getbestblockhash]: {{summary_getBestBlockHash}} * [GetBestBlockHash][rpc getbestblockhash]: {{summary_getBestBlockHash}}
{% endautocrossref %} {% endautocrossref %}

View file

@ -35,9 +35,9 @@ This file is licensed under the terms of its source texts{%endcomment%}
{% assign summary_getBlockChainInfo="provides information about the current state of the block chain." %} {% assign summary_getBlockChainInfo="provides information about the current state of the block chain." %}
{% assign summary_getBlockCount="returns the number of blocks in the local best block chain." %} {% assign summary_getBlockCount="returns the number of blocks in the local best block chain." %}
{% assign summary_getBlockHash="returns the header hash of a block at the given height in the local best block chain." %} {% assign summary_getBlockHash="returns the header hash of a block at the given height in the local best block chain." %}
{% assign summary_getBlockHashes= %} {% assign summary_getBlockHashes="returns array of hashes of blocks within the timestamp range provided (requires `timestampindex` to be enabled)." %}
{% assign summary_getBlockHeader="gets a block header with a particular header hash from the local block database either as a JSON object or as a serialized block header." %} {% assign summary_getBlockHeader="gets a block header with a particular header hash from the local block database either as a JSON object or as a serialized block header." %}
{% assign summary_getBlockHeaders= %} {% assign summary_getBlockHeaders="returns an array of items with information about the requested number of blockheaders starting from the requested hash." %}
{% assign summary_getBlockTemplate="gets a block template or proposal for use with mining software." %} {% assign summary_getBlockTemplate="gets a block template or proposal for use with mining software." %}
{% assign summary_getChainTips="returns information about the highest-height block (tip) of each local block chain." %} {% assign summary_getChainTips="returns information about the highest-height block (tip) of each local block chain." %}
{% assign summary_getConnectionCount="returns the number of connections to other nodes." %} {% assign summary_getConnectionCount="returns the number of connections to other nodes." %}