Bitcoin full node and query server

Oct 30, 2025

View in context in the libbitcoin Slack #general mirror.

evoskuil05:12
The first ever http database requests from libbitcoin. (1) json (pretty printed by Chrome) (2) text (hexadecimal wire encoding) (3) binary (wire encoding) captured as a file by Chrome (4) none-of-the-above returns default page (for all URLs) Accept media type set as URL query parameter. Accept header supported (lower priority than parameter). Single hash token interpreted as tx (no parse/dispatch yet).
(edited)
🚀 5👾 1
1 reply · evoskuil · last Oct 30, 2025
evoskuil06:07
    /// Pagination and filtering are via query string.
    enum targets
    {
        /// /v[]/block/hash/[bkhash] {1}
        /// /v[]/block/height/[height] {1}s
        block,

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

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

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

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

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

        /// /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
    };