Bitcoin-qt客户端及常用知识--eth omni

Bitcoin 获取 btc testnet

http://bitcoinfaucet.uo1.net/send.php

testnet explorer浏览器

https://testnet.blockchain.info/address/myNLUeNH7ud7hPrLrbyWc33L4nnqeTyySk    

 

  1. omnicore-0.3.1/bin/omnicore-cli -conf=/Users/nevernew/var/data/omnidata/bitcoin.conf  getbalance 获取账户btc余额
  2. omnicore-0.3.1/bin/omnicore-cli -conf=/Users/nevernew/var/data/omnidata/bitcoin.conf  listaccounts 获取所有账户及余额
  3. omnicore-0.3.1/bin/omnicore-cli -conf=/Users/nevernew/var/data/omnidata/bitcoin.conf getaddressesbyaccount ""获取名称为空的btc地址
  4. omnicore-0.3.1/bin/omnicore-cli -conf=/Users/nevernew/var/data/omnidata/bitcoin.conf omni_getbalance mg5bpszujsvGSVeKLffJy7uTktTEtngdgN 1 获取地址 财富ID=1的余额
  5. omnicore-0.3.1/bin/omnicore-cli -conf=/Users/nevernew/var/data/omnidata/bitcoin.conf  omni_getallbalancesforaddress myNLUeNH7ud7hPrLrbyWc33L4nnqeTyySk  获取此地址的所有财富
  6. ./omnicore-cli -testnet sendtoaddress "moneyqMan7uh8FqdCA2BV5yZ8qVrc9ikLP" 0.1 //发送btc

 

常用浏览器:

  • https://omniexplorer.info
  • https://www.blockchain.com
  • https://tether.to
  • https://etherscan.io/address/0xe4fad36e40b19189d755d05e971811c63640d636
  • https://testnet.blockchain.info/address/myNLUeNH7ud7hPrLrbyWc33L4nnqeTyySk
  • http://chainquery.com/bitcoin-api/getrawtransaction/c5eb0860cf32b4e4134a006b9d66740e0b136a32af06ff3c0dd03dfe0a1e1eb6/0

友情链接: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

 

你可能感兴趣的:(BitEth)