Sha256: bfe7cd817b71df1ba856bd8e91dc5288caf1f1a1ad839fe513be1f801c26b707

Contents?: true

Size: 359 Bytes

Versions: 5

Compression:

Stored size: 359 Bytes

Contents

require 'stellar'

account = Stellar::Account.from_seed("s3fu5vCMrfYouKuk2uB1gCD7EsuuBKY9M4qmnniQMBFMWR6Gaqm") 
client  = Stellar::Client.default_testnet()

# create a random recipients
recipient = Stellar::Account.random

# make a payment
client.send_payment({
  from:   account,
  to:     recipient,
  amount: Stellar::Amount.new(100_000000)
}) # => #<OK>

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
stellar-sdk-0.3.0 examples/02_payment.rb
stellar-sdk-0.2.0 examples/02_payment.rb
stellar-sdk-0.1.1 examples/02_payment.rb
stellar-sdk-0.1.0 examples/02_payment.rb
stellar-lib-0.0.2 examples/02_payment.rb