Package org.stellar.sdk.xdr
Class AccountEntry
java.lang.Object
org.stellar.sdk.xdr.AccountEntry
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
Modifier and TypeClassDescriptionstatic class
static class
AccountEntryExt's original definition in the XDR file is: -
Constructor Summary
ConstructorDescriptionAccountEntry
(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 AccountEntry
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static AccountEntry
fromXdrBase64
(String xdr) static AccountEntry
fromXdrByteArray
(byte[] xdr) getExt()
getFlags()
Signer[]
int
hashCode()
void
setAccountID
(AccountID accountID) void
setBalance
(Int64 balance) void
void
void
setHomeDomain
(String32 homeDomain) void
setInflationDest
(AccountID inflationDest) void
setNumSubEntries
(Uint32 numSubEntries) void
setSeqNum
(SequenceNumber seqNum) void
setSigners
(Signer[] signers) void
setThresholds
(Thresholds thresholds) toString()
default String
default byte[]
-
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
- 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
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-