Can I addnode to blockchain.info?

13

3

Blockchain.info http://blockchain.info/connected-nodes shows a list of nodes it is connected to. Is it possible for me to add them as a node for connection?

Shamoon

Posted 2012-08-25T19:51:36.277

Reputation: 2 749

1Presumably it's possible, but it may be difficult to figure out the IP address of their bitcoin client (which may or may not be the IP address of their main server or even their RPC API). – Daniel H – 2012-08-28T04:12:07.943

Answers

7

As mentioned in Daniel's comment, if you are trying to connect to the Bitcoin-client that gathers the information for the Blockchain.info site this is not trivial as the IP does not match the one of the website.

If you are just interested in adding the same nodes the site is connected to, that's no problem.

With Linux or OS X you'd do something like this:

curl -s https://blockchain.info/connected-nodes | \
grep -oE '([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)' | \
sort -u

which gives you a sorted list of IPs to connect to. If you want a complete string to just append to your bitcoind client as options then try this:

curl -s https://blockchain.info/connected-nodes | \
grep -oE '([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)' | \
sort -u | \
sed 's/.*/-addnode=&/g' | \
tr '\n' ' '

this additionally adds the -addnode= prefix to each address and joins the line.

cdecker

Posted 2012-08-25T19:51:36.277

Reputation: 8 234

currently the list from https://blockchain.info/connected-nodes is 0 (zero)

– miguelmorales85 – 2017-10-01T14:22:35.110

1

@miguelmorales85 try this https://blockchain.info/ip-log

– None – 2017-10-15T08:12:17.267