chia_protocol/fee_estimate.rs
1use chia_streamable_macro::streamable;
2
3#[streamable]
4pub struct FeeRate {
5 // Represents Fee Rate in mojos divided by CLVM Cost.
6 // Performs XCH/mojo conversion.
7 // Similar to 'Fee per cost'.
8 mojos_per_clvm_cost: u64,
9}
10
11#[streamable]
12pub struct FeeEstimate {
13 error: Option<String>,
14 time_target: u64, // unix time stamp in seconds
15 estimated_fee_rate: FeeRate, // Mojos per clvm cost
16}
17
18#[streamable]
19pub struct FeeEstimateGroup {
20 error: Option<String>,
21 estimates: Vec<FeeEstimate>,
22}