Sha256: 2eca63e3911998813afbe34836b947d71ab2e552a207bd3899cd28d3ee524944
Contents?: true
Size: 550 Bytes
Versions: 2
Compression:
Stored size: 550 Bytes
Contents
#!/usr/bin/env ruby require 'auction-ruby-base' require 'faraday' require 'faraday_middleware' $server = Faraday.new(url: "http://localhost:39132") do |conn| conn.response :json conn.adapter Faraday.default_adapter end master = Stellar::KeyPair.master destination = Stellar::KeyPair.random tx = Stellar::Transaction.create_account({ account: master, destination: destination, sequence: 1, starting_balance: 50 }) b64 = tx.to_envelope(master).to_xdr(:base64) p b64 result = $server.get('tx', blob: b64) p result.body
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
auction-ruby-base-0.1.3 | examples/create_account.rb |
auction-ruby-base-0.1.2 | examples/create_account.rb |