qbit-rpc
    Preparing search index...

    Interface BlockTemplate

    getblocktemplate: the data to build the next block from. Permissionless work only: version never signals AuxPoW, and no AuxPoW field is printed. Merge mining goes through AuxBlock.

    interface BlockTemplate {
        bits: string;
        capabilities: readonly string[];
        coinbaseAux: Readonly<Record<string, string>>;
        coinbaseValueBits: bigint;
        curTime: number;
        defaultWitnessCommitment?: string;
        futureBlockTime: FutureBlockTimeRule;
        height: number;
        longPollId: string;
        minTime: number;
        mutable: readonly string[];
        nonceRange: string;
        p2mrValidationWeight: P2mrValidationWeightRule;
        previousBlockHash: string;
        rules: readonly string[];
        signetChallenge?: string;
        sigOpLimit: number;
        sizeLimit: number;
        target: string;
        transactions: readonly BlockTemplateTransaction[];
        vbAvailable: Readonly<Record<string, number>>;
        vbRequired: number;
        version: number;
        versionRollingMask: string;
        weightLimit?: number;
    }
    Index
    bits: string

    The block's compact target.

    capabilities: readonly string[]

    Features the node supports, such as proposal.

    coinbaseAux: Readonly<Record<string, string>>

    Data for the coinbase's scriptSig.

    coinbaseValueBits: bigint

    What the coinbase may pay at most: the subsidy and every transaction's fee.

    curTime: number

    The node's current time, in UNIX epoch seconds.

    defaultWitnessCommitment?: string

    The coinbase output to commit to the witnesses, as long as the coinbase's witness is 32 zero bytes and transactions stands.

    futureBlockTime: FutureBlockTimeRule

    The future block-time rule for this block.

    height: number

    The block's height.

    longPollId: string

    Passed to getblocktemplate through call(), it holds the reply: see Mining.

    minTime: number

    The earliest timestamp the block may have, in UNIX epoch seconds.

    mutable: readonly string[]

    What a miner may change in the template, such as time, transactions or prevblock.

    nonceRange: string

    The range of valid nonces, as hex.

    p2mrValidationWeight: P2mrValidationWeightRule

    The P2MR validation-weight rule for this block.

    previousBlockHash: string

    The hash of the tip the block builds on.

    rules: readonly string[]

    The rules the block must follow; a ! prefix marks one the miner must understand.

    signetChallenge?: string

    On signet only.

    sigOpLimit: number

    The most signature operations a block may have.

    sizeLimit: number

    The largest size a block may have, in bytes.

    target: string

    bits expanded.

    transactions: readonly BlockTemplateTransaction[]

    Without the coinbase, which the miner builds.

    vbAvailable: Readonly<Record<string, number>>

    Pending version-bits deployments the node supports, each by name with its bit.

    vbRequired: number

    The version bits the node requires set in a submission, as a mask.

    version: number

    The preferred block version.

    versionRollingMask: string

    The BIP310 version-rolling mask for this work, 00000000 when rolling is off.

    weightLimit?: number

    Absent before segwit's activation.