ElectrumClient# ElectrumClient

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

  • Initializes an Electrum client.
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 TCP 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.
if `version` is not a valid version string.