brk_rpc 0.12.2

A thin wrapper around Bitcoin Core's JSON-RPC
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use bitcoin::Transaction;
use brk_types::{Sats, Txid, Weight};

/// One transaction from `getblocktemplate`. Carries the full decoded
/// body and stats so block 0 can be projected without a follow-up
/// `getmempoolentry`/`getrawtransaction` per tx.
#[derive(Debug, Clone)]
pub struct BlockTemplateTx {
    pub txid: Txid,
    pub fee: Sats,
    pub weight: Weight,
    /// Parent txids also in this template, resolved from Core's
    /// wire-level one-based indices.
    pub depends: Vec<Txid>,
    pub tx: Transaction,
}