ordspv
    Preparing search index...

    Interface HeaderTrustOptions

    interface HeaderTrustOptions {
        checkpoints?: ReadonlyMap<number, string>;
        esploras?: EsploraBackend[];
        minAgreement?: number;
        minConfirmations?: number;
        powLimitBits?: number | null;
        proofSource?: string;
    }
    Index
    checkpoints?: ReadonlyMap<number, string>
    esploras?: EsploraBackend[]
    minAgreement?: number

    How many independent sources must support the header at a non-checkpoint height (default 2). The proof-building backend counts as one; each agreeing backend OTHER than the builder counts as one more. Lowering this to 1 disables independent anchoring; do that only when a covering checkpoint set or headerSyncTrust provides the anchor instead.

    minConfirmations?: number

    require this many confirmations on top of the proof's block (0 = skip)

    powLimitBits?: number | null

    Compact-bits proof-of-work floor: reject any header whose target is easier than this limit. Defaults to the mainnet powLimit (0x1d00ffff), matching the default mainnet checkpoints; pass the network's own limit (or null to disable) for non-mainnet chains.

    proofSource?: string

    baseUrl of the backend that produced the proof being anchored. Its hash-at-height answer is excluded from the attesting set so it cannot vote for its own header.