ordspv
    Preparing search index...

    Interface ElectrumTcpOptions

    interface ElectrumTcpOptions {
        ca?: string | string[];
        host: string;
        insecure?: boolean;
        maxBufferBytes?: number;
        pinnedCertSha256?: string;
        port?: number;
        timeoutMs?: number;
        tls?: boolean;
    }
    Index
    ca?: string | string[]

    additional trusted CA certificate(s), PEM (e.g. a self-hosted server's own CA)

    host: string
    insecure?: boolean

    Accept ANY certificate (self-signed servers); explicit opt-in only. TLS here is transport hygiene, not the trust anchor (headers are validated by PoW/checkpoints either way), but verified TLS still stops trivial on-path tampering and downgrade games. Prefer ca or pinnedCertSha256 over this.

    maxBufferBytes?: number

    cap on a single buffered protocol line (default 4 MiB)

    pinnedCertSha256?: string

    Pin the server certificate by SHA-256 fingerprint (hex, colons optional, as printed by openssl x509 -fingerprint -sha256). Replaces CA validation: the connection is accepted iff the presented certificate matches, which also supports self-signed deployments without insecure.

    port?: number

    default 50002 (TLS); 50001 with tls:false

    timeoutMs?: number
    tls?: boolean