chik-protocol 0.51.0

Chik network protocol message types
Documentation
use chik_streamable_macro::streamable;

#[streamable]
pub struct FeeRate {
    // Represents Fee Rate in mojos divided by CLVK Cost.
    // Performs XCK/mojo conversion.
    // Similar to 'Fee per cost'.
    mojos_per_clvk_cost: u64,
}

#[streamable]
pub struct FeeEstimate {
    error: Option<String>,
    time_target: u64,            // unix time stamp in seconds
    estimated_fee_rate: FeeRate, // Mojos per clvk cost
}

#[streamable]
pub struct FeeEstimateGroup {
    error: Option<String>,
    estimates: Vec<FeeEstimate>,
}