ordspv
    Preparing search index...

    Interface ProofBundleJson

    interface ProofBundleJson {
        block: { hash: string; header: string; height: number; txCount: number };
        commit?: { hex: string };
        inscriptionId: string;
        level: "L2" | "L3";
        reveal: { hex: string; pos: number; txidBranch: string[] };
        version: 1;
        witness?: {
            coinbaseHex: string;
            coinbaseTxidBranch: string[];
            wtxidBranch: string[];
        };
    }
    Index
    block: { hash: string; header: string; height: number; txCount: number }

    Type Declaration

    • hash: string

      display-order hash the server claims; recomputed and checked

    • header: string

      160 hex chars

    • height: number
    • txCount: number

      total number of transactions in the block (required: CVE-2017-12842 hardening)

    commit?: { hex: string }

    required for L2 (and harmless in L3): the tx whose output the reveal input spends

    inscriptionId: string
    level: "L2" | "L3"
    reveal: { hex: string; pos: number; txidBranch: string[] }

    Type Declaration

    • hex: string
    • pos: number

      0-based position in the block's tx list

    • txidBranch: string[]

      txid-tree merkle branch, display-order hex, bottom-up

    version: 1
    witness?: {
        coinbaseHex: string;
        coinbaseTxidBranch: string[];
        wtxidBranch: string[];
    }

    required for L3

    Type Declaration

    • coinbaseHex: string
    • coinbaseTxidBranch: string[]

      coinbase txid-tree branch (position 0), display-order hex

    • wtxidBranch: string[]

      wtxid-tree branch for the reveal at reveal.pos, display-order hex