Ledger Methods

Async methods for obtaining information about the status of the XRP Ledger.

async xrpl.asyncio.ledger.get_fee(client: xrpl.asyncio.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.

async xrpl.asyncio.ledger.get_latest_open_ledger_sequence(client: xrpl.asyncio.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.

async xrpl.asyncio.ledger.get_latest_validated_ledger_sequence(client: xrpl.asyncio.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.