How to query bitcoin database created by Toshi?

1

I want to query Toshi's(https://github.com/coinbase/toshi) database but can't figure it out how to connect to it. It seems like it runs inside a docker container. Appreciate any help.

Igor Barinov

Posted 2015-06-06T21:40:32.947

Reputation: 456

Did you look at the documentation? https://toshi.io/docs/ Have you tried opening http://<docker container IP>/api/v0/blocks?

Nick ODell 2015-06-07T02:05:28.950

I just want to know how to access PSQL with all the data. I've asked on toshi's github https://github.com/coinbase/toshi/issues/198 two days ago but no answer yet

Igor Barinov 2015-06-07T06:13:15.617

I basically don't see the database When I log as postgres sudo -i -u postgres user I see only default DBs postrgres, template0, template1Igor Barinov 2015-06-07T06:14:22.710

Answers

1

docker exec -it toshi_db_1 psql -U postgres -d toshi_development

Got the answer on a github issue https://github.com/coinbase/toshi/issues/198

Igor Barinov

Posted 2015-06-06T21:40:32.947

Reputation: 456