Sha256: a80aec1dffe98d2f77fd0f778f6465468c5713c8e372113d6ff598c8bb1f5457

Contents?: true

Size: 579 Bytes

Versions: 12

Compression:

Stored size: 579 Bytes

Contents

#!/usr/bin/env ruby

require 'stellar-base'

master      = Stellar::KeyPair.from_raw_seed("allmylifemyhearthasbeensearching")
destination = Stellar::KeyPair.from_raw_seed("allmylifemyhearthasbeensearching")

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

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

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
stellar-base-0.1.0 examples/transaction_merge.rb
stellar-base-0.0.20 examples/transaction_merge.rb
stellar-base-0.0.19 examples/transaction_merge.rb
stellar-base-0.0.18 examples/transaction_merge.rb
stellar-base-0.0.17 examples/transaction_merge.rb
stellar-base-0.0.16 examples/transaction_merge.rb
stellar-base-0.0.15 examples/transaction_merge.rb
stellar-base-0.0.14 examples/transaction_merge.rb
stellar-base-0.0.13 examples/transaction_merge.rb
stellar-base-0.0.12 examples/transaction_merge.rb
stellar-base-0.0.11 examples/transaction_merge.rb
stellar-base-0.0.10 examples/transaction_merge.rb