Bitcoin full node and query server

Dec 3, 2025

View in context in the libbitcoin Slack #general mirror.

evoskuil08:31
Two queries need a little database work, but otherwise the explore http endpoint is fully functional for all queries and formats.
enum explore_targets
{
    /// /v[]/block/hash/[bkhash] {1}
    /// /v[]/block/height/[height] {1}
    block,

    /// /v[]/block/hash/[bkhash]/header {1}
    /// /v[]/block/height/[height]/header {1}
    header,

    /// -----------------------------------------------------------------------

    /// /v[]/block/hash/[bkhash]/transactions {all txs in the block}
    /// /v[]/block/height/[height]/transactions {all txs in the block}
    block_txs,

    /// /v[]/block/hash/[bkhash]/transaction/[position] {1}
    /// /v[]/block/height/[height]/transaction/[position] {1}
    block_tx,

    /// /v[]/transaction/[txhash] {1}
    transaction,

    /// /v[]/transaction/[txhash]/block {1 - confirmed}
    tx_block,

    /// -----------------------------------------------------------------------

    /// /v[]/inputs/[txhash] {all inputs in the tx}
    inputs,

    /// /v[]/input/[txhash]/[index] {1}
    input,

    /// /v[]/input/[txhash]/[index]/script {1}
    input_script,

    /// /v[]/input/[txhash]/[index]/witness {1}
    input_witness,

    /// -----------------------------------------------------------------------

    /// /v[]/outputs/[txhash] {all outputs in the tx}
    outputs,

    /// /v[]/output/[txhash]/[index] {1}
    output,

    /// /v[]/output/[txhash]/[index]/script {1}
    output_script,

    /// /v[]/output/[txhash]/[index]/spender {1 - confirmed}
    output_spender,

    /// /v[]/output/[txhash]/[index]/spenders {all}
    output_spenders,

    /// -----------------------------------------------------------------------

    /// /v[]/address/[output-script-hash] {all}
    address,

    /// /v[]/block/hash/[bkhash]/filter/[type] {1}
    /// /v[]/block/height/[height]/filter/[type] {1}
    filter,

    /// /v[]/block/hash/[bkhash]/filter/[type]/hash {1}
    /// /v[]/block/height/[height]/filter/[type]/hash {1}
    filter_hash,

    /// /v[]/block/hash/[bkhash]/filter/[type]/header {1}
    /// /v[]/block/height/[height]/filter/[type]/header {1}
    filter_header
};
🙌 1