用一个安全密码给JSON-RPC接口创建一个配置文件
rpcuser=bitcoinrpc
rpcpassword=2XA4DuKNCbtZXsBQRRNDEwEY2nM6M4H9Tx5dFjoAVVbK
写入~/.bitcoin/bitcoin.conf
后台模式运行 bitcoind
bitcoind -daemon
通过命令行使用比特币核心的JSON-RPC API接口
bitcoin-cli help
获得比特币核心客户端状态的信息
bitcoin-cli getinfo
WARNING: getinfo is deprecated and will be fully removed in 0.16.
Projects should transition to using getblockchaininfo, getnetworkinfo, and getwalletinfo before upgradi ...
阅读全文