Sha256: 461813bc4452a36386f4899a617fa3cf015d4b31d1aa9d58efeee637a86b6c2d
Contents?: true
Size: 1019 Bytes
Versions: 5
Compression:
Stored size: 1019 Bytes
Contents
require 'stellar' # Reference an account from a secret seed account = Stellar::Account.from_seed("s3fu5vCMrfYouKuk2uB1gCD7EsuuBKY9M4qmnniQMBFMWR6Gaqm") # Further options # # Make a random account # # account = Stellar::Account.random() # # Reference an account (unauthenticated) from an address # # account = Stellar::Account.from_address("gjgPNE2GpySt5iYZaFFo1svCJ4gbHwXxUy8DDqeYTDK6UzsPTs") # # Reference an account (unauthenticated) from a federation name # # account = Stellar::Account.lookup("nullstyle") # defaults to stellar.org # account = Stellar::Account.lookup("nullstyle@stellar.org") # # create a connection to the stellar network client = Stellar::Client.default_testnet() # Further options # # Connect to the live network (when it is created) # # client = Stellar::Client.default # # Connect to a specific horizon host # # client = Stellar::Client.new(host: "127.0.0.1") # Get our friendly friendbot to # fund your new account response = client.friendbot(account) # => #<OK>
Version data entries
5 entries across 5 versions & 2 rubygems