Bitcoin钱包Linux下命令行交互

Bitcoin钱包Linux下命令行交互。

以下是Bitcoin钱包在Linux下命令行交互的几个示例,会提示输入RPC密码。

getinfo

curl --user 'username' --data-binary '{"jsonrpc":"1.0","id":"1","method":"getinfo","params":[]}' -H 'content-type:text/plain;' http://127.0.0.1:1101

加密钱包

curl --user 'username' --data-binary '{"jsonrpc":"1.0","id":"1","method":"encryptwallet","params":["pass_word"]}' -H 'content-type:text/plain;' http://127.0.0.1:1101

解锁钱包

curl --user 'username' --data-binary '{"jsonrpc":"1.0","id":"1","method":"walletpassphrase","params":["pass_word",600]}' -H 'content-type:text/plain;' http://127.0.0.1:1101

Leave a Comment

豫ICP备19001387号-1