pub async fn fetch_next_sequence_from_chain<P>(
provider: &P,
relayer_address: &str,
) -> Result<u64, String>where
P: StellarProviderTrait,
Expand description
Fetches the current sequence number from the blockchain and calculates the next usable sequence. This is a shared helper that can be used by both stellar_relayer and stellar_transaction.
ยงReturns
The next usable sequence number (on-chain sequence + 1)