qbit-rpc
    Preparing search index...

    Interface BlockWithTransactions

    getblock with verbosity 2: as Block, with each transaction decoded.

    interface BlockWithTransactions {
        bits: string;
        chainwork: string;
        confirmations: number;
        difficulty: number;
        hash: string;
        height: number;
        medianTime: number;
        merkleRoot: string;
        nextBlockHash?: string;
        nonce: number;
        nTx: number;
        previousBlockHash?: string;
        size: number;
        strippedSize: number;
        target: string;
        time: number;
        tx: readonly BlockTransaction[];
        version: number;
        versionHex: string;
        weight: number;
    }

    Hierarchy

    • Omit<Block, "tx">
      • BlockWithTransactions
    Index
    bits: string

    Compact target, 8 hex characters.

    chainwork: string

    Total work in the chain up to and including this block, 64 hex characters.

    confirmations: number

    -1 when the block is not on the active chain.

    difficulty: number

    The block's difficulty.

    hash: string

    The block hash, the one requested.

    height: number

    The block's height.

    medianTime: number

    Median time of this block and the 10 before it, in UNIX epoch seconds.

    merkleRoot: string

    The merkle root of the block's transactions.

    nextBlockHash?: string

    The next block on the active chain; absent for the tip and for a block off it.

    nonce: number

    The header nonce.

    nTx: number

    The number of transactions in the block.

    previousBlockHash?: string

    Absent only for the genesis block.

    size: number

    The block's size, in bytes.

    strippedSize: number

    The block's size without witness data, in bytes.

    target: string

    The difficulty target, 64 hex characters.

    time: number

    The block time, in UNIX epoch seconds.

    tx: readonly BlockTransaction[]

    The block's transactions, decoded, the coinbase first.

    version: number

    The block version.

    versionHex: string

    version as 8 hex characters.

    weight: number

    The block's weight.