Class: StellarSpectrum::GetCurrentSequenceNumber

Inherits:
Object
  • Object
show all
Defined in:
lib/stellar_spectrum/services/get_current_sequence_number.rb

Class Method Summary collapse

Class Method Details

.execute(stellar_client:, channel_account:) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/stellar_spectrum/services/get_current_sequence_number.rb', line 4

def self.execute(stellar_client:, channel_account:)
   = stellar_client.()
  .sequence.to_i
rescue Faraday::ClientError => e
  Log.warn("Retrying GetCurrentSequenceNumber - #{e.inspect}")
  execute(stellar_client: stellar_client, channel_account: )
end