peer/addPeer

Attempts to connect to a peer through WebSockets using the given host and port. The request waits for the result of the connection before returning. If whitelist is true (by default) the node will continue to attempt connections even if the initial connection fails

Request 

{
  host: string
  port: number | undefined
  whitelist: boolean | undefined
}

Response 

{
  added: boolean
  error: string | undefined
}
View on Github

Join our newsletter and stay up to date with privacy and crypto.

Discover our impactful presence — read our blog.

Use

  • Node App
  • Node CLI
  • Mine
  • Block Explorer
  • Ecosystem

Learn

  • Get Started
  • FAQ
  • Whitepaper
  • Tokenomics

Community

  • Foundation
  • Governance
  • Grants
  • Our Community

Developers

  • Documentation
  • Github
Privacy Policy

|

Media Kit

|

Copyright 2024 Iron Fish.