Bitcoin 获取 btc testnet
http://bitcoinfaucet.uo1.net/send.php
testnet explorer浏览器
https://testnet.blockchain.info/address/myNLUeNH7ud7hPrLrbyWc33L4nnqeTyySk
./omnicore-cli -testnet sendtoaddress "moneyqMan7uh8FqdCA2BV5yZ8qVrc9ikLP" 0.1 //发送btc
常用浏览器:
友情链接:https://mp.csdn.net/postedit/79542712
Bitcoin-qt客户端未加密
查看私钥:dumpprivkey 14aEw3WcReN93Jis5CnCfsYh5rA3agX1f1
Bitcoin-qt客户端加密
输入密码:walletpassphrase 1234567890 120 ;(120s)
查看私钥:dumpprivkey 14aEw3WcReN93Jis5CnCfsYh5rA3agX1f1
rpc连接默认端口是:-rpcport=8332
rpc连接线程数:-rpcthreads=2000
api:https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list
github:https://github.com/rcorbish/node-bitcoin-promise
我使用的是:
https://travis-ci.org/freewil/node-bitcoin
GitHub: https://github.com/freewil/node-bitcoin
"bitcoin": "^3.0.1",
扩展:how-do-i-use-walletnotify btc
https://bitcoin.stackexchange.com/questions/24457/how-do-i-use-walletnotify
rpc启动命令:
nohup /Applications/Bitcoin-Qt.app/Contents/MacOS/Bitcoin-Qt -server -rpcport=8332 -rpcallowip=192.168.1.168 -datadir="/Users/ylkjcjq/bin/bitcoindata" -dbcache=1024 &
bitcoin.conf配置:
rpcuser=something
rpcpassword=*****
txindex=1
walletnotify=/Users/**/bin/btcTransaction.sh %s
or:
# You must set rpcuser and rpcpassword to secure the JSON-RPC api
rpcuser=${RPC USER}
rpcpassword=${RPC PASSWORD}
#testnet=1
listen=1
daemon=1
server=1
rpcallowip=127.0.0.1
rpcconnect=127.0.0.1
walletnotify=/usr/bin/curl http://localhost:9943/api/walletnotify/%s
blocknotify=/usr/bin/curl http://localhost:9943/api/blocknotify/%s