"relayed_by" addres IP

Maxwell

Member
I'm a bit confused with the question, but if you meant "How blockcypher got that IP?", then the answer is they receive that block/transaction from another node.
But it's unknown whether that node (which IP shown by blockcypher) was the one who mine that block/create that transaction since there's possibility that node only relay/receive the block/transaction from other node.
 

Ivan

Member
IP of previous node can be obtained only by standalnone using protocol? Or is way to get that info from Bitcoin client - for exmaple by ZMQ?
 

Kingston

Member
IP of previous node can be obtained only by standalnone using protocol? Or is way to get that info from Bitcoin client - for exmaple by ZMQ?
I'm not familiar with ZeroMQ (https://zeromq.org/), but normally Bitcoin client (such as Bitcoin Core) don't record from whom they receive a block/transaction.

I don't know much about software development, but i guess you need to use application/librar which running on top of Bitcoin client to record such information, CMIIW.
 

Juan

Member
I run bitcoin with -debug=net
in log I have "got inv tx=hash, new peer=1"
peer = 1 or 9 but how get IP address from peer number?
 

Ashton

Member
I run bitcoin with -debug=net
in log I have "got inv tx=hash, new peer=1"
peer = 1 or 9 but how get IP address from peer number?
GetPeerInfo (?) https://bitcoincore.org/en/doc/0.16.0/rpc/network/getpeerinfo/

Again though, you will see which node relayed the transaction to YOU. It's obviously not the node that is the original owner of the tx.

And thus, as others have also stated in the past, the information is rather useless. I don't really understand what you would want this for.
 
Top