class Stellar::Account

Attributes

keypair[R]

Public Class Methods

from_address(address) click to toggle source
# File lib/stellar/account.rb, line 17
def self.from_address(address)
  keypair = Stellar::KeyPair.from_address(address)
  new(keypair)
end
from_seed(seed) click to toggle source
# File lib/stellar/account.rb, line 12
def self.from_seed(seed)
  keypair = Stellar::KeyPair.from_seed(seed)
  new(keypair)
end
lookup(federated_name) click to toggle source
# File lib/stellar/account.rb, line 22
def self.lookup(federated_name)
  raise NotImplementedError
end
master() click to toggle source
# File lib/stellar/account.rb, line 26
def self.master
  keypair = Stellar::KeyPair.from_raw_seed("allmylifemyhearthasbeensearching")
  new(keypair)
end
new(keypair) click to toggle source
# File lib/stellar/account.rb, line 34
def initialize(keypair)
  @keypair = keypair
end
random() click to toggle source
# File lib/stellar/account.rb, line 7
def self.random
  keypair = Stellar::KeyPair.random
  new(keypair)
end