we are clear that in geth console we can add another peer with addpeer command such as


so, my question is that how to add another peer in solidity contract?

  • You can't do it, the smart contract has no such ability.
    – Badr Bellaj
    May 8, 2017 at 10:30

1 Answer 1


A peer is a property of an Ethereum node which is local to a computer, whereas a contract code can run on any node. There are no "peers" from the POV of a contract.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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