View in context in the libbitcoin Slack #general mirror.
/// 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
};