https://github.com/demining/openblockchain-google-colab
openblockchain Google Colab
https://github.com/demining/openblockchain-google-colab
bitcoin bitcoin-api bitcoin-core bitcoin-payment bitcoin-transaction bitcoin-wallet colab colab-notebook colab-notebooks colab-tutorial colaboratory google-colab google-colab-notebook google-colab-tutorial google-colaboratory google-colaboratory-notebooks
Last synced: about 1 month ago
JSON representation
openblockchain Google Colab
- Host: GitHub
- URL: https://github.com/demining/openblockchain-google-colab
- Owner: demining
- Created: 2022-02-17T20:31:03.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-07-02T01:16:12.000Z (almost 3 years ago)
- Last Synced: 2025-03-26T07:36:14.185Z (about 2 months ago)
- Topics: bitcoin, bitcoin-api, bitcoin-core, bitcoin-payment, bitcoin-transaction, bitcoin-wallet, colab, colab-notebook, colab-notebooks, colab-tutorial, colaboratory, google-colab, google-colab-notebook, google-colab-tutorial, google-colaboratory, google-colaboratory-notebooks
- Language: JavaScript
- Homepage:
- Size: 7.29 MB
- Stars: 1
- Watchers: 2
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
-------------------------
### Run openblockchain-Google-Colabhttps://colab.research.google.com/drive/1OShIMVcFZ_khsUIBOIV1lzrqAGo1gfm_?usp=sharing
-------------------------
get a clean copy from github
git clone --recursive https://github.com/haobtc/openblockchain.git
or if you already cloned to local disk,
git clone https://github.com/haobtc/openblockchain.git
then go to sub directory, update the submodule.
cd openblockchain/bitcoin
git submodule update --init --recursive
# create db
#http://www.postgresql.org/download/linux/ubuntu/
sudo apt-get install postgresql-9.4
root#mkdir /chain/pg/
root#chown postgres /chain/pg/
root#su postgres
postgres$/usr/lib/postgresql/9.4/bin/initdb -D /chain/pg/You can now start the database server using:
/usr/lib/postgresql/9.4/bin/postgres -D /chain/pg/
or
/usr/lib/postgresql/9.4/bin/pg_ctl -D /chain/pg/ -l logfile start
or
/etc/init.d/postgresql start
/etc/init.d/postgresql stop
/etc/init.d/postgresql restart
/etc/init.d/postgresql statussudo adduser dbuser
in postgres command:
CREATE USER dbuser WITH PASSWORD 'xxxxx';
CREATE DATABASE btcdb OWNER dbuser;
GRANT ALL PRIVILEGES ON DATABASE btcdb to dbuser;pg_restore -j 3 -d btcdb btcdb.file
vi ~/.bitcoin/bitcoin.conf
server=1
rpcuser=bitcoinrpc
rpcpassword=xxxx
daemon=1
txindex=1# build bitcoind
apt-get install build-essential libtool autotools-dev autoconf libssl-dev libboost-all-dev libdb-dev libdb++-dev pkg-config libpq-dev libevent-dev
./autogen.sh
./configure --disable-wallet --without-gui --disable-tests
make -j
./bitcoind -datadir= -daemon
#install for demo
apt-get install libleveldb1 libleveldb-dev
sudo pip install plyvel
#run api demo
cd api
cp config_sample.py config.py
modify config.py as server setting
gunicorn -w 4 -k gevent -b 0.0.0.0:5000 explorer_api:app
gunicorn -w 4 -k gevent -b 0.0.0.0:9005 blockstore_api:app----
| | Donation Address |
| --- | --- |
| ♥ __BTC__ | 1Lw2kh9WzCActXSGHxyypGLkqQZfxDpw8v |
| ♥ __ETH__ | 0xaBd66CF90898517573f19184b3297d651f7b90bf |