Method: Mobius::Cli::Create#account
- Defined in:
- lib/mobius/cli/create.rb
#account ⇒ Object
26 27 28 29 30 31 32 33 34 35 |
# File 'lib/mobius/cli/create.rb', line 26 def account keypair = create_account say " * Public Key: #{keypair.address}" say " * Private Key: #{keypair.seed}" say " * XLM balance: #{Mobius::Client::Blockchain::Account.new(keypair).balance(:native)}" say "Done!" rescue StandardError => e say "[ERROR] #{e.message}", :red end |