mirror of
https://github.com/ChristopherA/Learning-Bitcoin-from-the-Command-Line.git
synced 2025-06-07 16:06:26 +00:00
Update outputs from bitcoin-cli on 0.15.1
This commit is contained in:
parent
1a6cf909ec
commit
684bb1c4d3
@ -32,57 +32,64 @@ Most of your early work will be done with the `bitcoin-cli` command, which offer
|
|||||||
$ bitcoin-cli help
|
$ bitcoin-cli help
|
||||||
== Blockchain ==
|
== Blockchain ==
|
||||||
getbestblockhash
|
getbestblockhash
|
||||||
getblock "hash" ( verbose )
|
getblock "blockhash" ( verbosity )
|
||||||
getblockchaininfo
|
getblockchaininfo
|
||||||
getblockcount
|
getblockcount
|
||||||
getblockhash index
|
getblockhash height
|
||||||
getblockheader "hash" ( verbose )
|
getblockheader "hash" ( verbose )
|
||||||
getchaintips
|
getchaintips
|
||||||
|
getchaintxstats ( nblocks blockhash )
|
||||||
getdifficulty
|
getdifficulty
|
||||||
getmempoolancestors txid (verbose)
|
getmempoolancestors txid (verbose)
|
||||||
getmempooldescendants txid (verbose)
|
getmempooldescendants txid (verbose)
|
||||||
getmempoolentry txid
|
getmempoolentry txid
|
||||||
getmempoolinfo
|
getmempoolinfo
|
||||||
getrawmempool ( verbose )
|
getrawmempool ( verbose )
|
||||||
gettxout "txid" n ( includemempool )
|
gettxout "txid" n ( include_mempool )
|
||||||
gettxoutproof ["txid",...] ( blockhash )
|
gettxoutproof ["txid",...] ( blockhash )
|
||||||
gettxoutsetinfo
|
gettxoutsetinfo
|
||||||
verifychain ( checklevel numblocks )
|
preciousblock "blockhash"
|
||||||
|
pruneblockchain
|
||||||
|
verifychain ( checklevel nblocks )
|
||||||
verifytxoutproof "proof"
|
verifytxoutproof "proof"
|
||||||
|
|
||||||
== Control ==
|
== Control ==
|
||||||
getinfo
|
getinfo
|
||||||
|
getmemoryinfo ("mode")
|
||||||
help ( "command" )
|
help ( "command" )
|
||||||
stop
|
stop
|
||||||
|
uptime
|
||||||
|
|
||||||
== Generating ==
|
== Generating ==
|
||||||
generate numblocks ( maxtries )
|
generate nblocks ( maxtries )
|
||||||
generatetoaddress numblocks address (maxtries)
|
generatetoaddress nblocks address (maxtries)
|
||||||
|
|
||||||
== Mining ==
|
== Mining ==
|
||||||
getblocktemplate ( TemplateRequest )
|
getblocktemplate ( TemplateRequest )
|
||||||
getmininginfo
|
getmininginfo
|
||||||
getnetworkhashps ( blocks height )
|
getnetworkhashps ( nblocks height )
|
||||||
prioritisetransaction <txid> <priority delta> <fee delta>
|
prioritisetransaction <txid> <dummy value> <fee delta>
|
||||||
submitblock "hexdata" ( "jsonparametersobject" )
|
submitblock "hexdata" ( "dummy" )
|
||||||
|
|
||||||
== Network ==
|
== Network ==
|
||||||
addnode "node" "add|remove|onetry"
|
addnode "node" "add|remove|onetry"
|
||||||
clearbanned
|
clearbanned
|
||||||
disconnectnode "node"
|
disconnectnode "[address]" [nodeid]
|
||||||
getaddednodeinfo dummy ( "node" )
|
getaddednodeinfo ( "node" )
|
||||||
getconnectioncount
|
getconnectioncount
|
||||||
getnettotals
|
getnettotals
|
||||||
getnetworkinfo
|
getnetworkinfo
|
||||||
getpeerinfo
|
getpeerinfo
|
||||||
listbanned
|
listbanned
|
||||||
ping
|
ping
|
||||||
setban "ip(/netmask)" "add|remove" (bantime) (absolute)
|
setban "subnet" "add|remove" (bantime) (absolute)
|
||||||
|
setnetworkactive true|false
|
||||||
|
|
||||||
== Rawtransactions ==
|
== Rawtransactions ==
|
||||||
createrawtransaction [{"txid":"id","vout":n},...] {"address":amount,"data":"hex",...} ( locktime )
|
combinerawtransaction ["hexstring",...]
|
||||||
|
createrawtransaction [{"txid":"id","vout":n},...] {"address":amount,"data":"hex",...} ( locktime ) ( replaceable )
|
||||||
decoderawtransaction "hexstring"
|
decoderawtransaction "hexstring"
|
||||||
decodescript "hex"
|
decodescript "hexstring"
|
||||||
fundrawtransaction "hexstring" ( options )
|
fundrawtransaction "hexstring" ( options )
|
||||||
getrawtransaction "txid" ( verbose )
|
getrawtransaction "txid" ( verbose )
|
||||||
sendrawtransaction "hexstring" ( allowhighfees )
|
sendrawtransaction "hexstring" ( allowhighfees )
|
||||||
@ -91,55 +98,57 @@ signrawtransaction "hexstring" ( [{"txid":"id","vout":n,"scriptPubKey":"hex","re
|
|||||||
== Util ==
|
== Util ==
|
||||||
createmultisig nrequired ["key",...]
|
createmultisig nrequired ["key",...]
|
||||||
estimatefee nblocks
|
estimatefee nblocks
|
||||||
estimatepriority nblocks
|
estimatesmartfee conf_target ("estimate_mode")
|
||||||
estimatesmartfee nblocks
|
|
||||||
estimatesmartpriority nblocks
|
|
||||||
signmessagewithprivkey "privkey" "message"
|
signmessagewithprivkey "privkey" "message"
|
||||||
validateaddress "bitcoinaddress"
|
validateaddress "address"
|
||||||
verifymessage "bitcoinaddress" "signature" "message"
|
verifymessage "address" "signature" "message"
|
||||||
|
|
||||||
== Wallet ==
|
== Wallet ==
|
||||||
abandontransaction "txid"
|
abandontransaction "txid"
|
||||||
|
abortrescan
|
||||||
addmultisigaddress nrequired ["key",...] ( "account" )
|
addmultisigaddress nrequired ["key",...] ( "account" )
|
||||||
addwitnessaddress "address"
|
addwitnessaddress "address"
|
||||||
backupwallet "destination"
|
backupwallet "destination"
|
||||||
dumpprivkey "bitcoinaddress"
|
bumpfee "txid" ( options )
|
||||||
|
dumpprivkey "address"
|
||||||
dumpwallet "filename"
|
dumpwallet "filename"
|
||||||
encryptwallet "passphrase"
|
encryptwallet "passphrase"
|
||||||
getaccount "bitcoinaddress"
|
getaccount "address"
|
||||||
getaccountaddress "account"
|
getaccountaddress "account"
|
||||||
getaddressesbyaccount "account"
|
getaddressesbyaccount "account"
|
||||||
getbalance ( "account" minconf includeWatchonly )
|
getbalance ( "account" minconf include_watchonly )
|
||||||
getnewaddress ( "account" )
|
getnewaddress ( "account" )
|
||||||
getrawchangeaddress
|
getrawchangeaddress
|
||||||
getreceivedbyaccount "account" ( minconf )
|
getreceivedbyaccount "account" ( minconf )
|
||||||
getreceivedbyaddress "bitcoinaddress" ( minconf )
|
getreceivedbyaddress "address" ( minconf )
|
||||||
gettransaction "txid" ( includeWatchonly )
|
gettransaction "txid" ( include_watchonly )
|
||||||
getunconfirmedbalance
|
getunconfirmedbalance
|
||||||
getwalletinfo
|
getwalletinfo
|
||||||
importaddress "address" ( "label" rescan p2sh )
|
importaddress "address" ( "label" rescan p2sh )
|
||||||
importprivkey "bitcoinprivkey" ( "label" rescan )
|
importmulti "requests" ( "options" )
|
||||||
|
importprivkey "privkey" ( "label" ) ( rescan )
|
||||||
importprunedfunds
|
importprunedfunds
|
||||||
importpubkey "pubkey" ( "label" rescan )
|
importpubkey "pubkey" ( "label" rescan )
|
||||||
importwallet "filename"
|
importwallet "filename"
|
||||||
keypoolrefill ( newsize )
|
keypoolrefill ( newsize )
|
||||||
listaccounts ( minconf includeWatchonly)
|
listaccounts ( minconf include_watchonly)
|
||||||
listaddressgroupings
|
listaddressgroupings
|
||||||
listlockunspent
|
listlockunspent
|
||||||
listreceivedbyaccount ( minconf includeempty includeWatchonly)
|
listreceivedbyaccount ( minconf include_empty include_watchonly)
|
||||||
listreceivedbyaddress ( minconf includeempty includeWatchonly)
|
listreceivedbyaddress ( minconf include_empty include_watchonly)
|
||||||
listsinceblock ( "blockhash" target-confirmations includeWatchonly)
|
listsinceblock ( "blockhash" target_confirmations include_watchonly include_removed )
|
||||||
listtransactions ( "account" count from includeWatchonly)
|
listtransactions ( "account" count skip include_watchonly)
|
||||||
listunspent ( minconf maxconf ["address",...] )
|
listunspent ( minconf maxconf ["addresses",...] [include_unsafe] [query_options])
|
||||||
|
listwallets
|
||||||
lockunspent unlock ([{"txid":"txid","vout":n},...])
|
lockunspent unlock ([{"txid":"txid","vout":n},...])
|
||||||
move "fromaccount" "toaccount" amount ( minconf "comment" )
|
move "fromaccount" "toaccount" amount ( minconf "comment" )
|
||||||
removeprunedfunds "txid"
|
removeprunedfunds "txid"
|
||||||
sendfrom "fromaccount" "tobitcoinaddress" amount ( minconf "comment" "comment-to" )
|
sendfrom "fromaccount" "toaddress" amount ( minconf "comment" "comment_to" )
|
||||||
sendmany "fromaccount" {"address":amount,...} ( minconf "comment" ["address",...] )
|
sendmany "fromaccount" {"address":amount,...} ( minconf "comment" ["address",...] replaceable conf_target "estimate_mode")
|
||||||
sendtoaddress "bitcoinaddress" amount ( "comment" "comment-to" subtractfeefromamount )
|
sendtoaddress "address" amount ( "comment" "comment_to" subtractfeefromamount replaceable conf_target "estimate_mode")
|
||||||
setaccount "bitcoinaddress" "account"
|
setaccount "address" "account"
|
||||||
settxfee amount
|
settxfee amount
|
||||||
signmessage "bitcoinaddress" "message"
|
signmessage "address" "message"
|
||||||
```
|
```
|
||||||
You can also type `bitcoin help [command]` to get even more extensive info on that command. For example:
|
You can also type `bitcoin help [command]` to get even more extensive info on that command. For example:
|
||||||
```
|
```
|
||||||
@ -181,7 +190,7 @@ For example `bitcoin-cli getnetworkinfo` gives you a variety of information on y
|
|||||||
```
|
```
|
||||||
$ bitcoin-cli getnetworkinfo
|
$ bitcoin-cli getnetworkinfo
|
||||||
{
|
{
|
||||||
"version": 140000,
|
"version": 150100,
|
||||||
"subversion": "/Satoshi:0.15.1/",
|
"subversion": "/Satoshi:0.15.1/",
|
||||||
"protocolversion": 70015,
|
"protocolversion": 70015,
|
||||||
"localservices": "000000000000000d",
|
"localservices": "000000000000000d",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user