Sha256: 8a488803302d5da119decc253b7b897d687c91c560cce9f6968dd530bd47ae2e

Contents?: true

Size: 582 Bytes

Versions: 7

Compression:

Stored size: 582 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(:base64)
puts hex

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
open-core-0.3.0 examples/transaction_merge.rb
stellar-base-0.3.0 examples/transaction_merge.rb
stellar-base-0.2.0 examples/transaction_merge.rb
stellar-base-0.1.4 examples/transaction_merge.rb
stellar-base-0.1.3 examples/transaction_merge.rb
stellar-base-0.1.2 examples/transaction_merge.rb
stellar-base-0.1.1 examples/transaction_merge.rb