Address class

Interface for element that Wallet contains





accountId int
ID of the Account this Address belongs to.
read / write
balance num
Spendable balance for this Address.
read / write
chainCode ChainCode
The chain code (if any) associated with privateKey.
chainIndex int
The chain index (if any) used to derive this Address.
read / write
earliestSeen int
Lowest Block.height involving this Address.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
latestSeen int
Highest Block.height involving this Address.
read / write
loadIterator TransactionIterator
Iterator for loading more Transaction involving Address.
read / write
maturesBalance num
Maturing balance for this address.
read / write
maturesHeight int
Maturing balance height for this address.
read / write
name String
Display name for this Address.
read / write
newBalance num
Holds balance update during PeerNetwork synchronization.
read / write
newMaturesBalance num
Holds maturesBalance update during PeerNetwork synchronization.
read / write
privateKey PrivateKey
The PrivateKey (if any) assocaited with publicKey.
publicKey PublicAddress
The PublicAddress defines this Address.
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
state AddressState
AddressState tracks used and removed Adddress.
read / write


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toJson() Map<String, dynamic>
Marshals Address as a JSON-encoded string.
toString() String
A string representation of this object. [...]
updateSeenHeight(int height) → void
Track the earliest and latest height each Address has been seen
verify() bool
Verifies the integrity of this Address


operator ==(Object other) bool
The equality operator. [...]

Static Methods

compareBalance(dynamic a, dynamic b) int
Sort by balance and tie-break so only equivalent Address compare equal
compareIndex(dynamic a, dynamic b) int
An HD wallet Address is defined by an accountId, chainIndex pair
reduceBalance(Address a, Address b) Address
Find single Address with greatest balance