Sha256: 74acbf97e1a80018ab96c27cbac926d49642b1e425c9cc42d1f347882cdc820e

Contents?: true

Size: 386 Bytes

Versions: 2

Compression:

Stored size: 386 Bytes

Contents

require 'stellar'

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

issuer = Stellar::Account.lookup("issuer@haste.co.nz"))
asset = Stellar::Asset.credit_alphanum4("USD", issuer)

client.send({
  from:   account,
  to:     recipient,
  amount: Stellar::Amount.new(100, asset, issuer)
}) # => #<OK>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stellar-sdk-0.3.0 examples/05_fiat_payment.rb
stellar-sdk-0.2.0 examples/05_fiat_payment.rb