1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::{Address, CurrencyAmount, LedgerInfo, PaginationInfo, SignerList, AccountRoot, LedgerEntry};
use serde::{Deserialize, Serialize};

/// Used to make account_channels requests.
#[derive(Default, Debug, Serialize, Deserialize, Eq, PartialEq)]
pub struct FeeRequest {}

#[derive(Default, Debug, Serialize, Deserialize, Eq, PartialEq)]
pub struct FeeResponse {
    /// Various information about the transaction cost (the Fee field of a transaction), in drops of XRP.
    pub drops: FeeResponseDrops,
}

#[derive(Default, Debug, Serialize, Deserialize, Eq, PartialEq)]
pub struct FeeResponseDrops {
    /// The minimum transaction cost that a reference transaction must pay to be included in the current open ledger, represented in drops of XRP.
    pub open_ledger_fee: CurrencyAmount,
}