當前位置: 首頁>>編程示例 >>用法及示例精選 >>正文


Bitcoin walletpassphrasechange用法及代碼示例

比特幣(Bitcoin) RPC Wallet API中walletpassphrasechange的用法及代碼示例。

用法:

walletpassphrasechange "oldpassphrase" "newpassphrase"

將錢包密碼從‘oldpassphrase’更改為‘newpassphrase’。

參數1 - oldpassphrase

類型:字符串,必填

當前密碼

參數2 - newpassphrase

類型:字符串,必填

新密碼

示例

bitcoin-cli walletpassphrasechange "old one" "new one"
curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "walletpassphrasechange", "params": ["old one", "new one"] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/

相關用法


注:本文由純淨天空篩選整理自bitcoin.org大神的英文原創作品 Bitcoin walletpassphrasechange。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。