Bitcoin full node and query server

Nov 28, 2025

View in context in the libbitcoin Slack #general mirror.

evoskuil21:51
That defies the interface, and dropped into the dispatch template, that implements the routing from the request message (parsed from the request URL path), from this pattern:
/// Pagination and filtering are via query string.
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]/filter {1}
    /// /v[]/block/height/[height]/filter {1}
    filter,

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

    /// /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[]/input/[txhash]/[index] {1}
    input,

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

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

    /// /v[]/input/[txhash]/scripts {all input scripts in the tx}
    input_scripts,

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

    /// /v[]/input/[txhash]/witnesses {all witnesses in the tx}
    input_witnesses,

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

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

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

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

    /// /v[]/output/[txhash]/scripts {all output scripts in the tx}
    output_scripts,

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

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

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

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