[BTC] btcoin-cli

Time:2019-10-7

json-rpc api

wallet

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"

account

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