Sha256: b7a19edb70593af2781007a1df4b6ab2d7fada1dea5d055429809bfe18df1940

Contents?: true

Size: 466 Bytes

Versions: 21

Compression:

Stored size: 466 Bytes

Contents

#!/usr/bin/env ruby

require 'stellar-base'

master      = Stellar::KeyPair.master
destination = Stellar::KeyPair.master

tx1 = Stellar::Transaction.payment({
  account:     master,
  destination: destination,
  sequence:    1,
  amount:      [:native, 20]
})

tx2 = Stellar::Transaction.payment({
  account:     master,
  destination: destination,
  sequence:    2,
  amount:      [:native, 20]
})

hex = tx1.merge(tx2).to_envelope(master).to_xdr(:base64)
puts hex

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
stellar-base-0.22.0 examples/transaction_merge.rb
stellar-base-0.21.0 examples/transaction_merge.rb
stellar-base-0.20.0 examples/transaction_merge.rb
stellar-base-0.19.0 examples/transaction_merge.rb
stellar-base-0.18.0 examples/transaction_merge.rb
stellar-base-0.17.0 examples/transaction_merge.rb
stellar-base-0.16.0 examples/transaction_merge.rb
stellar-base-0.15.0 examples/transaction_merge.rb
stellar-base-0.14.0 examples/transaction_merge.rb
stellar-base-0.13.0 examples/transaction_merge.rb
stellar-base-0.12.0 examples/transaction_merge.rb
stellar-base-0.11.0 examples/transaction_merge.rb
auction-ruby-base-0.1.1 examples/transaction_merge.rb
stellar-base-0.10.0 examples/transaction_merge.rb
stellar-base-0.9.0 examples/transaction_merge.rb
stellar-base-0.8.0 examples/transaction_merge.rb
stellar-base-0.7.0 examples/transaction_merge.rb
stellar-base-0.6.1 examples/transaction_merge.rb
stellar-base-0.6.0 examples/transaction_merge.rb
stellar-base-0.5.0 examples/transaction_merge.rb