Class: Mobius::Client::FriendBot

Inherits:
Object
  • Object
show all
Extended by:
Dry::Initializer
Defined in:
lib/mobius/client/friend_bot.rb

Overview

Calls Mobius FriendBot for given account.

Instance Method Summary collapse

Instance Method Details

#callObject



9
10
11
12
13
# File 'lib/mobius/client/friend_bot.rb', line 9

def call
  response = http.post(ENDPOINT, addr: seed, amount: amount)
  return true if response.success?
  raise "FriendBot failed to respond: #{response.body}"
end