mirror of
https://github.com/seigler/dash-docs
synced 2025-07-26 01:06:13 +00:00
Dev ref conversion (#2)
Developer reference/guide updates to this point * Update some reference documents - Adjust ref_intro to reference Dash - Start updating p2p network ref - Adjust some items in references.md to point to Dash URLs * Update P2P networking protocol versions and message headers sections Update subheading-links Update more items in references.md * Update inventories to include Dash specific items - Update references.md with them also Update disclaimer (Bitcoin -> Dash) * Remove reference to bitcoin mailing list from ref_intro * Add Spork/GetSporks message details Add placeholders for Dash specific messages - Added subsections for InstantSend, PrivateSend, Masternodes, and Governance * Some Bitcoin->Dash conversions - Update title / section name for Dev Doc/Dev Reference - Updated favicon * Updates for the Data Network section of P2P reference * Added Alert message details from Bitcoin back and removed feefilter * More updates for Control Messages section of P2P network - Bitcoin->Dash reference changes - Reject and Version message updates * InstantSend subsection of P2P reference detail - Added ix, txlvote message details and associated references * Governance subsection (P2P) - Start adding govobj, govobjvote details - Add spork references * Missed spork xref in previous * Governance (P2P) updates - Add details to govobjvote and govsync * Governance object P2P messages - Add additional description/details * PrivateSend P2P messages - Added details for dsa, dsc, dsf, dsi, dsq, dss, dssu, and dstx messages - Added references also - Hexdump examples for all but dsi and dss * PrivateSend P2P minor updates * Masternode P2P messages - Add descriptions - Add hexdump details * Masternode P2P messages (dseg, mnb, mnget, mnp, mnv, mnw, mnwb, ssc) - Add reference/crossref entries - Add message structure * P2P messages - minor formatting and corrections * Block chain reference - Version info updates * Update Block Chain reference (Headers) - Update version details - Update block reward info * Update Transactions reference - Add some Dash specific updates * Minor Transactions reference change * RPC reference updates * RPC reference updates - Added/removed commands to match available Dash commands * Core API updates * Renamed devdocs/bitcoin-core to dash-core - Updated developer-reference.md to point at new location * Update filename to use dash-core instead of bitcoin-core * Add Dash-specific GetAddressBalance RPC command and associated updates Update RPC quick reference list * Added cross reference/reference placeholders for remaining GetAddress... RPC commands Added RPC template placeholder files for remaining GetAddress... commands * Scripts for environment setup and frequently used builds * Add details for GetAddressDeltas/Mempool RPCs Update path in Makefile bitcoin-core -> dash-core * Add GetAddressTxids/Utxos details Update minor formatting, etc. for GetAddressBalance/Deltas/Mempool Changed reference to Dash Core and updated denominations for Dash * Misc minor cleanup * Work on updating existing Block Chain RPCs - GetBestBlockHash, GetBlock, GetBlockChainInfo, GetBlockCount, GetBlockHash * Continue updating existing Block Chain RPCs - GetBlockHeader, GetChainTips, GetDifficulty, GetMemPoolInfo, GetRawMemPool * Update RPCs quick-ref - Added descriptions for Dash - Updated description for Bitcoin related items for clarity * Comment out content of non-implemented Block chain RPCs (GetMemPoolAncestors, GetMemPoolDescendants, GetMemPoolEntry, PreciousBlock, PruneBlockChain) * Continue updating existing Block Chain RPCs - GetTxOut, GetTxOutProof, GetTxOutSetInfo, VerifyChain, VerifyTxOutProof Update previous block hash type to indicate X11 instead of double SHA256 * Add script to create basic RPC md file Set up empty GetBlockHashes/Headers and GetSpentInfo RPCs * Add GetBlockhashes details Minor correction in Empty RPC generation script * Add GetBlockHeaders details Minor formatting updates * Update Address Index related RPCs to indicate the necessity of enabling addressindex to use them * Actual details of GetBlockHeaders * Add details for GetSpentInfo * Update existing Control RPCs (GetInfo, Help, Stop) * Add Debug RPC * Expand empty RPC generation script to add example section and fix format * Added empty RPC files and cross-ref details for all Dash RPCs * Add details for some Dash RPCs - GetGovernanceInfo, GetPoolInfo, GetSuperblockBudget * Add details for MasternodeList RPC (Dash section) * Add details for MnSync RPC (Dash section) * Dash RPC updates - Add Result section to MasternodeList - Formatting updates to MnSync * Expand script to add placeholders for parameters/resuls/example * Add details for PrivateSend RPC (Dash section) * Update Generating RPCs - Added details back for GetGenerate/SetGenerate which were deprecated in Bitcoin * Formatting and example updates * Add result detail and example to GetBlockTemplate * Update existing Mining RPCs - GetMiningInfo, GetNetworkHashPs, PrioritiseTransaction, SubmitBlock * Minor formatting updates * Update most existing Network RPCs - AddNode, ClearBanned, DisconnectNode, GetAddedNodeInfo, GetConnectionCount, GetNetTotals,GetNetworkInfo, GetPeerInfo, ListBanned, Ping, SetBan - Added some norefs as needed (Network RPCs only) * Misc cleanup * SetNetworkActive (Network RPC) * Misc updates - Change logo - Disable some headers (alert, donation) - Disable footer * Governance updates - Add description of govsync to P2P guide - Updates to P2P reference * Governance - Add governance message SVG image - Typo fixes * Dseg updates - Added clarifying details regarding how to request single/all nodes - Ban warning * Minor governance updates * Governance updates / MN sync - Correct some reference links - Add MN sync info to guide - Update dseg, mnget, ssc, and govsync messages to include more detail * Governance updates - Guide updated to show both stages of govsync - Reference - Correcte ssc typo and add sync item detail - Update govobjvote to include detail about propagation - Update govsync details * Governance updates - More clarification on govsync (guide and reference) * Raw Transaction RPC - Previously uncommitted CreateRawTransaction update * Dash RPC (Gobject) - Add details for count and get sub-commands Also added description for govobj types * P2P messages - Spork updated to include verification details and a hexdump Minor typo / note updates * P2P Message - mnv - Draft details regarding use and operation * P2P message (mnv) - Additional detail updates based on info from Udjin Minor update to mnp * Guide - Masternode payment - Add section and start putting in details * P2P Messages - deprecated - Move deprecated messages to their own group * Misc minor non-content updates
This commit is contained in:
parent
17c265f5fd
commit
703c54ffbc
183 changed files with 9570 additions and 1373 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
scripts/*.md
|
||||
_site/
|
||||
.DS_Store
|
||||
.DS_Store?
|
||||
|
|
6
Makefile
6
Makefile
|
@ -222,9 +222,9 @@ check-for-missing-copyright-licenses:
|
|||
check-for-missing-rpc-summaries:
|
||||
## Make sure the Quick Reference section has a summary for each RPC we
|
||||
## have documented
|
||||
$S for f in _includes/devdoc/bitcoin-core/rpcs/rpcs/*.md ;\
|
||||
do grep -q "\[$$( grep '^##### ' $$f | sed 's/^##### *\([a-zA-Z]*\).*/\1/')\]\[" _includes/devdoc/bitcoin-core/rpcs/quick-reference.md \
|
||||
|| echo 'missing summary for '$$f', you need to add the summary to _includes/devdoc/bitcoin-core/rpcs/quick-ref.md and run make manual-updates' \
|
||||
$S for f in _includes/devdoc/dash-core/rpcs/rpcs/*.md ;\
|
||||
do grep -q "\[$$( grep '^##### ' $$f | sed 's/^##### *\([a-zA-Z]*\).*/\1/')\]\[" _includes/devdoc/dash-core/rpcs/quick-reference.md \
|
||||
|| echo 'missing summary for '$$f', you need to add the summary to _includes/devdoc/dash-core/rpcs/quick-ref.md and run make manual-updates' \
|
||||
; done | eval $(ERROR_ON_OUTPUT)
|
||||
|
||||
manual-update-summaries-file:
|
||||
|
|
|
@ -24,6 +24,25 @@ certificate chain:
|
|||
DER:
|
||||
DER format: der
|
||||
DER-formatted: der
|
||||
'`dsa` message': dsa message
|
||||
'`dsa` messages': dsa message
|
||||
'`dsc` message': dsc message
|
||||
'`dsc` messages': dsc message
|
||||
'`dsf` message': dsf message
|
||||
'`dsf` messages': dsf message
|
||||
'`dsi` message': dsi message
|
||||
'`dsi` messages': dsi message
|
||||
'`dsq` message': dsq message
|
||||
'`dsq` messages': dsq message
|
||||
'`dseg` message': dseg message
|
||||
'`dseg` messages': dseg message
|
||||
'`dss` message': dss message
|
||||
'`dss` messages': dss message
|
||||
'`dssu` message': dssu message
|
||||
'`dssu` messages': dssu message
|
||||
'`dstx` message': dstx message
|
||||
'`dstx` messages': dstx message
|
||||
DNS address: DO NOT AUTOCROSSREF
|
||||
ECDSA:
|
||||
epoch time: unix epoch time
|
||||
'`expires`': pp expires
|
||||
|
@ -44,12 +63,22 @@ fiat:
|
|||
'`getheaders` messages': getheaders message
|
||||
'`getaddr` message': getaddr message
|
||||
'`getaddr` messages': getaddr message
|
||||
'`getsporks` message': getsporks message
|
||||
'`getsporks` messages': getsporks message
|
||||
'`govobj` message': govobj message
|
||||
'`govobj` messages': govobj message
|
||||
'`govobjvote` message': govobjvote message
|
||||
'`govobjvote` messages': govobjvote message
|
||||
'`govsync` message': govsync message
|
||||
'`govsync` messages': govsync message
|
||||
'`headers` message': headers message
|
||||
'`headers` messages': headers message
|
||||
intermediate certificate:
|
||||
intermediate certificates: intermediate certificate
|
||||
'`inv` message': inv message
|
||||
'`inv` messages': inv message
|
||||
'`ix` message': ix message
|
||||
'`ix` messages': ix message
|
||||
IP address: DO NOT AUTOCROSSREF
|
||||
IP addresses: DO NOT AUTOCROSSREF
|
||||
IPv4 address: DO NOT AUTOCROSSREF
|
||||
|
@ -75,6 +104,16 @@ merge:
|
|||
Merge avoidance:
|
||||
micropayment channel:
|
||||
micropayment channels: micropayment channel
|
||||
'`mnb` message': mnb message
|
||||
'`mnb` messages': mnb message
|
||||
'`mnget` message': mnget message
|
||||
'`mnget` messages': mnget message
|
||||
'`mnp` message': mnp message
|
||||
'`mnp` messages': mnp message
|
||||
'`mnv` message': mnv message
|
||||
'`mnv` messages': mnv message
|
||||
'`mnw` message': mnw message
|
||||
'`mnw` messages': mnw message
|
||||
'`MSG_BLOCK`': msg_block
|
||||
'`MSG_FILTERED_BLOCK`': msg_filtered_block
|
||||
'`MSG_TX`': msg_tx
|
||||
|
@ -124,7 +163,7 @@ public key infrastructure: pki
|
|||
'`r`': r
|
||||
receipt:
|
||||
recurrent rebilling:
|
||||
refund:
|
||||
refund:
|
||||
refunds: refund
|
||||
'`reject` message': reject message
|
||||
'`reject` messages': reject message
|
||||
|
@ -133,11 +172,17 @@ RPC:
|
|||
RPCs: rpc
|
||||
'`script`': pp script
|
||||
secp256k1:
|
||||
'`spork` message': spork message
|
||||
'`spork` messages': spork message
|
||||
'`ssc` message': ssc message
|
||||
'`ssc` messages': ssc message
|
||||
standard block relay:
|
||||
transaction object format:
|
||||
transaction version number:
|
||||
'`tx` message': tx message
|
||||
'`tx` messages': tx message
|
||||
'`txlvote` message': txlvote message
|
||||
'`txlvote` messages': txlvote message
|
||||
unencrypted wallet:
|
||||
unix epoch time:
|
||||
unix time: unix epoch time
|
||||
|
@ -172,6 +217,7 @@ BIP39:
|
|||
BIP50:
|
||||
BIP61:
|
||||
BIP62:
|
||||
BIP65:
|
||||
BIP66:
|
||||
BIP70:
|
||||
BIP71:
|
||||
|
@ -208,6 +254,8 @@ CVE-2012-2459:
|
|||
'`createmultisig` RPC': rpc createmultisig
|
||||
'`createrawtransaction`': rpc createrawtransaction
|
||||
'`createrawtransaction` RPC': rpc createrawtransaction
|
||||
'`debug`': rpc debug
|
||||
'`debug` RPC': rpc debug
|
||||
'`decoderawtransaction`': rpc decoderawtransaction
|
||||
'`decoderawtransaction` RPC': rpc decoderawtransaction
|
||||
'`decodescript`': rpc decodescript
|
||||
|
@ -236,8 +284,18 @@ CVE-2012-2459:
|
|||
'`getaccountaddress` RPC': rpc getaccountaddress
|
||||
'`getaddednodeinfo`': rpc getaddednodeinfo
|
||||
'`getaddednodeinfo` RPC': rpc getaddednodeinfo
|
||||
'`getaddressbalance`': rpc getaddressbalance
|
||||
'`getaddressbalance` RPC': rpc getaddressbalance
|
||||
'`getaddressdeltas`': rpc getaddressdeltas
|
||||
'`getaddressdeltas` RPC': rpc getaddressdeltas
|
||||
'`getaddressesbyaccount`': rpc getaddressesbyaccount
|
||||
'`getaddressesbyaccount` RPC': rpc getaddressesbyaccount
|
||||
'`getaddressmempool`': rpc getaddressmempool
|
||||
'`getaddressmempool` RPC': rpc getaddressmempool
|
||||
'`getaddresstxids`': rpc getaddresstxids
|
||||
'`getaddresstxids` RPC': rpc getaddresstxids
|
||||
'`getaddressutxos`': rpc getaddressutxos
|
||||
'`getaddressutxos` RPC': rpc getaddressutxos
|
||||
'`getbalance`': rpc getbalance
|
||||
'`getbalance` RPC': rpc getbalance
|
||||
'`getbestblockhash`': rpc getbestblockhash
|
||||
|
@ -250,8 +308,12 @@ CVE-2012-2459:
|
|||
'`getblockcount` RPC': rpc getblockcount
|
||||
'`getblockhash`': rpc getblockhash
|
||||
'`getblockhash` RPC': rpc getblockhash
|
||||
'`getblockhashes`': rpc getblockhashes
|
||||
'`getblockhashes` RPC': rpc getblockhashes
|
||||
'`getblockheader`': rpc getblockheader
|
||||
'`getblockheader` RPC': rpc getblockheader
|
||||
'`getblockheaders`': rpc getblockheaders
|
||||
'`getblockheaders` RPC': rpc getblockheaders
|
||||
'`getblocktemplate`': rpc getblocktemplate
|
||||
'`getblocktemplate` RPC': rpc getblocktemplate
|
||||
'`getchaintips`': rpc getchaintips
|
||||
|
@ -262,6 +324,8 @@ CVE-2012-2459:
|
|||
'`getdifficulty` RPC': rpc getdifficulty
|
||||
'`getgenerate`': rpc getgenerate
|
||||
'`getgenerate` RPC': rpc getgenerate
|
||||
'`getgovernanceinfo`': rpc getgovernanceinfo
|
||||
'`getgovernanceinfo` RPC': rpc getgovernanceinfo
|
||||
'`gethashespersec`': rpc gethashespersec
|
||||
'`gethashespersec` RPC': rpc gethashespersec
|
||||
'`getinfo`': rpc getinfo
|
||||
|
@ -288,6 +352,8 @@ CVE-2012-2459:
|
|||
'`getnewaddress` RPC': rpc getnewaddress
|
||||
'`getpeerinfo`': rpc getpeerinfo
|
||||
'`getpeerinfo` RPC': rpc getpeerinfo
|
||||
'`getpoolinfo`': rpc getpoolinfo
|
||||
'`getpoolinfo` RPC': rpc getpoolinfo
|
||||
'`getrawchangeaddress`': rpc getrawchangeaddress
|
||||
'`getrawchangeaddress` RPC': rpc getrawchangeaddress
|
||||
'`getrawmempool`': rpc getrawmempool
|
||||
|
@ -298,6 +364,10 @@ CVE-2012-2459:
|
|||
'`getreceivedbyaccount` RPC': rpc getreceivedbyaccount
|
||||
'`getreceivedbyaddress`': rpc getreceivedbyaddress
|
||||
'`getreceivedbyaddress` RPC': rpc getreceivedbyaddress
|
||||
'`getspentinfo`': rpc getspentinfo
|
||||
'`getspentinfo` RPC': rpc getspentinfo
|
||||
'`getsuperblockbudget`': rpc getsuperblockbudget
|
||||
'`getsuperblockbudget` RPC': rpc getsuperblockbudget
|
||||
'`gettransaction`': rpc gettransaction
|
||||
'`gettransaction` RPC': rpc gettransaction
|
||||
'`gettxout`': rpc gettxout
|
||||
|
@ -312,6 +382,8 @@ CVE-2012-2459:
|
|||
'`getwalletinfo` RPC': rpc getwalletinfo
|
||||
'`getwork`': rpc getwork
|
||||
'`getwork` RPC': rpc getwork
|
||||
'`gobject`': rpc gobject
|
||||
'`gobject` RPC': rpc gobject
|
||||
'`help`': rpc help
|
||||
'`help` RPC': rpc help
|
||||
'`importaddress`': rpc importaddress
|
||||
|
@ -346,6 +418,14 @@ CVE-2012-2459:
|
|||
'`listunspent` RPC': rpc listunspent
|
||||
'`lockunspent`': rpc lockunspent
|
||||
'`lockunspent` RPC': rpc lockunspent
|
||||
'`masternode`': rpc masternode
|
||||
'`masternode` RPC': rpc masternode
|
||||
'`masternodebroadcast`': rpc masternodebroadcast
|
||||
'`masternodebroadcast` RPC': rpc masternodebroadcast
|
||||
'`masternodelist`': rpc masternodelist
|
||||
'`masternodelist` RPC': rpc masternodelist
|
||||
'`mnsync`': rpc mnsync
|
||||
'`mnsync` RPC': rpc mnsync
|
||||
'`move`': rpc move
|
||||
'`move` RPC': rpc move
|
||||
'`ping`': rpc ping
|
||||
|
@ -354,6 +434,8 @@ CVE-2012-2459:
|
|||
'`preciousblock` RPC': rpc preciousblock
|
||||
'`prioritisetransaction`': rpc prioritisetransaction
|
||||
'`prioritisetransaction` RPC': rpc prioritisetransaction
|
||||
'`privatesend`': rpc privatesend
|
||||
'`privatesend` RPC': rpc privatesend
|
||||
'`pruneblockchain`': rpc pruneblockchain
|
||||
'`pruneblockchain` RPC': rpc pruneblockchain
|
||||
'`removeprunedfunds`': rpc removeprunedfunds
|
||||
|
@ -385,6 +467,8 @@ CVE-2012-2459:
|
|||
'`signmessagewithprivkey` RPC': rpc signmessagewithprivkey
|
||||
'`signrawtransaction`': rpc signrawtransaction
|
||||
'`signrawtransaction` RPC': rpc signrawtransaction
|
||||
'`spork`': rpc spork
|
||||
'`spork` RPC': rpc spork
|
||||
'`stop`': rpc stop
|
||||
'`stop` RPC': rpc stop
|
||||
'`submitblock`': rpc submitblock
|
||||
|
@ -397,6 +481,8 @@ CVE-2012-2459:
|
|||
'`verifymessage` RPC': rpc verifymessage
|
||||
'`verifytxoutproof`': rpc verifytxoutproof
|
||||
'`verifytxoutproof` RPC': rpc verifytxoutproof
|
||||
'`voteraw`': rpc voteraw
|
||||
'`voteraw` RPC': rpc voteraw
|
||||
'`walletlock`': rpc walletlock
|
||||
'`walletlock` RPC': rpc walletlock
|
||||
'`walletpassphrase`': rpc walletpassphrase
|
||||
|
|
20
_config.yml
20
_config.yml
|
@ -263,6 +263,7 @@ devsearches:
|
|||
- 'ClearBanned': "/en/developer-reference#clearbanned"
|
||||
- 'CreateMultisig': "/en/developer-reference#createmultisig"
|
||||
- 'CreateRawTransaction': "/en/developer-reference#createrawtransaction"
|
||||
- 'Debug': "/en/developer-reference#debug"
|
||||
- 'DecodeRawTransaction': "/en/developer-reference#decoderawtransaction"
|
||||
- 'DecodeScript': "/en/developer-reference#decodescript"
|
||||
- 'DisconnectNode': "/en/developer-reference#disconnectnode"
|
||||
|
@ -278,17 +279,25 @@ devsearches:
|
|||
- 'GetAccountAddress': "/en/developer-reference#getaccountaddress"
|
||||
- 'GetAddedNodeInfo': "/en/developer-reference#getaddednodeinfo"
|
||||
- 'GetAddressesByAccount': "/en/developer-reference#getaddressesbyaccount"
|
||||
- 'GetAddressBalance': "/en/developer-reference#getaddressbalance"
|
||||
- 'GetAddressDeltas': "/en/developer-reference#getaddressdeltas"
|
||||
- 'GetAddressMempool': "/en/developer-reference#getaddressmempool"
|
||||
- 'GetAddressTxids': "/en/developer-reference#getaddresstxids"
|
||||
- 'GetAddressUtxos': "/en/developer-reference#getaddressutxos"
|
||||
- 'GetBalance': "/en/developer-reference#getbalance"
|
||||
- 'GetBestBlockHash': "/en/developer-reference#getbestblockhash"
|
||||
- 'GetBlock': "/en/developer-reference#getblock"
|
||||
- 'GetBlockChainInfo': "/en/developer-reference#getblockchaininfo"
|
||||
- 'GetBlockCount': "/en/developer-reference#getblockcount"
|
||||
- 'GetBlockHash': "/en/developer-reference#getblockhash"
|
||||
- 'GetBlockHashes': "/en/developer-reference#getblockhashes"
|
||||
- 'GetBlockHeader': "/en/developer-reference#getblockheader"
|
||||
- 'GetBlockHeaders': "/en/developer-reference#getblockheaders"
|
||||
- 'GetBlockTemplate': "/en/developer-reference#getblocktemplate"
|
||||
- 'GetChainTips': "/en/developer-reference#getchaintips"
|
||||
- 'GetConnectionCount': "/en/developer-reference#getconnectioncount"
|
||||
- 'GetDifficulty': "/en/developer-reference#getdifficulty"
|
||||
- 'GetGovernanceInfo': "/en/developer-reference#getgovernanceinfo"
|
||||
- 'GetGenerate': "/en/developer-reference#getgenerate"
|
||||
- 'GetHashesPerSec': "/en/developer-reference#gethashespersec"
|
||||
- 'GetInfo': "/en/developer-reference#getinfo"
|
||||
|
@ -303,11 +312,14 @@ devsearches:
|
|||
- 'GetNetworkInfo': "/en/developer-reference#getnetworkinfo"
|
||||
- 'GetNewAddress': "/en/developer-reference#getnewaddress"
|
||||
- 'GetPeerInfo': "/en/developer-reference#getpeerinfo"
|
||||
- 'GetPoolInfo': "/en/developer-reference#getpoolinfo"
|
||||
- 'GetRawChangeAddress': "/en/developer-reference#getrawchangeaddress"
|
||||
- 'GetRawMempool': "/en/developer-reference#getrawmempool"
|
||||
- 'GetRawTransaction': "/en/developer-reference#getrawtransaction"
|
||||
- 'GetReceivedByAccount': "/en/developer-reference#getreceivedbyaccount"
|
||||
- 'GetReceivedByAddress': "/en/developer-reference#getreceivedbyaddress"
|
||||
- 'GetSpentInfo': "/en/developer-reference#getspentinfo"
|
||||
- 'GetSuperblockBudget': "/en/developer-reference#getsuperblockbudget"
|
||||
- 'GetTransaction': "/en/developer-reference#gettransaction"
|
||||
- 'GetTxout': "/en/developer-reference#gettxout"
|
||||
- 'GetTxOutProof': "/en/developer-reference#gettxoutproof"
|
||||
|
@ -315,6 +327,7 @@ devsearches:
|
|||
- 'GetUnconfirmedBalance': "/en/developer-reference#getunconfirmedbalance"
|
||||
- 'GetWalletInfo': "/en/developer-reference#getwalletinfo"
|
||||
- 'GetWork': "/en/developer-reference#getwork"
|
||||
- 'GObject': "/en/developer-reference#gobject"
|
||||
- 'Help': "/en/developer-reference#help"
|
||||
- 'ImportAddress': "/en/developer-reference#importaddress"
|
||||
- 'ImportMulti': "/en/developer-reference#importmulti"
|
||||
|
@ -332,10 +345,15 @@ devsearches:
|
|||
- 'ListTransactions': "/en/developer-reference#listtransactions"
|
||||
- 'ListUnspent': "/en/developer-reference#listunspent"
|
||||
- 'LockUnspent': "/en/developer-reference#lockunspent"
|
||||
- 'Masternode': "/en/developer-reference#masternode"
|
||||
- 'MasternodeBroadcast': "/en/developer-reference#masternodebroadcast"
|
||||
- 'MasternodeList': "/en/developer-reference#masternodelist"
|
||||
- 'MnSync': "/en/developer-reference#mnsync"
|
||||
- 'Move': "/en/developer-reference#move"
|
||||
- 'Ping': "/en/developer-reference#ping-rpc"
|
||||
- 'PreciousBlock': "/en/developer-reference#preciousblock"
|
||||
- 'PrioritiseTransaction': "/en/developer-reference#prioritisetransaction"
|
||||
- 'PrivateSend': "/en/developer-reference#privatesend"
|
||||
- 'PruneBlockChain': "/en/developer-reference#pruneblockchain"
|
||||
- 'RemovePrunedFunds': "/en/developer-reference#removeprunedfunds"
|
||||
- 'SendFrom': "/en/developer-reference#sendfrom"
|
||||
|
@ -350,12 +368,14 @@ devsearches:
|
|||
- 'SignMessage': "/en/developer-reference#signmessage"
|
||||
- 'SignMessageWithPrivKey': "/en/developer-reference#signmessagewithprivkey"
|
||||
- 'SignRawTransaction': "/en/developer-reference#signrawtransaction"
|
||||
- 'Spork': "/en/developer-reference#spork-rpc"
|
||||
- 'Stop': "/en/developer-reference#stop"
|
||||
- 'SubmitBlock': "/en/developer-reference#submitblock"
|
||||
- 'ValidateAddress': "/en/developer-reference#validateaddress"
|
||||
- 'VerifyChain': "/en/developer-reference#verifychain"
|
||||
- 'VerifyMessage': "/en/developer-reference#verifymessage"
|
||||
- 'VerifyTxOutProof': "/en/developer-reference#verifytxoutproof"
|
||||
- 'VoteRaw': "/en/developer-reference#voteraw"
|
||||
- 'WalletLock': "/en/developer-reference#walletlock"
|
||||
- 'WalletPassphrase': "/en/developer-reference#walletpassphrase"
|
||||
- 'WalletPassphraseChange': "/en/developer-reference#walletpassphrasechange"
|
||||
|
|
|
@ -7,27 +7,23 @@ required:
|
|||
title_max_40_characters_no_formatting: Denominations
|
||||
|
||||
summary_max_255_characters_no_formatting: >
|
||||
Denominations of Bitcoin value, usually measured in fractions of
|
||||
a bitcoin but sometimes measured in multiples of a satoshi. One
|
||||
bitcoin equals 100,000,000 satoshis.
|
||||
Denominations of Dash value, usually measured in fractions of
|
||||
a dash but sometimes measured in multiples of a duff. One
|
||||
dash equals 100,000,000 duffs.
|
||||
|
||||
synonyms_shown_in_glossary_capitalize_first_letter:
|
||||
- Denomination
|
||||
- Bitcoins
|
||||
- Satoshis
|
||||
#- Bitcoins
|
||||
- Duffs
|
||||
|
||||
optional:
|
||||
synonyms_and_pluralizations_not_shown_in_glossary:
|
||||
- denominations
|
||||
- millibitcoin
|
||||
- millibitcoins
|
||||
- millibit
|
||||
- millibits
|
||||
- microbitcoin
|
||||
- microbitcoins
|
||||
- microbit
|
||||
- microbits
|
||||
- satoshi
|
||||
- millidash
|
||||
#- millibit
|
||||
#- millibits
|
||||
- microdash
|
||||
- duff
|
||||
## Don't add bitcoin singular, we use bare "Bitcoin" massively often
|
||||
## Don't add bits; the dev docs use [binary] "bits" often
|
||||
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
{% 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/getblocktemplate.md" %}
|
||||
|
||||
##### GetBlockTemplate
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
||||
{% assign summary_getBlockTemplate="gets a block template or proposal for use with mining software." %}
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
The `getblocktemplate` RPC {{summary_getBlockTemplate}} For more
|
||||
information, please see the following resources:
|
||||
|
||||
* [Bitcoin Wiki GetBlockTemplate][wiki getblocktemplate]
|
||||
* [BIP22][]
|
||||
* [BIP23][]
|
||||
|
||||
*See also*
|
||||
|
||||
* [SetGenerate][rpc setgenerate]: {{summary_setGenerate}}
|
||||
* [GetMiningInfo][rpc getmininginfo]: {{summary_getMiningInfo}}
|
||||
* [SubmitBlock][rpc submitblock]: {{summary_submitBlock}}
|
||||
* [PrioritiseTransaction][rpc prioritisetransaction]: {{summary_prioritiseTransaction}}
|
||||
|
||||
{% endautocrossref %}
|
|
@ -1,26 +0,0 @@
|
|||
{% 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/getgenerate.md" %}
|
||||
|
||||
##### GetGenerate
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
||||
{% assign summary_getGenerate="was removed in Bitcoin Core 0.13.0." %}
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
*Requires wallet support.*
|
||||
|
||||
The `getgenerate` RPC {{summary_getGenerate}} If you have an older
|
||||
version of Bitcoin Core, use `help getgenerate` to get help.
|
||||
|
||||
*See also*
|
||||
|
||||
* [Generate][rpc generate]: {{summary_generate}}
|
||||
* [GenerateToAddress][rpc generatetoaddress]: {{summary_generateToAddress}}
|
||||
* [GetMiningInfo][rpc getmininginfo]: {{summary_getMiningInfo}}
|
||||
|
||||
|
||||
{% endautocrossref %}
|
|
@ -1,28 +0,0 @@
|
|||
{% 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/setgenerate.md" %}
|
||||
|
||||
##### SetGenerate
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
||||
{% assign summary_setGenerate="was removed in Bitcoin Core 0.13.0." %}
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
*Requires wallet support.*
|
||||
|
||||
The `setgenerate` RPC {{summary_setGenerate}} If you have an older
|
||||
version of Bitcoin Core, use `help setgenerate` RPC to get help. For testing,
|
||||
the generate call can still be used to mine a block, and the `generatetoaddress` RPC
|
||||
call has been added to mine to a specific address. This works with wallet disabled.
|
||||
|
||||
*See also*
|
||||
|
||||
* [Generate][rpc generate]: {{summary_generate}}
|
||||
* [GenerateToAddress][rpc generatetoaddress]: {{summary_generateToAddress}}
|
||||
* [GetMiningInfo][rpc getmininginfo]: {{summary_getMiningInfo}}
|
||||
* [GetBlockTemplate][rpc getblocktemplate]: {{summary_getBlockTemplate}}
|
||||
|
||||
{% endautocrossref %}
|
|
@ -1,71 +0,0 @@
|
|||
{% 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/submitblock.md" %}
|
||||
|
||||
##### SubmitBlock
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
||||
{% 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 Bitcoin Core but may be used by mining pools or other programs." %}
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
The `submitblock` RPC {{summary_submitBlock}}
|
||||
|
||||
*Parameter #1---the new block in serialized block format as hex*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "Block"
|
||||
t: "string (hex)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The full block to submit in serialized block format as hex"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Parameter #2---additional parameters*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "Parameters"
|
||||
t: "object"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
d: "A JSON object containing extra parameters. Not used directly by Bitcoin Core and also not broadcast to the network. This is available for use by mining pools and other software. A common parameter is a `workid` string"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Result---`null` or error string*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "`result`"
|
||||
t: "null/string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "If the block submission succeeded, set to JSON `null`. If submission failed, set to one of the following strings: `duplicate`, `duplicate-invalid`, `inconclusive`, or `rejected`. The JSON-RPC `error` field will still be set to `null` if submission failed for one of these reasons"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Bitcoin Core 0.10.0*
|
||||
|
||||
Submit the following block with the workid, "test".
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli -testnet submitblock 02000000df11c014a8d798395b5059c\
|
||||
722ebdf3171a4217ead71bf6e0e99f4c7000000004a6f6a2db225c81e77773f6\
|
||||
f0457bcb05865a94900ed11356d0b75228efb38c7785d6053ffff001d005d437\
|
||||
0010100000001000000000000000000000000000000000000000000000000000\
|
||||
0000000000000ffffffff0d03b477030164062f503253482fffffffff0100f90\
|
||||
29500000000232103adb7d8ef6b63de74313e0cd4e07670d09a169b13e4eda2d\
|
||||
650f529332c47646dac00000000 \
|
||||
'{ "workid": "test" }'
|
||||
{% endhighlight %}
|
||||
|
||||
Result (the block above was already on a local block chain):
|
||||
|
||||
{% highlight text %}
|
||||
duplicate
|
||||
{% endhighlight %}
|
||||
|
||||
*See also*
|
||||
|
||||
* [GetBlockTemplate][rpc getblocktemplate]: {{summary_getBlockTemplate}}
|
||||
|
||||
{% endautocrossref %}
|
|
@ -1,73 +0,0 @@
|
|||
{% 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/verifytxoutproof.md" %}
|
||||
|
||||
##### VerifyTxOutProof
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
||||
{% 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." %}
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
The `verifytxoutproof` RPC {{summary_verifyTxOutProof}}
|
||||
|
||||
*Parameter #1---The hex-encoded proof generated by gettxoutproof*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "`proof`"
|
||||
t: "string"
|
||||
p: "Required"
|
||||
d: "A hex-encoded proof"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Result---txid(s) which the proof commits to*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "`result`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The txid(s) which the proof commits to, or empty array if the proof is invalid"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Bitcoin Core 0.11.0*
|
||||
|
||||
Verify a proof:
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli verifytxoutproof \
|
||||
03000000394ab3f08f712aa0f1d26c5daa4040b50e96d31d4e8e3c130000000000000000\
|
||||
ca89aaa0bbbfcd5d1210c7888501431256135736817100d8c2cf7e4ab9c02b168115d455\
|
||||
04dd1418836b20a6cb0800000d3a61beb3859abf1b773d54796c83b0b937968cc4ce3c0f\
|
||||
71f981b2407a3241cb8908f2a88ac90a2844596e6019450f507e7efb8542cbe54ea55634\
|
||||
c87bee474ee48aced68179564290d476e16cff01b483edcd2004d555c617dfc08200c083\
|
||||
08ba511250e459b49d6a465e1ab1d5d8005e0778359c2993236c85ec66bac4bfd974131a\
|
||||
dc1ee0ad8b645f459164eb38325ac88f98c9607752bc1b637e16814f0d9d8c2775ac3f20\
|
||||
f85260947929ceef16ead56fcbfd77d9dc6126cce1b5aacd9f834690f7508ee2db2ab67d\
|
||||
382c5e738b1b6fe3fb079511952d33ec18c8440ef291eb8d3546a971ee4aa5e574b7be7f\
|
||||
5aff0b1c989b2059ae5a611c8ce5c58e8e8476246c5e7c6b70e0065f2a6654e2e6cf4efb\
|
||||
6ae19bf2548a7d9febf5b0aceaff28610922e1b9e23e52f650a4a11d2986c9c2b09bb168\
|
||||
a70a7d4ac16e4d389bc2868ee91da1837d2cd79288bdc680e9c35ebb3ddfd045d69d767b\
|
||||
164ec69d5db9f995c045d10af5bd90cd9d1116c3732e14796ef9d1a57fa7bb718c07989e\
|
||||
d06ff359bf2009eaf1b9e000c054b87230567991b447757bc6ca8e1bb6e9816ad604dbd6\
|
||||
0600
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
|
||||
{% highlight json %}
|
||||
[
|
||||
"f20e44c818ec332d95119507fbe36f1b8b735e2c387db62adbe28e50f7904683"
|
||||
]
|
||||
{% endhighlight %}
|
||||
|
||||
*See also*
|
||||
|
||||
* [GetTxOutProof][rpc gettxoutproof]: {{summary_getTxOutProof}}
|
||||
* [`merkleblock` message][merkleblock message]: A description of the
|
||||
format used for the proof.
|
||||
|
||||
{% endautocrossref %}
|
|
@ -2,9 +2,9 @@
|
|||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
{% assign filename="_includes/devdoc/bitcoin-core/api-intro.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/api-intro.md" %}
|
||||
|
||||
## Bitcoin Core APIs
|
||||
## Dash Core APIs
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
||||
### Hash Byte Order
|
||||
|
@ -12,7 +12,7 @@ http://opensource.org/licenses/MIT.
|
|||
|
||||
{% autocrossref %}
|
||||
|
||||
Bitcoin Core RPCs accept and return the byte-wise reverse of computed
|
||||
Dash Core RPCs accept and return the byte-wise reverse of computed
|
||||
SHA-256 hash values. For example, the Unix `sha256sum` command displays the
|
||||
SHA256(SHA256()) hash of mainnet block 300,000's header as:
|
||||
|
||||
|
@ -26,25 +26,28 @@ previous-header-hash part of block 300,001's header:
|
|||
0000000000000</b>ab0aaa377ca3f49b1545e2ae6b0667a08f42e72d8c24ae\
|
||||
237140e28f14f3bb7c6bcc6d536c890019edd83ccf</pre>
|
||||
|
||||
However, Bitcoin Core's RPCs use the byte-wise reverse for hashes, so if you
|
||||
want to get information about block 300,000 using the `getblock` RPC,
|
||||
However, Dash Core's RPCs use the byte-wise reverse for hashes, so if you
|
||||
want to get information about block 675,776 using the `getblock` RPC,
|
||||
you need to reverse the requested hash:
|
||||
|
||||
> bitcoin-cli getblock \
|
||||
<!--> bitcoin-cli getblock \
|
||||
000000000000000082ccf8f1557c5d40b21edabb18d2d691cfbf87118bac7254
|
||||
-->
|
||||
> dash-cli getblock \
|
||||
000000000000327a66cd1011b2d1defd1417b7d9e39b439e8e67ba996ee92602
|
||||
|
||||
(Note: hex representation uses two characters to display each byte of
|
||||
data, which is why the reversed string looks somewhat mangled.)
|
||||
|
||||
The rationale for the reversal is unknown, but it likely stems from
|
||||
Bitcoin Core's use of hashes (which are byte arrays in C++) as integers
|
||||
Dash Core's use of hashes (which are byte arrays in C++) as integers
|
||||
for the purpose of determining whether the hash is below the network
|
||||
target. Whatever the reason for reversing header hashes, the reversal
|
||||
also extends to other hashes used in RPCs, such as TXIDs and merkle
|
||||
roots.
|
||||
|
||||
As header hashes and TXIDs are widely used as global identifiers in
|
||||
other Bitcoin software, this reversal of hashes has become the standard
|
||||
other Dash software, this reversal of hashes has become the standard
|
||||
way to refer to certain objects. The table below should make clear where
|
||||
each byte order is used.
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
{% assign filename="_includes/devdoc/bitcoin-core/rest/intro.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rest/intro.md" %}
|
||||
|
||||
### HTTP REST
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,7 +2,7 @@
|
|||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
{% assign filename="_includes/devdoc/bitcoin-core/rest/quick-reference.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rest/quick-reference.md" %}
|
||||
|
||||
#### Quick Reference {#rest-quick-reference}
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,7 +2,7 @@
|
|||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
{% assign filename="_includes/devdoc/bitcoin-core/rest/requests/get_block-notxdetails.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rest/requests/get_block-notxdetails.md" %}
|
||||
|
||||
##### GET Block/NoTxDetails
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,7 +2,7 @@
|
|||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
{% assign filename="_includes/devdoc/bitcoin-core/rest/requests/get_block.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rest/requests/get_block.md" %}
|
||||
|
||||
##### GET Block
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,7 +2,7 @@
|
|||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
{% assign filename="_includes/devdoc/bitcoin-core/rest/requests/get_chaininfo.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rest/requests/get_chaininfo.md" %}
|
||||
|
||||
##### GET ChainInfo
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,7 +2,7 @@
|
|||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
{% assign filename="_includes/devdoc/bitcoin-core/rest/requests/get_getutxos.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rest/requests/get_getutxos.md" %}
|
||||
|
||||
##### GET GetUtxos
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,7 +2,7 @@
|
|||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
{% assign filename="_includes/devdoc/bitcoin-core/rest/requests/get_headers.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rest/requests/get_headers.md" %}
|
||||
|
||||
##### GET Headers
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,7 +2,7 @@
|
|||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
{% assign filename="_includes/devdoc/bitcoin-core/rest/requests/get_mempool-contents.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rest/requests/get_mempool-contents.md" %}
|
||||
|
||||
##### GET MemPool/Contents
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,7 +2,7 @@
|
|||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
{% assign filename="_includes/devdoc/bitcoin-core/rest/requests/get_mempool-info.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rest/requests/get_mempool-info.md" %}
|
||||
|
||||
##### GET MemPool/Info
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,7 +2,7 @@
|
|||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
{% assign filename="_includes/devdoc/bitcoin-core/rest/requests/get_tx.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rest/requests/get_tx.md" %}
|
||||
|
||||
##### GET Tx
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,41 +2,41 @@
|
|||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
{% assign filename="_includes/devdoc/bitcoin-core/rpcs/intro.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/intro.md" %}
|
||||
|
||||
### Remote Procedure Calls (RPCs)
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
Bitcoin Core provides a remote procedure call (RPC) interface for various
|
||||
Dash Core provides a remote procedure call (RPC) interface for various
|
||||
administrative tasks, wallet operations, and queries about network and block
|
||||
chain data.
|
||||
|
||||
If you start Bitcoin Core using `bitcoin-qt`, the RPC interface is disabled by
|
||||
default. To enable it, set `server=1` in `bitcoin.conf` or supply the `-server`
|
||||
argument when invoking the program. If you start Bitcoin Core using `bitcoind`,
|
||||
If you start Dash Core using `dash-qt`, the RPC interface is disabled by
|
||||
default. To enable it, set `server=1` in `dash.conf` or supply the `-server`
|
||||
argument when invoking the program. If you start Dash Core using `dashd`,
|
||||
the RPC interface is enabled by default.
|
||||
|
||||
The interface requires the user to provide a password for authenticating RPC
|
||||
requests. This password can be set either using the `rpcpassword` property in
|
||||
`bitcoin.conf` or by supplying the `-rpcpassword` program argument. Optionally a
|
||||
`dash.conf` or by supplying the `-rpcpassword` program argument. Optionally a
|
||||
username can be set using the `rpcuser` configuration value. See the [Examples
|
||||
Page][devexamples] for more information about setting Bitcoin Core configuration
|
||||
Page][devexamples] for more information about setting Dash Core configuration
|
||||
values.
|
||||
|
||||
Open-source client libraries for the RPC interface are readily available in most
|
||||
modern programming languages, so you probably don't need to write your own from
|
||||
scratch. Bitcoin Core also ships with its own compiled C++ RPC client,
|
||||
`bitcoin-cli`, located in the `bin` directory alongside `bitcoind` and
|
||||
`bitcoin-qt`. The `bitcoin-cli` program can be used as a command-line interface
|
||||
(CLI) to Bitcoin Core or for making RPC calls from applications written in
|
||||
scratch. Dash Core also ships with its own compiled C++ RPC client,
|
||||
`dash-cli`, located in the `bin` directory alongside `dashd` and
|
||||
`dash-qt`. The `dash-cli` program can be used as a command-line interface
|
||||
(CLI) to Dash Core or for making RPC calls from applications written in
|
||||
languages lacking a suitable native client. The remainder of this section
|
||||
describes the Bitcoin Core RPC protocol in detail.
|
||||
describes the Dash Core RPC protocol in detail.
|
||||
|
||||
The Bitcoin Core RPC service listens for HTTP `POST` requests on port 8332 in
|
||||
mainnet mode or 18332 in testnet or regtest mode. The port number can be changed
|
||||
by setting `rpcport` in `bitcoin.conf`. By default the RPC service binds to your
|
||||
The Dash Core RPC service listens for HTTP `POST` requests on port 9998 in
|
||||
mainnet mode, 19998 in testnet, or 18332 in regtest mode. The port number can be changed
|
||||
by setting `rpcport` in `dash.conf`. By default the RPC service binds to your
|
||||
server's [localhost][Localhost] loopback
|
||||
network<!--noref--> interface so it's not accessible from other servers.
|
||||
Authentication is implemented using [HTTP basic
|
||||
|
@ -53,7 +53,7 @@ format:
|
|||
| Name | Type | Presence | Description
|
||||
|----------------------|-----------------|-----------------------------|----------------
|
||||
| Request | object | Required<br>(exactly 1) | The JSON-RPC<!--noref--> request object
|
||||
| → <br>`jsonrpc` | number (real) | Optional<br>(0 or 1) | Version indicator for the JSON-RPC<!--noref--> request. Currently ignored by Bitcoin Core.
|
||||
| → <br>`jsonrpc` | number (real) | Optional<br>(0 or 1) | Version indicator for the JSON-RPC<!--noref--> request. Currently ignored by Dash Core.
|
||||
| → <br>`id` | string | Optional<br>(0 or 1) | An arbitrary string that will be returned with the response. May be omitted or set to an empty string ("")
|
||||
| → <br>`method` | string | Required<br>(exactly 1) | The RPC method name (e.g. `getblock`). See the RPC section for a list of available methods.
|
||||
| → <br>`params` | array | Optional<br>(0 or 1) | An array containing positional parameter values for the RPC. May be an empty array or omitted for RPC calls that don't have any required parameters.
|
||||
|
@ -72,7 +72,7 @@ output<!--noref-->, we use the following conventions
|
|||
* Code-style names like `params` are literal strings that appear in the JSON
|
||||
object.
|
||||
|
||||
* "Type" is the JSON data type and the specific Bitcoin Core type.
|
||||
* "Type" is the JSON data type and the specific Dash Core type.
|
||||
|
||||
* "Presence" indicates whether or not a field must be present within its
|
||||
containing array or object. Note that an optional object may still have
|
||||
|
@ -103,38 +103,38 @@ the genesis block:
|
|||
}
|
||||
{% endhighlight %}
|
||||
|
||||
The command to send this request using `bitcoin-cli` is:
|
||||
The command to send this request using `dash-cli` is:
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli getblockhash 0
|
||||
dash-cli getblockhash 0
|
||||
{% endhighlight %}
|
||||
|
||||
Alternatively, we could `POST` this request using the cURL command-line program
|
||||
as follows:
|
||||
|
||||
{% highlight bash %}
|
||||
curl --user ':my_secret_password' --data-binary '''
|
||||
curl --user 'my_username:my_secret_password' --data-binary '''
|
||||
{
|
||||
"method": "getblockhash",
|
||||
"params": [0],
|
||||
"id": "foo"
|
||||
}''' \
|
||||
--header 'Content-Type: text/plain;' localhost:8332
|
||||
--header 'Content-Type: text/plain;' localhost:9998
|
||||
{% endhighlight %}
|
||||
|
||||
The HTTP response data for this request would be:
|
||||
|
||||
{% highlight json %}
|
||||
{
|
||||
"result": "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f",
|
||||
"result": "00000ffd590b1485b3caadc19b22e6379c733355108f107a430458cdf3407ab6",
|
||||
"error": null,
|
||||
"id": "foo"
|
||||
}
|
||||
{% endhighlight %}
|
||||
|
||||
Note: In order to minimize its size, the raw JSON response from Bitcoin Core
|
||||
Note: In order to minimize its size, the raw JSON response from Dash Core
|
||||
doesn't include any extraneous whitespace characters. Here we've added
|
||||
whitespace to make the object more readable. Speaking of which, `bitcoin-cli`
|
||||
whitespace to make the object more readable. Speaking of which, `dash-cli`
|
||||
also transforms the raw response to make it more human-readable. It:
|
||||
|
||||
- Adds whitespace indentation to JSON objects
|
||||
|
@ -143,14 +143,14 @@ also transforms the raw response to make it more human-readable. It:
|
|||
- Strips the outer double-quotes around `result`s of type string
|
||||
- Returns only the `error` field if there's an error
|
||||
|
||||
Continuing with the example above, the output<!--noref--> from the `bitcoin-cli`
|
||||
Continuing with the example above, the output<!--noref--> from the `dash-cli`
|
||||
command would be simply:
|
||||
|
||||
{% highlight text %}
|
||||
000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f
|
||||
00000ffd590b1485b3caadc19b22e6379c733355108f107a430458cdf3407ab6
|
||||
{% endhighlight %}
|
||||
|
||||
If there's an error processing a request, Bitcoin Core sets the `result` field
|
||||
If there's an error processing a request, Dash Core sets the `result` field
|
||||
to `null` and provides information about the error in the `error` field. For
|
||||
example, a request for the block hash at block height -1 would be met with the
|
||||
following response (again, whitespace added for clarity):
|
||||
|
@ -166,28 +166,47 @@ following response (again, whitespace added for clarity):
|
|||
}
|
||||
{% endhighlight %}
|
||||
|
||||
If `bitcoin-cli` encounters an error, it exits with a non-zero status code and
|
||||
If `dash-cli` encounters an error, it exits with a non-zero status code and
|
||||
outputs<!--noref--> the `error` field as text to the process's standard error
|
||||
stream:
|
||||
|
||||
{% highlight text %}
|
||||
error: {"code": -8, "message": "Block height out of range"}
|
||||
error code: -8
|
||||
error message:
|
||||
Block height out of range
|
||||
{% endhighlight %}
|
||||
|
||||
Starting in Bitcoin Core version 0.7.0, the RPC interface supports request
|
||||
The RPC interface supports request
|
||||
batching as described in [version 2.0 of the JSON-RPC
|
||||
specification][JSON-RPC request batching]. To initiate multiple
|
||||
RPC requests within a single HTTP request, a client can `POST` a JSON array
|
||||
filled with Request objects. The HTTP response data is then a JSON array filled
|
||||
with the corresponding Response objects. Depending on your usage pattern,
|
||||
request batching may provide significant performance gains. The `bitcoin-cli`
|
||||
request batching may provide significant performance gains. The `dash-cli`
|
||||
RPC client does not support batch requests.
|
||||
|
||||
{% highlight bash %}
|
||||
curl --user 'my_username:my_secret_password' --data-binary '''
|
||||
[
|
||||
{
|
||||
"method": "getblockhash",
|
||||
"params": [0],
|
||||
"id": "foo"
|
||||
},
|
||||
{
|
||||
"method": "getblockhash",
|
||||
"params": [1],
|
||||
"id": "foo2"
|
||||
}
|
||||
]''' \
|
||||
--header 'Content-Type: text/plain;' localhost:9998
|
||||
{% endhighlight %}
|
||||
|
||||
To keep this documentation compact and readable, the examples for each of the
|
||||
available RPC calls will be given as `bitcoin-cli` commands:
|
||||
available RPC calls will be given as `dash-cli` commands:
|
||||
|
||||
{% highlight text %}
|
||||
bitcoin-cli [options] <method name> <param1> <param2> ...
|
||||
dash-cli [options] <method name> <param1> <param2> ...
|
||||
{% endhighlight %}
|
||||
|
||||
This translates into an JSON-RPC<!--noref--> Request object of the form:
|
|
@ -2,7 +2,7 @@
|
|||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
{% assign filename="_includes/devdoc/bitcoin-core/rpcs/quick-reference.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/quick-reference.md" %}
|
||||
|
||||
#### Quick Reference {#rpc-quick-reference}
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
@ -16,32 +16,39 @@ changes made more than two years ago.
|
|||
Use v0.n.n in abbreviation title to prevent autocrossrefing.
|
||||
{% endcomment %}
|
||||
|
||||
<!-- Dash - Not Implemented -->
|
||||
{% assign DASH_NOT_IMPLEMENTED='**<abbr title="Not Implemented in Dash">Not Implemented</abbr>**' %}
|
||||
|
||||
<!-- 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.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 -->
|
||||
{% assign DEPRECATED='**<abbr title="Deprecated; will be removed in a future version of Bitcoin Core">Deprecated</abbr>**' %}
|
||||
|
||||
<!-- Bitcoin Core 0.14.1 April 2017 -->
|
||||
{% assign UPDATED0_14_0='**<abbr title="Updated in Bitcoin Core v0.14.1">Updated in 0.14.1</abbr>**' %}
|
||||
{% assign UPDATED0_14_0='**<abbr title="Updated in Bitcoin Core v0.14.1">Updated in Bitcoin Core 0.14.1</abbr>**' %}
|
||||
|
||||
<!-- Bitcoin Core 0.14.0 March 2017 -->
|
||||
{% assign NEW0_14_0='**<abbr title="New in Bitcoin Core v0.14.0">New in 0.14.0</abbr>**' %}
|
||||
{% assign UPDATED0_14_0='**<abbr title="Updated in Bitcoin Core v0.14.0">Updated in 0.14.0</abbr>**' %}
|
||||
{% assign NEW0_14_0='**<abbr title="New in Bitcoin Core v0.14.0">New in Bitcoin Core 0.14.0</abbr>**' %}
|
||||
{% assign UPDATED0_14_0='**<abbr title="Updated in Bitcoin Core v0.14.0">Updated in Bitcoin Core 0.14.0</abbr>**' %}
|
||||
|
||||
<!-- Bitcoin Core 0.13.1 September 2016 -->
|
||||
{% assign UPDATED0_13_1='*<abbr title="Updated in Bitcoin Core v0.13.1">Updated in 0.13.1</abbr>*' %}
|
||||
{% assign UPDATED0_13_1='*<abbr title="Updated in Bitcoin Core v0.13.1">Updated in Bitcoin Core 0.13.1</abbr>*' %}
|
||||
|
||||
<!-- Bitcoin Core 0.13.0 August 2016 -->
|
||||
{% assign NEW0_13_0='*<abbr title="New in Bitcoin Core v0.13.0">New in 0.13.0</abbr>*' %}
|
||||
{% assign UPDATED0_13_0='*<abbr title="Updated in Bitcoin Core v0.13.0">Updated in 0.13.0</abbr>*' %}
|
||||
{% assign NEW0_13_0='*<abbr title="New in Bitcoin Core v0.13.0">New in Bitcoin Core 0.13.0</abbr>*' %}
|
||||
{% assign UPDATED0_13_0='*<abbr title="Updated in Bitcoin Core v0.13.0">Updated in Bitcoin Core 0.13.0</abbr>*' %}
|
||||
|
||||
<!-- Bitcoin Core 0.12.1 April 2016 -->
|
||||
{% assign UPDATED0_12_1='*<abbr title="Updated in Bitcoin Core v0.12.1">Updated in 0.12.1</abbr>*' %}
|
||||
{% assign UPDATED0_12_1='*<abbr title="Updated in Bitcoin Core v0.12.1">Updated in Bitcoin Core 0.12.1</abbr>*' %}
|
||||
|
||||
<!-- Bitcoin Core 0.12.0 February 2016 -->
|
||||
{% assign NEW0_12_0='*<abbr title="New in Bitcoin Core v0.12.0">New in 0.12.0</abbr>*' %}
|
||||
{% assign UPDATED0_12_0='*<abbr title="Updated in Bitcoin Core v0.12.0">Updated in 0.12.0</abbr>*' %}
|
||||
{% assign NEW0_12_0='*<abbr title="New in Bitcoin Core v0.12.0">New in Bitcoin Core 0.12.0</abbr>*' %}
|
||||
{% assign UPDATED0_12_0='*<abbr title="Updated in Bitcoin Core v0.12.0">Updated in Bitcoin Core 0.12.0</abbr>*' %}
|
||||
|
||||
<!-- Bitcoin Core 0.11.0 July 2015 -->
|
||||
{% assign NEW0_11_0='*<abbr title="New in Bitcoin Core v0.11.0">New in 0.11.0</abbr>*' %}
|
||||
{% assign NEW0_11_0='*<abbr title="New in Bitcoin Core v0.11.0">New in Bitcoin Core 0.11.0</abbr>*' %}
|
||||
|
||||
<!-- the summaries used below are defined in the files for the
|
||||
particular RPC and aggregated into this helper file by the makefile
|
||||
|
@ -50,6 +57,22 @@ Use v0.n.n in abbreviation title to prevent autocrossrefing.
|
|||
_includes/rpc/getbestblockhash.md and run `make manual-update-summaries`. -->
|
||||
{% include helpers/summaries.md %}
|
||||
|
||||
#### Addressindex RPCs
|
||||
These RPCs are all Dash-specific and not found in Bitcoin Core
|
||||
{:.no_toc}
|
||||
<!-- no subhead-links here -->
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
* [GetAddressBalance][rpc getaddressbalance]: {{summary_getAddressBalance}}
|
||||
* [GetAddressDeltas][rpc getaddressdeltas]: {{summary_getAddressDeltas}}
|
||||
* [GetAddressMempool][rpc getaddressmempool]: {{summary_getAddressMempool}}
|
||||
* [GetAddressTxids][rpc getaddresstxids]: {{summary_getAddressTxids}}
|
||||
* [GetAddressUtxos][rpc getaddressutxos]: {{summary_getAddressUtxos}}
|
||||
|
||||
{% endautocrossref %}
|
||||
|
||||
|
||||
#### Block Chain RPCs
|
||||
{:.no_toc}
|
||||
<!-- no subhead-links here -->
|
||||
|
@ -61,36 +84,67 @@ Use v0.n.n in abbreviation title to prevent autocrossrefing.
|
|||
* [GetBlockChainInfo][rpc getblockchaininfo]: {{summary_getBlockChainInfo}} {{UPDATED0_12_1}}
|
||||
* [GetBlockCount][rpc getblockcount]: {{summary_getBlockCount}}
|
||||
* [GetBlockHash][rpc getblockhash]: {{summary_getBlockHash}}
|
||||
* [GetBlockHashes][rpc getblockhashes]: {{summary_getBlockHashes}} {{DASH_NEW0_12_1}}
|
||||
* [GetBlockHeader][rpc getblockheader]: {{summary_getBlockHeader}} {{NEW0_12_0}}
|
||||
* [GetChainTips][rpc getchaintips]: {{summary_getChainTips}}
|
||||
* [GetDifficulty][rpc getdifficulty]: {{summary_getDifficultly}}
|
||||
* [GetMemPoolAncestors][rpc getmempoolancestors]: {{summary_getMemPoolAncestors}} {{NEW0_13_0}}
|
||||
* [GetMemPoolDescendants][rpc getmempooldescendants]: {{summary_getMemPoolDescendants}} {{NEW0_13_0}}
|
||||
* [GetMemPoolEntry][rpc getmempoolentry]: {{summary_getMemPoolEntry}} {{NEW0_13_0}}
|
||||
* [GetBlockHeaders][rpc getblockheaders]: {{summary_getBlockHeaders}} {{DASH_NEW0_12_1}}
|
||||
* [GetChainTips][rpc getchaintips]: {{summary_getChainTips}} {{DASH_UPDATED0_12_1}}
|
||||
* [GetDifficulty][rpc getdifficulty]: {{summary_getDifficulty}}
|
||||
* [GetMemPoolInfo][rpc getmempoolinfo]: {{summary_getMemPoolInfo}} {{UPDATED0_12_0}}
|
||||
* [GetRawMemPool][rpc getrawmempool]: {{summary_getRawMemPool}} {{UPDATED0_13_0}}
|
||||
* [GetSpentInfo][rpc getspentinfo]: {{summary_getSpentInfo}} {{DASH_NEW0_12_1}}
|
||||
* [GetTxOut][rpc gettxout]: {{summary_getTxOut}}
|
||||
* [GetTxOutProof][rpc gettxoutproof]: {{summary_getTxOutProof}} {{NEW0_11_0}}
|
||||
* [GetTxOutSetInfo][rpc gettxoutsetinfo]: {{summary_getTxOutSetInfo}}
|
||||
* [PreciousBlock][rpc preciousblock]: {{summary_preciousBlock}} {{NEW0_14_0}}
|
||||
* [PruneBlockChain][rpc pruneblockchain]: {{summary_pruneBlockChain}} {{NEW0_14_0}}
|
||||
* [VerifyChain][rpc verifychain]: {{summary_verifyChain}}
|
||||
* [VerifyTxOutProof][rpc verifytxoutproof]: {{summary_verifyTxOutProof}} {{NEW0_11_0}}
|
||||
|
||||
{% endautocrossref %}
|
||||
|
||||
**Not implemented in Dash**
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
* {{DASH_NOT_IMPLEMENTED}} [GetMemPoolAncestors][rpc getmempoolancestors]: {{summary_getMemPoolAncestors}} {{NEW0_13_0}}
|
||||
* {{DASH_NOT_IMPLEMENTED}} [GetMemPoolDescendants][rpc getmempooldescendants]: {{summary_getMemPoolDescendants}} {{NEW0_13_0}}
|
||||
* {{DASH_NOT_IMPLEMENTED}} [GetMemPoolEntry][rpc getmempoolentry]: {{summary_getMemPoolEntry}} {{NEW0_13_0}}
|
||||
* {{DASH_NOT_IMPLEMENTED}} [PreciousBlock][rpc preciousblock]: {{summary_preciousBlock}} {{NEW0_14_0}}
|
||||
* {{DASH_NOT_IMPLEMENTED}} [PruneBlockChain][rpc pruneblockchain]: {{summary_pruneBlockChain}} {{NEW0_14_0}}
|
||||
|
||||
{% endautocrossref %}
|
||||
|
||||
#### Control RPCs
|
||||
{:.no_toc}
|
||||
<!-- no subhead-links here -->
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
* [Debug][rpc debug]: {{summary_debug}}
|
||||
* [GetInfo][rpc getinfo]: {{summary_getInfo}} {{DEPRECATED}}
|
||||
* [Help][rpc help]: {{summary_help}}
|
||||
* [Stop][rpc stop]: {{summary_stop}}
|
||||
|
||||
{% endautocrossref %}
|
||||
|
||||
#### Dash RPCs
|
||||
{:.no_toc}
|
||||
<!-- no subhead-links here -->
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
* [GetGovernanceInfo][rpc getgovernanceinfo]: {{summary_getGovernanceInfo}}
|
||||
* [GetPoolInfo][rpc getpoolinfo]: {{summary_getPoolInfo}}
|
||||
* [GetSuperblockBudget][rpc getsuperblockbudget]: {{summary_getSuperblockBudget}}
|
||||
* [GObject][rpc gobject]: {{summary_gObject}}
|
||||
* [Masternode][rpc masternode]: {{summary_masternode}}
|
||||
* [MasternodeBroadcast][rpc masternodebroadcast]: {{summary_masternodeBroadcast}}
|
||||
* [MasternodeList][rpc masternodelist]: {{summary_masternodeList}}
|
||||
* [MnSync][rpc mnsync]: {{summary_mnSync}}
|
||||
* [PrivateSend][rpc privatesend]: {{summary_privateSend}}
|
||||
* [Spork][rpc spork]: {{summary_spork-rpc}}
|
||||
* [VoteRaw][rpc voteraw]: {{summary_voteRaw}}
|
||||
|
||||
{% endautocrossref %}
|
||||
|
||||
#### Generating RPCs
|
||||
{:.no_toc}
|
||||
<!-- no subhead-links here -->
|
||||
|
@ -98,7 +152,9 @@ Use v0.n.n in abbreviation title to prevent autocrossrefing.
|
|||
{% autocrossref %}
|
||||
|
||||
* [Generate][rpc generate]: {{summary_generate}} {{NEW0_11_0}}, {{UPDATED0_13_0}}
|
||||
* [GenerateToAddress][rpc generatetoaddress]: {{summary_generateToAddress}} {{NEW0_13_0}}
|
||||
* [GetGenerate][rpc getgenerate]: {{summary_getGenerate}}
|
||||
* [SetGenerate][rpc setgenerate]: {{summary_setGenerate}}
|
||||
* {{DASH_NOT_IMPLEMENTED}} [GenerateToAddress][rpc generatetoaddress]: {{summary_generateToAddress}} {{NEW0_13_0}}
|
||||
|
||||
{% endautocrossref %}
|
||||
|
||||
|
@ -144,9 +200,9 @@ Use v0.n.n in abbreviation title to prevent autocrossrefing.
|
|||
{% autocrossref %}
|
||||
|
||||
* [CreateRawTransaction][rpc createrawtransaction]: {{summary_createRawTransaction}} {{UPDATED0_14_1}}
|
||||
* [FundRawTransaction][rpc fundrawtransaction]: {{summary_fundRawTransaction}} {{NEW0_12_0}}, {{UPDATED0_14_0}}
|
||||
* [DecodeRawTransaction][rpc decoderawtransaction]: {{summary_decodeRawTransaction}} {{UPDATED0_13_0}}
|
||||
* [DecodeScript][rpc decodescript]: {{summary_decodeScript}}
|
||||
* [FundRawTransaction][rpc fundrawtransaction]: {{summary_fundRawTransaction}} {{NEW0_12_0}}, {{UPDATED0_14_0}}
|
||||
* [GetRawTransaction][rpc getrawtransaction]: {{summary_getRawTransaction}} {{UPDATED0_14_0}}
|
||||
* [SendRawTransaction][rpc sendrawtransaction]: {{summary_sendRawTransaction}}
|
||||
* [SignRawTransaction][rpc signrawtransaction]: {{summary_signRawTransaction}}
|
||||
|
@ -160,12 +216,15 @@ Use v0.n.n in abbreviation title to prevent autocrossrefing.
|
|||
{% autocrossref %}
|
||||
|
||||
* [CreateMultiSig][rpc createmultisig]: {{summary_createMultiSig}}
|
||||
* [EstimateFee][rpc estimatefee]: {{summary_estimateFee}} {{UPDATED0_14_0}}
|
||||
* [EstimatePriority][rpc estimatepriority]: {{summary_estimatePriority}} {{DEPRECATED}}
|
||||
* [GetMemoryInfo][rpc getmemoryinfo]: {{summary_getMemoryInfo}} {{NEW_14_0}}
|
||||
* [EstimateFee][rpc estimatefee]: {{summary_estimateFee}}
|
||||
* [EstimatePriority][rpc estimatepriority]: {{summary_estimatePriority}}
|
||||
* [EstimateSmartFee][rpc estimatesmartfee]: {{summary_estimateSmartFee}} {{DEPRECATED}}
|
||||
* [EstimateSmartPriority][rpc estimatesmartpriority]: {{summary_estimateSmartPriority}} {{DEPRECATED}}
|
||||
* [ValidateAddress][rpc validateaddress]: {{summary_validateAddress}} {{UPDATED0_13_0}}
|
||||
* [VerifyMessage][rpc verifymessage]: {{summary_verifyMessage}}
|
||||
|
||||
* {{DASH_NOT_IMPLEMENTED}} [GetMemoryInfo][rpc getmemoryinfo]: {{summary_getMemoryInfo}} {{NEW_14_0}}
|
||||
|
||||
{% endautocrossref %}
|
||||
|
||||
#### Wallet RPCs
|
||||
|
@ -174,20 +233,19 @@ Use v0.n.n in abbreviation title to prevent autocrossrefing.
|
|||
|
||||
{% autocrossref %}
|
||||
|
||||
**Note:** the wallet RPCs are only available if Bitcoin Core was built
|
||||
**Note:** the wallet RPCs are only available if Dash Core was built
|
||||
with [wallet support][]{:#term-wallet-support}{:.term}, which is the
|
||||
default.
|
||||
|
||||
* [AbandonTransaction][rpc abandontransaction]: {{summary_abandonTransaction}} {{NEW0_12_0}}
|
||||
* [AddWitnessAddress][rpc addwitnessaddress]: {{summary_addWitnessAddress}} {{NEW0_13_0}}
|
||||
* [AddMultiSigAddress][rpc addmultisigaddress]: {{summary_addMultiSigAddress}}
|
||||
* [BackupWallet][rpc backupwallet]: {{summary_backupWallet}}
|
||||
* [BumpFee][rpc bumpfee]: {{summary_bumpFee}} {{NEW0_14_0}}
|
||||
* [DumpHDInfo][rpc dumphdinfo]: {{summary_dumpHdInfo}}
|
||||
* [DumpPrivKey][rpc dumpprivkey]: {{summary_dumpPrivKey}}
|
||||
* [DumpWallet][rpc dumpwallet]: {{summary_dumpWallet}}
|
||||
* [EncryptWallet][rpc encryptwallet]: {{summary_encryptWallet}}
|
||||
* [GetAccountAddress][rpc getaccountaddress]: {{summary_getAccountAddress}} {{DEPRECATED}}
|
||||
* [GetAccount][rpc getaccount]: {{summary_getAccount}}
|
||||
* [GetAccountAddress][rpc getaccountaddress]: {{summary_getAccountAddress}} {{DEPRECATED}}
|
||||
* [GetAddressesByAccount][rpc getaddressesbyaccount]: {{summary_getAddressesByAccount}} {{DEPRECATED}}
|
||||
* [GetBalance][rpc getbalance]: {{summary_getBalance}}
|
||||
* [GetNewAddress][rpc getnewaddress]: {{summary_getNewAddress}}
|
||||
|
@ -198,10 +256,12 @@ default.
|
|||
* [GetUnconfirmedBalance][rpc getunconfirmedbalance]: {{summary_getUnconfirmedBalance}}
|
||||
* [GetWalletInfo][rpc getwalletinfo]: {{summary_getWalletInfo}}
|
||||
* [ImportAddress][rpc importaddress]: {{summary_importAddress}}
|
||||
* [ImportMulti][rpc importmulti]: {{summary_importMulti}} {{NEW0_14_0}}
|
||||
* [ImportPrunedFunds][rpc importprunedfunds]: {{summary_importPrunedFunds}} {{NEW0_13_0}}
|
||||
* [ImportElectrumWallet][rpc importelecturmwallet]: {{summary_importElectrumWallet}} {{DASH_NEW0_12_1}}
|
||||
* [ImportPrivKey][rpc importprivkey]: {{summary_importPrivKey}}
|
||||
* [ImportPubKey][rpc importpubkey]: {{summary_importPubKey}}
|
||||
* [ImportWallet][rpc importwallet]: {{summary_importWallet}}
|
||||
* [InstantSendToAddress][rpc instantsendtoaddress]: {{summary_instantSendToAddress}}
|
||||
* [Keepass][rpc keepass]: {{summary_keepass}}
|
||||
* [KeyPoolRefill][rpc keypoolrefill]: {{summary_keyPoolRefill}}
|
||||
* [ListAccounts][rpc listaccounts]: {{summary_listAccounts}} {{DEPRECATED}}
|
||||
* [ListAddressGroupings][rpc listaddressgroupings]: {{summary_listAddressGroupings}}
|
||||
|
@ -213,18 +273,23 @@ default.
|
|||
* [ListUnspent][rpc listunspent]: {{summary_listUnspent}} {{UPDATED0_13_0}}
|
||||
* [LockUnspent][rpc lockunspent]: {{summary_lockUnspent}}
|
||||
* [Move][rpc move]: {{summary_move}} {{DEPRECATED}}
|
||||
* [RemovePrunedFunds][rpc removeprunedfunds]: {{summary_removePrunedFunds}} {{NEW0_13_0}}
|
||||
* [SendFrom][rpc sendfrom]: {{summary_sendFrom}} {{DEPRECATED}}
|
||||
* [SendMany][rpc sendmany]: {{summary_sendMany}}
|
||||
* [SendToAddress][rpc sendtoaddress]: {{summary_sendToAddress}}
|
||||
* [SetAccount][rpc setaccount]: {{summary_setAccount}} {{DEPRECATED}}
|
||||
* [SetTxFee][rpc settxfee]: {{summary_setTxFee}}
|
||||
* [SignMessage][rpc signmessage]: {{summary_signMessage}}
|
||||
* [SignMessageWithPrivKey][rpc signmessagewithprivkey]: {{summary_signMessageWithPrivKey}} {{NEW0_13_0}}
|
||||
* [SignMessage][rpc signmessage]: {{summary_signMessage}}
|
||||
* [WalletLock][rpc walletlock]: {{summary_walletLock}}
|
||||
* [WalletPassphrase][rpc walletpassphrase]: {{summary_walletPassphrase}}
|
||||
* [WalletPassphraseChange][rpc walletpassphrasechange]: {{summary_walletPassphraseChange}}
|
||||
|
||||
* {{DASH_NOT_IMPLEMENTED}} [AddWitnessAddress][rpc addwitnessaddress]: {{summary_addWitnessAddress}} {{NEW0_13_0}}
|
||||
* {{DASH_NOT_IMPLEMENTED}} [BumpFee][rpc bumpfee]: {{summary_bumpFee}} {{NEW0_14_0}}
|
||||
* {{DASH_NOT_IMPLEMENTED}} [ImportMulti][rpc importmulti]: {{summary_importMulti}} {{NEW0_14_0}}
|
||||
* {{DASH_NOT_IMPLEMENTED}} [ImportPrunedFunds][rpc importprunedfunds]: {{summary_importPrunedFunds}} {{NEW0_13_0}}
|
||||
* {{DASH_NOT_IMPLEMENTED}} [RemovePrunedFunds][rpc removeprunedfunds]: {{summary_removePrunedFunds}} {{NEW0_13_0}}
|
||||
* {{DASH_NOT_IMPLEMENTED}} [SignMessageWithPrivKey][rpc signmessagewithprivkey]: {{summary_signMessageWithPrivKey}} {{NEW0_13_0}}
|
||||
|
||||
{% endautocrossref %}
|
||||
|
||||
#### Removed RPCs
|
||||
|
@ -233,9 +298,10 @@ default.
|
|||
|
||||
{% autocrossref %}
|
||||
|
||||
* [GetGenerate][rpc getgenerate]: {{summary_getGenerate}}
|
||||
* [GetHashesPerSec][rpc gethashespersec]: {{summary_getHashesPerSec}}
|
||||
* [GetWork][rpc getwork]: {{summary_getWork}}
|
||||
<!-- Still in Dash
|
||||
* [GetGenerate][rpc getgenerate]: {{summary_getGenerate}}
|
||||
* [SetGenerate][rpc setgenerate]: {{summary_setGenerate}}
|
||||
|
||||
-->
|
||||
{% endautocrossref %}
|
|
@ -2,7 +2,7 @@
|
|||
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/abandontransaction.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/abandontransaction.md" %}
|
||||
|
||||
##### AbandonTransaction
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,7 +2,7 @@
|
|||
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/addmultisigaddress.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/addmultisigaddress.md" %}
|
||||
|
||||
##### AddMultiSigAddress
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,7 +2,7 @@
|
|||
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/addnode.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/addnode.md" %}
|
||||
|
||||
##### AddNode
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
@ -16,17 +16,17 @@ The `addnode` RPC {{summary_addNode}}
|
|||
*Parameter #1---hostname/IP address and port of node to add or remove*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "Node"
|
||||
- n: "`node`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The node to add as a string in the form of `<IP address>:<port>`. The IP address may be a hostname resolvable through DNS, an IPv4 address, an IPv4-as-IPv6 address, or an IPv6 address"
|
||||
d: "The node to add as a string in the form of `<IP address>:<port>`."
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Parameter #2---whether to add or remove the node, or to try only once to connect*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "Command"
|
||||
- n: "`command`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "What to do with the IP address above. Options are:<br>• `add` to add a node to the addnode list. Up to 8 nodes can be added additional to the default 8 nodes. Not limited by `-maxconnections`<br>• `remove` to remove a node from the list. If currently connected, this will disconnect immediately<br>• `onetry` to immediately attempt connection to the node even if the outgoing connection slots are full; this will only attempt the connection once"
|
||||
|
@ -39,19 +39,19 @@ The `addnode` RPC {{summary_addNode}}
|
|||
- n: "`result`"
|
||||
t: "null"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "Always JSON `null` whether the node was added, removed, tried-and-connected, or tried-and-not-connected. The JSON-RPC error field will be set only if you try removing a node that is not on the addnodes list"
|
||||
d: "Always JSON `null` whether the node was added, removed, tried-and-connected, or tried-and-not-connected. The JSON-RPC error field will be set only if you try adding a node that was already added or removing a node that is not on the addnodes list"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Bitcoin Core 0.10.0*
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
Try connecting to the following node.
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli -testnet addnode 192.0.2.113:18333 onetry
|
||||
dash-cli -testnet addnode 192.0.2.113:19999 onetry
|
||||
{% endhighlight %}
|
||||
|
||||
Result (no output from `bitcoin-cli` because result is set to `null`).
|
||||
Result (no output from `dash-cli` because result is set to `null`).
|
||||
|
||||
*See also*
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
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" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/addwitnessaddress.md" %}
|
||||
|
||||
##### AddWitnessAddress
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,7 +2,7 @@
|
|||
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/backupwallet.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/backupwallet.md" %}
|
||||
|
||||
##### BackupWallet
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,7 +2,7 @@
|
|||
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/bumpfee.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/bumpfee.md" %}
|
||||
|
||||
##### BumpFee
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,7 +2,7 @@
|
|||
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/clearbanned.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/clearbanned.md" %}
|
||||
|
||||
##### ClearBanned
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
@ -27,15 +27,15 @@ The `clearbanned` RPC {{summary_clearBanned}}
|
|||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Bitcoin Core 0.13.1*
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
Clears the ban list.
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli clearbanned
|
||||
dash-cli clearbanned
|
||||
{% endhighlight %}
|
||||
|
||||
Result (no output from `bitcoin-cli` because result is set to `null`).
|
||||
Result (no output from `dash-cli` because result is set to `null`).
|
||||
|
||||
*See also*
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
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/createmultisig.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/createmultisig.md" %}
|
||||
|
||||
##### CreateMultiSig
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,7 +2,7 @@
|
|||
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/createrawtransaction.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/createrawtransaction.md" %}
|
||||
|
||||
##### CreateRawTransaction
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
@ -16,7 +16,7 @@ The `createrawtransaction` RPC {{summary_createRawTransaction}}
|
|||
*Parameter #1---Inputs*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "Inputs"
|
||||
- n: "Transactions"
|
||||
t: "array"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "An array of objects, each one to be used as an input to the transaction"
|
||||
|
@ -35,11 +35,11 @@ The `createrawtransaction` RPC {{summary_createRawTransaction}}
|
|||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The output index number (vout) of the outpoint to be spent; the first output in a transaction is index `0`"
|
||||
|
||||
|
||||
- n: "→ →<br>`Sequence`"
|
||||
t: "number (int)"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
d: "The sequence number to use for the input"
|
||||
d: "NOT IMPLEMENTED IN DASH.<br><br>The sequence number to use for the input"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
|
@ -52,9 +52,9 @@ The `createrawtransaction` RPC {{summary_createRawTransaction}}
|
|||
d: "The addresses and amounts to pay"
|
||||
|
||||
- n: "→<br>Address/Amount"
|
||||
t: "string : number (bitcoins)"
|
||||
t: "string : number (Dash)"
|
||||
p: "Required<br>(1 or more)"
|
||||
d: "A key/value pair with the address to pay as a string (key) and the amount to pay that address (value) in bitcoins"
|
||||
d: "A key/value pair with the address to pay as a string (key) and the amount to pay that address (value) in Dash"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
|
@ -78,24 +78,27 @@ The `createrawtransaction` RPC {{summary_createRawTransaction}}
|
|||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Bitcoin Core 0.10.0*
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli -testnet createrawtransaction '''
|
||||
dash-cli -testnet createrawtransaction '''
|
||||
[
|
||||
{
|
||||
"txid": "1eb590cd06127f78bf38ab4140c4cdce56ad9eb8886999eb898ddf4d3b28a91d",
|
||||
"txid": "f6c83fd96bfaa47887c4587cceadeb9af6238a2c86fe36b883c4d7a6867eab0f",
|
||||
"vout" : 0
|
||||
}
|
||||
]''' '{ "mgnucj8nYqdrPFh2JfZSB1NmUThUGnmsqe": 0.13 }'
|
||||
]''' \
|
||||
'{"ySutkc49Khpz1HQN8AfWNitVBLwqtyaxvv": 800, "yY6AmGopsZS31wy1JLHR9P6AC6owFaXwuh":77.78}' '1024'
|
||||
|
||||
{% endhighlight %}
|
||||
|
||||
Result (wrapped):
|
||||
|
||||
{% highlight text %}
|
||||
01000000011da9283b4ddf8d89eb996988b89ead56cecdc44041ab38bf787f12\
|
||||
06cd90b51e0000000000ffffffff01405dc600000000001976a9140dfc8bafc8\
|
||||
419853b34d5e072ad37d1a5159f58488ac00000000
|
||||
01000000010fab7e86a6d7c483b836fe862c8a23f69aebadce7c58c48778a4fa6bd93fc8f6\
|
||||
0000000000ffffffff0200205fa0120000001976a914485485425fa99504ec1638ac4213f3\
|
||||
cfc9f32ef388ac80dc9acf010000001976a914811eacc14db8ebb5b64486dc43400c0226b4\
|
||||
28a488ac00040000
|
||||
{% endhighlight %}
|
||||
|
||||
*See also*
|
40
_includes/devdoc/dash-core/rpcs/rpcs/debug.md
Normal file
40
_includes/devdoc/dash-core/rpcs/rpcs/debug.md
Normal file
|
@ -0,0 +1,40 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/debug.md" %}
|
||||
|
||||
##### Debug
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
||||
{% assign summary_debug="changes the debug category from the console." %}
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
The `debug` RPC {{summary_debug}}
|
||||
|
||||
*Parameter #1---debug category*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "Debug category"
|
||||
t: "string"
|
||||
p: "Required<br>(1 or more)"
|
||||
d: "The debug category to activate. Use a comma to specify multiple categories. Categories will be one of the following:<br>• `0` - Disables all categories <br>• `1` - Enables all categories <br>• `addrman` <br>• `alert` <br>• `bench` <br>• `coindb` <br>• `db` <br>• `lock` <br>• `rand` <br>• `rpc` <br>• `selectcoins` <br>• `mempool` <br>• `mempoolrej` <br>• `net` <br>• `proxy` <br>• `prune` <br>• `http` <br>• `libevent` <br>• `tor` <br>• `zmq` <br>• `dash` <br>• `privatesend` <br>• `instantsend` <br>• `masternode` <br>• `spork` <br>• `keepass` <br>• `mnpayments` <br>• `gobject` <br>"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
{% highlight bash %}
|
||||
dash-cli -testnet debug "net,mempool"
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
|
||||
{% highlight text %}
|
||||
Debug mode: net,mempool
|
||||
{% endhighlight %}
|
||||
|
||||
*See also: none*
|
||||
|
||||
{% endautocrossref %}
|
|
@ -2,7 +2,7 @@
|
|||
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/decoderawtransaction.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/decoderawtransaction.md" %}
|
||||
|
||||
##### DecodeRawTransaction
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,7 +2,7 @@
|
|||
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/decodescript.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/decodescript.md" %}
|
||||
|
||||
##### DecodeScript
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,7 +2,7 @@
|
|||
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/disconnectnode.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/disconnectnode.md" %}
|
||||
|
||||
##### DisconnectNode
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
@ -18,10 +18,10 @@ The `disconnectnode` RPC {{summary_disconnectNode}}
|
|||
*Parameter #1---hostname/IP address and port of node to disconnect*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "Address"
|
||||
- n: "`node`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "*Updated in Bitcoin Core 0.14.1*<br><br>The node you want to disconnect from as a string in the form of `<IP address>:<port>`. The IP address may be a hostname resolvable through DNS, an IPv4 address, an IPv4-as-IPv6 address, or an IPv6 address"
|
||||
d: "The node you want to disconnect from as a string in the form of `<IP address>:<port>`.<br><br>*Updated in Bitcoin Core 0.14.1*"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
|
@ -35,15 +35,15 @@ The `disconnectnode` RPC {{summary_disconnectNode}}
|
|||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Bitcoin Core 0.14.1*
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
Disconnects following node from your node.
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli -testnet disconnectnode 192.0.2.113:18333
|
||||
dash-cli -testnet disconnectnode 192.0.2.113:19999
|
||||
{% endhighlight %}
|
||||
|
||||
Result (no output from `bitcoin-cli` because result is set to `null`).
|
||||
Result (no output from `dash-cli` because result is set to `null`).
|
||||
|
||||
*See also*
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
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/dumpprivkey.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/dumpprivkey.md" %}
|
||||
|
||||
##### DumpPrivKey
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,7 +2,7 @@
|
|||
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/dumpwallet.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/dumpwallet.md" %}
|
||||
|
||||
##### DumpWallet
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,7 +2,7 @@
|
|||
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/encryptwallet.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/encryptwallet.md" %}
|
||||
|
||||
##### EncryptWallet
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,7 +2,7 @@
|
|||
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/estimatefee.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/estimatefee.md" %}
|
||||
|
||||
##### EstimateFee
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,7 +2,7 @@
|
|||
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/estimatepriority.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/estimatepriority.md" %}
|
||||
|
||||
##### EstimatePriority
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,7 +2,7 @@
|
|||
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/fundrawtransaction.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/fundrawtransaction.md" %}
|
||||
|
||||
##### FundRawTransaction
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,36 +2,26 @@
|
|||
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/generate.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/generate.md" %}
|
||||
|
||||
##### Generate
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
||||
{% assign summary_generate="nearly instantly generates blocks." %}
|
||||
{% assign summary_generate="mines blocks immediately (before the RPC call returns)." %}
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
*Requires wallet support.*
|
||||
*Requires wallet support. Can only be used on the regtest network.*
|
||||
|
||||
The `generate` RPC {{summary_generate}}
|
||||
|
||||
*Parameter #1---the number of blocks to generate*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "Blocks"
|
||||
- n: "`numblocks`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The number of blocks to generate. The RPC call will not return until all blocks have been generated or the maxium number of iterations has been reached"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Parameter #2---the maximum number of iterations to try*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "Maxtries"
|
||||
t: "number (int)"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
d: "The maximum number of iterations that are tried to create the requested number of blocks. Default is `1000000`"
|
||||
d: "The number of blocks to generate. The RPC call will not return until all blocks have been generated."
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
|
@ -49,27 +39,29 @@ The `generate` RPC {{summary_generate}}
|
|||
d: "The hashes of the headers of the blocks generated in regtest mode, as hex in RPC byte order"
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Bitcoin Core 0.13.1*
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
Using regtest mode (also works in normal mode), generate 2 blocks:
|
||||
Using regtest mode, generate 2 blocks:
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli -regtest generate 2 500000
|
||||
dash-cli -regtest generate 2
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
|
||||
{% highlight json %}
|
||||
[
|
||||
"36252b5852a5921bdfca8701f936b39edeb1f8c39fffe73b0d8437921401f9af",
|
||||
"5f2956817db1e386759aa5794285977c70596b39ea093b9eab0aa4ba8cd50c06"
|
||||
"55a4c47da8151c0823eec22c41ebc6d690a0288302179625bae9eb6f36808266",
|
||||
"3f07b9aa4e3bcd5518610945c4a6b32699acac71b1762605ff79ba553111fc79"
|
||||
]
|
||||
{% endhighlight %}
|
||||
|
||||
*See also*
|
||||
|
||||
* [GenerateToAddress][rpc generatetoaddress]: {{summary_generateToAddress}}
|
||||
* [GetMiningInfo][rpc getmininginfo]: {{summary_getMiningInfo}}
|
||||
* [GetBlockTemplate][rpc getblocktemplate]: {{summary_getBlockTemplate}}
|
||||
* [GetGenerate][rpc getgenerate]: {{summary_getGenerate}}
|
||||
* [GetMiningInfo][rpc getmininginfo]: {{summary_getMiningInfo}}
|
||||
* [SetGenerate][rpc setgenerate]: {{summary_setGenerate}}
|
||||
|
||||
{% endautocrossref %}
|
|
@ -2,7 +2,7 @@
|
|||
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/generatetoaddress.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/generatetoaddress.md" %}
|
||||
|
||||
##### GenerateToAddress
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
@ -13,6 +13,9 @@ http://opensource.org/licenses/MIT.
|
|||
|
||||
*Added in Bitcoin Core 0.13.0*
|
||||
|
||||
**_Not implemented in Dash Core (as of 0.12.2)_**
|
||||
|
||||
{% comment %}
|
||||
*Requires wallet support.*
|
||||
|
||||
The `generatetoaddress` RPC {{summary_generateToAddress}}
|
||||
|
@ -24,7 +27,7 @@ The `generatetoaddress` RPC {{summary_generateToAddress}}
|
|||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The number of blocks to generate. The RPC call will not return until all blocks have been generated or the maxium number of iterations has been reached"
|
||||
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Parameter #2---a transaction identifier (TXID)*
|
||||
|
@ -34,7 +37,7 @@ The `generatetoaddress` RPC {{summary_generateToAddress}}
|
|||
t: "string (base58)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The address to send the newly generated Bitcoin to"
|
||||
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Parameter #3---the maximum number of iterations to try*
|
||||
|
@ -85,4 +88,6 @@ Result:
|
|||
* [GetMiningInfo][rpc getmininginfo]: {{summary_getMiningInfo}}
|
||||
* [GetBlockTemplate][rpc getblocktemplate]: {{summary_getBlockTemplate}}
|
||||
|
||||
{% endcomment %}
|
||||
|
||||
{% endautocrossref %}
|
|
@ -2,7 +2,7 @@
|
|||
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/getaccount.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getaccount.md" %}
|
||||
|
||||
##### GetAccount
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,7 +2,7 @@
|
|||
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/getaccountaddress.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getaccountaddress.md" %}
|
||||
|
||||
##### GetAccountAddress
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,7 +2,7 @@
|
|||
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/getaddednodeinfo.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getaddednodeinfo.md" %}
|
||||
|
||||
##### GetAddedNodeInfo
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
@ -16,17 +16,17 @@ The `getaddednodeinfo` RPC {{summary_getAddedNodeInfo}}
|
|||
*Parameter #1---whether to display connection information*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "Details"
|
||||
- n: "Dummy"
|
||||
t: "bool"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "*Removed in Bitcoin Core 0.14.0*<br><br>Set to `true` to display detailed information about each added node; set to `false` to only display the IP address or hostname and port added"
|
||||
d: "Kept for historical purposes but ignored<br><br>*Removed in Bitcoin Core 0.14.0*"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Parameter #2---what node to display information about*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "Node"
|
||||
- n: "`node`"
|
||||
t: "string"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
d: "The node to get information about in the same `<IP address>:<port>` format as the `addnode` RPC. If this parameter is not provided, information about all added nodes will be returned"
|
||||
|
@ -41,7 +41,7 @@ The `getaddednodeinfo` RPC {{summary_getAddedNodeInfo}}
|
|||
p: "Required<br>(exactly 1)"
|
||||
d: "An array containing objects describing each added node. If no added nodes are present, the array will be empty. Nodes added with `onetry` will not be returned"
|
||||
|
||||
- n: "→<br>Added Node"
|
||||
- n: "→<br>Added Node<!--noref-->"
|
||||
t: "object"
|
||||
p: "Optional<br>(0 or more)"
|
||||
d: "An object containing details about a single added node"
|
||||
|
@ -49,22 +49,22 @@ The `getaddednodeinfo` RPC {{summary_getAddedNodeInfo}}
|
|||
- n: "→ →<br>`addednode`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "An added node in the same `<IP address>:<port>` format as used in the `addnode` RPC. This element is present for any added node whether or not the Details parameter was set to `true`"
|
||||
d: "An added node in the same `<IP address>:<port>` format as used in the `addnode` RPC."
|
||||
|
||||
- n: "→ →<br>`connected`"
|
||||
t: "bool"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
d: "If the Details parameter was set to `true`, this will be set to `true` if the node is currently connected and `false` if it is not"
|
||||
d: "This will be set to `true` if the node is currently connected and `false` if it is not"
|
||||
|
||||
- n: "→ →<br>`addresses`"
|
||||
t: "array"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
d: "If the Details parameter was set to `true`, this will be an array of addresses belonging to the added node"
|
||||
p: "Requred<br>(exactly 1)"
|
||||
d: "This will be an array of addresses<!--noref--> belonging to the added node"
|
||||
|
||||
- n: "→ → →<br>Address"
|
||||
- n: "→ → →<br>Address<!--noref-->"
|
||||
t: "object"
|
||||
p: "Optional<br>(0 or more)"
|
||||
d: "An object describing one of this node's addresses"
|
||||
d: "An object describing one of this node's addresses<!--noref-->"
|
||||
|
||||
- n: "→ → → →<br>`address`"
|
||||
t: "string"
|
||||
|
@ -78,26 +78,26 @@ The `getaddednodeinfo` RPC {{summary_getAddedNodeInfo}}
|
|||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Bitcoin Core 0.14.1*
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli getaddednodeinfo
|
||||
dash-cli getaddednodeinfo true
|
||||
{% endhighlight %}
|
||||
|
||||
Result (real hostname and IP address replaced):
|
||||
Result (real hostname and IP address replaced with [RFC5737][] reserved address):
|
||||
|
||||
{% highlight json %}
|
||||
[
|
||||
{
|
||||
"addednode" : "bitcoind.example.com:8333",
|
||||
"connected" : true,
|
||||
"addresses" : [
|
||||
{
|
||||
"address" : "192.0.2.113:8333",
|
||||
"connected" : "outbound"
|
||||
}
|
||||
]
|
||||
}
|
||||
{
|
||||
"addednode": "192.0.2.113:19999",
|
||||
"connected": true,
|
||||
"addresses": [
|
||||
{
|
||||
"address": "192.0.2.113:19999",
|
||||
"connected": "outbound"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
{% endhighlight %}
|
||||
|
75
_includes/devdoc/dash-core/rpcs/rpcs/getaddressbalance.md
Normal file
75
_includes/devdoc/dash-core/rpcs/rpcs/getaddressbalance.md
Normal file
|
@ -0,0 +1,75 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getaddressbalance.md" %}
|
||||
|
||||
##### GetAddressBalance
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
{% assign summary_getAddressBalance="returns the balance for address(es)." %}
|
||||
|
||||
*Requires wallet support and `-addressindex` Dash Core command-line/configuration-file parameter to be enabled.*
|
||||
|
||||
The `getaddressbalance` RPC {{summary_getAddressBalance}}
|
||||
|
||||
*Parameter #1---an array of addresses*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "`addresses`"
|
||||
t: "object"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "An array of P2PKH or P2SH Dash address(es)"
|
||||
|
||||
- n: "→Address"
|
||||
t: "string (base58)"
|
||||
p: "Required<br>(1 or more)"
|
||||
d: "The base58check encoded address"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Result---the current balance in duffs and the total number of duffs received (including change)*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "`result`"
|
||||
t: "object"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "An object listing the current balance and total amount received (including change), or an error if any address is invalid"
|
||||
|
||||
- n: "→<br>`balance`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The current balance in duffs"
|
||||
|
||||
- n: "→<br>`received`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The total number of duffs received (including change)"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
Get the balance for an address:
|
||||
|
||||
{% highlight bash %}
|
||||
dash-cli getaddressbalance '{"addresses": ["yWjoZBvnUKWhpKMbBkVVnnMD8Bzno9j6tQ"]}'
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
|
||||
{% highlight json %}
|
||||
{
|
||||
"balance": 0,
|
||||
"received": 10000100
|
||||
}
|
||||
{% endhighlight %}
|
||||
|
||||
*See also*
|
||||
|
||||
* [GetBalance][rpc getbalance]: {{summary_getBalance}}
|
||||
* [GetUnconfirmedBalance][rpc getunconfirmedbalance]: {{summary_getUnconfirmedBalance}}
|
||||
|
||||
{% endautocrossref %}
|
124
_includes/devdoc/dash-core/rpcs/rpcs/getaddressdeltas.md
Normal file
124
_includes/devdoc/dash-core/rpcs/rpcs/getaddressdeltas.md
Normal file
|
@ -0,0 +1,124 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getaddressdeltas.md" %}
|
||||
|
||||
##### GetAddressDeltas
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
{% assign summary_getAddressDeltas="returns all changes for an address." %}
|
||||
|
||||
*Requires wallet support and `-addressindex` Dash Core command-line/configuration-file parameter to be enabled.*
|
||||
|
||||
The `getaddressdeltas` RPC {{summary_getAddressDeltas}}
|
||||
|
||||
*Parameter #1---an array of addresses*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "`addresses`"
|
||||
t: "object"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "An array of P2PKH or P2SH Dash address(es)"
|
||||
|
||||
- n: "→Address"
|
||||
t: "string (base58)"
|
||||
p: "Required<br>(1 or more)"
|
||||
d: "The base58check encoded address"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Parameter #2---the start block height*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "`start`"
|
||||
t: "number (int)"
|
||||
p: "Optional<br>(exactly 1)"
|
||||
d: "The start block height"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Parameter #3---the end block height*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "`end`"
|
||||
t: "number (int)"
|
||||
p: "Optional<br>(exactly 1)"
|
||||
d: "The end block height"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Result---information about all changes for the address(es)*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "`result`"
|
||||
t: "array"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "An array of JSON objects, with each object describing a transaction involving one of the requested addresses"
|
||||
|
||||
- n: "→<br>Delta"
|
||||
t: "object"
|
||||
p: "Required<br>(1 or more)"
|
||||
d: "An object describing a particular address delta"
|
||||
|
||||
- n: "→→<br>`satoshis`"
|
||||
t: "number"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The difference of duffs"
|
||||
|
||||
- n: "→→<br>`txid`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The related txid"
|
||||
|
||||
- n: "→→<br>`blockindex`"
|
||||
t: "number"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The related input or output index"
|
||||
|
||||
- n: "→→<br>`height`"
|
||||
t: "number"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The block height"
|
||||
|
||||
- n: "→→<br>`address`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The base58check encoded address"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
Get the deltas for an address:
|
||||
|
||||
{% highlight bash %}
|
||||
dash-cli getaddressdeltas '{"addresses": ["yWjoZBvnUKWhpKMbBkVVnnMD8Bzno9j6tQ"], "start":5000, "end":7500}'
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
|
||||
{% highlight json %}
|
||||
[
|
||||
{
|
||||
"satoshis": 10000100,
|
||||
"txid": "1fe86e463a9394d4ccd9a5ff1c6b483c95b4350ffdb055b55dc3615111e977de",
|
||||
"index": 18,
|
||||
"blockindex": 1,
|
||||
"height": 6708,
|
||||
"address": "yWjoZBvnUKWhpKMbBkVVnnMD8Bzno9j6tQ"
|
||||
},
|
||||
{
|
||||
"satoshis": -10000100,
|
||||
"txid": "6cb4379eec45cd3bb08b8f4c3a101b8cd89795e24f2cb8288a9941a85fb114cf",
|
||||
"index": 0,
|
||||
"blockindex": 1,
|
||||
"height": 7217,
|
||||
"address": "yWjoZBvnUKWhpKMbBkVVnnMD8Bzno9j6tQ"
|
||||
}
|
||||
]
|
||||
{% endhighlight %}
|
||||
|
||||
{% endautocrossref %}
|
|
@ -2,7 +2,7 @@
|
|||
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/getaddressesbyaccount.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getaddressesbyaccount.md" %}
|
||||
|
||||
##### GetAddressesByAccount
|
||||
{% include helpers/subhead-links.md %}
|
96
_includes/devdoc/dash-core/rpcs/rpcs/getaddressmempool.md
Normal file
96
_includes/devdoc/dash-core/rpcs/rpcs/getaddressmempool.md
Normal file
|
@ -0,0 +1,96 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getaddressmempool.md" %}
|
||||
|
||||
##### GetAddressMempool
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
{% assign summary_getAddressMempool="returns all mempool deltas for an address." %}
|
||||
|
||||
*Requires wallet support and `-addressindex` Dash Core command-line/configuration-file parameter to be enabled.*
|
||||
|
||||
The `getaddressmempool` RPC {{summary_getAddressMempool}}
|
||||
|
||||
*Parameter #1---an array of addresses*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "`addresses`"
|
||||
t: "object"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "An array of P2PKH or P2SH Dash address(es)"
|
||||
|
||||
- n: "→Address"
|
||||
t: "string (base58)"
|
||||
p: "Required<br>(1 or more)"
|
||||
d: "The base58check encoded address"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Result---information about mempool deltas for the address(es)*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "`result`"
|
||||
t: "array"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "An array of JSON objects, with each object describing a transaction involving one of the requested addresses"
|
||||
|
||||
- n: "→Mempool Deltas"
|
||||
t: "object"
|
||||
p: "Required<br>(1 or more)"
|
||||
d: "An object describing a particular mempool address delta"
|
||||
|
||||
- n: "→→<br>`address`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The base58check encoded address"
|
||||
|
||||
- n: "→→<br>`txid`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The related txid"
|
||||
|
||||
- n: "→→<br>`index`"
|
||||
t: "number"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The related input or output index"
|
||||
|
||||
- n: "→→<br>`satoshis`"
|
||||
t: "number"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The difference of duffs"
|
||||
|
||||
- n: "→→<br>`timestamp`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The time the transaction entered the mempool (seconds)"
|
||||
|
||||
- n: "→→<br>`prevtxid`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The previous txid (if spending)"
|
||||
|
||||
- n: "→→<br>`prevout`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The previous transaction output index (if spending)"
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
Get the deltas for an address:
|
||||
|
||||
{% highlight bash %}
|
||||
dash-cli getaddressmempool '{"addresses": ["yWjoZBvnUKWhpKMbBkVVnnMD8Bzno9j6tQ"]}'
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
|
||||
{% highlight text %}
|
||||
Example result needed
|
||||
{% endhighlight %}
|
||||
|
||||
{% endautocrossref %}
|
85
_includes/devdoc/dash-core/rpcs/rpcs/getaddresstxids.md
Normal file
85
_includes/devdoc/dash-core/rpcs/rpcs/getaddresstxids.md
Normal file
|
@ -0,0 +1,85 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getaddresstxids.md" %}
|
||||
|
||||
##### GetAddressTxids
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
{% assign summary_getAddressTxids="returns the txids for an address(es)." %}
|
||||
|
||||
*Requires wallet support and `-addressindex` Dash Core command-line/configuration-file parameter to be enabled.*
|
||||
|
||||
The `getaddresstxids` RPC {{summary_getAddressTxids}}
|
||||
|
||||
*Parameter #1---an array of addresses*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "`addresses`"
|
||||
t: "object"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "An array of P2PKH or P2SH Dash address(es)"
|
||||
|
||||
- n: "→Address"
|
||||
t: "string (base58)"
|
||||
p: "Required<br>(1 or more)"
|
||||
d: "The base58check encoded address"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Parameter #2---the start block height*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "`start`"
|
||||
t: "number (int)"
|
||||
p: "Optional<br>(exactly 1)"
|
||||
d: "The start block height"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Parameter #3---the end block height*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "`end`"
|
||||
t: "number (int)"
|
||||
p: "Optional<br>(exactly 1)"
|
||||
d: "The end block height"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Result---information about txids for the address(es)*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "`result`"
|
||||
t: "array"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "An array of txids related to the requested address(es)"
|
||||
|
||||
- n: "→<br>TXID"
|
||||
t: "string"
|
||||
p: "Required<br>(1 or more)"
|
||||
d: "The transaction id"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
Get the deltas for an address:
|
||||
|
||||
{% highlight bash %}
|
||||
dash-cli getaddresstxids '{"addresses": ["yWjoZBvnUKWhpKMbBkVVnnMD8Bzno9j6tQ"], "start":5000, "end":7500}'
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
|
||||
{% highlight json %}
|
||||
[
|
||||
"1fe86e463a9394d4ccd9a5ff1c6b483c95b4350ffdb055b55dc3615111e977de",
|
||||
"6cb4379eec45cd3bb08b8f4c3a101b8cd89795e24f2cb8288a9941a85fb114cf"
|
||||
]
|
||||
{% endhighlight %}
|
||||
|
||||
{% endautocrossref %}
|
100
_includes/devdoc/dash-core/rpcs/rpcs/getaddressutxos.md
Normal file
100
_includes/devdoc/dash-core/rpcs/rpcs/getaddressutxos.md
Normal file
|
@ -0,0 +1,100 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getaddressutxos.md" %}
|
||||
|
||||
##### GetAddressUtxos
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
{% assign summary_getAddressUtxos="returns all unspent outputs for an address." %}
|
||||
|
||||
*Requires wallet support and `-addressindex` Dash Core command-line/configuration-file parameter to be enabled.*
|
||||
|
||||
The `getaddressutxos` RPC {{summary_getAddressUtxos}}
|
||||
|
||||
*Parameter #1---an array of addresses*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "`addresses`"
|
||||
t: "object"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "An array of P2PKH or P2SH Dash address(es)"
|
||||
|
||||
- n: "→Address"
|
||||
t: "string (base58)"
|
||||
p: "Required<br>(1 or more)"
|
||||
d: "The base58check encoded address"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Result---information about unspent outputs for the address(es)*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "`result`"
|
||||
t: "array"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "An array of JSON objects, with each object describing a transaction involving one of the requested addresses"
|
||||
|
||||
- n: "→Unspent outputs"
|
||||
t: "object"
|
||||
p: "Required<br>(1 or more)"
|
||||
d: "An object describing a particular unspent output for the requested address(es)"
|
||||
|
||||
- n: "→→<br>`address`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The base58check encoded address"
|
||||
|
||||
- n: "→→<br>`txid`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The output txid"
|
||||
|
||||
- n: "→→<br>`outputIndex`"
|
||||
t: "number"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The output index"
|
||||
|
||||
- n: "→→<br>`script`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The script hex encoded"
|
||||
|
||||
- n: "→→<br>`satoshis`"
|
||||
t: "number"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The number of duffs of the output"
|
||||
|
||||
- n: "→→<br>`height`"
|
||||
t: "number"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The block height"
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
Get the unspent outputs for an address:
|
||||
|
||||
{% highlight bash %}
|
||||
dash-cli getaddressutxos '{"addresses": ["yLeC3F9UxJmFaRaf5yzH7FDc7RdvBasi84"]}'
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
|
||||
{% highlight json %}
|
||||
[
|
||||
{
|
||||
"address": "yLeC3F9UxJmFaRaf5yzH7FDc7RdvBasi84",
|
||||
"txid": "ef7bcd083db8c9551ca295698c3b7a6811288fae9944018d2a660a0f939bdb35",
|
||||
"outputIndex": 0,
|
||||
"script": "76a914038b8a73338c8f9c22024338198d63ff7c4cb4c088ac",
|
||||
"satoshis": 1000010000,
|
||||
"height": 7683
|
||||
}
|
||||
]
|
||||
{% endhighlight %}
|
||||
|
||||
{% endautocrossref %}
|
|
@ -2,7 +2,7 @@
|
|||
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/getbalance.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getbalance.md" %}
|
||||
|
||||
##### GetBalance
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,7 +2,7 @@
|
|||
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/getbestblockhash.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getbestblockhash.md" %}
|
||||
|
||||
##### GetBestBlockHash
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
@ -25,16 +25,16 @@ The `getbestblockhash` RPC {{summary_getBestBlockHash}}
|
|||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Bitcoin Core 0.10.0*
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli -testnet getbestblockhash
|
||||
dash-cli -testnet getbestblockhash
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
|
||||
{% highlight text %}
|
||||
0000000000075c58ed39c3e50f99b32183d090aefa0cf8c324a82eea9b01a887
|
||||
00000bafbc94add76cb75e2ec92894837288a481e5c005f6563d91623bf8bc2c
|
||||
{% endhighlight %}
|
||||
|
||||
*See also*
|
|
@ -2,7 +2,7 @@
|
|||
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/getblock.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getblock.md" %}
|
||||
|
||||
##### GetBlock
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
@ -27,9 +27,9 @@ The `getblock` RPC {{summary_getBlock}}
|
|||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "Format"
|
||||
t: "number"
|
||||
p: "Optional<br>(0, 1 or 2)"
|
||||
d: "Set to `0` to get the block in serialized block format; set to `1` (the default) to get the decoded block as a JSON object; set to `2` to get the decoded block as a JSON object with verbose transaction decoding"
|
||||
t: "boolean"
|
||||
p: "Optional<br>(true or false)"
|
||||
d: "Set to `false` to get the block in serialized block format; set to `true` (the default) to get the decoded block as a JSON object"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
|
@ -66,16 +66,6 @@ The `getblock` RPC {{summary_getBlock}}
|
|||
p: "Required<br>(exactly 1)"
|
||||
d: "The size of this block in serialized block format, counted in bytes"
|
||||
|
||||
- n: "→<br>`strippedsize`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "*Added in Bitcoin Core 0.13.0*<br><br>The size of this block in serialized block format excluding witness data, counted in bytes"
|
||||
|
||||
- n: "→<br>`weight`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "*Added in Bitcoin Core 0.13.0*<br><br>This block's weight as defined in BIP141"
|
||||
|
||||
- n: "→<br>`height`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
|
@ -86,11 +76,6 @@ The `getblock` RPC {{summary_getBlock}}
|
|||
p: "Required<br>(exactly 1)"
|
||||
d: "This block's version number. See [block version numbers][section block versions]"
|
||||
|
||||
- n: "→<br>`versionHex`"
|
||||
t: "string (hex)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "*Added in Bitcoin Core 0.13.0*<br><br>This block's version formatted in hexadecimal"
|
||||
|
||||
- n: "→<br>`merkleroot`"
|
||||
t: "string (hex)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
|
@ -148,60 +133,63 @@ The `getblock` RPC {{summary_getBlock}}
|
|||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Bitcoin Core 0.13.1*
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
Get a block in raw hex:
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli getblock \
|
||||
00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048 \
|
||||
dash-cli -testnet getblock \
|
||||
0000000037955fcc39af8b1ae75914ffb422313c0fca7eba96a1ac99c2e57f84 \
|
||||
false
|
||||
{% endhighlight %}
|
||||
|
||||
Result (wrapped):
|
||||
|
||||
{% highlight text %}
|
||||
010000006fe28c0ab6f1b372c1a6a246ae63f74f931e8365e15a089c68d61900\
|
||||
00000000982051fd1e4ba744bbbe680e1fee14677ba1a3c3540bf7b1cdb606e8\
|
||||
57233e0e61bc6649ffff001d01e3629901010000000100000000000000000000\
|
||||
00000000000000000000000000000000000000000000ffffffff0704ffff001d\
|
||||
0104ffffffff0100f2052a0100000043410496b538e853519c726a2c91e61ec1\
|
||||
1600ae1390813a627c66fb8be7947be63c52da7589379515d4e0a604f8141781\
|
||||
e62294721166bf621e73a82cbf2342c858eeac00000000
|
||||
0100002011f5719a0a0c4881ff98b4a68c1c828dc3b10f5b51033f5f93d48dbf\
|
||||
000000004b8e38f197d6ee878e160d2bae3ce05ab898a6252458ec67ce770140\
|
||||
260397c4dd2ed659a1dd001d00636b5601010000000100000000000000000000\
|
||||
00000000000000000000000000000000000000000000ffffffff4b02041204dd\
|
||||
2ed65908fabe6d6d7445746d63506b62572d2d35584853467a765a6748696972\
|
||||
30657a3a6f6d656e010000000000000017fffff9020000000d2f6e6f64655374\
|
||||
726174756d2f00000000058028bb13010000001976a914bad55652dffb1af943\
|
||||
41015c94feea79793442fd88ac40e553b1020000001976a9142b7856de53d4c1\
|
||||
823090c98f8ad79862842c09b588ac4094dd89000000001976a914c2c29ebc78\
|
||||
7954ef99d01c5f79115abf7012fb8e88ac4094dd89000000001976a914d7b47d\
|
||||
4b40a23c389f5a17754d7f60f511c7d0ec88ac4094dd89000000001976a914dc\
|
||||
3e0793134b081145ec0c67a9c72a7b297df27c88ac00000000
|
||||
{% endhighlight %}
|
||||
|
||||
Get the same block in JSON:
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli getblock \
|
||||
00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048
|
||||
dash-cli -testnet getblock \
|
||||
0000000037955fcc39af8b1ae75914ffb422313c0fca7eba96a1ac99c2e57f84
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
|
||||
{% highlight json %}
|
||||
{
|
||||
"hash": "00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048",
|
||||
"confirmations": 447014,
|
||||
"strippedsize": 215,
|
||||
"size": 215,
|
||||
"weight": 860,
|
||||
"height": 1,
|
||||
"version": 1,
|
||||
"versionHex": "00000001",
|
||||
"merkleroot": "0e3e2357e806b6cdb1f70b54c3a3a17b6714ee1f0e68bebb44a74b1efd512098",
|
||||
"tx": [
|
||||
"0e3e2357e806b6cdb1f70b54c3a3a17b6714ee1f0e68bebb44a74b1efd512098"
|
||||
],
|
||||
"time": 1231469665,
|
||||
"mediantime": 1231469665,
|
||||
"nonce": 2573394689,
|
||||
"bits": "1d00ffff",
|
||||
"difficulty": 1,
|
||||
"chainwork": "0000000000000000000000000000000000000000000000000000000200020002",
|
||||
"previousblockhash": "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f",
|
||||
"nextblockhash": "000000006a625f06636b8bb6ac7b960a8d03705d1ace08b1a19da3fdcc99ddbd"
|
||||
"hash": "0000000037955fcc39af8b1ae75914ffb422313c0fca7eba96a1ac99c2e57f84",
|
||||
"confirmations": 3,
|
||||
"size": 377,
|
||||
"height": 4612,
|
||||
"version": 536870913,
|
||||
"merkleroot": "c4970326400177ce67ec582425a698b85ae03cae2b0d168e87eed697f1388e4b",
|
||||
"tx": [
|
||||
"c4970326400177ce67ec582425a698b85ae03cae2b0d168e87eed697f1388e4b"
|
||||
],
|
||||
"time": 1507208925,
|
||||
"mediantime": 1507208645,
|
||||
"nonce": 1449878272,
|
||||
"bits": "1d00dda1",
|
||||
"difficulty": 1.155066358813473,
|
||||
"chainwork": "000000000000000000000000000000000000000000000000000001c3e86f0f04",
|
||||
"previousblockhash": "00000000bf8dd4935f3f03515b0fb1c38d821c8ca6b498ff81480c0a9a71f511",
|
||||
"nextblockhash": "0000000028817c7fce55d802f3647640600535a983d00e16076f284ec6cb001b"
|
||||
}
|
||||
|
||||
{% endhighlight %}
|
||||
|
||||
*See also*
|
|
@ -2,7 +2,7 @@
|
|||
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/getblockchaininfo.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getblockchaininfo.md" %}
|
||||
|
||||
##### GetBlockChainInfo
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
@ -52,7 +52,7 @@ The `getblockchaininfo` RPC {{summary_getBlockChainInfo}}
|
|||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "*Added in Bitcoin Core 0.12.0*<br><br>The median time of the 11 blocks before the most recent block on the blockchain. Used for validating transaction locktime under BIP113"
|
||||
|
||||
|
||||
- n: "→<br>`verificationprogress`"
|
||||
t: "number (real)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
|
@ -67,12 +67,12 @@ The `getblockchaininfo` RPC {{summary_getBlockChainInfo}}
|
|||
t: "bool"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "*Added in Bitcoin Core 0.11.0*<br><br>Indicates if the blocks are subject to pruning"
|
||||
|
||||
|
||||
- n: "→<br>`pruneheight`"
|
||||
t: "number (int)"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
d: "*Added in Bitcoin Core 0.11.0*<br><br>The lowest-height complete block stored if prunning is activated"
|
||||
|
||||
d: "*Added in Bitcoin Core 0.11.0*<br><br>The lowest-height complete block stored if pruning is activated"
|
||||
|
||||
- n: "→<br>`softforks`"
|
||||
t: "array"
|
||||
p: "Required<br>(exactly 1)"
|
||||
|
@ -82,17 +82,17 @@ The `getblockchaininfo` RPC {{summary_getBlockChainInfo}}
|
|||
t: "object"
|
||||
p: "Required<br>(3 or more)"
|
||||
d: "A specific softfork"
|
||||
|
||||
|
||||
- n: "→ → →<br>`id`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The name of the softfork"
|
||||
|
||||
|
||||
- n: "→ → →<br>`version`"
|
||||
t: "numeric<br>(int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The block version used for the softfork"
|
||||
|
||||
|
||||
- n: "→ → →<br>`enforce`"
|
||||
t: "string : object"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
|
@ -102,12 +102,12 @@ The `getblockchaininfo` RPC {{summary_getBlockChainInfo}}
|
|||
t: "bool"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "Indicates if the threshold was reached"
|
||||
|
||||
|
||||
- n: "→ → → →<br>`found`"
|
||||
t: "numeric<br>(int)"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
d: "Number of blocks that support the softfork"
|
||||
|
||||
|
||||
- n: "→ → → →<br>`required`"
|
||||
t: "numeric<br>(int)"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
|
@ -127,12 +127,12 @@ The `getblockchaininfo` RPC {{summary_getBlockChainInfo}}
|
|||
t: "bool"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
d: "Indicates if the threshold was reached"
|
||||
|
||||
|
||||
- n: "→ → → →<br>`found`"
|
||||
t: "numeric<br>(int)"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
d: "Number of blocks that support the softfork"
|
||||
|
||||
|
||||
- n: "→ → → →<br>`required`"
|
||||
t: "numeric<br>(int)"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
|
@ -142,101 +142,108 @@ The `getblockchaininfo` RPC {{summary_getBlockChainInfo}}
|
|||
t: "numeric<br>(int)"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
d: "The maximum size of examined window of recent blocks"
|
||||
|
||||
|
||||
- n: "→<br>`bip9_softforks`"
|
||||
t: "object"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "*Added in Bitcoin Core 0.12.1*<br><br>The status of BIP9 softforks in progress"
|
||||
|
||||
|
||||
- n: "→ →<br>Name"
|
||||
t: "string : object"
|
||||
p: "Required<br>(2 or more)"
|
||||
d: "A specific BIP9 softfork"
|
||||
|
||||
|
||||
- n: "→ → →<br>`status`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "Set to one of the following reasons:<br>• `defined` if voting hasn't started yet<br>• `started` if the voting has started <br>• `locked_in` if the voting was successful but the softfort hasn't been activated yet<br>• `active` if the softfork was activated<br>• `failed` if the softfork has not receieved enough votes"
|
||||
|
||||
|
||||
- n: "→ → →<br>`bit`"
|
||||
t: "numeric<br>(int)"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
d: "The bit (0-28) in the block version field used to signal this softfork. Field is only shown when status is `started`"
|
||||
|
||||
- n: "→ → →<br>`startTime`"
|
||||
t: "numeric<br>(int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The Unix epoch time when the softfork voting begins"
|
||||
|
||||
- n: "→ → →<br>`timeout`"
|
||||
t: "numeric<br>(int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The Unix epoch time at which the deployment is considered failed if not yet locked in"
|
||||
|
||||
- n: "→ → →<br>`since`"
|
||||
t: "numeric<br>(int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "*Added in Bitcoin Core 0.14.0*<br><br>The height of the first block to which the status applies"
|
||||
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Bitcoin Core 0.14.1*
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli getblockchaininfo
|
||||
dash-cli -testnet getblockchaininfo
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
|
||||
{% highlight json %}
|
||||
{
|
||||
"chain": "main",
|
||||
"blocks": 464562,
|
||||
"headers": 464562,
|
||||
"bestblockhash": "00000000000000000085bd56990c579a36bade6ea427646612f13476edb30ceb",
|
||||
"difficulty": 521974519553.6282,
|
||||
"mediantime": 1493758169,
|
||||
"verificationprogress": 0.999989733170878,
|
||||
"chainwork": "00000000000000000000000000000000000000000052c26f32ffa22706efd28c",
|
||||
"chain": "test",
|
||||
"blocks": 4622,
|
||||
"headers": 4622,
|
||||
"bestblockhash": "000000007f4141e557309da09911b1c3c65b8e9eed3f5e940f7083aec8999ac7",
|
||||
"difficulty": 1.380236305048335,
|
||||
"mediantime": 1507209819,
|
||||
"verificationprogress": 0.9999053826626874,
|
||||
"chainwork": "000000000000000000000000000000000000000000000000000001d17aeaf58b",
|
||||
"pruned": false,
|
||||
"softforks": [
|
||||
{
|
||||
"id": "bip34",
|
||||
"version": 2,
|
||||
"enforce": {
|
||||
"status": true,
|
||||
"found": 100,
|
||||
"required": 51,
|
||||
"window": 100
|
||||
},
|
||||
"reject": {
|
||||
"status": true
|
||||
"status": true,
|
||||
"found": 100,
|
||||
"required": 75,
|
||||
"window": 100
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "bip66",
|
||||
"version": 3,
|
||||
"enforce": {
|
||||
"status": true,
|
||||
"found": 100,
|
||||
"required": 51,
|
||||
"window": 100
|
||||
},
|
||||
"reject": {
|
||||
"status": true
|
||||
"status": true,
|
||||
"found": 100,
|
||||
"required": 75,
|
||||
"window": 100
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "bip65",
|
||||
"version": 4,
|
||||
"enforce": {
|
||||
"status": true,
|
||||
"found": 100,
|
||||
"required": 51,
|
||||
"window": 100
|
||||
},
|
||||
"reject": {
|
||||
"status": true
|
||||
"status": true,
|
||||
"found": 100,
|
||||
"required": 75,
|
||||
"window": 100
|
||||
}
|
||||
}
|
||||
],
|
||||
"bip9_softforks": {
|
||||
"csv": {
|
||||
"status": "active",
|
||||
"startTime": 1462060800,
|
||||
"timeout": 1493596800,
|
||||
"since": 419328
|
||||
"bip9_softforks": [
|
||||
{
|
||||
"id": "csv",
|
||||
"status": "started"
|
||||
},
|
||||
"segwit": {
|
||||
"status": "started",
|
||||
"bit": 1,
|
||||
"startTime": 1479168000,
|
||||
"timeout": 1510704000,
|
||||
"since": 439488
|
||||
{
|
||||
"id": "dip0001",
|
||||
"status": "started"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
{% endhighlight %}
|
|
@ -2,7 +2,7 @@
|
|||
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/getblockcount.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getblockcount.md" %}
|
||||
|
||||
##### GetBlockCount
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
@ -25,16 +25,16 @@ The `getblockcount` RPC {{summary_getBlockCount}}
|
|||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Bitcoin Core 0.10.0*
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli -testnet getblockcount
|
||||
dash-cli -testnet getblockcount
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
|
||||
{% highlight text %}
|
||||
315280
|
||||
4627
|
||||
{% endhighlight %}
|
||||
|
||||
*See also*
|
|
@ -2,7 +2,7 @@
|
|||
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/getblockhash.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getblockhash.md" %}
|
||||
|
||||
##### GetBlockHash
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
@ -33,16 +33,16 @@ The `getblockhash` RPC {{summary_getBlockHash}}
|
|||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Bitcoin Core 0.10.0*
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli -testnet getblockhash 240886
|
||||
dash-cli -testnet getblockhash 4000
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
|
||||
{% highlight text %}
|
||||
00000000a0faf83ab5799354ae9c11da2a2bd6db44058e03c528851dee0a3fff
|
||||
00000ce22113f3eb8636e225d6a1691e132fdd587aed993e1bc9b07a0235eea4
|
||||
{% endhighlight %}
|
||||
|
||||
*See also*
|
78
_includes/devdoc/dash-core/rpcs/rpcs/getblockhashes.md
Normal file
78
_includes/devdoc/dash-core/rpcs/rpcs/getblockhashes.md
Normal file
|
@ -0,0 +1,78 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getblockhashes.md" %}
|
||||
|
||||
##### GetBlockHashes
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
||||
{% assign summary_getBlockHashes="returns array of hashes of blocks within the timestamp range provided (requires `timestampindex` to be enabled)." %}
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
*Added in Dash Core 0.12.1*
|
||||
|
||||
The `getblockhashes` RPC {{summary_getBlockHashes}}
|
||||
|
||||
*Parameter #1---high block timestamp*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "Block Timestamp"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The block timestamp for the newest block hash that should be returned."
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Parameter #2---low block timestamp*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "Block Timestamp"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The block timestamp for the oldest block hash that should be returned."
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Result---the block header hashes in the give time range*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "`result`"
|
||||
t: "array"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The hashes of the blocks in the requested time range"
|
||||
|
||||
- n: "→<br>`hash`"
|
||||
t: "string (hex)"
|
||||
p: "Required<br>(1 or more)"
|
||||
d: "The hash of a block in the chain, encoded as hex in RPC byte order"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
{% highlight bash %}
|
||||
dash-cli -testnet getblockhashes 1507555793 1507554793
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
|
||||
{% highlight json %}
|
||||
[
|
||||
"0000000010a16c6fbc6bd5cdc238c2beabcda334e97fde1500d59be4e6fc4b89",
|
||||
"000000009910885e811230c403e55aac6547d6df04ee671b2e8348524f73cab8",
|
||||
"000000004bbb3828db1c4d4491760336cec215087819ab656336f30d4095e3d2",
|
||||
"00000000ad2df2149aca2261a9a87c41e139dfe8f73d91db7ec0c1837fee21a0",
|
||||
"0000000074068a9e3a271d165da3deb28bc3f8c751dde97f460d8078d92a9d06"
|
||||
]
|
||||
{% endhighlight %}
|
||||
|
||||
*See also*
|
||||
|
||||
* [GetBlock][rpc getblock]: {{summary_getBlock}}
|
||||
* [GetBlockHash][rpc getblockhash]: {{summary_getBlockHash}}
|
||||
* [GetBestBlockHash][rpc getbestblockhash]: {{summary_getBestBlockHash}}
|
||||
|
||||
|
||||
{% endautocrossref %}
|
|
@ -2,7 +2,7 @@
|
|||
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/getblockheader.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getblockheader.md" %}
|
||||
|
||||
##### GetBlockHeader
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
@ -72,17 +72,17 @@ The `getblockheader` RPC {{summary_getBlockHeader}}
|
|||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "This block's version number. See [block version numbers][section block versions]"
|
||||
|
||||
- n: "→<br>`versionHex`"
|
||||
t: "number (hex)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "This block's hex version number. See [block version numbers][section block versions]"
|
||||
|
||||
- n: "→<br>`merkleroot`"
|
||||
t: "string (hex)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
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`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
|
@ -120,30 +120,41 @@ The `getblockheader` RPC {{summary_getBlockHeader}}
|
|||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Bitcoin Core 0.12.1*
|
||||
*Changes from Bitcoin - Following items not present in Dash result*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
|
||||
- n: "→<br>`versionHex`"
|
||||
t: "number (hex)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "This block's hex version number. See [block version numbers][section block versions]"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
Get a block header in raw hex:
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli -testnet getblockheader \
|
||||
00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09 \
|
||||
dash-cli -testnet getblockheader \
|
||||
00000000eb0af5aec7b673975a22593dc0cc763f71ba8de26292410273437078 \
|
||||
false
|
||||
{% endhighlight %}
|
||||
|
||||
Result (wrapped):
|
||||
|
||||
{% highlight text %}
|
||||
010000007de867cc8adc5cc8fb6b898ca4462cf9fd667d7830a275277447e608\
|
||||
00000000338f121232e169d3100edd82004dc2a1f0e1f030c6c488fa61eafa93\
|
||||
0b0528fe021f7449ffff001d36b4af9a
|
||||
01000020f61396cfd2747e94cfa088fe1f7875d8171accc22d6e5616edca0cb8\
|
||||
00000000c31eb96ee1d9e78d61a601371a348c19e4e59698d0ff7869334b72cb\
|
||||
7ffb76893b41d6593016011d09b2aa3c
|
||||
|
||||
{% endhighlight %}
|
||||
|
||||
Get the same block in JSON:
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli -testnet getblockheader \
|
||||
00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09
|
||||
dash-cli -testnet getblockheader \
|
||||
00000000eb0af5aec7b673975a22593dc0cc763f71ba8de26292410273437078
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
|
@ -151,20 +162,19 @@ Result:
|
|||
{% highlight json %}
|
||||
|
||||
{
|
||||
"hash": "00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09",
|
||||
"confirmations": 437926,
|
||||
"height": 1000,
|
||||
"version": 1,
|
||||
"versionHex": "00000001",
|
||||
"merkleroot": "fe28050b93faea61fa88c4c630f0e1f0a1c24d0082dd0e10d369e13212128f33",
|
||||
"time": 1232346882,
|
||||
"mediantime": 1232344831,
|
||||
"nonce": 2595206198,
|
||||
"bits": "1d00ffff",
|
||||
"difficulty": 1,
|
||||
"chainwork": "000000000000000000000000000000000000000000000000000003e903e903e9",
|
||||
"previousblockhash": "0000000008e647742775a230787d66fdf92c46a48c896bfbc85cdc8acc67e87d",
|
||||
"nextblockhash": "00000000a2887344f8db859e372e7e4bc26b23b9de340f725afbf2edb265b4c6"
|
||||
"hash": "00000000eb0af5aec7b673975a22593dc0cc763f71ba8de26292410273437078",
|
||||
"confirmations": 7,
|
||||
"height": 4635,
|
||||
"version": 536870913,
|
||||
"merkleroot": "8976fb7fcb724b336978ffd09896e5e4198c341a3701a6618de7d9e16eb91ec3",
|
||||
"time": 1507213627,
|
||||
"mediantime": 1507213022,
|
||||
"nonce": 1017819657,
|
||||
"bits": "1d011630",
|
||||
"difficulty": 0.920228600314536,
|
||||
"chainwork": "000000000000000000000000000000000000000000000000000001e06428c09a",
|
||||
"previousblockhash": "00000000b80ccaed16566e2dc2cc1a17d875781ffe88a0cf947e74d2cf9613f6",
|
||||
"nextblockhash": "000000003b1aa290db62ae7cfb4dbb67c8e1402a40ef387587f930b8ec3b45db"
|
||||
}
|
||||
|
||||
{% endhighlight %}
|
||||
|
@ -173,6 +183,8 @@ Result:
|
|||
|
||||
* [GetBlock][rpc getblock]: {{summary_getBlock}}
|
||||
* [GetBlockHash][rpc getblockhash]: {{summary_getBlockHash}}
|
||||
* [GetBlockHashes][rpc getblockhashes]: {{summary_getBlockHashes}}
|
||||
* [GetBlockHeaders][rpc getblockheaders]: {{summary_getBlockHeaders}}
|
||||
* [GetBestBlockHash][rpc getbestblockhash]: {{summary_getBestBlockHash}}
|
||||
|
||||
{% endautocrossref %}
|
219
_includes/devdoc/dash-core/rpcs/rpcs/getblockheaders.md
Normal file
219
_includes/devdoc/dash-core/rpcs/rpcs/getblockheaders.md
Normal file
|
@ -0,0 +1,219 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getblockheaders.md" %}
|
||||
|
||||
##### GetBlockHeaders
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
||||
{% assign summary_getBlockHeaders="returns an array of items with information about the requested number of blockheaders starting from the requested hash." %}
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
*Added in Dash Core 0.12.1*
|
||||
|
||||
The `getblockheaders` RPC {{summary_getBlockHeaders}}
|
||||
|
||||
*Parameter #1---header hash*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "Header Hash"
|
||||
t: "string (hex)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The hash of the block header to get, encoded as hex in RPC byte order"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Parameter #2---number of headers to return*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "Count"
|
||||
t: "number"
|
||||
p: "Optional<br>(exactly 1)"
|
||||
d: "The number of block headers to get"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Parameter #3---JSON or hex output*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "Verbose"
|
||||
t: "bool"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
d: "Set to `false` to get the block headers in serialized block format; set to `true` (the default) to get the decoded block headers as a JSON object"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Result (if format was `false`)---a serialized block header*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "`result`"
|
||||
t: "array"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The requested block header(s) as a serialized block"
|
||||
|
||||
- n: "→<br>`header`"
|
||||
t: "string (hex)"
|
||||
p: "Required<br>(1 or more)"
|
||||
d: "The block header encoded as hex in RPC byte order"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Result (if format was `true` or omitted)---a JSON block header*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "`result`"
|
||||
t: "array"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "An array of objects each containing a block header, or JSON `null` if an error occurred"
|
||||
|
||||
- n: "→<br>Block Header"
|
||||
t: "object/null"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "An object containing a block header"
|
||||
|
||||
- n: "→ →<br>`hash`"
|
||||
t: "string (hex)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The hash of this block's block header encoded as hex in RPC byte order. This is the same as the hash provided in parameter #1"
|
||||
|
||||
- n: "→ →<br>`confirmations`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The number of confirmations the transactions in this block have, starting at 1 when this block is at the tip of the best block chain. This score will be -1 if the the block is not part of the best block chain"
|
||||
|
||||
- n: "→ →<br>`height`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The height of this block on its block chain"
|
||||
|
||||
- n: "→ →<br>`version`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "This block's version number. See [block version numbers][section block versions]"
|
||||
|
||||
- n: "→ →<br>`merkleroot`"
|
||||
t: "string (hex)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
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`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The computed median time of the previous 11 blocks. Used for validating transaction locktime under BIP113"
|
||||
|
||||
- n: "→ →<br>`nonce`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The nonce which was successful at turning this particular block into one that could be added to the best block chain"
|
||||
|
||||
- n: "→ →<br>`bits`"
|
||||
t: "string (hex)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The value of the *nBits* field in the block header, indicating the target threshold this block's header had to pass"
|
||||
|
||||
- n: "→ →<br>`difficulty`"
|
||||
t: "number (real)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The estimated amount of work done to find this block relative to the estimated amount of work done to find block 0"
|
||||
|
||||
- n: "→<br>`chainwork`"
|
||||
t: "string (hex)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The estimated number of block header hashes miners had to check from the genesis block to this block, encoded as big-endian hex"
|
||||
|
||||
- n: "→ →<br>`previousblockhash`"
|
||||
t: "string (hex)"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
d: "The hash of the header of the previous block, encoded as hex in RPC byte order. Not returned for genesis block"
|
||||
|
||||
- n: "→ →<br>`nextblockhash`"
|
||||
t: "string (hex)"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
d: "The hash of the next block on the best block chain, if known, encoded as hex in RPC byte order"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
Get two block headers in raw hex:
|
||||
|
||||
{% highlight bash %}
|
||||
dash-cli -testnet getblockheaders \
|
||||
0000000010a16c6fbc6bd5cdc238c2beabcda334e97fde1500d59be4e6fc4b89 \
|
||||
2 false
|
||||
{% endhighlight %}
|
||||
|
||||
Result (wrapped):
|
||||
|
||||
{% highlight text %}
|
||||
[
|
||||
"010000207216dc7b7c898ba3fc0b39d1fd16756b97b1e07e3eb5c64d1510a64b0000000\
|
||||
0bb64e58a0be4276bf3e9c366bba960953ef9e47a8f62342476be56a5dfa7a2670276db\
|
||||
59eae1001d0735577e",
|
||||
"01000020894bfce6e49bd50015de7fe934a3cdabbec238c2cdd56bbc6f6ca1100000000\
|
||||
0edb2a018d535de70b0622a3303dc329dcb315e7507d074c0c641501c58d88aa08576db\
|
||||
59c5db001d03cf8986"
|
||||
]
|
||||
{% endhighlight %}
|
||||
|
||||
Get the same two block headers in JSON:
|
||||
|
||||
{% highlight bash %}
|
||||
dash-cli -testnet getblockheader \
|
||||
00000000eb0af5aec7b673975a22593dc0cc763f71ba8de26292410273437078 \
|
||||
2 true
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
|
||||
{% highlight json %}
|
||||
[
|
||||
{
|
||||
"hash": "0000000010a16c6fbc6bd5cdc238c2beabcda334e97fde1500d59be4e6fc4b89",
|
||||
"confirmations": 20,
|
||||
"height": 6802,
|
||||
"version": 536870913,
|
||||
"merkleroot": "67a2a7dfa556be762434628f7ae4f93e9560a9bb66c3e9f36b27e40b8ae564bb",
|
||||
"time": 1507554818,
|
||||
"mediantime": 1507554058,
|
||||
"nonce": 2119644423,
|
||||
"bits": "1d00e1ea",
|
||||
"difficulty": 1.1331569664903,
|
||||
"chainwork": "0000000000000000000000000000000000000000000000000000092c7b511197",
|
||||
"previousblockhash": "000000004ba610154dc6b53e7ee0b1976b7516fdd1390bfca38b897c7bdc1672",
|
||||
"nextblockhash": "000000009910885e811230c403e55aac6547d6df04ee671b2e8348524f73cab8"
|
||||
},
|
||||
{
|
||||
"hash": "000000009910885e811230c403e55aac6547d6df04ee671b2e8348524f73cab8",
|
||||
"confirmations": 19,
|
||||
"height": 6803,
|
||||
"version": 536870913,
|
||||
"merkleroot": "a08ad8581c5041c6c074d007755e31cb9d32dc03332a62b070de35d518a0b2ed",
|
||||
"time": 1507554949,
|
||||
"mediantime": 1507554181,
|
||||
"nonce": 2257178371,
|
||||
"bits": "1d00dbc5",
|
||||
"difficulty": 1.164838875953147,
|
||||
"chainwork": "0000000000000000000000000000000000000000000000000000092da5851d38",
|
||||
"previousblockhash": "0000000010a16c6fbc6bd5cdc238c2beabcda334e97fde1500d59be4e6fc4b89",
|
||||
"nextblockhash": "000000004bbb3828db1c4d4491760336cec215087819ab656336f30d4095e3d2"
|
||||
}
|
||||
]
|
||||
{% endhighlight %}
|
||||
|
||||
*See also*
|
||||
|
||||
* [GetBlock][rpc getblock]: {{summary_getBlock}}
|
||||
* [GetBlockHash][rpc getblockhash]: {{summary_getBlockHash}}
|
||||
* [GetBlockHashes][rpc getblockhashes]: {{summary_getBlockHashes}}
|
||||
* [GetBlockHeader][rpc getblockheader]: {{summary_getBlockHeader}}
|
||||
* [GetBestBlockHash][rpc getbestblockhash]: {{summary_getBestBlockHash}}
|
||||
|
||||
{% endautocrossref %}
|
361
_includes/devdoc/dash-core/rpcs/rpcs/getblocktemplate.md
Normal file
361
_includes/devdoc/dash-core/rpcs/rpcs/getblocktemplate.md
Normal file
|
@ -0,0 +1,361 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getblocktemplate.md" %}
|
||||
|
||||
##### GetBlockTemplate
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
||||
{% assign summary_getBlockTemplate="gets a block template or proposal for use with mining software." %}
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
The `getblocktemplate` RPC {{summary_getBlockTemplate}} For more
|
||||
information, please see the following resources:
|
||||
|
||||
* [Bitcoin Wiki GetBlockTemplate][wiki getblocktemplate]
|
||||
* [BIP22][]
|
||||
* [BIP23][]
|
||||
|
||||
*Parameter #1---a JSON request object*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "Request"
|
||||
t: "object"
|
||||
p: "Optional<br>(exactly 1)"
|
||||
d: "A JSON request object"
|
||||
|
||||
- n: "→<br>`mode`"
|
||||
t: "string"
|
||||
p: "Optional<br>(exactly 1)"
|
||||
d: "This must be set to \"template\" or omitted"
|
||||
|
||||
- n: "→<br>`capabilities`"
|
||||
t: "array (string)"
|
||||
p: "Optional<br>(0 or more)"
|
||||
d: "A list of strings"
|
||||
|
||||
- n: "→ →<br>Capability"
|
||||
t: "string"
|
||||
p: "Optional<br>(exactly 1)"
|
||||
d: "Client side supported feature, `longpoll`, `coinbasetxn`, `coinbasevalue`, `proposal`, `serverlist`, `workid`"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Result---block template*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "`result`"
|
||||
t: "object"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "A object containing a block template"
|
||||
|
||||
- n: "→<br>`capabilities`"
|
||||
t: "array (string)"
|
||||
p: "Required<br>(1 or more)"
|
||||
d: "The client side supported features"
|
||||
|
||||
- n: "→ →<br>Capability"
|
||||
t: "string"
|
||||
p: "Optional<br>(0 or more)"
|
||||
d: "A client side supported feature"
|
||||
|
||||
- n: "→<br>`version`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The block version"
|
||||
|
||||
- n: "→<br>`rules`"
|
||||
t: "array (string)"
|
||||
p: "Required<br>(1 or more)"
|
||||
d: "The specific block rules that are to be enforced"
|
||||
|
||||
- n: "→ →<br>Block Rule"
|
||||
t: "string"
|
||||
p: "Optional<br>(0 or more)"
|
||||
d: "A specific block rule to be enforced"
|
||||
|
||||
- n: "→<br>`vbavailable`"
|
||||
t: "object"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "Contains the set of pending, supported versionbit (BIP 9) softfork deployments"
|
||||
|
||||
- n: "→ →<br>Bit Number"
|
||||
t: "number"
|
||||
p: "Required<br>(0 or more)"
|
||||
d: "The bit number the named softfork rule"
|
||||
|
||||
- n: "→<br>`vbrequired`"
|
||||
t: "number"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The bit mask of versionbits the server requires set in submissions"
|
||||
|
||||
- n: "→<br>`previousblockhash`"
|
||||
t: "string (hex)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The hash of current highest block"
|
||||
|
||||
- n: "→<br>`transactions`"
|
||||
t: "array (objects)"
|
||||
p: "Optional<br>(0 or more)"
|
||||
d: "Non-coinbase transactions to be included in the next block"
|
||||
|
||||
- n: "→ →<br>Transaction"
|
||||
t: "object"
|
||||
p: "Optional (0 or more)"
|
||||
d: "Non-coinbase transaction"
|
||||
|
||||
- n: "→ → →<br>`data`"
|
||||
t: "string (hex)"
|
||||
p: "Optional (0 or more)"
|
||||
d: "Transaction data encoded in hex (byte-for-byte)"
|
||||
|
||||
- n: "→ → →<br>`hash`"
|
||||
t: "string (hex)"
|
||||
p: "Optional (0 or more)"
|
||||
d: "The hash/id encoded in little-endian hex"
|
||||
|
||||
- n: "→ → →<br>`depends`"
|
||||
t: "array (numbers)"
|
||||
p: "Required<br>(0 or more)"
|
||||
d: "An array holding TXIDs of unconfirmed transactions this TX depends upon (parent transactions)."
|
||||
|
||||
- n: "→ → → →<br>Transaction number"
|
||||
t: "number"
|
||||
p: "Optional<br>(1 or more)"
|
||||
d: "Transactions before this one (by 1-based index in `transactions` list) that must be present in the final block if this one is"
|
||||
|
||||
- n: "→ → →<br>`fee`"
|
||||
t: "number"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The difference in value between transaction inputs and outputs (in duffs). For coinbase transactions, this is a negative number of the total collected block fees (ie., not including the block subsidy); if key is not present, fee is unknown and clients MUST NOT assume there isn't one"
|
||||
|
||||
- n: "→ → →<br>`sigops`"
|
||||
t: "number"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "Total SigOps. If not present, the count is unknown (clients MUST NOT assume there aren't any)"
|
||||
|
||||
- n: "→ → →<br>`required`"
|
||||
t: "boolean"
|
||||
p: "Optional<br>(exactly 1)"
|
||||
d: "If provided and true, this transaction must be in the final block"
|
||||
|
||||
- n: "→<br>`coinbaseaux`"
|
||||
t: "object"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "A object containing data that should be included in the coinbase scriptSig content"
|
||||
|
||||
- n: "→ →<br>Flags"
|
||||
t: "string"
|
||||
p: "Required<br>(0 or more)"
|
||||
d: ""
|
||||
|
||||
- n: "→<br>`coinbasevalue`"
|
||||
t: "number"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The maximum allowable input to coinbase transaction, including the generation award and transaction fees (in duffs)"
|
||||
|
||||
- n: "→<br>`coinbasetxn`"
|
||||
t: "object"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "Information for the coinbase transaction)"
|
||||
|
||||
- n: "→<br>`target`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The hash target"
|
||||
|
||||
- n: "→<br>`mintime`"
|
||||
t: "number"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The minimum timestamp appropriate for next block time in seconds since epoch"
|
||||
|
||||
- n: "→<br>`mutable`"
|
||||
t: "array (string)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The list of ways the block template may be changed"
|
||||
|
||||
- n: "→ →<br>Value"
|
||||
t: "string"
|
||||
p: "Required<br>(0 or more)"
|
||||
d: "A way the block template may be changed, e.g. 'time', 'transactions', 'prevblock'"
|
||||
|
||||
- n: "→<br>`noncerange`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "A range of valid nonces"
|
||||
|
||||
- n: "→<br>`sigoplimit`"
|
||||
t: "number"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The limit of sigops in blocks"
|
||||
|
||||
- n: "→<br>`sizelimit`"
|
||||
t: "number"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The limit of block size"
|
||||
|
||||
- n: "→<br>`curtime`"
|
||||
t: "number"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The current timestamp in seconds since epoch"
|
||||
|
||||
- n: "→<br>`bits`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The compressed target of next block"
|
||||
|
||||
- n: "→<br>`height`"
|
||||
t: "number"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The height of the next block"
|
||||
|
||||
- n: "→<br>`masternode`"
|
||||
t: "object"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The masternode payee that must be included in the next block"
|
||||
|
||||
- n: "→ →<br>`payee`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "Payee address"
|
||||
|
||||
- n: "→ →<br>`script`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "Payee scriptPubKey"
|
||||
|
||||
- n: "→ →<br>`amount`"
|
||||
t: "number"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "Required amount to pay"
|
||||
|
||||
- n: "→<br>`masternode_payments_started`"
|
||||
t: "boolean"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "True if masternode payments started"
|
||||
|
||||
- n: "→<br>`masternode_payments_enforced`"
|
||||
t: "boolean"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "True if masternode payments enforced"
|
||||
|
||||
- n: "→<br>`superblock`"
|
||||
t: "array (objects)"
|
||||
p: "Required<br>(0 or more)"
|
||||
d: "The superblock payees that must be included in the next block"
|
||||
|
||||
- n: "→ →<br>Superblock Payee"
|
||||
t: "object"
|
||||
p: "Optional (0 or more)"
|
||||
d: "Object containing a superblock payee's information"
|
||||
|
||||
- n: "→ → →<br>`payee`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "Payee address"
|
||||
|
||||
- n: "→ → →<br>`script`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "Payee scriptPubKey"
|
||||
|
||||
- n: "→ → →<br>`amount`"
|
||||
t: "number"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "Required amount to pay"
|
||||
|
||||
- n: "→<br>`superblocks_started`"
|
||||
t: "boolean"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "True if superblock payments started"
|
||||
|
||||
- n: "→<br>`superblocks_enabled`"
|
||||
t: "boolean"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "True if superblock payments enabled"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
{% highlight bash %}
|
||||
dash-cli -testnet getblocktemplate
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
|
||||
{% highlight json %}
|
||||
{
|
||||
"capabilities": [
|
||||
"proposal"
|
||||
],
|
||||
"version": 536870913,
|
||||
"rules": [
|
||||
"dip0001"
|
||||
],
|
||||
"vbavailable": {
|
||||
"csv": 0
|
||||
},
|
||||
"vbrequired": 0,
|
||||
"previousblockhash": "000000003d5c325259275fbf51a5dd623a13aade887cf83e5fdc3b\
|
||||
11898a71ce",
|
||||
"transactions": [
|
||||
{
|
||||
"data": "01000000013e9e7e2116d8546a54d8531092d50e2da705a6f229f91a6d129f\
|
||||
3f3e529d2bdb010000006a473044022044569ec727012e06bd4fa853fdcb2d\
|
||||
c268f193ca00b68649f3dee0c0ca3207ff02206dc8656025c2f503e58779e6\
|
||||
8a14ed18a7134f2c7d2c4235269bd70a3d6d5bd301210226d4ce54b37c1886\
|
||||
92844201edbfb19e37cdbe7138a133b92b7d3d43ec157da6feffffff02a00b\
|
||||
d100000000001976a914d7b47d4b40a23c389f5a17754d7f60f511c7d0ec88\
|
||||
ac43321005140000001976a914616fdfd6eae0548f0b0f51bef165974abc10\
|
||||
511688ac1e1f0000",
|
||||
"hash": "9fd01aafcb4c59741ddfef41da2ec0eb3e1cc5b740150320b29534abdcd67e77",
|
||||
"depends": [
|
||||
],
|
||||
"fee": 226,
|
||||
"sigops": 2
|
||||
}
|
||||
],
|
||||
"coinbaseaux": {
|
||||
"flags": ""
|
||||
},
|
||||
"coinbasevalue": 13230000226,
|
||||
"longpollid": "000000003d5c325259275fbf51a5dd623a13aade887cf83e5fdc3b11898a\
|
||||
71ce316",
|
||||
"target": "00000001231e0000000000000000000000000000000000000000000000000000",
|
||||
"mintime": 1507737402,
|
||||
"mutable": [
|
||||
"time",
|
||||
"transactions",
|
||||
"prevblock"
|
||||
],
|
||||
"noncerange": "00000000ffffffff",
|
||||
"sigoplimit": 40000,
|
||||
"sizelimit": 2000000,
|
||||
"curtime": 1507738818,
|
||||
"bits": "1d01231e",
|
||||
"height": 7967,
|
||||
"masternode": {
|
||||
"payee": "yaJc6tADbEjxQBAC69ugWNoTFpzxqkcgWd",
|
||||
"script": "76a914996911b133d83de25d1f169c7046d74b728a757b88ac",
|
||||
"amount": 6615000108
|
||||
},
|
||||
"masternode_payments_started": true,
|
||||
"masternode_payments_enforced": true,
|
||||
"superblock": [
|
||||
],
|
||||
"superblocks_started": true,
|
||||
"superblocks_enabled": true
|
||||
}
|
||||
{% endhighlight %}
|
||||
|
||||
*See also*
|
||||
|
||||
* [SetGenerate][rpc setgenerate]: {{summary_setGenerate}}
|
||||
* [GetMiningInfo][rpc getmininginfo]: {{summary_getMiningInfo}}
|
||||
* [SubmitBlock][rpc submitblock]: {{summary_submitBlock}}
|
||||
* [PrioritiseTransaction][rpc prioritisetransaction]: {{summary_prioritiseTransaction}}
|
||||
|
||||
{% endautocrossref %}
|
|
@ -2,7 +2,7 @@
|
|||
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/getchaintips.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getchaintips.md" %}
|
||||
|
||||
##### GetChainTips
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
@ -38,6 +38,16 @@ The `getchaintips` RPC {{summary_getChainTips}}
|
|||
p: "Required<br>(exactly 1)"
|
||||
d: "The hash of the highest block in the chain, encoded as hex in RPC byte order"
|
||||
|
||||
- n: "→<br>`difficulty`"
|
||||
t: "number (real)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The difficulty of the highest-height block in the best block chain (Added in Dash Core 0.12.1)"
|
||||
|
||||
- n: "→<br>`chainwork`"
|
||||
t: "string (hex)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The estimated number of block header hashes checked from the genesis block to this block, encoded as big-endian hex (Added in Dash Core 0.12.1)"
|
||||
|
||||
- n: "→ →<br>`branchlen`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
|
@ -50,32 +60,22 @@ The `getchaintips` RPC {{summary_getChainTips}}
|
|||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Bitcoin Core 0.10.0*
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli -testnet getchaintips
|
||||
dash-cli -testnet getchaintips
|
||||
{% endhighlight %}
|
||||
|
||||
{% highlight json %}
|
||||
[
|
||||
{
|
||||
"height" : 312647,
|
||||
"hash" : "000000000b1be96f87b31485f62c1361193304a5ad78acf47f9164ea4773a843",
|
||||
"branchlen" : 0,
|
||||
"status" : "active"
|
||||
},
|
||||
{
|
||||
"height" : 282072,
|
||||
"hash" : "00000000712340a499b185080f94b28c365d8adb9fc95bca541ea5e708f31028",
|
||||
"branchlen" : 5,
|
||||
"status" : "valid-fork"
|
||||
},
|
||||
{
|
||||
"height" : 281721,
|
||||
"hash" : "000000006e1f2a32199629c6c1fbd37766f5ce7e8c42bab0c6e1ae42b88ffe12",
|
||||
"branchlen" : 1,
|
||||
"status" : "valid-headers"
|
||||
},
|
||||
{
|
||||
"height": 4655,
|
||||
"hash": "00000000629c276241d9526d85297f2675d6edebcc7fd0c39e8f4263d729b8c1",
|
||||
"difficulty": 0.9622782802772231,
|
||||
"chainwork": "000000000000000000000000000000000000000000000000000001f1e286e12a",
|
||||
"branchlen": 0,
|
||||
"status": "active"
|
||||
}
|
||||
]
|
||||
{% endhighlight %}
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
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/getconnectioncount.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getconnectioncount.md" %}
|
||||
|
||||
##### GetConnectionCount
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
@ -25,10 +25,10 @@ The `getconnectioncount` RPC {{summary_getConnectionCount}}
|
|||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Bitcoin Core 0.10.0*
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli -testnet getconnectioncount
|
||||
dash-cli -testnet getconnectioncount
|
||||
{% endhighlight bash %}
|
||||
|
||||
Result:
|
|
@ -2,12 +2,12 @@
|
|||
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/getdifficulty.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getdifficulty.md" %}
|
||||
|
||||
##### GetDifficulty
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
||||
{% assign summary_getDifficultly="returns the proof-of-work difficulty as a multiple of the minimum difficulty." %}
|
||||
{% assign summary_getDifficulty="returns the proof-of-work difficulty as a multiple of the minimum difficulty." %}
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
|
@ -25,16 +25,16 @@ The `getdifficulty` RPC {{summary_getDifficulty}}
|
|||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Bitcoin Core 0.10.0*
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli -testnet getdifficulty
|
||||
dash-cli -testnet getdifficulty
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
|
||||
{% highlight text %}
|
||||
1.00000000
|
||||
1.069156225528583
|
||||
{% endhighlight %}
|
||||
|
||||
*See also*
|
51
_includes/devdoc/dash-core/rpcs/rpcs/getgenerate.md
Normal file
51
_includes/devdoc/dash-core/rpcs/rpcs/getgenerate.md
Normal file
|
@ -0,0 +1,51 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getgenerate.md" %}
|
||||
|
||||
##### GetGenerate
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
||||
{% assign summary_getGenerate="returns if the server is set to generate coins or not." %}
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
*Requires wallet support.*
|
||||
|
||||
*Removed in Bitcoin Core 0.13.0.*
|
||||
|
||||
The `getgenerate` RPC {{summary_getGenerate}}
|
||||
|
||||
*Parameters: none*
|
||||
|
||||
*Result---whether the server is set to generate blocks*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "`result`"
|
||||
t: "bool"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "Set to `true` if the server is set to generate blocks; set to `false` if it is not"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
{% highlight bash %}
|
||||
dash-cli -regtest getgenerate
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
|
||||
{% highlight json %}
|
||||
false
|
||||
{% endhighlight %}
|
||||
|
||||
*See also*
|
||||
|
||||
* [Generate][rpc generate]: {{summary_generate}}
|
||||
* [GenerateToAddress][rpc generatetoaddress]: {{summary_generateToAddress}}
|
||||
* [GetMiningInfo][rpc getmininginfo]: {{summary_getMiningInfo}}
|
||||
* [SetGenerate][rpc setgenerate]: {{summary_setGenerate}}
|
||||
|
||||
{% endautocrossref %}
|
80
_includes/devdoc/dash-core/rpcs/rpcs/getgovernanceinfo.md
Normal file
80
_includes/devdoc/dash-core/rpcs/rpcs/getgovernanceinfo.md
Normal file
|
@ -0,0 +1,80 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getgovernanceinfo.md" %}
|
||||
|
||||
##### GetGovernanceInfo
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
||||
{% assign summary_getGovernanceInfo="returns an object containing governance parameters." %}
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
The `getgovernanceinfo` RPC {{summary_getGovernanceInfo}}
|
||||
|
||||
*Parameters: none*
|
||||
|
||||
*Result---information about the governance system*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "`result`"
|
||||
t: "object"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "Information about the governance system"
|
||||
|
||||
- n: "→<br>`governanceminquorum`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The absolute minimum number of votes needed to trigger a governance action"
|
||||
|
||||
- n: "→<br>`masternodewatchdogmaxseconds`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "Sentinel watchdog expiration time in seconds"
|
||||
|
||||
- n: "→<br>`proposalfee`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The collateral transaction fee which must be paid to create a proposal in Dash"
|
||||
|
||||
- n: "→<br>`superblockcycle`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The number of blocks between superblocks"
|
||||
|
||||
- n: "→<br>`lastsuperblock`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The block number of the last superblock"
|
||||
|
||||
- n: "→<br>`nextsuperblock`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The block number of the next superblock"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
{% highlight bash %}
|
||||
dash-cli -testnet getgovernanceinfo
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
{% highlight json %}
|
||||
{
|
||||
"governanceminquorum": 1,
|
||||
"masternodewatchdogmaxseconds": 7200,
|
||||
"proposalfee": 5.00000000,
|
||||
"superblockcycle": 24,
|
||||
"lastsuperblock": 7368,
|
||||
"nextsuperblock": 7392
|
||||
}
|
||||
{% endhighlight %}
|
||||
|
||||
*See also:*
|
||||
|
||||
* [GObject][rpc gobject]: {{summary_gObject}}
|
||||
|
||||
{% endautocrossref %}
|
|
@ -2,7 +2,7 @@
|
|||
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/gethashespersec.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/gethashespersec.md" %}
|
||||
|
||||
##### GetHashesPerSec
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,7 +2,7 @@
|
|||
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/getinfo.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getinfo.md" %}
|
||||
|
||||
##### GetInfo
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
@ -13,7 +13,7 @@ http://opensource.org/licenses/MIT.
|
|||
|
||||
The `getinfo` RPC {{summary_getInfo}}
|
||||
|
||||
{{WARNING}} `getinfo` will be removed in a later version of Bitcoin
|
||||
{{WARNING}} `getinfo` will be removed in a later version of Dash
|
||||
Core. Use the RPCs listed in the See Also subsection below instead.
|
||||
|
||||
*Parameters: none*
|
||||
|
@ -29,7 +29,7 @@ Core. Use the RPCs listed in the See Also subsection below instead.
|
|||
- n: "→<br>`version`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "This node's version of Bitcoin Core in its internal integer format. For example, Bitcoin Core 0.9.2 has the integer version number 90200"
|
||||
d: "This node's version of Bitcoin Core in its internal integer format. For example, Dash Core 0.12.2 has the integer version number 120200"
|
||||
|
||||
- n: "→<br>`protocolversion`"
|
||||
t: "number (int)"
|
||||
|
@ -42,9 +42,14 @@ Core. Use the RPCs listed in the See Also subsection below instead.
|
|||
d: "The version number of the wallet. Only returned if wallet support is enabled"
|
||||
|
||||
- n: "→<br>`balance`"
|
||||
t: "number (bitcoins)"
|
||||
t: "number (duffs)"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
d: "The balance of the wallet in bitcoins. Only returned if wallet support is enabled"
|
||||
d: "The total balance of the wallet in duffs. Only returned if wallet support is enabled"
|
||||
|
||||
- n: "→<br>`privatesend_balance`"
|
||||
t: "number (duffs)"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
d: "The PrivateSend balance of the wallet in duffs. Only returned if wallet support is enabled (Added in Dash Core 0.11.0)"
|
||||
|
||||
- n: "→<br>`blocks`"
|
||||
t: "number (int)"
|
||||
|
@ -86,21 +91,21 @@ Core. Use the RPCs listed in the See Also subsection below instead.
|
|||
p: "Optional<br>(0 or 1)"
|
||||
d: "The number of keys in the wallet keypool. Only returned if wallet support is enabled"
|
||||
|
||||
- n: "→<br>`paytxfee`"
|
||||
t: "number (bitcoins)"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
d: "The minimum fee to pay per kilobyte of transaction; may be `0`. Only returned if wallet suuport is enabled"
|
||||
|
||||
- n: "→<br>`relayfee`"
|
||||
t: "number (bitcoins)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The minimum fee a low-priority transaction must pay in order for this node to accept it into its memory pool"
|
||||
|
||||
- n: "→<br>`unlocked_until`"
|
||||
t: "number (int)"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
d: "The Unix epoch time when the wallet will automatically re-lock. Only displayed if wallet encryption is enabled. Set to `0` if wallet is currently locked"
|
||||
|
||||
- n: "→<br>`paytxfee`"
|
||||
t: "number (duffs)"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
d: "The minimum fee to pay per kilobyte of transaction; may be `0`. Only returned if wallet support is enabled"
|
||||
|
||||
- n: "→<br>`relayfee`"
|
||||
t: "number (duffs)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The minimum fee a low-priority transaction must pay in order for this node to accept it into its memory pool"
|
||||
|
||||
- n: "→<br>`errors`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
|
@ -108,31 +113,33 @@ Core. Use the RPCs listed in the See Also subsection below instead.
|
|||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Bitcoin Core 0.10.0 with wallet support enabled*
|
||||
*Example from Dash Core 0.12.2 with wallet support enabled*
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli -testnet getinfo
|
||||
dash-cli -testnet getinfo
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
|
||||
{% highlight json %}
|
||||
{
|
||||
"version" : 100000,
|
||||
"protocolversion" : 70002,
|
||||
"walletversion" : 60000,
|
||||
"balance" : 1.27007770,
|
||||
"blocks" : 315281,
|
||||
"timeoffset" : 0,
|
||||
"connections" : 9,
|
||||
"proxy" : "",
|
||||
"difficulty" : 1.00000000,
|
||||
"testnet" : true,
|
||||
"keypoololdest" : 1418924649,
|
||||
"keypoolsize" : 101,
|
||||
"paytxfee" : 0.00000000,
|
||||
"relayfee" : 0.00001000,
|
||||
"errors" : ""
|
||||
"version": 120200,
|
||||
"protocolversion": 70208,
|
||||
"walletversion": 61000,
|
||||
"balance": 0.00000000,
|
||||
"privatesend_balance": 0.00000000,
|
||||
"blocks": 0,
|
||||
"timeoffset": 0,
|
||||
"connections": 0,
|
||||
"proxy": "",
|
||||
"difficulty": 0.000244140625,
|
||||
"testnet": true,
|
||||
"keypoololdest": 1507579068,
|
||||
"keypoolsize": 617,
|
||||
"unlocked_until": 0,
|
||||
"paytxfee": 0.00000000,
|
||||
"relayfee": 0.00010000,
|
||||
"errors": ""
|
||||
}
|
||||
{% endhighlight %}
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
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/getmemoryinfo.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getmemoryinfo.md" %}
|
||||
|
||||
##### GetMemoryInfo
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,7 +2,7 @@
|
|||
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/getmempoolancestors.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getmempoolancestors.md" %}
|
||||
|
||||
##### GetMemPoolAncestors
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
@ -13,6 +13,9 @@ http://opensource.org/licenses/MIT.
|
|||
|
||||
*Added in Bitcoin Core 0.13.0*
|
||||
|
||||
**_Not implemented in Dash Core (as of 0.12.2)_**
|
||||
|
||||
{% comment %}
|
||||
The `getmempoolancestors` RPC {{summary_getMemPoolAncestors}}
|
||||
|
||||
*Parameter #1---a transaction identifier (TXID)*
|
||||
|
@ -72,7 +75,7 @@ The `getmempoolancestors` RPC {{summary_getMemPoolAncestors}}
|
|||
t: "number (bitcoins)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The transaction fee paid by the transaction in decimal bitcoins"
|
||||
|
||||
|
||||
- n: "→ →<br>`modifiedfee`"
|
||||
t: "number (bitcoins)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
|
@ -211,4 +214,6 @@ Result:
|
|||
* [GetMemPoolDescendants][rpc getmempooldescendants]: {{summary_getMemPoolDescendants}}
|
||||
* [GetRawMemPool][rpc getrawmempool]: {{summary_getRawMemPool}}
|
||||
|
||||
{% endcomment %}
|
||||
|
||||
{% endautocrossref %}
|
|
@ -2,7 +2,7 @@
|
|||
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/getmempooldescendants.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getmempooldescendants.md" %}
|
||||
|
||||
##### GetMemPoolDescendants
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
@ -13,6 +13,10 @@ http://opensource.org/licenses/MIT.
|
|||
|
||||
*Added in Bitcoin Core 0.13.0*
|
||||
|
||||
**_Not implemented in Dash Core (as of 0.12.2)_**
|
||||
|
||||
{% comment %}
|
||||
|
||||
The `getmempooldescendants` RPC {{summary_getMemPoolDescendants}}
|
||||
|
||||
*Parameter #1---a transaction identifier (TXID)*
|
||||
|
@ -72,7 +76,7 @@ The `getmempooldescendants` RPC {{summary_getMemPoolDescendants}}
|
|||
t: "number (bitcoins)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The transaction fee paid by the transaction in decimal bitcoins"
|
||||
|
||||
|
||||
- n: "→ →<br>`modifiedfee`"
|
||||
t: "number (bitcoins)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
|
@ -211,4 +215,6 @@ Result:
|
|||
* [GetMemPoolAncestors][rpc getmempoolancestors]: {{summary_getMemPoolAncestors}}
|
||||
* [GetRawMemPool][rpc getrawmempool]: {{summary_getRawMemPool}}
|
||||
|
||||
{% endcomment %}
|
||||
|
||||
{% endautocrossref %}
|
|
@ -2,7 +2,7 @@
|
|||
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/getmempoolentry.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getmempoolentry.md" %}
|
||||
|
||||
##### GetMemPoolEntry
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
@ -13,6 +13,10 @@ http://opensource.org/licenses/MIT.
|
|||
|
||||
*Added in Bitcoin Core 0.13.0*
|
||||
|
||||
**_Not implemented in Dash Core (as of 0.12.2)_**
|
||||
|
||||
{% comment %}
|
||||
|
||||
The `getmempoolentry` RPC {{summary_getMemPoolEntry}}
|
||||
|
||||
*Parameter #1---a transaction identifier (TXID)*
|
||||
|
@ -42,7 +46,7 @@ The `getmempoolentry` RPC {{summary_getMemPoolEntry}}
|
|||
t: "number (bitcoins)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The transaction fee paid by the transaction in decimal bitcoins"
|
||||
|
||||
|
||||
- n: "→<br>`modifiedfee`"
|
||||
t: "number (bitcoins)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
|
@ -145,4 +149,6 @@ Result:
|
|||
* [GetMemPoolDescendants][rpc getmempooldescendants]: {{summary_getMemPoolDescendants}}
|
||||
* [GetRawMemPool][rpc getrawmempool]: {{summary_getRawMemPool}}
|
||||
|
||||
{% endautocrossref %}
|
||||
{% endcomment %}
|
||||
|
||||
{% endautocrossref %}
|
|
@ -2,7 +2,7 @@
|
|||
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/getmempoolinfo.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getmempoolinfo.md" %}
|
||||
|
||||
##### GetMemPoolInfo
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
@ -50,19 +50,19 @@ The `getmempoolinfo` RPC {{summary_getMemPoolInfo}}
|
|||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Bitcoin Core 0.14.1*
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli -testnet getmempoolinfo
|
||||
dash-cli -testnet getmempoolinfo
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
|
||||
{% highlight json %}
|
||||
{
|
||||
"size": 1237,
|
||||
"bytes": 591126,
|
||||
"usage": 1900416,
|
||||
"size": 1,
|
||||
"bytes": 3471,
|
||||
"usage": 8544,
|
||||
"maxmempool": 300000000,
|
||||
"mempoolminfee": 0.00000000
|
||||
}
|
|
@ -2,7 +2,7 @@
|
|||
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/getmininginfo.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getmininginfo.md" %}
|
||||
|
||||
##### GetMiningInfo
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
@ -51,7 +51,7 @@ The `getmininginfo` RPC {{summary_getMiningInfo}}
|
|||
- n: "→<br>`genproclimit`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "*Removed in Bitcoin Core 0.13.0*<br><br>The limit on the number of processors to use for generation. If generation was enabled since the last time this node was restarted, this is the number used in the second parameter of the `setgenerate` RPC (or the default). Otherwise, it is `-1`"
|
||||
d: "The processor limit for generation (-1 if no generation - see getgenerate or setgenerate calls).<br><br>*Removed in Bitcoin Core 0.13.0*"
|
||||
|
||||
- n: "→<br>`networkhashps`"
|
||||
t: "number (int)"
|
||||
|
@ -66,7 +66,7 @@ The `getmininginfo` RPC {{summary_getMiningInfo}}
|
|||
- n: "→<br>`testnet`"
|
||||
t: "bool"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "*Removed in Bitcoin Core 0.14.0*<br><br>Set to `true` if this node is running on testnet. Set to `false` if this node is on mainnet or a regtest"
|
||||
d: "Set to `true` if this node is running on testnet. Set to `false` if this node is on mainnet or a regtest<br><br>*Removed in Bitcoin Core 0.14.0*"
|
||||
|
||||
- n: "→<br>`chain`"
|
||||
t: "string"
|
||||
|
@ -76,34 +76,31 @@ The `getmininginfo` RPC {{summary_getMiningInfo}}
|
|||
- n: "→<br>`generate`"
|
||||
t: "bool"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
d: "*Removed in Bitcoin Core 0.13.0*<br><br>Set to `true` if generation is currently enabled; set to `false` if generation is currently disabled. Only returned if the node has wallet support enabled"
|
||||
|
||||
- n: "→<br>`hashespersec`"
|
||||
t: "number (int)"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
d: "*Removed in Bitcoin Core 0.11.0*<br><br>The approximate number of hashes per second this node is generating across all CPUs, if generation is enabled. Otherwise `0`. Only returned if the node has wallet support enabled"
|
||||
d: "Set to `true` if generation is currently enabled; set to `false` if generation is currently disabled. Only returned if the node has wallet support enabled<br><br>*Removed in Bitcoin Core 0.13.0*"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Bitcoin Core 0.14.1*
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli getmininginfo
|
||||
dash-cli getmininginfo
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
|
||||
{% highlight json %}
|
||||
{
|
||||
"blocks": 464545,
|
||||
"currentblocksize": 0,
|
||||
"currentblockweight": 0,
|
||||
"currentblocktx": 0,
|
||||
"difficulty": 521974519553.6282,
|
||||
"errors": "",
|
||||
"networkhashps": 4.126888339085874e+18,
|
||||
"pooledtx": 31241,
|
||||
"chain": "main"
|
||||
"blocks": 8036,
|
||||
"currentblocksize": 0,
|
||||
"currentblocktx": 0,
|
||||
"difficulty": 0.8239043524175907,
|
||||
"errors": "",
|
||||
"genproclimit": 1,
|
||||
"networkhashps": 22234635.4469006,
|
||||
"pooledtx": 3,
|
||||
"testnet": true,
|
||||
"chain": "test",
|
||||
"generate": false
|
||||
}
|
||||
{% endhighlight %}
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
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/getnettotals.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getnettotals.md" %}
|
||||
|
||||
##### GetNetTotals
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
@ -37,57 +37,57 @@ The `getnettotals` RPC {{summary_getNetTotals}}
|
|||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "Unix epoch time in milliseconds according to the operating system's clock (not the node adjusted time)"
|
||||
|
||||
|
||||
- n: "→<br>`uploadtarget`"
|
||||
t: "string : <br>object"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The upload traget information"
|
||||
|
||||
|
||||
- n: "→ →<br>`timeframe`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "Length of the measuring timeframe in seconds. The timeframe is currently set to `24` hours"
|
||||
d: "Length of the measuring timeframe in seconds (currently set to `24` hours)"
|
||||
|
||||
- n: "→ →<br>`target`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The maximum allowed outbound traffic in bytes. The default is `0`. Can be changed with `-maxuploadtarget`"
|
||||
d: "The maximum allowed outbound traffic in bytes (default is `0`). Can be changed with `-maxuploadtarget`"
|
||||
|
||||
- n: "→ →<br>`target_reached`"
|
||||
t: "bool"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "Indicates if the target is reached. If the target is reached the node won't serve SPV and historical block requests anymore"
|
||||
d: "Indicates if the target<!--noref--> is reached. If the target<!--noref--> is reached the node won't serve SPV and historical block requests anymore"
|
||||
|
||||
- n: "→ →<br>`serve_historical_blocks`"
|
||||
t: "bool"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "Indicates if historical blocks are served"
|
||||
|
||||
|
||||
- n: "→ →<br>`bytes_left_in_cycle`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "Amount of bytes left in current time cycle. `0` is displayed if no upload target is set"
|
||||
d: "Amount of bytes left in current time cycle. `0` is displayed if no upload target<!--noref--> is set"
|
||||
|
||||
- n: "→ →<br>`time_left_in_cycle`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "Seconds left in current time cycle. `0` is displayed if no upload target is set"
|
||||
d: "Seconds left in current time cycle. `0` is displayed if no upload target<!--noref--> is set"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Bitcoin Core 0.13.1*
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli getnettotals
|
||||
dash-cli getnettotals
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
|
||||
{% highlight json %}
|
||||
{
|
||||
"totalbytesrecv": 7137052851,
|
||||
"totalbytessent": 211648636140,
|
||||
"timemillis": 1481227418585,
|
||||
"totalbytesrecv": 4661588,
|
||||
"totalbytessent": 2899423,
|
||||
"timemillis": 1507815162756,
|
||||
"uploadtarget": {
|
||||
"timeframe": 86400,
|
||||
"target": 0,
|
|
@ -2,12 +2,12 @@
|
|||
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/getnetworkhashps.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getnetworkhashps.md" %}
|
||||
|
||||
##### GetNetworkHashPS
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
||||
{% assign summary_getNetworkHashPS="returns the estimated current or historical network hashes per second based on the last *n* blocks." %}
|
||||
{% assign summary_getNetworkHashPS="returns the estimated network hashes per second based on the last n blocks." %}
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
|
@ -16,7 +16,7 @@ The `getnetworkhashps` RPC {{summary_getNetworkHashPS}}
|
|||
*Parameter #1---number of blocks to average*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "Blocks"
|
||||
- n: "`blocks`"
|
||||
t: "number (int)"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
d: "The number of blocks to average together for calculating the estimated hashes per second. Default is `120`. Use `-1` to average all blocks produced since the last difficulty change"
|
||||
|
@ -26,7 +26,7 @@ The `getnetworkhashps` RPC {{summary_getNetworkHashPS}}
|
|||
*Parameter #2---block height*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "Height"
|
||||
- n: "`height`"
|
||||
t: "number (int)"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
d: "The height of the last block to use for calculating the average. Defaults to `-1` for the highest-height block on the local best block chain. If the specified height is higher than the highest block on the local best block chain, it will be interpreted the same as `-1`"
|
||||
|
@ -43,24 +43,24 @@ The `getnetworkhashps` RPC {{summary_getNetworkHashPS}}
|
|||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Bitcoin Core 0.10.0*
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
Get the average hashes per second for all the blocks since the last
|
||||
difficulty change before block 227255.
|
||||
difficulty change before block 6000.
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli -testnet getnetworkhashps -1 227255
|
||||
dash-cli -testnet getnetworkhashps -1 6000
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
|
||||
{% highlight json %}
|
||||
79510076167
|
||||
22214011.90821117
|
||||
{% endhighlight %}
|
||||
|
||||
*See also*
|
||||
|
||||
* [GetDifficulty][rpc getdifficulty]: {{summary_getDifficultly}}
|
||||
* [GetDifficulty][rpc getdifficulty]: {{summary_getDifficulty}}
|
||||
* [GetBlock][rpc getblock]: {{summary_getBlock}}
|
||||
|
||||
{% endautocrossref %}
|
|
@ -2,7 +2,7 @@
|
|||
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/getnetworkinfo.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getnetworkinfo.md" %}
|
||||
|
||||
##### GetNetworkInfo
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
@ -26,7 +26,7 @@ The `getnetworkinfo` RPC {{summary_getNetworkInfo}}
|
|||
- n: "→<br>`version`"
|
||||
t: "number"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "This node's version of Bitcoin Core in its internal integer format. For example, Bitcoin Core 0.9.2 has the integer version number 90200"
|
||||
d: "This node's version of Dash Core in its internal integer format. For example, Dash Core 0.12.2 has the integer version number 120200"
|
||||
|
||||
- n: "→<br>`subversion`"
|
||||
t: "string"
|
||||
|
@ -37,12 +37,12 @@ The `getnetworkinfo` RPC {{summary_getNetworkInfo}}
|
|||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The protocol version number used by this node. See the [protocol versions section][section protocol versions] for more information"
|
||||
|
||||
|
||||
- n: "→<br>`localservices`"
|
||||
t: "string (hex)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The services supported by this node as advertised in its `version` message"
|
||||
|
||||
|
||||
- n: "→<br>`localrelay`"
|
||||
t: "bool"
|
||||
p: "Required<br>(exactly 1)"
|
||||
|
@ -63,55 +63,55 @@ The `getnetworkinfo` RPC {{summary_getNetworkInfo}}
|
|||
p: "Required<br>(exactly 1)"
|
||||
d: "An array with three objects: one describing the IPv4 connection, one describing the IPv6 connection, and one describing the Tor hidden service (onion) connection"
|
||||
|
||||
- n: "→ →<br>Network"
|
||||
- n: "→ →<br>Network<!--noref-->"
|
||||
t: "object"
|
||||
p: "Optional<br>(0 to 3)"
|
||||
d: "An object describing a network. If the network is unroutable, it will not be returned"
|
||||
d: "An object describing a network<!--noref-->. If the network<!--noref--> is unroutable, it will not be returned"
|
||||
|
||||
- n: "→ → →<br>`name`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The name of the network. Either `ipv4`, `ipv6`, or `onion`"
|
||||
d: "The name of the network<!--noref-->. Either `ipv4`, `ipv6`, or `onion`"
|
||||
|
||||
- n: "→ → →<br>`limited`"
|
||||
t: "bool"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "Set to `true` if only connections to this network are allowed according to the `-onlynet` Bitcoin Core command-line/configuration-file parameter. Otherwise set to `false`"
|
||||
d: "Set to `true` if only connections to this network<!--noref--> are allowed according to the `-onlynet` Dash Core command-line/configuration-file parameter. Otherwise set to `false`"
|
||||
|
||||
- n: "→ → →<br>`reachable`"
|
||||
t: "bool"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "Set to `true` if connections can be made to or from this network. Otherwise set to `false`"
|
||||
d: "Set to `true` if connections can be made to or from this network<!--noref-->. Otherwise set to `false`"
|
||||
|
||||
- n: "→ → →<br>`proxy`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The hostname and port of any proxy being used for this network. If a proxy is not in use, an empty string"
|
||||
|
||||
d: "The hostname and port of any proxy being used for this network<!--noref-->. If a proxy is not in use, an empty string"
|
||||
|
||||
- n: "→ → →<br>`proxy_randomize_credentials`"
|
||||
t: "bool"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "*Added in Bitcoin Core 0.11.0*<br><br>Set to `true` if randomized credentials are set for this proxy. Otherwise set to `false`"
|
||||
|
||||
|
||||
- n: "→<br>`relayfee`"
|
||||
t: "number (bitcoins)"
|
||||
t: "number (Dash)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The minimum fee a low-priority transaction must pay in order for this node to accept it into its memory pool"
|
||||
d: "The minimum relay fee for non-free transactions in order for this node to accept it into its memory pool"
|
||||
|
||||
- n: "→<br>`localaddresses`"
|
||||
t: "array"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "An array of objects each describing the local addresses this node believes it listens on"
|
||||
d: "An array of objects each describing the local addresses<!--noref--> this node believes it listens on"
|
||||
|
||||
- n: "→ →<br>Address"
|
||||
- n: "→ →<br>Address<!--noref-->"
|
||||
t: "object"
|
||||
p: "Optional<br>(0 or more)"
|
||||
d: "An object describing a particular address this node believes it listens on"
|
||||
d: "An object describing a particular address<!--noref--> this node believes it listens on"
|
||||
|
||||
- n: "→ → →<br>`address`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "An IP address or .onion address this node believes it listens on. This may be manually configured, auto detected, or based on `version` messages this node received from its peers"
|
||||
d: "An IP address or .onion address<!--noref--> this node believes it listens on. This may be manually configured, auto detected, or based on `version` messages this node received from its peers"
|
||||
|
||||
- n: "→ → →<br>`port`"
|
||||
t: "number (int)"
|
||||
|
@ -121,8 +121,8 @@ The `getnetworkinfo` RPC {{summary_getNetworkInfo}}
|
|||
- n: "→ → →<br>`score`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The number of incoming connections during the uptime of this node that have used this address in their `version` message"
|
||||
|
||||
d: "The number of incoming connections during the uptime of this node that have used this `address` in their `version` message"
|
||||
|
||||
- n: "→<br>`warnings`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
|
@ -130,23 +130,24 @@ The `getnetworkinfo` RPC {{summary_getNetworkInfo}}
|
|||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Bitcoin Core 0.13.1*
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli getnetworkinfo
|
||||
dash-cli getnetworkinfo
|
||||
{% endhighlight %}
|
||||
|
||||
Result (actual addresses have been replaced with reserved addresses):
|
||||
Result (actual addresses<!--noref--> have been replaced with [RFC5737][] reserved addresses<!--noref-->):
|
||||
|
||||
{% highlight json %}
|
||||
{
|
||||
"version": 130100,
|
||||
"subversion": "/Satoshi:0.13.1/",
|
||||
"protocolversion": 70014,
|
||||
"localservices": "000000000000000d",
|
||||
"version": 120200,
|
||||
"subversion": "/Dash Core:0.12.2/",
|
||||
"protocolversion": 70208,
|
||||
"localservices": "0000000000000005",
|
||||
"localrelay": true,
|
||||
"timeoffset": -19,
|
||||
"connections": 8,
|
||||
"timeoffset": 0,
|
||||
"networkactive": true,
|
||||
"connections": 9,
|
||||
"networks": [
|
||||
{
|
||||
"name": "ipv4",
|
||||
|
@ -154,14 +155,14 @@ Result (actual addresses have been replaced with reserved addresses):
|
|||
"reachable": true,
|
||||
"proxy": "",
|
||||
"proxy_randomize_credentials": false
|
||||
},
|
||||
},
|
||||
{
|
||||
"name": "ipv6",
|
||||
"limited": false,
|
||||
"reachable": true,
|
||||
"proxy": "",
|
||||
"proxy_randomize_credentials": false
|
||||
},
|
||||
},
|
||||
{
|
||||
"name": "onion",
|
||||
"limited": true,
|
||||
|
@ -170,16 +171,17 @@ Result (actual addresses have been replaced with reserved addresses):
|
|||
"proxy_randomize_credentials": false
|
||||
}
|
||||
],
|
||||
"relayfee": 5000.00000000,
|
||||
"relayfee": 0.00001000,
|
||||
"localaddresses": [
|
||||
{
|
||||
"address": "0600:3c03::f03c:91ff:fe89:dfc4",
|
||||
"port": 8333,
|
||||
"address": "192.0.2.113",
|
||||
"port": 19999,
|
||||
"score": 4
|
||||
}
|
||||
],
|
||||
"warnings": ""
|
||||
}
|
||||
|
||||
{% endhighlight %}
|
||||
|
||||
*See also*
|
|
@ -2,7 +2,7 @@
|
|||
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/getnewaddress.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getnewaddress.md" %}
|
||||
|
||||
##### GetNewAddress
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,7 +2,7 @@
|
|||
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/getpeerinfo.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getpeerinfo.md" %}
|
||||
|
||||
##### GetPeerInfo
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
@ -23,7 +23,7 @@ The `getpeerinfo` RPC {{summary_getPeerInfo}}
|
|||
p: "Required<br>(exactly 1)"
|
||||
d: "An array of objects each describing one connected node. If there are no connections, the array will be empty"
|
||||
|
||||
- n: "→<br>Node"
|
||||
- n: "→<br>Node<!--noref-->"
|
||||
t: "object"
|
||||
p: "Optional<br>(0 or more)"
|
||||
d: "An object describing a particular connected node"
|
||||
|
@ -31,7 +31,7 @@ The `getpeerinfo` RPC {{summary_getPeerInfo}}
|
|||
- n: "→ →<br>`id`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The node's index number in the local node address database"
|
||||
d: "The node's index number in the local node address<!--noref--> database"
|
||||
|
||||
- n: "→ →<br>`addr`"
|
||||
t: "string"
|
||||
|
@ -41,7 +41,7 @@ The `getpeerinfo` RPC {{summary_getPeerInfo}}
|
|||
- n: "→ →<br>`addrlocal`"
|
||||
t: "string"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
d: "Our IP address and port number according to the remote node. May be incorrect due to error or lying. Most SPV nodes set this to `127.0.0.1:8333`"
|
||||
d: "Our IP address and port number according to the remote node. May be incorrect due to error or lying. Most SPV nodes set this to `127.0.0.1:9999`"
|
||||
|
||||
- n: "→ →<br>`services`"
|
||||
t: "string (hex)"
|
||||
|
@ -72,7 +72,7 @@ The `getpeerinfo` RPC {{summary_getPeerInfo}}
|
|||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The Unix epoch time when we connected to this node"
|
||||
|
||||
|
||||
- n: "→ →<br>`timeoffset`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
|
@ -82,7 +82,7 @@ The `getpeerinfo` RPC {{summary_getPeerInfo}}
|
|||
t: "number (real)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The number of seconds this node took to respond to our last P2P `ping` message"
|
||||
|
||||
|
||||
- n: "→ →<br>`minping`"
|
||||
t: "number (real)"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
|
@ -106,7 +106,7 @@ The `getpeerinfo` RPC {{summary_getPeerInfo}}
|
|||
- n: "→ →<br>`inbound`"
|
||||
t: "bool"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "Set to `true` if this node connected to us; set to `false` if we connected to this node"
|
||||
d: "Set to `true` if this node connected to us (inbound); set to `false` if we connected to this node (outbound)"
|
||||
|
||||
- n: "→ →<br>`startingheight`"
|
||||
t: "number (int)"
|
||||
|
@ -116,7 +116,7 @@ The `getpeerinfo` RPC {{summary_getPeerInfo}}
|
|||
- n: "→ →<br>`banscore`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The ban score we've assigned the node based on any misbehavior it's made. By default, Bitcoin Core disconnects when the ban score reaches `100`"
|
||||
d: "The ban score we've assigned the node based on any misbehavior it's made. By default, Dash Core disconnects when the ban score reaches `100`"
|
||||
|
||||
- n: "→ →<br>`synced_headers`"
|
||||
t: "number (int)"
|
||||
|
@ -133,7 +133,7 @@ The `getpeerinfo` RPC {{summary_getPeerInfo}}
|
|||
p: "Required<br>(exactly 1)"
|
||||
d: "An array of blocks which have been requested from this peer. May be empty"
|
||||
|
||||
- n: "→ → →<br>Blocks"
|
||||
- n: "→ → →<br>Blocks<!--noref-->"
|
||||
t: "number (int)"
|
||||
p: "Optional<br>(0 or more)"
|
||||
d: "The height of a block being requested from the remote peer"
|
||||
|
@ -147,29 +147,28 @@ The `getpeerinfo` RPC {{summary_getPeerInfo}}
|
|||
t: "string : <br>object"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "*Added in Bitcoin Core 0.13.0*<br><br>Information about total sent bytes aggregated by message type"
|
||||
|
||||
|
||||
- n: "→ → →<br>Message Type"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(1 or more)"
|
||||
d: "Total sent bytes aggregated by message type. One field for every used message type"
|
||||
|
||||
|
||||
- n: "→ →<br>`bytesrecv_per_msg`"
|
||||
t: "string : <br>object"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "*Added in Bitcoin Core 0.13.0*<br><br>Information about total received bytes aggregated by message type"
|
||||
|
||||
|
||||
- n: "→ → →<br>Message Type"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(1 or more)"
|
||||
d: "Total received bytes aggregated by message type. One field for every used message type"
|
||||
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Bitcoin Core 0.13.1*
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli getpeerinfo
|
||||
dash-cli getpeerinfo
|
||||
{% endhighlight %}
|
||||
|
||||
Result (edited to show only a single entry, with IP addresses changed to
|
||||
|
@ -177,47 +176,74 @@ Result (edited to show only a single entry, with IP addresses changed to
|
|||
|
||||
{% highlight json %}
|
||||
[
|
||||
{
|
||||
{
|
||||
"id": 3,
|
||||
"addr": "192.0.2.113:43132",
|
||||
"addrlocal": "127.0.0.1:8333",
|
||||
"services": "0000000000000000",
|
||||
"addr": "192.0.2.113:19999",
|
||||
"addrlocal": "127.0.0.1:56332",
|
||||
"services": "0000000000000005",
|
||||
"relaytxes": true,
|
||||
"lastsend": 1481158534,
|
||||
"lastrecv": 1481158534,
|
||||
"bytessent": 142772,
|
||||
"bytesrecv": 14167,
|
||||
"conntime": 1481158420,
|
||||
"timeoffset": 11,
|
||||
"pingtime": 0.226368,
|
||||
"minping": 0.226368,
|
||||
"version": 70001,
|
||||
"subver": "/Satoshi:0.12.1/",
|
||||
"inbound": true,
|
||||
"startingheight": 0,
|
||||
"lastsend": 1507818327,
|
||||
"lastrecv": 1507818327,
|
||||
"bytessent": 844135,
|
||||
"bytesrecv": 887651,
|
||||
"conntime": 1507808575,
|
||||
"timeoffset": 0,
|
||||
"pingtime": 0.189852,
|
||||
"minping": 0.187152,
|
||||
"version": 70208,
|
||||
"subver": "/Dash Core:0.12.2/",
|
||||
"inbound": false,
|
||||
"startingheight": 8416,
|
||||
"banscore": 0,
|
||||
"synced_headers": -1,
|
||||
"synced_blocks": -1,
|
||||
"synced_headers": 8474,
|
||||
"synced_blocks": 8474,
|
||||
"inflight": [
|
||||
],
|
||||
"whitelisted": false,
|
||||
"bytessent_per_msg": {
|
||||
"addr": 55,
|
||||
"inv": 12161,
|
||||
"ping": 32,
|
||||
"pong": 1824,
|
||||
"tx": 128549,
|
||||
"addr": 165,
|
||||
"dseg": 65,
|
||||
"dsq": 33984,
|
||||
"getaddr": 24,
|
||||
"getdata": 73261,
|
||||
"getheaders": 861,
|
||||
"getsporks": 48,
|
||||
"govobj": 20244,
|
||||
"govobjvote": 22196,
|
||||
"govsync": 545682,
|
||||
"headers": 106,
|
||||
"inv": 139035,
|
||||
"mnget": 28,
|
||||
"notfound": 1220,
|
||||
"ping": 2624,
|
||||
"pong": 2624,
|
||||
"sendheaders": 24,
|
||||
"ssc": 1792,
|
||||
"verack": 24,
|
||||
"version": 127
|
||||
"version": 128
|
||||
},
|
||||
"bytesrecv_per_msg": {
|
||||
"getdata": 12161,
|
||||
"ping": 1824,
|
||||
"pong": 32,
|
||||
"addr": 4365,
|
||||
"block": 22307,
|
||||
"dsq": 33984,
|
||||
"getdata": 10417,
|
||||
"getheaders": 861,
|
||||
"govobjvote": 179,
|
||||
"govsync": 4620,
|
||||
"headers": 6254,
|
||||
"inv": 130964,
|
||||
"mnp": 352,
|
||||
"mnw": 600208,
|
||||
"notfound": 31192,
|
||||
"ping": 2624,
|
||||
"pong": 2624,
|
||||
"sendheaders": 24,
|
||||
"spork": 2860,
|
||||
"ssc": 33664,
|
||||
"verack": 24,
|
||||
"version": 126
|
||||
"version": 128
|
||||
}
|
||||
}
|
||||
},
|
||||
]
|
||||
{% endhighlight %}
|
||||
|
120
_includes/devdoc/dash-core/rpcs/rpcs/getpoolinfo.md
Normal file
120
_includes/devdoc/dash-core/rpcs/rpcs/getpoolinfo.md
Normal file
|
@ -0,0 +1,120 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getpoolinfo.md" %}
|
||||
|
||||
##### GetPoolInfo
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
||||
{% assign summary_getPoolInfo="returns an object containing mixing pool related information." %}
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
The `getpoolinfo` RPC {{summary_getPoolInfo}}
|
||||
|
||||
*Parameters: none*
|
||||
|
||||
*Result---information about the mixing pool*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "`result`"
|
||||
t: "object"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "Information about the mixing pool"
|
||||
|
||||
- n: "→<br>`state`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "Mixing pool state. Will be one of the following:<br>• `IDLE` <br>• `QUEUE` <br>• `ACCEPTING_ENTRIES` <br>• `SIGNING` <br>• `ERROR` <br>• `SUCCESS` <br>• `UNKNOWN` <br>"
|
||||
|
||||
- n: "→<br>`mixing_mode`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "Mixing mode - will be one of the following:<br>• `normal` <br>• `multi-session` <br> "
|
||||
|
||||
- n: "→<br>`queue`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "Queue size"
|
||||
|
||||
- n: "→<br>`entries`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The number of entries"
|
||||
|
||||
- n: "→<br>`status`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "A more detailed description of the current state"
|
||||
|
||||
- n: "→<br>`outpoint`"
|
||||
t: "string (hex)"
|
||||
p: "Optional<br>(exactly 1)"
|
||||
d: "Previous output"
|
||||
|
||||
- n: "→<br>`addr`"
|
||||
t: "string"
|
||||
p: "Optional<br>(exactly 1)"
|
||||
d: "Address"
|
||||
|
||||
- n: "→<br>`keys_left`"
|
||||
t: "number (int)"
|
||||
p: "Optional<br>(exactly 1)"
|
||||
d: "The number of keys left in the local wallet"
|
||||
|
||||
- n: "→<br>`warnings`"
|
||||
t: "number (int)"
|
||||
p: "Optional<br>(exactly 1)"
|
||||
d: "Warnings related to local wallet"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
{% highlight bash %}
|
||||
dash-cli -testnet getpoolinfo
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
{% highlight json %}
|
||||
{
|
||||
"state": "IDLE",
|
||||
"mixing_mode": "normal",
|
||||
"queue": 0,
|
||||
"entries": 0,
|
||||
"status": "PrivateSend is idle.",
|
||||
"keys_left": 617,
|
||||
"warnings": ""
|
||||
}
|
||||
{% endhighlight %}
|
||||
|
||||
{% highlight json %}
|
||||
{
|
||||
"state": "QUEUE",
|
||||
"mixing_mode": "normal",
|
||||
"queue": 1,
|
||||
"entries": 0,
|
||||
"status": "Submitted to masternode, waiting in queue .",
|
||||
"outpoint": "e3a6b7878a7e9413898bb379b323c521676f9d460db17ec3bf42d9ac0c9a432f-1",
|
||||
"addr": "217.182.229.146:19999",
|
||||
"keys_left": 571,
|
||||
"warnings": ""
|
||||
}
|
||||
{% endhighlight %}
|
||||
|
||||
{% highlight json %}
|
||||
{
|
||||
"state": "ERROR",
|
||||
"mixing_mode": "normal",
|
||||
"queue": 0,
|
||||
"entries": 0,
|
||||
"status": "PrivateSend request incomplete: Session timed out. Will retry...",
|
||||
"keys_left": 571,
|
||||
"warnings": ""
|
||||
}
|
||||
{% endhighlight %}
|
||||
|
||||
*See also:*
|
||||
|
||||
{% endautocrossref %}
|
|
@ -2,7 +2,7 @@
|
|||
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/getrawchangeaddress.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getrawchangeaddress.md" %}
|
||||
|
||||
##### GetRawChangeAddress
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,7 +2,7 @@
|
|||
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/getrawmempool.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getrawmempool.md" %}
|
||||
|
||||
##### GetRawMemPool
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
@ -57,14 +57,14 @@ The `getrawmempool` RPC {{summary_getRawMemPool}}
|
|||
d: "The size of the serialized transaction in bytes"
|
||||
|
||||
- n: "→ →<br>`fee`"
|
||||
t: "number (bitcoins)"
|
||||
t: "amount (Dash)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The transaction fee paid by the transaction in decimal bitcoins"
|
||||
|
||||
d: "The transaction fee paid by the transaction in decimal Dash"
|
||||
|
||||
- n: "→ →<br>`modifiedfee`"
|
||||
t: "number (bitcoins)"
|
||||
t: "amount (Dash)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "*Added in Bitcoin Core 0.12.0*<br><br>The transaction fee with fee deltas used for mining priority in decimal bitcoins"
|
||||
d: "*Added in Bitcoin Core 0.12.0*<br><br>The transaction fee with fee deltas used for mining priority in decimal Dash"
|
||||
|
||||
- n: "→ →<br>`time`"
|
||||
t: "number (int)"
|
||||
|
@ -101,21 +101,6 @@ The `getrawmempool` RPC {{summary_getRawMemPool}}
|
|||
p: "Required<br>(exactly 1)"
|
||||
d: "*Added in Bitcoin Core 0.12.0*<br><br>The modified fees (see `modifiedfee` above) of in-mempool descendants (including this one)"
|
||||
|
||||
- n: "→ →<br>`ancestorcount`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "*Added in Bitcoin Core 0.13.0*<br><br>The number of in-mempool ancestor transactions (including this one)"
|
||||
|
||||
- n: "→ →<br>`ancestorsize`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "*Added in Bitcoin Core 0.13.0*<br><br>The size of in-mempool ancestors (including this one)"
|
||||
|
||||
- n: "→ →<br>`ancestorfees`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "*Added in Bitcoin Core 0.13.0*<br><br>The modified fees (see `modifiedfee` above) of in-mempool ancestors (including this one)"
|
||||
|
||||
- n: "→ →<br>`depends`"
|
||||
t: "array"
|
||||
p: "Required<br>(exactly 1)"
|
||||
|
@ -128,65 +113,64 @@ The `getrawmempool` RPC {{summary_getRawMemPool}}
|
|||
|
||||
{% enditemplate %}
|
||||
|
||||
*Examples from Bitcoin Core 0.13.1*
|
||||
*Changes from Bitcoin - Following items not present in Dash result*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "→ TXID→<br>`ancestorcount`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "*Added in Bitcoin Core 0.13.0*<br><br>The number of in-mempool ancestor transactions (including this one)"
|
||||
|
||||
- n: "→ TXID→<br>`ancestorsize`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "*Added in Bitcoin Core 0.13.0*<br><br>The size of in-mempool ancestors (including this one)"
|
||||
|
||||
- n: "→ TXID→<br>`ancestorfees`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "*Added in Bitcoin Core 0.13.0*<br><br>The modified fees (see `modifiedfee` above) of in-mempool ancestors (including this one)"
|
||||
{% enditemplate %}
|
||||
|
||||
*Examples from Dash Core 0.12.2*
|
||||
|
||||
The default (`false`):
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli getrawmempool
|
||||
dash-cli getrawmempool
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
|
||||
{% highlight json %}
|
||||
[
|
||||
"b104586f229e330caf42c475fd52684e9eb5e2d02f0fcd216d9554c5347b0873",
|
||||
"094f7dcbc7494510d4daeceb2941ed73b1bd011bf527f6c3b7c897fee85c11d4"
|
||||
"9dc994e03e387ff2d2709fbe86edede9f3d7aaddea7f75694495e415561b22fe"
|
||||
]
|
||||
{% endhighlight %}
|
||||
|
||||
Verbose output (`true`):
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli getrawmempool true
|
||||
dash-cli getrawmempool true
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
|
||||
{% highlight json %}
|
||||
{
|
||||
"b104586f229e330caf42c475fd52684e9eb5e2d02f0fcd216d9554c5347b0873": {
|
||||
"size": 485,
|
||||
"fee": 0.00009700,
|
||||
"modifiedfee": 0.00009700,
|
||||
"time": 1479423635,
|
||||
"height": 439431,
|
||||
"startingpriority": 15327081.81818182,
|
||||
"currentpriority": 21536936.36363636,
|
||||
"descendantcount": 1,
|
||||
"descendantsize": 485,
|
||||
"descendantfees": 9700,
|
||||
"ancestorcount": 1,
|
||||
"ancestorsize": 485,
|
||||
"ancestorfees": 9700,
|
||||
"depends": [
|
||||
]
|
||||
},
|
||||
"094f7dcbc7494510d4daeceb2941ed73b1bd011bf527f6c3b7c897fee85c11d4": {
|
||||
"size": 554,
|
||||
"fee": 0.00005540,
|
||||
"modifiedfee": 0.00005540,
|
||||
"time": 1479423327,
|
||||
"height": 439430,
|
||||
"startingpriority": 85074.91071428571,
|
||||
"currentpriority": 3497174.4375,
|
||||
"descendantcount": 1,
|
||||
"descendantsize": 554,
|
||||
"descendantfees": 5540,
|
||||
"ancestorcount": 1,
|
||||
"ancestorsize": 554,
|
||||
"ancestorfees": 5540,
|
||||
"286b3ec21e6ce5463fc712c98d86e02353525e09452113836651f3f91e562354": {
|
||||
"size": 225,
|
||||
"fee": 0.00000225,
|
||||
"modifiedfee": 0.00000225,
|
||||
"time": 1507735322,
|
||||
"height": 7940,
|
||||
"startingpriority": 0,
|
||||
"currentpriority": 0,
|
||||
"descendantcount": 4,
|
||||
"descendantsize": 901,
|
||||
"descendantfees": 902,
|
||||
"depends": [
|
||||
"2aacf53e0e15d3b4d778837792c7b6bd298edd3c41a0608586bdec41adcfe7c4"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -2,7 +2,7 @@
|
|||
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/getrawtransaction.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getrawtransaction.md" %}
|
||||
|
||||
##### GetRawTransaction
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,7 +2,7 @@
|
|||
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/getreceivedbyaccount.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getreceivedbyaccount.md" %}
|
||||
|
||||
##### GetReceivedByAccount
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,7 +2,7 @@
|
|||
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/getreceivedbyaddress.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getreceivedbyaddress.md" %}
|
||||
|
||||
##### GetReceivedByAddress
|
||||
{% include helpers/subhead-links.md %}
|
82
_includes/devdoc/dash-core/rpcs/rpcs/getspentinfo.md
Normal file
82
_includes/devdoc/dash-core/rpcs/rpcs/getspentinfo.md
Normal file
|
@ -0,0 +1,82 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getspentinfo.md" %}
|
||||
|
||||
##### GetSpentInfo
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
||||
{% assign summary_getSpentInfo="returns the txid and index where an output is spent (requires `spentindex` to be enabled)." %}
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
*Added in Dash Core 0.12.1*
|
||||
|
||||
The `getspentinfo` RPC {{summary_getSpentInfo}}
|
||||
|
||||
*Parameter #1---the TXID of the output*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "TXID"
|
||||
t: "string (hex)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The TXID of the transaction containing the relevant output, encoded as hex in RPC byte order"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Parameter #2---the start block height*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "Index"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The block height to begin looking in"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Result---the TXID and spending input index*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "`result`"
|
||||
t: "object/null"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "Information about the spent output. If output wasn't found or if an error occurred, this will be JSON `null`"
|
||||
|
||||
- n: "→<br>`txid`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The output txid"
|
||||
|
||||
- n: "→<br>`index`"
|
||||
t: "number"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The spending input index"
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
Get the txid and index where an output is spent:
|
||||
|
||||
{% highlight bash %}
|
||||
dash-cli getspentinfo \
|
||||
'''
|
||||
{
|
||||
"txid": "0456aaf51a8df21dd47c2a06ede046a5bf7403bcb95d14d1d71b178c189fb933", \
|
||||
"index": 0
|
||||
}
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
|
||||
{% highlight json %}
|
||||
{
|
||||
"txid": "14e874421350840e9d43965967c5a989e7d41ad361ef37484ee67d01d433ecfa",
|
||||
"index": 1,
|
||||
"height": 7742
|
||||
}
|
||||
{% endhighlight %}
|
||||
|
||||
*See also: none*
|
||||
|
||||
{% endautocrossref %}
|
51
_includes/devdoc/dash-core/rpcs/rpcs/getsuperblockbudget.md
Normal file
51
_includes/devdoc/dash-core/rpcs/rpcs/getsuperblockbudget.md
Normal file
|
@ -0,0 +1,51 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getsuperblockbudget.md" %}
|
||||
|
||||
##### GetSuperblockBudget
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
||||
{% assign summary_getSuperblockBudget="returns the absolute maximum sum of superblock payments allowed." %}
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
The `getsuperblockbudget` RPC {{summary_getSuperblockBudget}}
|
||||
|
||||
*Parameter #1---block index*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "index"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The superblock index"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Result---maximum sum of superblock payments*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "`result`"
|
||||
t: "number (int)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The absolute maximum sum of superblock payments allowed, in DASH"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
{% highlight bash %}
|
||||
dash-cli -testnet getsuperblockbudget 7392
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
{% highlight text %}
|
||||
367.20
|
||||
{% endhighlight %}
|
||||
|
||||
*See also:*
|
||||
|
||||
* [GetGovernanceInfo][rpc getgovernanceinfo]: {{summary_getGovernanceInfo}}
|
||||
|
||||
{% endautocrossref %}
|
|
@ -2,7 +2,7 @@
|
|||
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/gettransaction.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/gettransaction.md" %}
|
||||
|
||||
##### GetTransaction
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,7 +2,7 @@
|
|||
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/gettxout.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/gettxout.md" %}
|
||||
|
||||
##### GetTxOut
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
@ -63,9 +63,9 @@ The `gettxout` RPC {{summary_getTxOut}}
|
|||
d: "The number of confirmations received for the transaction containing this output or `0` if the transaction hasn't been confirmed yet"
|
||||
|
||||
- n: "→<br>`value`"
|
||||
t: "number (bitcoins)"
|
||||
t: "number (Dash)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The amount of bitcoins spent to this output. May be `0`"
|
||||
d: "The amount of Dash spent to this output. May be `0`"
|
||||
|
||||
- n: "→<br>`scriptPubKey`"
|
||||
t: "string : object"
|
||||
|
@ -114,15 +114,15 @@ The `gettxout` RPC {{summary_getTxOut}}
|
|||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Bitcoin Core 0.10.0*
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
Get the UTXO from the following transaction from the first output index ("0"),
|
||||
searching the memory pool if necessary.
|
||||
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli -testnet gettxout \
|
||||
d77aee99e8bdc11f40b8a9354956f0346fec5535b82c77c8b5c06047e3bca86a \
|
||||
dash-cli -testnet gettxout \
|
||||
e0a06b47f0de6f3851a228d5ac377ac38b495adf04298c43e951e679c5b0aa8f \
|
||||
0 true
|
||||
{% endhighlight %}
|
||||
|
||||
|
@ -130,20 +130,20 @@ Result:
|
|||
|
||||
{% highlight json %}
|
||||
{
|
||||
"bestblock" : "00000000c92356f7030b1deeab54b3b02885711320b4c48523be9daa3e0ace5d",
|
||||
"confirmations" : 0,
|
||||
"value" : 0.00100000,
|
||||
"scriptPubKey" : {
|
||||
"asm" : "OP_DUP OP_HASH160 a11418d3c144876258ba02909514d90e71ad8443 OP_EQUALVERIFY OP_CHECKSIG",
|
||||
"hex" : "76a914a11418d3c144876258ba02909514d90e71ad844388ac",
|
||||
"reqSigs" : 1,
|
||||
"type" : "pubkeyhash",
|
||||
"addresses" : [
|
||||
"mvCfAJSKaoFXoJEvv8ssW7wxaqRPphQuSv"
|
||||
]
|
||||
},
|
||||
"version" : 1,
|
||||
"coinbase" : false
|
||||
"bestblock": "000000005651f6d7859793dee07d476a2f2a7338e66bbb41caf4b544c5b0318d",
|
||||
"confirmations": 2,
|
||||
"value": 25.00000000,
|
||||
"scriptPubKey": {
|
||||
"asm": "OP_DUP OP_HASH160 b66266c5017a759817f3bb99e8d9124bf5bb2e74 OP_EQUALVERIFY OP_CHECKSIG",
|
||||
"hex": "76a914b66266c5017a759817f3bb99e8d9124bf5bb2e7488ac",
|
||||
"reqSigs": 1,
|
||||
"type": "pubkeyhash",
|
||||
"addresses": [
|
||||
"ycwoiAibTjpwnoCZSX7S4kiB2H8wULw9qo"
|
||||
]
|
||||
},
|
||||
"version": 1,
|
||||
"coinbase": false
|
||||
}
|
||||
{% endhighlight %}
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
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/gettxoutproof.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/gettxoutproof.md" %}
|
||||
|
||||
##### GetTxOutProof
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
@ -53,38 +53,28 @@ specify the block in which the transaction is included in manually (by block hea
|
|||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Bitcoin Core 0.11.0*
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
Get the hex-encoded proof that "txid" was included in block 0000000000000000140e84bf183d8d5207d65fbfae596bdf48f684d13d951847:
|
||||
Get the hex-encoded proof that "txid" was included in block 000000012d774f3c7668f32bc448efeb93b317f312dd863679de3a007d47817f:
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli gettxoutproof \
|
||||
dash-cli gettxoutproof \
|
||||
'''
|
||||
[
|
||||
"f20e44c818ec332d95119507fbe36f1b8b735e2c387db62adbe28e50f7904683"
|
||||
"e0a06b47f0de6f3851a228d5ac377ac38b495adf04298c43e951e679c5b0aa8f"
|
||||
]
|
||||
''' \
|
||||
'0000000000000000140e84bf183d8d5207d65fbfae596bdf48f684d13d951847'
|
||||
'000000012d774f3c7668f32bc448efeb93b317f312dd863679de3a007d47817f'
|
||||
{% endhighlight %}
|
||||
|
||||
Result (wrapped):
|
||||
|
||||
{% highlight text %}
|
||||
03000000394ab3f08f712aa0f1d26c5daa4040b50e96d31d4e8e3c130000000000000000\
|
||||
ca89aaa0bbbfcd5d1210c7888501431256135736817100d8c2cf7e4ab9c02b168115d455\
|
||||
04dd1418836b20a6cb0800000d3a61beb3859abf1b773d54796c83b0b937968cc4ce3c0f\
|
||||
71f981b2407a3241cb8908f2a88ac90a2844596e6019450f507e7efb8542cbe54ea55634\
|
||||
c87bee474ee48aced68179564290d476e16cff01b483edcd2004d555c617dfc08200c083\
|
||||
08ba511250e459b49d6a465e1ab1d5d8005e0778359c2993236c85ec66bac4bfd974131a\
|
||||
dc1ee0ad8b645f459164eb38325ac88f98c9607752bc1b637e16814f0d9d8c2775ac3f20\
|
||||
f85260947929ceef16ead56fcbfd77d9dc6126cce1b5aacd9f834690f7508ee2db2ab67d\
|
||||
382c5e738b1b6fe3fb079511952d33ec18c8440ef291eb8d3546a971ee4aa5e574b7be7f\
|
||||
5aff0b1c989b2059ae5a611c8ce5c58e8e8476246c5e7c6b70e0065f2a6654e2e6cf4efb\
|
||||
6ae19bf2548a7d9febf5b0aceaff28610922e1b9e23e52f650a4a11d2986c9c2b09bb168\
|
||||
a70a7d4ac16e4d389bc2868ee91da1837d2cd79288bdc680e9c35ebb3ddfd045d69d767b\
|
||||
164ec69d5db9f995c045d10af5bd90cd9d1116c3732e14796ef9d1a57fa7bb718c07989e\
|
||||
d06ff359bf2009eaf1b9e000c054b87230567991b447757bc6ca8e1bb6e9816ad604dbd6\
|
||||
0600
|
||||
01000020ed72cc6a7294782a7711d8fa7ef74716ef062dc50bb0820f7eec923801000000\
|
||||
aa5d17c5128043803b67c7ab03e4d3ffbc9604b54f877f1c5cf9ed3adeaa19b2cd7ed659\
|
||||
f838011d10a70a480200000002033c89c2baecba9fc983c85dcf365c2d9cc93aca1dee2e\
|
||||
5ac18124464056542e8faab0c579e651e9438c2904df5a498bc37a37acd528a251386fde\
|
||||
f0476ba0e00105
|
||||
{% endhighlight %}
|
||||
|
||||
*See also*
|
|
@ -2,7 +2,7 @@
|
|||
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/gettxoutsetinfo.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/gettxoutsetinfo.md" %}
|
||||
|
||||
##### GetTxOutSetInfo
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
@ -54,29 +54,29 @@ The `gettxoutsetinfo` RPC {{summary_getTxOutSetInfo}}
|
|||
d: "A SHA256(SHA256()) hash of the serialized UTXO set; useful for comparing two nodes to see if they have the same set (they should, if they always used the same serialization format and currently have the same best block). The hash is encoded as hex in RPC byte order"
|
||||
|
||||
- n: "→<br>`total_amount`"
|
||||
t: "number (bitcoins)"
|
||||
t: "number (Dash)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The total number of bitcoins in the UTXO set"
|
||||
d: "The total amount of Dash in the UTXO set"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Bitcoin Core 0.10.0*
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli -testnet gettxoutsetinfo
|
||||
dash-cli -testnet gettxoutsetinfo
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
|
||||
{% highlight json %}
|
||||
{
|
||||
"height" : 315293,
|
||||
"bestblock" : "00000000c92356f7030b1deeab54b3b02885711320b4c48523be9daa3e0ace5d",
|
||||
"transactions" : 771920,
|
||||
"txouts" : 2734587,
|
||||
"bytes_serialized" : 102629817,
|
||||
"hash_serialized" : "4753470fda0145760109e79b8c218a1331e84bb4269d116857b8a4597f109905",
|
||||
"total_amount" : 13131746.33839451
|
||||
"height": 4755,
|
||||
"bestblock": "0000000025da0abc9e9937f1c65b3f544a57bb7e8817422f7ff2a89ff32696f4",
|
||||
"transactions": 4748,
|
||||
"txouts": 10602,
|
||||
"bytes_serialized": 463925,
|
||||
"hash_serialized": "fce0776d7961b409c4d8a46363c8d049879321861f7f40db97b0432e59532320",
|
||||
"total_amount": 2243585.70000000
|
||||
}
|
||||
{% endhighlight %}
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
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/getunconfirmedbalance.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getunconfirmedbalance.md" %}
|
||||
|
||||
##### GetUnconfirmedBalance
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,7 +2,7 @@
|
|||
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/getwalletinfo.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getwalletinfo.md" %}
|
||||
|
||||
##### GetWalletInfo
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,7 +2,7 @@
|
|||
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/getwork.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getwork.md" %}
|
||||
|
||||
##### GetWork
|
||||
{% include helpers/subhead-links.md %}
|
314
_includes/devdoc/dash-core/rpcs/rpcs/gobject.md
Normal file
314
_includes/devdoc/dash-core/rpcs/rpcs/gobject.md
Normal file
|
@ -0,0 +1,314 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/gobject.md" %}
|
||||
|
||||
##### GObject
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
||||
{% assign summary_gObject="provides a set of commands for managing governance objects and displaying information about them." %}
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
The `gobject` RPC {{summary_gObject}}
|
||||
|
||||
###### GObject Check
|
||||
|
||||
###### GObject Prepare
|
||||
|
||||
###### GObject Submit
|
||||
|
||||
###### GObject Deserialize
|
||||
|
||||
###### GObject Count
|
||||
|
||||
The `gobject count` RPC returns the count of governance objects and votes.
|
||||
|
||||
*Parameters: none*
|
||||
|
||||
*Result---count of governance objects and votes*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "`result`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The count of governance objects and votes"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
{% highlight bash %}
|
||||
dash-cli -testnet gobject count
|
||||
{% endhighlight %}
|
||||
|
||||
Result (wrapped):
|
||||
{% highlight text %}
|
||||
Governance Objects: 177 (Proposals: 177, Triggers: 0, Watchdogs: 0/0, \
|
||||
Other: 0; Erased: 5), Votes: 9680
|
||||
{% endhighlight %}
|
||||
|
||||
|
||||
|
||||
###### GObject Get
|
||||
|
||||
The `gobject get` RPC returns a governance object by hash.
|
||||
|
||||
*Parameter #1---object hash*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "`governance-hash`"
|
||||
t: "string (hex)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The hash of a governance object"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Result---governance object details*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "`result`"
|
||||
t: "object"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "Information about the governance object"
|
||||
|
||||
- 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>`FundingResult`"
|
||||
t: "object"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "Funding vote details"
|
||||
|
||||
- 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>`ValidResult`"
|
||||
t: "object"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "Object validity vote details"
|
||||
|
||||
- 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>`DeleteResult`"
|
||||
t: "object"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "Delete vote details"
|
||||
|
||||
- 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>`EndorsedResult`"
|
||||
t: "object"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "Endorsed vote details"
|
||||
|
||||
- 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 %}
|
||||
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
{% highlight bash %}
|
||||
dash-cli -testnet gobject get \
|
||||
42253a7bec554b97a65d2889e6cb9a1cf308b3d47a778c704bf9cdc1fe1bf6ff
|
||||
{% endhighlight %}
|
||||
|
||||
Result (wrapped):
|
||||
{% highlight json %}
|
||||
{
|
||||
"DataHex": "5b5b2270726f706f73616c222c7b22656e645f65706f6368223a2231353037343339353130222c226e616d65223a227465737470726f706f73616c5f2d5f6162636465666768696a6b6c6d6e6f707172737475767778797a3031323334353637383931353037323530343338222c227061796d656e745f61646472657373223a22795668577955345933756456784d5234464b3333556741534a41436831436835516a222c227061796d656e745f616d6f756e74223a2232222c2273746172745f65706f6368223a2231353037323530343338222c2274797065223a312c2275726c223a2268747470733a2f2f7777772e6461736863656e7472616c2e6f72672f702f746573745f70726f706f73616c5f31353037323530343338227d5d5d",
|
||||
"DataString": "[[\"proposal\",{\"end_epoch\":\"1507439510\",\"name\":\"testproposal_-_abcdefghijklmnopqrstuvwxyz01234567891507250438\",\"payment_address\":\"yVhWyU4Y3udVxMR4FK33UgASJACh1Ch5Qj\",\"payment_amount\":\"2\",\"start_epoch\":\"1507250438\",\"type\":1,\"url\":\"https://www.dashcentral.org/p/test_proposal_1507250438\"}]]",
|
||||
"Hash": "42253a7bec554b97a65d2889e6cb9a1cf308b3d47a778c704bf9cdc1fe1bf6ff",
|
||||
"CollateralHash": "cb09bd0310c0a67cde9387ad4d8908a7ad9f5d89c5afd58e9332b8bd26a646c7",
|
||||
"ObjectType": 1,
|
||||
"CreationTime": 1507246694,
|
||||
"FundingResult": {
|
||||
"AbsoluteYesCount": 0,
|
||||
"YesCount": 0,
|
||||
"NoCount": 0,
|
||||
"AbstainCount": 0
|
||||
},
|
||||
"ValidResult": {
|
||||
"AbsoluteYesCount": 0,
|
||||
"YesCount": 0,
|
||||
"NoCount": 0,
|
||||
"AbstainCount": 0
|
||||
},
|
||||
"DeleteResult": {
|
||||
"AbsoluteYesCount": 31,
|
||||
"YesCount": 31,
|
||||
"NoCount": 0,
|
||||
"AbstainCount": 0
|
||||
},
|
||||
"EndorsedResult": {
|
||||
"AbsoluteYesCount": 0,
|
||||
"YesCount": 0,
|
||||
"NoCount": 0,
|
||||
"AbstainCount": 0
|
||||
},
|
||||
"fLocalValidity": true,
|
||||
"IsValidReason": "",
|
||||
"fCachedValid": true,
|
||||
"fCachedFunding": false,
|
||||
"fCachedDelete": false,
|
||||
"fCachedEndorsed": false
|
||||
}
|
||||
{% endhighlight %}
|
||||
|
||||
###### GObject Getvotes
|
||||
|
||||
###### GObject Getcurrentvotes
|
||||
|
||||
###### GObject List
|
||||
|
||||
###### GObject Diff
|
||||
|
||||
###### GObject Vote-alias
|
||||
|
||||
###### GObject Vote-conf
|
||||
|
||||
###### GObject Vote-many
|
||||
|
||||
|
||||
{% highlight bash %}
|
||||
dash-cli -testnet gobject
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
{% highlight json %}
|
||||
*INSERT RESULTS HERE*
|
||||
{% endhighlight %}
|
||||
|
||||
*See also:*
|
||||
|
||||
{% endautocrossref %}
|
|
@ -2,7 +2,7 @@
|
|||
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/help.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/help.md" %}
|
||||
|
||||
##### Help
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
@ -19,7 +19,7 @@ The `help` RPC {{summary_help}}
|
|||
- n: "RPC"
|
||||
t: "string"
|
||||
p: "Optional<br>(0 or 1)"
|
||||
d: "The name of the RPC to get help for. If omitted, Bitcoin Core 0.9x will display an alphabetical list of commands; Bitcoin Core 0.10.0 will display a categorized list of commands"
|
||||
d: "The name of the RPC to get help for. If omitted, Dash Core 0.10x will display an alphabetical list of commands; Dash Core 0.11.0 will display a categorized list of commands"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
|
@ -29,16 +29,16 @@ The `help` RPC {{summary_help}}
|
|||
- n: "`result`"
|
||||
t: "string"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "The help text for the specified RPC or the list of commands. The `bitcoin-cli` command will parse this text and format it as human-readable text"
|
||||
d: "The help text for the specified RPC or the list of commands. The `dash-cli` command will parse this text and format it as human-readable text"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Bitcoin Core 0.10.0*
|
||||
*Example from Dash Core 0.12.2*
|
||||
|
||||
Command to get help about the `help` RPC:
|
||||
|
||||
{% highlight bash %}
|
||||
bitcoin-cli -testnet help help
|
||||
dash-cli -testnet help help
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
|
@ -2,7 +2,7 @@
|
|||
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/importaddress.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/importaddress.md" %}
|
||||
|
||||
##### ImportAddress
|
||||
{% include helpers/subhead-links.md %}
|
|
@ -2,7 +2,7 @@
|
|||
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/importmulti.md" %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/importmulti.md" %}
|
||||
|
||||
##### ImportMulti
|
||||
{% include helpers/subhead-links.md %}
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue