qbit-rpc
    Preparing search index...

    Interface BlockchainInfo

    getblockchaininfo. Field names are camelCase; amounts and fee rates are bits.

    interface BlockchainInfo {
        automaticPruning?: boolean;
        bestBlockHash: string;
        bits: string;
        blocks: number;
        chain: QbitChain | string & {};
        chainwork: string;
        difficulty: number;
        futureBlockTime: {
            activationHeight: number;
            activeForNextBlock: boolean;
            activeForTip: boolean;
            blocksRemaining: number;
            legacyLimitSeconds: number;
            nextBlockLimitSeconds: number;
            nextBlockMaxTime: number;
            nextBlockMinTime: number;
            nextBlockTimeHeadroomSeconds: number;
            tipLimitSeconds: number;
            v2LimitSeconds: number;
        };
        headers: number;
        initialBlockDownload: boolean;
        medianTime: number;
        p2mrValidationWeight: {
            activationHeight: number;
            activeForNextBlock: boolean;
            activeForTip: boolean;
            blocksRemaining: number;
            legacyPerSigop: number;
            v2PerSigop: number;
        };
        pruned: boolean;
        pruneHeight?: number;
        pruneTargetSize?: number;
        signetChallenge?: string;
        sizeOnDisk: number;
        target: string;
        time: number;
        verificationProgress: number;
        warnings: readonly string[];
    }
    Index
    automaticPruning?: boolean

    Whether pruning runs automatically. Only when pruning.

    bestBlockHash: string

    Hash of the active chain's tip.

    bits: string

    Compact target, 8 hex characters.

    blocks: number

    Height of the most-work fully validated chain; the genesis block is 0.

    chain: QbitChain | string & {}

    A QbitChain, or a chain name a later qbit Core adds, as it is: the chain guard compares it with expectedChain.

    chainwork: string

    Total work in the active chain, 64 hex characters.

    difficulty: number

    The tip's difficulty.

    futureBlockTime: {
        activationHeight: number;
        activeForNextBlock: boolean;
        activeForTip: boolean;
        blocksRemaining: number;
        legacyLimitSeconds: number;
        nextBlockLimitSeconds: number;
        nextBlockMaxTime: number;
        nextBlockMinTime: number;
        nextBlockTimeHeadroomSeconds: number;
        tipLimitSeconds: number;
        v2LimitSeconds: number;
    }

    The activation state of qbit's v2 future block-time limit, and the next block's timestamp bounds.

    Type Declaration

    • ReadonlyactivationHeight: number

      The first block that uses the v2 limit.

    • ReadonlyactiveForNextBlock: boolean

      Whether the v2 limit applies to the next block.

    • ReadonlyactiveForTip: boolean

      Whether the v2 limit applies to the tip.

    • ReadonlyblocksRemaining: number

      Blocks until the v2 limit activates, counted from the next block.

    • ReadonlylegacyLimitSeconds: number

      How far in the future a block time may be before v2, in seconds.

    • ReadonlynextBlockLimitSeconds: number

      The future block-time limit that applies to the next block, in seconds.

    • ReadonlynextBlockMaxTime: number

      The latest valid timestamp for the next block at the node's current time, in UNIX epoch seconds.

    • ReadonlynextBlockMinTime: number

      The earliest valid timestamp for the next block, in UNIX epoch seconds.

    • ReadonlynextBlockTimeHeadroomSeconds: number

      Negative when no valid timestamp is currently available for the next block.

    • ReadonlytipLimitSeconds: number

      The future block-time limit that applies to the tip, in seconds.

    • Readonlyv2LimitSeconds: number

      How far in the future a block time may be under v2, in seconds.

    headers: number

    Height of the most-work header chain the node has validated.

    initialBlockDownload: boolean

    Whether the node estimates it is in initial block download.

    medianTime: number

    Median time of the tip and the 10 blocks before it, in UNIX epoch seconds.

    p2mrValidationWeight: {
        activationHeight: number;
        activeForNextBlock: boolean;
        activeForTip: boolean;
        blocksRemaining: number;
        legacyPerSigop: number;
        v2PerSigop: number;
    }

    The activation state of P2MR validation-weight v2.

    Type Declaration

    • ReadonlyactivationHeight: number

      The first block that uses v2.

    • ReadonlyactiveForNextBlock: boolean

      Whether v2 applies to the next block.

    • ReadonlyactiveForTip: boolean

      Whether v2 applies to the tip.

    • ReadonlyblocksRemaining: number

      Blocks until v2 activates, counted from the next block.

    • ReadonlylegacyPerSigop: number

      Validation weight debited per P2MR signature operation before v2.

    • Readonlyv2PerSigop: number

      Validation weight debited per P2MR signature operation under v2.

    pruned: boolean

    Whether the node prunes old blocks.

    pruneHeight?: number

    Height of the last block pruned, plus one. Only when pruning.

    pruneTargetSize?: number

    Target size of the block and undo files, in bytes. Only with automatic pruning.

    signetChallenge?: string

    The block challenge (block script), as hex. Only on a signet.

    sizeOnDisk: number

    Estimated size of the block and undo files on disk, in bytes.

    target: string

    The tip's difficulty target, 64 hex characters.

    time: number

    The tip's block time, in UNIX epoch seconds.

    verificationProgress: number

    Estimated verification progress, 0 to 1.

    warnings: readonly string[]

    Node warnings; a single string under -deprecatedrpc=warnings becomes a one-element array.