xrpl_rs/types/
fee.rs

1use super::{Address, CurrencyAmount, LedgerInfo, PaginationInfo, SignerList, AccountRoot, LedgerEntry};
2use serde::{Deserialize, Serialize};
3use serde_with::skip_serializing_none;
4
5/// Used to make account_channels requests.
6#[skip_serializing_none]
7#[derive(Default, Debug, Serialize, Deserialize, Eq, PartialEq)]
8pub struct FeeRequest {}
9
10#[skip_serializing_none]
11#[derive(Default, Debug, Serialize, Deserialize, Eq, PartialEq)]
12pub struct FeeResponse {
13    /// Various information about the transaction cost (the Fee field of a transaction), in drops of XRP.
14    pub drops: FeeResponseDrops,
15}
16
17#[skip_serializing_none]
18#[derive(Default, Debug, Serialize, Deserialize, Eq, PartialEq)]
19pub struct FeeResponseDrops {
20    /// The minimum transaction cost that a reference transaction must pay to be included in the current open ledger, represented in drops of XRP.
21    pub open_ledger_fee: CurrencyAmount,
22}