Package org.stellar.sdk.xdr
Class AccountEntry
java.lang.Object
org.stellar.sdk.xdr.AccountEntry
- All Implemented Interfaces:
XdrElement
AccountEntry's original definition in the XDR file is:
struct AccountEntry
{
AccountID accountID; // master public key for this account
int64 balance; // in stroops
SequenceNumber seqNum; // last sequence number used for this account
uint32 numSubEntries; // number of sub-entries this account has
// drives the reserve
AccountID* inflationDest; // Account to vote for during inflation
uint32 flags; // see AccountFlags
string32 homeDomain; // can be used for reverse federation and memo lookup
// fields used for signatures
// thresholds stores unsigned bytes: [weight of master|low|medium|high]
Thresholds thresholds;
Signer signers<MAX_SIGNERS>; // possible signers for this account
// reserved for future use
union switch (int v)
{
case 0:
void;
case 1:
AccountEntryExtensionV1 v1;
}
ext;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classAccountEntryExt's original definition in the XDR file is: -
Constructor Summary
ConstructorsConstructorDescriptionAccountEntry(AccountID accountID, Int64 balance, SequenceNumber seqNum, Uint32 numSubEntries, AccountID inflationDest, Uint32 flags, String32 homeDomain, Thresholds thresholds, Signer[] signers, AccountEntry.AccountEntryExt ext) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static AccountEntrydecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic AccountEntryfromXdrBase64(String xdr) static AccountEntryfromXdrByteArray(byte[] xdr) getExt()getFlags()Signer[]inthashCode()voidsetAccountID(AccountID accountID) voidsetBalance(Int64 balance) voidvoidvoidsetHomeDomain(String32 homeDomain) voidsetInflationDest(AccountID inflationDest) voidsetNumSubEntries(Uint32 numSubEntries) voidsetSeqNum(SequenceNumber seqNum) voidsetSigners(Signer[] signers) voidsetThresholds(Thresholds thresholds) toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
AccountEntry
public AccountEntry() -
AccountEntry
public AccountEntry(AccountID accountID, Int64 balance, SequenceNumber seqNum, Uint32 numSubEntries, AccountID inflationDest, Uint32 flags, String32 homeDomain, Thresholds thresholds, Signer[] signers, AccountEntry.AccountEntryExt ext)
-
-
Method Details
-
encode
- Specified by:
encodein interfaceXdrElement- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getAccountID
-
getBalance
-
getSeqNum
-
getNumSubEntries
-
getInflationDest
-
getFlags
-
getHomeDomain
-
getThresholds
-
getSigners
-
getExt
-
setAccountID
-
setBalance
-
setSeqNum
-
setNumSubEntries
-
setInflationDest
-
setFlags
-
setHomeDomain
-
setThresholds
-
setSigners
-
setExt
-
equals
-
hashCode
public int hashCode() -
toString
-