<blockquote>
<p>I'm a web developer looking to integrate a Bitcoin node into a PHP application and I am unsure how I would go about interacting with the Bitcoin core in a developer environment for my machine.</p>
</blockquote>
<p>The most straightforward way of doing it would be to just use JSONRPC to hit <code>bitcoind</code>'s API.</p>
<blockquote>
<p>My goal is to pull transaction history on a particular address without using any 3rd party APIs and as such I need to use some sort of Bitcoin interface to do that.</p>
</blockquote>
<p><code>bitcoind</code> doesn't allow you to directly access an &quot;address mapping&quot;. Some applications (notably Electrum servers) build additional indexes which allow them to expose you &quot;by address&quot; APIs and other handy informations.</p>
<p>This usually is a tradeoff between storage vs efficiency.</p>
<blockquote>
<p>I believe that I need to use the Bitcoin daemon in some sort of manner however I do not know how to use it on my current PC as It is a Windows 10 machine.</p>
</blockquote>
<p>Bitcoin-core allows you to <a href="https://github.com/bitcoin/bitcoin/blob/master/doc/build-windows.md" rel="nofollow noreferrer">build on Windows</a> and provides Windows binaries as part of the <a href="https://github.com/bitcoin/bitcoin/releases" rel="nofollow noreferrer">releases</a>.</p>
<hr />
<p>More subjectively, I usually recommend the <a href="http://github.com/Blockstream/esplora" rel="nofollow noreferrer">Esplora API</a> (which is more precisely the <a href="https://github.com/Blockstream/electrs" rel="nofollow noreferrer"><code>electrs</code> fork of Blockstream's API</a>) which uses quite a lot of storage but is very efficient for address-based requests.</p>
<p>You can start it quite easily by using the Docker instructions, and for example set it up behind an <code>nginx</code> reverse proxy on a server so you can hit it (or just use Docker on your Windows machine).</p>

CC BY-SA 4.0
2020-07-09T15:11:52.920Z
Is there any such programs or apps I can use where I can locally map an address? Ideally, I'd like to enter an address and receive all transactions that have recently been made.
Ethan
CC BY-SA 4.0
2020-07-09T15:13:29.433Z
@Ethan I edited with a personal suggestion :)
Antoine Poinsot
CC BY-SA 4.0
2020-07-09T16:52:28.520Z
Thank you mate, does this Esplora make API calls to 3rd parties or can it be used locally?
Ethan
CC BY-SA 4.0
2020-07-10T12:05:09.610Z
As I described, this is an open source project which is made easy to be self-hosted. It doesn't use a third party (that's kinda the point of using almost a terabyte of storage!)
Antoine Poinsot
CC BY-SA 4.0
2020-07-11T22:39:25.067Z
If you launch bitcoin core with `txindex` option you have all transaction indexed and so you can query any transaction you want using RPC
Not Important
CC BY-SA 4.0
2020-07-09T15:06:29.203Z
2020-07-09T15:13:02.930Z
2020-07-09T15:13:02.930Z
Antoine Poinsot
<p>I'm a web developer looking to integrate a Bitcoin node into a PHP application and I am unsure how I would go about interacting with the Bitcoin core in a developer environment for my machine.<br />
My goal is to pull transaction history on a particular address without using any 3rd party APIs and as such I need to use some sort of Bitcoin interface to do that.<br />
I believe that I need to use the Bitcoin daemon in some sort of manner however I do not know how to use it on my current PC as It is a Windows 10 machine.<br />
Any advice would be greatly appreciated.</p>

<bitcoin-core><php><daemon>
Working with Bitcoin node on Windows as a developer?
Ethan
# Working with Bitcoin node on Windows as a developer?

(Asked by: username_0 on 2020-07-09)

I'm a web developer looking to integrate a Bitcoin node into a PHP application and I am unsure how I would go about interacting with the Bitcoin core in a developer environment for my machine.  
My goal is to pull transaction history on a particular address without using any 3rd party APIs and as such I need to use some sort of Bitcoin interface to do that.  
I believe that I need to use the Bitcoin daemon in some sort of manner however I do not know how to use it on my current PC as It is a Windows 10 machine.  
Any advice would be greatly appreciated.

**Tags:** bitcoin-core, php, daemon


---

## 1 answers

### Answer by username_1 on 2020-07-09. Score: 1

> I'm a web developer looking to integrate a Bitcoin node into a PHP application and I am unsure how I would go about interacting with the Bitcoin core in a developer environment for my machine.

The most straightforward way of doing it would be to just use JSONRPC to hit `bitcoind`'s API.

> My goal is to pull transaction history on a particular address without using any 3rd party APIs and as such I need to use some sort of Bitcoin interface to do that.

`bitcoind` doesn't allow you to directly access an "address mapping". Some applications (notably Electrum servers) build additional indexes which allow them to expose you "by address" APIs and other handy informations.

This usually is a tradeoff between storage vs efficiency.

> I believe that I need to use the Bitcoin daemon in some sort of manner however I do not know how to use it on my current PC as It is a Windows 10 machine.

Bitcoin-core allows you to [build on Windows](https://github.com/bitcoin/bitcoin/blob/master/doc/build-windows.md) and provides Windows binaries as part of the [releases](https://github.com/bitcoin/bitcoin/releases).

---

More subjectively, I usually recommend the [Esplora API](http://github.com/Blockstream/esplora) (which is more precisely the [`electrs` fork of Blockstream's API](https://github.com/Blockstream/electrs)) which uses quite a lot of storage but is very efficient for address-based requests.

You can start it quite easily by using the Docker instructions, and for example set it up behind an `nginx` reverse proxy on a server so you can hit it (or just use Docker on your Windows machine).

> **Comments:**
> **username_0**: Is there any such programs or apps I can use where I can locally map an address? Ideally, I'd like to enter an address and receive all transactions that have recently been made.  
> **username_1**: @username_0 I edited with a personal suggestion :)  
> **username_0**: Thank you mate, does this Esplora make API calls to 3rd parties or can it be used locally?  
> **username_1**: As I described, this is an open source project which is made easy to be self-hosted. It doesn't use a third party (that's kinda the point of using almost a terabyte of storage!)  
> **username_2**: If you launch bitcoin core with `txindex` option you have all transaction indexed and so you can query any transaction you want using RPC  

---

