0

I found a list of public bitcoin nodes here. I am using a php library. 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.

1

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.

  • 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 Dec 21 '18 at 5:01
  • 1
    You can run an SPV node (light node) – JBaczuk Dec 21 '18 at 5:48
  • 1
    You'd be very foolish to trust a random node in the network to make private keys for you. – Anonymous Jan 20 at 6:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.