<p>Not all nodes will have the JSON-RPC enabled, and especially without private credentials. You will probably find a block explorer API much more accessible, because they are built to handle public traffic. There are many blockchain explorers online that have public apis, they are easy to find.</p>

CC BY-SA 4.0
2018-12-21T05:01:40.240Z
actually I need to generate address and push transactions into the blockchain.. most blockchain explorers give block height and related info.. iam new to cryptocurrencies so i might be incorrect
SMJ
CC BY-SA 4.0
2018-12-21T05:48:26.393Z
You can run an SPV node (light node)
JBaczuk
CC BY-SA 4.0
2019-01-20T06:14:13.350Z
You'd be very foolish to trust a random node in the network to make private keys for you.
Claris
CC BY-SA 4.0
2018-12-21T04:51:21.343Z
2018-12-21T04:51:21.343Z
JBaczuk
<p>I found a list of public bitcoin nodes <a href="https://bitnodes.earn.com/nodes/" rel="nofollow noreferrer">here</a>.  I am using a php <a href="https://github.com/aceat64/EasyBitcoin-PHP" rel="nofollow noreferrer">library</a>. How can I connect to these nodes via JSON RPC? Is it safe to connect to public nodes? What should I give as username and password?</p>

<p>I had tried a bitcoin node on my ec2 instance. It is taking too long to sync and blockchain size is also increasing. I want to communicate with bitcoin network without running a bitcoin daemon. </p>

<json-rpc><php>
How to connect to a public node through json RPC?
SMJ
# How to connect to a public node through json RPC?

(Asked by: username_0 on 2018-12-21)

I found a list of public bitcoin nodes [here](https://bitnodes.earn.com/nodes/). I am using a php [library](https://github.com/aceat64/EasyBitcoin-PHP). How can I connect to these nodes via JSON RPC? Is it safe to connect to public nodes? What should I give as username and password?

I had tried a bitcoin node on my ec2 instance. It is taking too long to sync and blockchain size is also increasing. I want to communicate with bitcoin network without running a bitcoin daemon.

**Tags:** json-rpc, php


---

## 1 answers

### Answer by username_1 on 2018-12-21. Score: 2

Not all nodes will have the JSON-RPC enabled, and especially without private credentials. You will probably find a block explorer API much more accessible, because they are built to handle public traffic. There are many blockchain explorers online that have public apis, they are easy to find.

> **Comments:**
> **username_0**: actually I need to generate address and push transactions into the blockchain.. most blockchain explorers give block height and related info.. iam new to cryptocurrencies so i might be incorrect  
> **username_1**: You can run an SPV node (light node)  
> **username_2**: You'd be very foolish to trust a random node in the network to make private keys for you.  

---

