Function parse_ledger_entry_from_xdr

Source
pub fn parse_ledger_entry_from_xdr(
    xdr_string: &str,
    context: &str,
) -> Result<LedgerEntryData, StellarTransactionUtilsError>
Expand description

Parse a ledger entry from base64 XDR string.

Handles both LedgerEntry and LedgerEntryChange formats. If the XDR is a LedgerEntryChange, extracts the LedgerEntry from it.

§Arguments

  • xdr_string - Base64-encoded XDR string
  • context - Context string for error messages

§Returns

Parsed LedgerEntry or error if parsing fails