LedgerKeyXdr

sealed class LedgerKeyXdr

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

Inheritors

Types

Link copied to clipboard
data class Account(val value: LedgerKeyAccountXdr) : LedgerKeyXdr
Link copied to clipboard
Link copied to clipboard
object Companion
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class Data(val value: LedgerKeyDataXdr) : LedgerKeyXdr
Link copied to clipboard
Link copied to clipboard
data class Offer(val value: LedgerKeyOfferXdr) : LedgerKeyXdr
Link copied to clipboard
Link copied to clipboard
data class Ttl(val value: LedgerKeyTtlXdr) : LedgerKeyXdr

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun encode(writer: XdrWriter)
Link copied to clipboard

Encodes this XDR object to a base64 string.