qbit-rpc
    Preparing search index...

    Type Alias ChainStatus

    ChainStatus:
        | "unconfirmed"
        | "confirmed"
        | "stale"
        | "mismatch"
        | "unsupported_version"

    The chain guard's state:

    • unconfirmed: confirmChain() has not succeeded yet. Wallet-write, broadcast, mining and wallet-admin calls are refused.
    • confirmed: the node reported expectedChain, its genesis block and, on signet, its challenge, within chainCheckMaxAgeMs.
    • stale: it did, but longer ago, or a connection error, an HTTP 401 or a cookie change happened since. The next wallet-write, broadcast, mining or wallet-admin call checks the chain again before it is sent.
    • mismatch: the node reported another chain, genesis block or signet challenge. Wallet-write, broadcast, mining and wallet-admin calls are refused until confirmChain() matches again.
    • unsupported_version: the node reported the expected chain, but a qbit Core version this package does not support (see nodeVersion), and allowUnsupportedNodeVersion is not set. Wallet-write, broadcast, mining and wallet-admin calls are refused until confirmChain() finds a supported version.