Ledger Methods

Methods for obtaining information about the status of the XRP Ledger.

xrpl.ledger.get_fee(client: xrpl.clients.sync_client.SyncClient) 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.sync_client.SyncClient) 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.sync_client.SyncClient) 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.