【BTC】btcoin-cli使用

json-rpc api

钱包

btcoin-cli -conf='xx' getwalletinfo
btcoin-cli -conf='xx' walletpassphrase "passphrase" timeout
btcoin-cli -conf='xx' walletlock
btcoin-cli -conf='xx' walletpassphrasechange "oldpassphrase" "newpassphrase"
btcoin-cli -conf='xx' backupwallet "destination"
btcoin-cli -conf='xx' importwallet "filename"
btcoin-cli -conf='xx' dumpwallet "filename"

账户

istaccounts ( 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” )

    原文作者:jincheng828
    原文地址: https://segmentfault.com/a/1190000019352096
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞