Class: Mobius::Client::Blockchain::CreateTrustline

Inherits:
Object
  • Object
show all
Extended by:
Dry::Initializer
Defined in:
lib/mobius/client/blockchain/create_trustline.rb

Overview

Creates unlimited trustline for given asset.

Constant Summary collapse

LIMIT =

ruby-stellar-base needs to be fixed, it does not accept unlimited now

922337203685

Instance Method Summary collapse

Instance Method Details

#callObject



12
13
14
15
16
# File 'lib/mobius/client/blockchain/create_trustline.rb', line 12

def call
  client.horizon.transactions._post(tx: tx.to_envelope(keypair).to_xdr(:base64))
rescue Faraday::ResourceNotFound
  raise Mobius::Client::Error::AccountMissing
end