Class LedgerKey

java.lang.Object
org.stellar.sdk.xdr.LedgerKey

public class LedgerKey extends Object
LedgerKey's original definition in the XDR file is:
 union LedgerKey switch (LedgerEntryType type)
 {
 case ACCOUNT:
     struct
     {
         AccountID accountID;
     } account;

 case TRUSTLINE:
     struct
     {
         AccountID accountID;
         TrustLineAsset asset;
     } trustLine;

 case OFFER:
     struct
     {
         AccountID sellerID;
         int64 offerID;
     } offer;

 case DATA:
     struct
     {
         AccountID accountID;
         string64 dataName;
     } data;

 case CLAIMABLE_BALANCE:
     struct
     {
         ClaimableBalanceID balanceID;
     } claimableBalance;

 case LIQUIDITY_POOL:
     struct
     {
         PoolID liquidityPoolID;
     } liquidityPool;
 case CONTRACT_DATA:
     struct
     {
         SCAddress contract;
         SCVal key;
         ContractDataDurability durability;
     } contractData;
 case CONTRACT_CODE:
     struct
     {
         Hash hash;
     } contractCode;
 case CONFIG_SETTING:
     struct
     {
         ConfigSettingID configSettingID;
     } configSetting;
 case TTL:
     struct
     {
         // Hash of the LedgerKey that is associated with this TTLEntry
         Hash keyHash;
     } ttl;
 };