溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

bitcoin-cli命令怎么使用

發(fā)布時(shí)間:2022-10-18 15:10:16 來(lái)源:億速云 閱讀:189 作者:iii 欄目:編程語(yǔ)言

這篇文章主要介紹“bitcoin-cli命令怎么使用”的相關(guān)知識(shí),小編通過(guò)實(shí)際案例向大家展示操作過(guò)程,操作方法簡(jiǎn)單快捷,實(shí)用性強(qiáng),希望這篇“bitcoin-cli命令怎么使用”文章能幫助大家解決問(wèn)題。

help ( "command" )
 stop
 
getinfo
 
ping
 
getnettotals
 
getnetworkinfo
 
getpeerinfo
 
getconnectioncount
 
verifychain ( checklevel numblocks )
 
getaddednodeinfo dns ( "node" )
 
addnode "node" "add|remove|onetry"
 

B、錢包、賬戶、地址、轉(zhuǎn)帳、發(fā)消息
 getwalletinfo
 
walletpassphrase "passphrase" timeout
 
walletlock
 
walletpassphrasechange "oldpassphrase" "newpassphrase"
 
backupwallet "destination"
 
importwallet "filename"
 
dumpwallet "filename"
 

listaccounts ( minconf )
 
getaddressesbyaccount "account"
 
getaccountaddress "account"
 
getaccount "bitcoinaddress"
 
validateaddress "bitcoinaddress"
 
dumpprivkey "bitcoinaddress"
 
setaccount "bitcoinaddress" "account"
 
getnewaddress ( "account" )
 
keypoolrefill ( newsize )
 
importprivkey "bitcoinprivkey" ( "label" rescan )
 
createmultisig nrequired ["key",...]
 
addmultisigaddress nrequired ["key",...] ( "account" )
 

getbalance ( "account" minconf )
 
getunconfirmedbalance
 
getreceivedbyaccount "account" ( minconf )
 
listreceivedbyaccount ( minconf includeempty )
 
getreceivedbyaddress "bitcoinaddress" ( minconf )
 
listreceivedbyaddress ( minconf includeempty )
 
move "fromaccount" "toaccount" amount ( minconf "comment" )
 
listunspent ( minconf maxconf  ["address",...] )
 
listlockunspent
 
lockunspent unlock [{"txid":"txid","vout":n},...]
 

getrawchangeaddress
listaddressgroupings
settxfee amount
sendtoaddress "bitcoinaddress" amount ( "comment" "comment-to" )
sendfrom "fromaccount" "tobitcoinaddress" amount ( minconf "comment" "comment-to" )
sendmany "fromaccount" {"address":amount,...} ( minconf "comment" )

signmessage "bitcoinaddress" "message"
verifymessage "bitcoinaddress" "signature" "message"
C、Tx、Block、Ming
createrawtransaction [{"txid":"id","vout":n},...] {"address":amount,...}
signrawtransaction "hexstring" ( [{"txid":"id","vout":n,"scriptPubKey":"hex","redeemScript":"hex"},...] ["privatekey1",...] sighashtype )
sendrawtransaction "hexstring" ( allowhighfees )gettransaction "txid"
listtransactions ( "account" count from )
listsinceblock ( "blockhash" target-confirmations )getrawmempool ( verbose )
gettxoutsetinfo
gettxout "txid" n ( includemempool )
getrawtransaction "txid" ( verbose )
decoderawtransaction "hexstring"
decodescript "hex"

getblockchaininfo
getblockcount
getbestblockhash
getblockhash index
getblock "hash" ( verbose )

getmininginfo
getdifficulty
getnetworkhashps ( blocks height )
gethashespersec                                                                                                                                                       
getgenerate
setgenerate generate ( genproclimit )
getwork ( "data" )
getblocktemplate ( "jsonrequestobject" )
submitblock "hexdata" ( "jsonparametersobject" )

關(guān)于“bitcoin-cli命令怎么使用”的內(nèi)容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業(yè)相關(guān)的知識(shí),可以關(guān)注億速云行業(yè)資訊頻道,小編每天都會(huì)為大家更新不同的知識(shí)點(diǎn)。

向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI