Bitcoin Forum
May 03, 2024, 09:29:46 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Connect to public Bitcoin node  (Read 231 times)
sanoplay (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 1


View Profile
March 04, 2019, 06:42:09 PM
Last edit: March 05, 2019, 08:42:15 PM by sanoplay
 #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
1714771786
Hero Member
*
Offline Offline

Posts: 1714771786

View Profile Personal Message (Offline)

Ignore
1714771786
Reply with quote  #2

1714771786
Report to moderator
1714771786
Hero Member
*
Offline Offline

Posts: 1714771786

View Profile Personal Message (Offline)

Ignore
1714771786
Reply with quote  #2

1714771786
Report to moderator
Transactions must be included in a block to be properly completed. When you send a transaction, it is broadcast to miners. Miners can then optionally include it in their next blocks. Miners will be more inclined to include your transaction if it has a higher transaction fee.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714771786
Hero Member
*
Offline Offline

Posts: 1714771786

View Profile Personal Message (Offline)

Ignore
1714771786
Reply with quote  #2

1714771786
Report to moderator
1714771786
Hero Member
*
Offline Offline

Posts: 1714771786

View Profile Personal Message (Offline)

Ignore
1714771786
Reply with quote  #2

1714771786
Report to moderator
1714771786
Hero Member
*
Offline Offline

Posts: 1714771786

View Profile Personal Message (Offline)

Ignore
1714771786
Reply with quote  #2

1714771786
Report to moderator
poordeveloper
Hero Member
*****
Offline Offline

Activity: 896
Merit: 527


₿₿₿₿₿₿₿


View Profile WWW
March 04, 2019, 06: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

🎰 Bitcoin Casinos ⭐⭐⭐⭐⭐
.
🔵 Buy Bitcoin (Visa / Mastercard / SEPA / Bank Transfer / Western Union / MoneyGram / RIA)
ABCbits
Legendary
*
Offline Offline

Activity: 2870
Merit: 7463


Crypto Swap Exchange


View Profile
March 05, 2019, 04:39:16 AM
Merited by Welsh (2)
 #3

Additionally, you can use -addnode=<node's IP> or -connect=<node's IP> as startup parameter if you only want to connect to a specific node once.
Use -connect=<node's IP> 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

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
sanoplay (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 1


View Profile
March 06, 2019, 06:18:29 PM
 #4

Additionally, you can use -addnode=<node's IP> or -connect=<node's IP> as startup parameter if you only want to connect to a specific node once.
Use -connect=<node's IP> 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?
ABCbits
Legendary
*
Offline Offline

Activity: 2870
Merit: 7463


Crypto Swap Exchange


View Profile
March 06, 2019, 06:41:46 PM
Merited by buwaytress (1)
 #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.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
March 06, 2019, 10: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

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!