Function get_expiration_ledger

Source
pub async fn get_expiration_ledger<P>(
    provider: &P,
    validity_seconds: u64,
) -> Result<u32, RelayerError>
Expand description

Calculate the expiration ledger for authorization.

Uses the provider to get the current ledger sequence and adds the specified validity duration (in seconds) converted to ledger count.