Class TrustLineEntry

java.lang.Object
org.stellar.sdk.xdr.TrustLineEntry
All Implemented Interfaces:
XdrElement

public class TrustLineEntry extends Object implements XdrElement
TrustLineEntry's original definition in the XDR file is:
 struct TrustLineEntry
 {
     AccountID accountID;  // account this trustline belongs to
     TrustLineAsset asset; // type of asset (with issuer)
     int64 balance;        // how much of this asset the user has.
                           // Asset defines the unit for this;

     int64 limit;  // balance cannot be above this
     uint32 flags; // see TrustLineFlags

     // reserved for future use
     union switch (int v)
     {
     case 0:
         void;
     case 1:
         struct
         {
             Liabilities liabilities;

             union switch (int v)
             {
             case 0:
                 void;
             case 2:
                 TrustLineEntryExtensionV2 v2;
             }
             ext;
         } v1;
     }
     ext;
 };
 
  • Constructor Details

    • TrustLineEntry

      public TrustLineEntry()
    • TrustLineEntry

      public TrustLineEntry(AccountID accountID, TrustLineAsset asset, Int64 balance, Int64 limit, Uint32 flags, TrustLineEntry.TrustLineEntryExt ext)
      Creates a new TrustLineEntry instance.
      Parameters:
      accountID - the accountID field value
      asset - the asset field value
      balance - the balance field value
      limit - the limit field value
      flags - the flags field value
      ext - the ext field value
  • Method Details