brk_server 0.3.0-beta.1

A server with an API for anything from BRK
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use schemars::JsonSchema;
use serde::Deserialize;

use brk_types::{BlockHash, TxIndex};

/// Block hash + starting transaction index path parameters
#[derive(Deserialize, JsonSchema)]
pub struct BlockHashStartIndex {
    /// Bitcoin block hash
    pub hash: BlockHash,

    /// Starting transaction index within the block (0-based)
    #[schemars(example = 0)]
    pub start_index: TxIndex,
}