ElectrumConnection

ElectrumConnection

new ElectrumConnection(application, version, host, port, scheme, timeout, pingInterval, reconnectInterval, useBigInt)

Description:
  • Sets up network configuration for an Electrum client connection.
Parameters:
Name Type Description
application string your application name, used to identify to the electrum host.
version string protocol version to use with the host.
host string fully qualified domain name or IP number of the host.
port number the network port of the host.
scheme TransportScheme the transport scheme to use for connection
timeout number how long network delays we will wait for before taking action, in milliseconds.
pingInterval number the time between sending pings to the electrum host, in milliseconds.
reconnectInterval number the time between reconnection attempts to the electrum host, in milliseconds.
useBigInt boolean whether to use bigint for numbers in json response.
Throws:
if `version` is not a valid version string.
Type
Error