ordspv
    Preparing search index...

    Interface ProofBackend

    Anything that can serve the proof ingredients. EsploraBackend satisfies this structurally; so does the proof-sidecar's Bitcoin Core RPC backend. The bundle builder is data-source agnostic.

    interface ProofBackend {
        getBlockInfo(blockHash: string): Promise<EsploraBlockInfo>;
        getBlockRaw(blockHash: string): Promise<Uint8Array<ArrayBufferLike>>;
        getHeaderHex(blockHash: string): Promise<string>;
        getMerkleProof(txid: string): Promise<EsploraMerkleProof>;
        getTxHex(txid: string): Promise<string>;
        getTxStatus(txid: string): Promise<EsploraTxStatus>;
    }
    Index
    • Parameters

      • blockHash: string

      Returns Promise<Uint8Array<ArrayBufferLike>>