<p>You can't do that using Bitcoin-core. What you can do as an alternative is using electrum servers.</p>

<p>You can find all the information about using it and commands in <a href="https://electrumx.readthedocs.io/en/latest/protocol-basics.html" rel="nofollow noreferrer">here</a>.</p>

<p>Features:</p>

<ul>
<li>Broadcast transactions.</li>
<li>Getting legacy address transactions, unspent and balance.</li>
<li>Free and public and there are many available peers.</li>
<li>open source (python).</li>
</ul>

<p>If you want to get segwit address balance, transactions.. you should convert it to script hash first.</p>

<p>Note: using third party APIs &amp; servers are less secure than running a self-hosted full node. It's recommended to avoid third-parties when you deal with money.</p>

CC BY-SA 3.0
2018-03-24T18:47:19.860Z
I'm in php on a shared web server. Wouldn't this solution require me to have a private virtual server, at least?
toddmo
CC BY-SA 3.0
2018-03-25T02:49:51.140Z
Never, if you have Bitcoin-core you should get VPS, Electrum size is just 20MB, don't forget to open port 50002, 50003
Tailer
CC BY-SA 3.0
2018-03-27T17:49:58.027Z
I can't open a port. I can't install software. I don't "have" bitcoin core or anything else, just php files and html pages. I'm on a shared web server. Either I don't understand what you are suggesting or your answer isn't a suitable answer b/c it is disregarding my code environment. Maybe I don't understand then? When I look at your link, it wants me to install some software on the server, correct?
toddmo
CC BY-SA 3.0
2018-04-25T04:41:03.983Z
Sorry, I didn't notice your comment. You can get another server and install electrumx on it, or you can use other people server since its public and you don't need to open those ports though.
Tailer
CC BY-SA 4.0
2018-03-19T19:19:32.113Z
2020-02-24T13:48:03.170Z
2020-02-24T13:48:03.170Z
Tailer
<p>I want to connect to the bitcoin network and broadcast a transaction.</p>

<p>I can't run my own bitcoin node on localhost because I'm in php on a web server (shared host), is there an internet-accessible open-to-the-public trusted reliable well-known node I can use?</p>

<p>Even blockchain.info api requires a local service to be running, so that won't work.</p>

<nodes>
Public bitcoin node accessible to web code?
toddmo
# Public bitcoin node accessible to web code?

(Asked by: username_0 on 2018-03-19)

I want to connect to the bitcoin network and broadcast a transaction.

I can't run my own bitcoin node on localhost because I'm in php on a web server (shared host), is there an internet-accessible open-to-the-public trusted reliable well-known node I can use?

Even blockchain.info api requires a local service to be running, so that won't work.

**Tags:** nodes


---

## 1 answers

### Answer by username_1 on 2018-03-19. Score: 1 | Accepted answer

You can't do that using Bitcoin-core. What you can do as an alternative is using electrum servers.

You can find all the information about using it and commands in [here](https://electrumx.readthedocs.io/en/latest/protocol-basics.html).

Features:

* Broadcast transactions.
* Getting legacy address transactions, unspent and balance.
* Free and public and there are many available peers.
* open source (python).

If you want to get segwit address balance, transactions.. you should convert it to script hash first.

Note: using third party APIs & servers are less secure than running a self-hosted full node. It's recommended to avoid third-parties when you deal with money.

> **Comments:**
> **username_0**: I'm in php on a shared web server. Wouldn't this solution require me to have a private virtual server, at least?  
> **username_1**: Never, if you have Bitcoin-core you should get VPS, Electrum size is just 20MB, don't forget to open port 50002, 50003  
> **username_0**: I can't open a port. I can't install software. I don't "have" bitcoin core or anything else, just php files and html pages. I'm on a shared web server. Either I don't understand what you are suggesting or your answer isn't a suitable answer b/c it is disregarding my code environment. Maybe I don't understand then? When I look at your link, it wants me to install some software on the server, correct?  
> **username_1**: Sorry, I didn't notice your comment. You can get another server and install electrumx on it, or you can use other people server since its public and you don't need to open those ports though.  

---

