brk_server 0.3.0-beta.2

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 + transaction index path parameters
#[derive(Deserialize, JsonSchema)]
pub struct BlockHashTxIndex {
    /// Bitcoin block hash
    pub hash: BlockHash,

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