<pre><code>docker exec -it toshi_db_1 psql -U postgres -d toshi_development
</code></pre>

<p>Got the answer on a github issue <a href="https://github.com/coinbase/toshi/issues/198" rel="nofollow">https://github.com/coinbase/toshi/issues/198</a></p>

CC BY-SA 3.0
2015-06-13T05:01:00.913Z
2015-06-13T05:01:00.913Z
Igor Barinov
<p>I want to query Toshi's(<a href="https://github.com/coinbase/toshi" rel="nofollow">https://github.com/coinbase/toshi</a>) database but can't figure it out how to connect to it. It seems like it runs inside a docker container.
Appreciate any help.</p>

CC BY-SA 3.0
2015-06-07T02:05:28.950Z
Did you look at the documentation? https://toshi.io/docs/ Have you tried opening `http://<docker container IP>/api/v0/blocks`?
Nick ODell
CC BY-SA 3.0
2015-06-07T06:12:18.360Z
@NickODell yeah, the node works fine you can try it http://ec2-52-16-210-167.eu-west-1.compute.amazonaws.com:5000 or api here http://ec2-52-16-210-167.eu-west-1.compute.amazonaws.com:5000/api/v0/blocks
Igor Barinov
CC BY-SA 3.0
2015-06-07T06:13:15.617Z
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
CC BY-SA 3.0
2015-06-07T06:14:22.710Z
I basically don't see the database When I log as postgres `sudo -i -u postgres` user I see only default DBs postrgres, template0, template1
Igor Barinov
<database><toshi>
How to query bitcoin database created by Toshi?
Igor Barinov
# How to query bitcoin database created by Toshi?

(Asked by: username_0 on 2015-06-06)

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.

**Tags:** database, toshi

> **Comments:**
> **username_1**: Did you look at the documentation? https://toshi.io/docs/ Have you tried opening `http://<docker container IP>/api/v0/blocks`?  
> **username_0**: @NickODell yeah, the node works fine you can try it http://ec2-52-16-210-167.eu-west-1.compute.amazonaws.com:5000 or api here http://ec2-52-16-210-167.eu-west-1.compute.amazonaws.com:5000/api/v0/blocks  
> **username_0**: 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  
> **username_0**: I basically don't see the database When I log as postgres `sudo -i -u postgres` user I see only default DBs postrgres, template0, template1  

---

## 1 answers

### Answer by username_0 on 2015-06-13. Score: 1 | Accepted answer

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


---

