Overview
Creates unlimited trustline for given asset.
CreateTrustline Object
Attribute | Type | Description |
---|---|---|
keypair | Stellar::Keypair | Account keypair |
asset | Stellar::Asset | Asset, MOBI by default. |
Trustline Limit
LIMIT = 922337203685
ruby-stellar-base needs to be fixed, it does not accept unlimited for now.
Methods
.call(keypair, asset)
Constructor shortcut to instance method.
#call
Creates trustline for given asset.
suser = "SCRBVUQF4N7JNXSEVQKZ4OEOEORC54BURPI3RCKN4FP3CO6AA7EZTJOA"
keypair = Mobius::Client::Blockchain::KeyPairFactory.produce(suser)
trustline = Mobius::Client::Blockchain::CreateTrustline.call(keypair)
# =>
<Hyperclient::Resource self_link:nil attributes:#
<Hyperclient::Attributes:0x00007f01a4012208 @collection={
"hash"=>"d0d7d93ddc0d68548a15065dca5294ec862792631693288bf4f4fadf6a7c8dc0",
"ledger"=>9844916,
"envelope_xdr"=>"AAAAAN...zmBA8=",
"result_xdr"=>"AAAAAA...AAAAA=",
"result_meta_xdr"=>"AAAAAA...AAAAAA"}>>
XDR Viewer
Click the links below to open the Stellar XDR Viewer for each one.