TrustLineEntryXdr

data class TrustLineEntryXdr(val accountId: AccountIDXdr, val asset: TrustLineAssetXdr, val balance: Int64Xdr, val limit: Int64Xdr, val flags: Uint32Xdr, val ext: TrustLineEntryExtXdr)

XDR Source: 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;

};

Constructors

Link copied to clipboard
constructor(accountId: AccountIDXdr, asset: TrustLineAssetXdr, balance: Int64Xdr, limit: Int64Xdr, flags: Uint32Xdr, ext: TrustLineEntryExtXdr)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

account this trustline belongs to

Link copied to clipboard

type of asset (with issuer)

Link copied to clipboard

how much of this asset the user has.

Link copied to clipboard
Link copied to clipboard

see TrustLineFlags

Link copied to clipboard

Asset defines the unit for this; balance cannot be above this

Functions

Link copied to clipboard
fun encode(writer: XdrWriter)