rippled
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
xrpl::Fees Struct Reference

Reflects the fee settings for a particular ledger. More...

#include <Fees.h>

Collaboration diagram for xrpl::Fees:
Collaboration graph
[legend]

Public Member Functions

 Fees ()=default
 
 Fees (Fees const &)=default
 
Feesoperator= (Fees const &)=default
 
 Fees (XRPAmount base_, XRPAmount reserve_, XRPAmount increment_)
 
XRPAmount accountReserve (std::size_t ownerCount) const
 Returns the account reserve given the owner count, in drops.
 

Public Attributes

XRPAmount base {0}
 Cost of a reference transaction in drops.
 
XRPAmount reserve {0}
 Minimum XRP an account must hold to exist on the ledger.
 
XRPAmount increment {0}
 Additional XRP reserve required per owned ledger object.
 

Detailed Description

Reflects the fee settings for a particular ledger.

The fees are always the same for any transactions applied to a ledger. Changes to fees occur in between ledgers.

Definition at line 16 of file protocol/Fees.h.

Constructor & Destructor Documentation

◆ Fees() [1/3]

xrpl::Fees::Fees ( )
explicitdefault

◆ Fees() [2/3]

xrpl::Fees::Fees ( Fees const &  )
default

◆ Fees() [3/3]

xrpl::Fees::Fees ( XRPAmount  base_,
XRPAmount  reserve_,
XRPAmount  increment_ 
)

Definition at line 32 of file protocol/Fees.h.

Member Function Documentation

◆ operator=()

Fees & xrpl::Fees::operator= ( Fees const &  )
default

◆ accountReserve()

XRPAmount xrpl::Fees::accountReserve ( std::size_t  ownerCount) const

Returns the account reserve given the owner count, in drops.

The reserve is calculated as the reserve base plus the reserve increment times the number of increments.

Definition at line 43 of file protocol/Fees.h.

Member Data Documentation

◆ base

XRPAmount xrpl::Fees::base {0}

Cost of a reference transaction in drops.

Definition at line 19 of file protocol/Fees.h.

◆ reserve

XRPAmount xrpl::Fees::reserve {0}

Minimum XRP an account must hold to exist on the ledger.

Definition at line 22 of file protocol/Fees.h.

◆ increment

XRPAmount xrpl::Fees::increment {0}

Additional XRP reserve required per owned ledger object.

Definition at line 25 of file protocol/Fees.h.