ledgerGlobalTtlSeconds

fun ledgerGlobalTtlSeconds(ledgerParamsHex: String): Long?

The chain's global_ttl (in seconds) — the maximum a transaction's TTL may sit ahead of chain time before the node rejects it (custom error 182 / IntentTtlTooFarInFuture). Decoded from the SCALE-encoded ledger parameters.

Networks differ wildly (a localnet runs ~100s, PreProd ~1h), so callers use this live value via IntentTtl to size a tx TTL instead of a fixed window.

Return

the seconds value, or null if the parameters can't be decoded.