Bitcoin類錢包命令
使用bitcoin-cli命令時,錢包不在預設路徑的情況下需要使用絕對路徑配置
./bitcoin-cli --datadir=/www/bitcoin/data/
檢視錢包支援的命令
./bitcoind help
A、一般性的命令
stop
getinfo
ping
getnettotals
getnetworkinfo
getpeerinfo
getconnectioncount
verifychain ( checklevel numblocks )
getaddednodeinfo dns ( "node" )
addnode "node" "add|remove|onetry"
B、錢包、賬戶、地址、轉帳、發訊息
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" )
bulwark-cli
Blockchain
getbestblockhash
getblock “hash” ( verbose )
getblockchaininfo
getblockcount
getblockhash index
getblockheader “hash” ( verbose )
getchaintips
getdifficulty
getmempoolinfo
getrawmempool ( verbose )
gettxout “txid” n ( includemempool )
gettxoutsetinfo
verifychain ( checklevel numblocks )
Bulwark
checkbudgets
createmasternodekey
getbudgetinfo ( “proposal” )
getbudgetprojection
getbudgetvotes “proposal-name”
getmasternodecount
getmasternodeoutputs
getmasternodescores ( blocks )
getmasternodestatus
getmasternodewinners ( blocks “filter” )
getnextsuperblock
getpoolinfo
listmasternodeconf ( “filter” )
listmasternodes ( “filter” )
masternode “command”…
masternodeconnect “address”
masternodecurrent
masternodedebug
mnbudget “command”… ( “passphrase” )
mnbudgetrawvote “masternode-tx-hash” masternode-tx-index “proposal-hash” yes|no time “vote-sig”
mnbudgetvote “local|many|alias” “votehash” “yes|no” ( “alias” )
mnfinalbudget “command”… ( “passphrase” )
mnsync “status|reset”
obfuscation
preparebudget “proposal-name” “url” payment-count block-start “bulwark-address” monthy-payment
spork []
startmasternode “local|all|many|missing|disabled|alias” lockwallet ( “alias” )
submitbudget “proposal-name” “url” payment-count block-start “bulwark-address” monthy-payment “fee-tx”
Control
getinfo
help ( “command” )
stop
Generating
getgenerate
gethashespersec
setgenerate generate ( genproclimit )
Mining
getblocktemplate ( “jsonrequestobject” )
getmininginfo
getnetworkhashps ( blocks height )
prioritisetransaction
reservebalance ( reserve amount )
submitblock “hexdata” ( “jsonparametersobject” )
Network
addnode “node” “add|remove|onetry”
clearbanned
getaddednodeinfo dns ( “node” )
getconnectioncount
getnettotals
getnetworkinfo
getpeerinfo
listbanned
ping
setban “ip(/netmask)” “add|remove” (bantime) (absolute)
Rawtransactions
createrawtransaction [{“txid”:”id”,”vout”:n},…] {“address”:amount,…}
decoderawtransaction “hexstring”
decodescript “hex”
getrawtransaction “txid” ( verbose )
sendrawtransaction “hexstring” ( allowhighfees )
signrawtransaction “hexstring” ( [{“txid”:”id”,”vout”:n,”scriptPubKey”:”hex”,”redeemScript”:”hex”},…] [“privatekey1”,…] sighashtype )
Util
createmultisig nrequired [“key”,…]
estimatefee nblocks
estimatepriority nblocks
validateaddress “bulwarkaddress”
verifymessage “bulwarkaddress” “signature” “message”
Wallet
addmultisigaddress nrequired [“key”,…] ( “account” )
autocombinerewards true|false ( threshold )
backupwallet “destination”
bip38decrypt “bulwarkaddress”
bip38encrypt “bulwarkaddress”
dumpprivkey “bulwarkaddress”
dumpwallet “filename”
getaccount “bulwarkaddress”
getaccountaddress “account”
getaddressesbyaccount “account”
getbalance ( “account” minconf includeWatchonly )
getnewaddress ( “account” )
getrawchangeaddress
getreceivedbyaccount “account” ( minconf )
getreceivedbyaddress “bulwarkaddress” ( minconf )
getstakesplitthreshold
getstakingstatus
gettransaction “txid” ( includeWatchonly )
getunconfirmedbalance
getwalletinfo
importaddress “address” ( “label” rescan )
importprivkey “bulwarkprivkey” ( “label” rescan )
importwallet “filename”
keypoolrefill ( newsize )
listaccounts ( minconf includeWatchonly)
listaddressgroupings
listlockunspent
listreceivedbyaccount ( minconf includeempty includeWatchonly)
listreceivedbyaddress ( minconf includeempty includeWatchonly)
listsinceblock ( “blockhash” target-confirmations includeWatchonly)
listtransactions ( “account” count from includeWatchonly)
listunspent ( minconf maxconf [“address”,…] )
lockunspent unlock [{“txid”:”txid”,”vout”:n},…]
move “fromaccount” “toaccount” amount ( minconf “comment” )
multisend
sendfrom “fromaccount” “tobulwarkaddress” amount ( minconf “comment” “comment-to” )
sendmany “fromaccount” {“address”:amount,…} ( minconf “comment” )
sendtoaddress “bulwarkaddress” amount ( “comment” “comment-to” )
sendtoaddressix “bulwarkaddress” amount ( “comment” “comment-to” )
setaccount “bulwarkaddress” “account”
setstakesplitthreshold value
settxfee amount
signmessage “bulwarkaddress” “message”
walletlock
walletpassphrase “passphrase” timeout ( anonymizeonly )
其中第一個引數yourpassword為之前設定的密碼;第二個可變引數為需要解鎖的時間,單位是秒。最後一個引數true表示只解鎖挖礦功能,用該命令解鎖後,錢包可以正常挖礦,但其他資金安全相關操作仍被禁止,只有完全解鎖後才能使用。
walletpassphrasechange “oldpassphrase” “newpassphrase”
相關文章
- Bit-Wasp/bitcoin-php 的簡單使用:建立錢包 + 進行交易PHP
- 區塊鏈錢包之ETH錢包生成區塊鏈
- 區塊鏈錢包之BTC錢包地址生成區塊鏈
- TP錢包/ImToken錢包/MetaMask小狐狸錢包/去中心化錢包系統開發成熟技術丨原始碼案例中心化原始碼
- 【精選】atoken錢包詳細使用教程 - atoken錢包安全嗎,atoken錢包靠譜嗎
- 最安全的SRM錢包,SRM冷錢包使用教程
- 最安全的PMEER錢包,PMEER冷錢包使用教程
- 以太坊錢包開發系列1 - 建立錢包賬號
- imtoken錢包丨metamask小狐狸錢包丨tp錢包系統開發丨去中心化錢包系統開發詳細及原始碼中心化原始碼
- 錢包APP開發和理財中心化錢包介紹APP中心化
- EOS 錢包淺談
- 區塊鏈DAPP錢包開發,波場DAPP開發錢包區塊鏈APP
- 安全係數最高的BSV錢包,BSV冷錢包使用圖文
- imtoken錢包是什麼?imtoken錢包教程
- bitcoin原始碼分析原始碼
- 數字貨幣TP錢包/ImToken錢包/MetaMask小狐狸錢包系統開發(開發流程)丨原始碼分析原始碼
- EOS開發完全解析(二):用cleos命令列建立、匯入、解鎖錢包命令列
- 比特幣入門 ② - 錢包比特幣
- 詳解華為錢包
- 什麼是去中心化錢包?去中心化錢包是什麼意思?中心化
- Bitcoin程式碼之MerkleTree
- 登鏈錢包(一款功能強大的以太坊錢包)完全開源
- 區塊鏈錢包系統去中心化錢包模式開發案例詳情區塊鏈中心化模式
- 區塊鏈錢包開發,數字貨幣錢包開發的型別區塊鏈型別
- 博森量化軟體:託管錢包與非託管錢包的區別?
- 包裝類
- 多鏈錢包開發原理丨多鏈錢包系統開發(詳情及流程)丨多鏈錢包系統原始碼分析原始碼
- Linux轉包命令Linux
- NEP-6錢包標準
- 鎖定、解鎖Qtum錢包QT
- Qtum Electrum輕錢包使用教程QT
- EOS原始碼分析(4)錢包原始碼
- 區塊鏈錢包-android篇區塊鏈Android
- 區塊鏈錢包開發區塊鏈
- 以太坊錢包開發系列3 - 展示錢包資訊及發起簽名交易
- 多幣種數字錢包開發及區塊鏈數字錢包系統區塊鏈
- TP錢包/ImToken/MetaMask小狐狸錢包系統設計開發及詳細方案
- web3 產品介紹:metamask 錢包 使用最多的瀏覽器外掛錢包Web瀏覽器