Peer

data class Peer(var address: IpAddress, var port: UShort?, var v2Transport: Boolean) : Disposable(source)

A peer to connect to over the Bitcoin peer-to-peer network.

Constructors

Link copied to clipboard
constructor(address: IpAddress, port: UShort?, v2Transport: Boolean)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The IP address to reach the node.

Link copied to clipboard
var port: UShort?

The port to reach the node. If none is provided, the default port for the selected network will be used.

Link copied to clipboard

Does the remote node offer encrypted peer-to-peer connection.

Functions

Link copied to clipboard
open override fun destroy()