{"id":14980138,"url":"https://github.com/demining/openblockchain-google-colab","last_synced_at":"2025-04-12T12:51:03.465Z","repository":{"id":144620961,"uuid":"460597962","full_name":"demining/openblockchain-Google-Colab","owner":"demining","description":"openblockchain Google Colab","archived":false,"fork":false,"pushed_at":"2022-07-02T01:16:12.000Z","size":7647,"stargazers_count":1,"open_issues_count":0,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T07:36:14.185Z","etag":null,"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"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/demining.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-17T20:31:03.000Z","updated_at":"2024-08-12T20:20:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"c591b631-1e6f-47a0-96fc-2531f2843a63","html_url":"https://github.com/demining/openblockchain-Google-Colab","commit_stats":{"total_commits":408,"total_committers":4,"mean_commits":102.0,"dds":0.3897058823529411,"last_synced_commit":"dd942d19cc3d71a75920342c58a0ee26b4b2bdc2"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demining%2Fopenblockchain-Google-Colab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demining%2Fopenblockchain-Google-Colab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demining%2Fopenblockchain-Google-Colab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demining%2Fopenblockchain-Google-Colab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/demining","download_url":"https://codeload.github.com/demining/openblockchain-Google-Colab/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248571347,"owners_count":21126516,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["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"],"created_at":"2024-09-24T14:01:21.261Z","updated_at":"2025-04-12T12:51:03.446Z","avatar_url":"https://github.com/demining.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"-------------------------\n### Run openblockchain-Google-Colab\n\nhttps://colab.research.google.com/drive/1OShIMVcFZ_khsUIBOIV1lzrqAGo1gfm_?usp=sharing\n\n-------------------------\n\nget a clean copy from github\n\ngit clone --recursive https://github.com/haobtc/openblockchain.git\n\nor if you already cloned to local disk, \n\ngit clone https://github.com/haobtc/openblockchain.git\n\nthen go to sub directory, update the submodule.\n\ncd openblockchain/bitcoin\n\ngit submodule update --init --recursive\n\n# create db\n\n#http://www.postgresql.org/download/linux/ubuntu/\n\nsudo apt-get install postgresql-9.4\n\nroot#mkdir /chain/pg/\nroot#chown postgres /chain/pg/\nroot#su postgres\npostgres$/usr/lib/postgresql/9.4/bin/initdb -D /chain/pg/\n\nYou can now start the database server using:\n\n    /usr/lib/postgresql/9.4/bin/postgres -D /chain/pg/\nor\n    /usr/lib/postgresql/9.4/bin/pg_ctl -D /chain/pg/ -l logfile start\nor \n    /etc/init.d/postgresql start\n    /etc/init.d/postgresql stop\n    /etc/init.d/postgresql restart\n    /etc/init.d/postgresql status\n\nsudo adduser dbuser\nin postgres command:\nCREATE USER dbuser WITH PASSWORD 'xxxxx';\nCREATE DATABASE btcdb OWNER dbuser;\nGRANT ALL PRIVILEGES ON DATABASE btcdb to dbuser;\n\npg_restore -j 3 -d btcdb btcdb.file\n\nvi ~/.bitcoin/bitcoin.conf\n\nserver=1\nrpcuser=bitcoinrpc\nrpcpassword=xxxx\ndaemon=1\ntxindex=1\n\n\n# build bitcoind\n\napt-get install build-essential libtool autotools-dev autoconf libssl-dev libboost-all-dev libdb-dev libdb++-dev pkg-config libpq-dev libevent-dev\n\n./autogen.sh\n\n./configure  --disable-wallet --without-gui --disable-tests\n\nmake -j\n\n./bitcoind -datadir=\u003cbitcoin data directory\u003e -daemon\n\n#install for demo\n\napt-get install libleveldb1 libleveldb-dev\n\nsudo pip install plyvel\n\n#run api demo\n\ncd api \n\ncp config_sample.py config.py \n\nmodify config.py as server setting\n\ngunicorn -w 4 -k gevent -b 0.0.0.0:5000 explorer_api:app\ngunicorn -w 4 -k gevent -b 0.0.0.0:9005 blockstore_api:app\n\n\n\n\n\n----\n\n|  | Donation Address |\n| --- | --- |\n| ♥ __BTC__ | 1Lw2kh9WzCActXSGHxyypGLkqQZfxDpw8v |\n| ♥ __ETH__ | 0xaBd66CF90898517573f19184b3297d651f7b90bf |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdemining%2Fopenblockchain-google-colab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdemining%2Fopenblockchain-google-colab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdemining%2Fopenblockchain-google-colab/lists"}