Author

Topic: Connect to public Bitcoin node (Read 243 times)

HCP
legendary
Activity: 2086
Merit: 4318
March 06, 2019, 06:55:33 PM
#6
I have one more quastion. Is there any method how can i connect to remote node and use JSON-RPC to retrieve some data from it?
There are lots of method/way to do it (you can check https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)), but it's not possible to do so with Bitcoin Core.
That is exactly what the JSON-RPC is designed for... however the remote node would need to be configured correctly (rpcuser/rpcpassword etc) AND allow incoming RPC connections from your IP. According to the docs, by default, it is setup to only allow processes on the local machine to connect.

Check the "RPC Server Options" here: https://en.bitcoin.it/wiki/Running_Bitcoin
legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
March 06, 2019, 02:41:46 PM
#5
I have one more quastion. Is there any method how can i connect to remote node and use JSON-RPC to retrieve some data from it?

There are lots of method/way to do it (you can check https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)), but it's not possible to do so with Bitcoin Core.

But depending on your usage, use 3rd party API such as https://chain.so/, https://blockchair.com/ or https://www.blockcypher.com/ is good idea since they offer wide-variations of API functions.
newbie
Activity: 6
Merit: 1
March 06, 2019, 02:18:29 PM
#4
Additionally, you can use -addnode= or -connect= as startup parameter if you only want to connect to a specific node once.
Use -connect= if you only want connect to one node.

But if you don't use Bitcoin Core as your full node client, the syntax or parameter might be different.

More info : https://bitcoin.stackexchange.com/a/41427

Many thanks.

I have one more quastion. Is there any method how can i connect to remote node and use JSON-RPC to retrieve some data from it?
legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
March 05, 2019, 12:39:16 AM
#3
Additionally, you can use -addnode= or -connect= as startup parameter if you only want to connect to a specific node once.
Use -connect= if you only want connect to one node.

But if you don't use Bitcoin Core as your full node client, the syntax or parameter might be different.

More info : https://bitcoin.stackexchange.com/a/41427
hero member
Activity: 896
Merit: 527
₿₿₿₿₿₿₿
March 04, 2019, 02:51:18 PM
#2
To connect to a specific node, use this in the console:
Code:
addnode 1.2.3.4 add
(Make sure to replace 1.2.3.4 with the node address.)

You can also add the following line/s to your bitcoin.conf file:
Code:
addnode=1.2.3.4
newbie
Activity: 6
Merit: 1
March 04, 2019, 02:42:09 PM
#1
Hello guys,

How can i connect to remote public bitcoin node (e.g i find it on Bitnodes https://bitnodes.earn.com/ )?

Thanks in advance
Jump to: