這篇文章主要講解了“python怎么實現bitcoin轉賬api”,文中的講解內容簡單清晰,易于學習與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學習“python怎么實現bitcoin轉賬api”吧!
創新互聯主營沙洋網站建設的網絡公司,主營網站建設方案,app軟件定制開發,沙洋h5重慶小程序開發搭建,沙洋網站營銷推廣歡迎沙洋等地區企業咨詢
下載并安裝OpenBazaar-Server
安裝虛擬環境
$ pip install virtualenv
$ cd /Users/shijun/Desktop/openSourceProject/OpenBazaar-Server-master
創建虛擬環境
$ virtualenv pytest --python=python2.7 --no-site-packages
激活虛擬環境
$ source pytest/bin/activate
(pytest) shijundeMacBook-Pro:OpenBazaar-Server-master shijun$
安裝
$ sudo pip install -r requirements.txt
問題:安裝過程遇到超時,繼續安裝
問題:ImportError: No module named requests
解決:$ pip install requests
測試
$ python openbazaard.py start --help
啟動服務
$ python openbazaard.py start -a 0.0.0.0
________ __________
\_____ \ ______ ____ ____\______ \_____ _____________ _____ _______
/ | \\____ \_/ __ \ / \| | _/\__ \ \___ /\__ \ \__ \\_ __ \
/ | \ |_> > ___/| | \ | \ / __ \_/ / / __ \_/ __ \| | \/
\_______ / __/ \___ >___| /______ /(____ /_____ \(____ (____ /__|
\/|__| \/ \/ \/ \/ \/ \/ \/
OpenBazaar Server 0.2.6 starting...
2018-07-02 14:07:59+0800 [Server] [ERROR] failed to query seed: Signature was forged or corrupt
2018-07-02 14:07:59+0800 [Server] [ERROR] failed to query seed: [Errno 8] nodename nor servname provided, or not known
2018-07-02 14:07:59+0800 [Server] [WARNING] no known neighbors, so not writing to cache.
2018-07-02 14:08:09+0800 [Server] [WARNING] no known neighbors, so not writing to cache.
2018-07-02 14:08:09+0800 [-] [CRITICAL] Libbitcoin server offline
解決:$ brew install libbitcoin-server
$ cd /usr/local/Cellar/libbitcoin-server/3.5.0_2/bin
$ bs --initchain
06:37:04.700459 INFO [server] ================= startup ==================
06:37:04.700503 WARNING [server] ================= startup ==================
06:37:04.700646 ERROR [server] ================= startup ==================
06:37:04.700682 FATAL [server] ================= startup ==================
06:37:04.700717 INFO [server] Using config file: "/usr/local/Cellar/libbitcoin-server/3.5.0_2/etc/libbitcoin/bs.cfg"
06:37:04.700818 INFO [server] Please wait while initializing "blockchain" directory...
06:37:11.586594 INFO [server] Completed initialization.
運行服務
$ ./bs
06:45:52.430671 INFO [server] ================= startup ==================
06:45:52.430713 WARNING [server] ================= startup ==================
06:45:52.430849 ERROR [server] ================= startup ==================
06:45:52.430895 FATAL [server] ================= startup ==================
06:45:52.430923 INFO [server] Using config file: "/usr/local/Cellar/libbitcoin-server/3.5.0_2/etc/libbitcoin/bs.cfg"
06:45:52.430949 INFO [server] Please wait while the server is starting...
06:45:52.432351 INFO [network] Starting manual session.
06:45:52.432685 INFO [server] Seeding is complete.
06:45:52.433524 INFO [node] Node start height is (0).
06:45:52.435284 INFO [network] Not configured for accepting incoming connections.
06:45:52.435363 INFO [network] Starting outbound session.
06:45:52.442370 INFO [server] Bound public query service to tcp://*:9091
06:45:52.444527 INFO [server] Bound public heartbeat service to tcp://*:9092
06:45:52.444928 INFO [server] Bound public block service to tcp://*:9093
06:45:52.445332 INFO [server] Bound public transaction service to tcp://*:9094
06:45:52.445387 INFO [server] Server is started.
06:45:52.503015 INFO [network] Connected outbound channel [218.75.158.221:8333] (1)
Segmentation fault: 11
$ python openbazaard.py start --testnet
$ python openbazaard.py start -a 0.0.0.0
========================
You are using an outdated and deprecated version of OpenBazaar. The current server is located here:
https://github.com/OpenBazaar/openbazaar-go
Unless you want to install from source, I highly recommend downloading the installer from our main website:
https://www.openbazaar.org/download/
========================
$ brew install git
$ brew install go
$ git --version
git version 2.18.0
$ go version
go version go1.10.1 darwin/amd64
$ cd /Users/shijun/Desktop/openSourceProject/openbazaar-go-master
$ go run openbazaard.go start
cannot find package "github.com/OpenBazaar/openbazaar-go/cmd" in any of:
$ go get github.com/OpenBazaar/openbazaar-go
cannot find package "github.com/op/go-logging" in any of:
$ go get github.com/op/go-logging
cannot find package "github.com/jessevdk/go-flags" in any of:
$ go get github.com/jessevdk/go-flags
cannot find package "github.com/ipfs/go-ipfs/repo/fsrepo/lock" in any of:
$ go get -u -d github.com/ipfs/go-ipfs
感謝各位的閱讀,以上就是“python怎么實現bitcoin轉賬api”的內容了,經過本文的學習后,相信大家對python怎么實現bitcoin轉賬api這一問題有了更深刻的體會,具體使用情況還需要大家實踐驗證。這里是創新互聯,小編將為大家推送更多相關知識點的文章,歡迎關注!
網站題目:python怎么實現bitcoin轉賬api
文章出自:http://vcdvsql.cn/article30/pdheso.html
成都網站建設公司_創新互聯,為您提供網站建設、網站改版、虛擬主機、服務器托管、軟件開發、域名注冊
聲明:本網站發布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創新互聯