XRPL Ledger Methods¶
Top-level exports for the ledger package.
-
xrpl.ledger.
get_fee
(client: xrpl.clients.client.Client) → str¶ Query the ledger for the current minimum transaction fee.
- Parameters
client – the network client used to make network calls.
- Returns
The minimum fee for transactions.
- Raises
XRPLRequestFailureException – if the rippled API call fails.
-
xrpl.ledger.
get_latest_open_ledger_sequence
(client: xrpl.clients.client.Client) → int¶ Returns the sequence number of the latest open ledger.
- Parameters
client – The network client to use to send the request.
- Returns
The sequence number of the latest open ledger.
- Raises
XRPLRequestFailureException – if the rippled API call fails.
-
xrpl.ledger.
get_latest_validated_ledger_sequence
(client: xrpl.clients.client.Client) → int¶ Returns the sequence number of the latest validated ledger.
- Parameters
client – The network client to use to send the request.
- Returns
The sequence number of the latest validated ledger.
- Raises
XRPLRequestFailureException – if the rippled API call fails.